var _yt_player={};(function(g){var window=this;/* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* SPDX-License-Identifier: Apache-2.0 */ 'use strict';var ba,baa,caa,na,daa,eaa,faa,pa,sa,ta,va,jaa,kaa,Ba,Da,laa,maa,Fa,naa,Ga,Ia,Ja,Oa,oaa,qaa,raa,Za,bb,saa,fb,ib,jb,qb,sb,taa,uaa,wb,waa,xaa,Jb,yaa,Sb,zaa,Aaa,Lb,Baa,Caa,Daa,Faa,Eaa,Gaa,Zb,Haa,bc,ec,gc,ic,pc,qc,rc,sc,tc,uc,Paa,vc,xc,wc,Qaa,Raa,Saa,yc,zc,Taa,Ac,Cc,Dc,Uaa,Vaa,Ec,Fc,Xaa,Yaa,$aa,Mc,Nc,cba,Rc,Uc,dba,eba,Yc,bd,fba,iba,ld,nd,jba,kba,od,pba,td,mba,oba,rd,qd,Dd,Ed,qba,Fd,rba,Hd,Jd,sba,Ld,Md,Rd,Td,vba,xba,Ud,yba,Bba,Vd,Wd,Dba,Iba,Yd,ee,fe,Lba,Kba,Qba,Rba,ie,Sba,Uba,Vba,Xba,$ba,me, bca,qe,re,te,ye,Ae,Fe,Ge,cca,dca,eca,fca,Je,Ke,Pe,ica,kca,jca,Ve,Xe,lca,We,Ie,mf,nca,of,nf,He,sf,oca,pca,tf,uf,qca,sca,uca,Af,Bf,Cf,yca,zca,Aca,Df,Eca,yf,wca,Gca,Dca,Bca,Cca,Hca,Fca,Ef,Mf,Jca,Kca,Lca,Mca,Nca,Oca,Pca,Qca,Rca,Sca,Tca,Uca,Vca,Wca,Of,Xca,Pf,Yca,ada,bda,cda,hda,Tf,gda,dda,jda,lda,nda,bg,cg,qda,eg,fg,sda,hg,gg,tda,ig,vda,xda,uda,lg,xg,mg,yg,zg,Ag,Bg,yda,Ada,Dg,Bda,Cda,Eg,Fg,Ig,Eda,Fda,Hda,Ida,Kda,Jg,Lda,Kg,Mda,Lg,Nda,Mg,Oda,Pda,Ng,Qda,Og,Rda,Qg,Tg,Sda,Rg,Sg,Tda,dh,eh,Uda,Vda,fh,gh,hh,jh, ih,Wda,kh,Xda,Yda,Zda,$da,aea,bea,cea,lh,nh,oh,K,ph,rh,th,eea,fea,uh,gea,hea,vh,iea,wh,Hh,jea,Jh,Ih,kea,qh,Lh,Mh,lea,Nh,Oh,Ph,Qh,Rh,mea,Sh,Th,Uh,Vh,nea,oea,Xh,Yh,pea,$h,qea,rea,tea,sea,uea,vea,bi,wea,xea,hi,Kh,O,ii,ki,Aea,zea,Bea,Cea,Fea,Gea,Hea,ni,Iea,Jea,ji,Kea,Eea,oi,pi,qi,ri,Lea,Mea,Nea,Oea,si,ti,ui,Pea,vi,wi,xi,Qea,Rea,Sea,yi,zi,Uea,Vea,Xea,Wea,Yea,Pi,Qi,Ri,Si,$ea,afa,Ti,bfa,Xi,cfa,ffa,Yi,Zi,gfa,$i,aj,ifa,ej,jfa,fj,gj,hj,kfa,lfa,kj,mfa,vj,wj,pfa,rfa,sfa,ufa,tfa,vfa,yj,wfa,Bj,Fj,Gj,Hj,Wh,Ij,Jj, Kj,Lj,zfa,Nj,Bfa,Cfa,Dfa,Ffa,Efa,Gfa,Afa,Mj,Hfa,Ifa,Kfa,Oj,Pj,Lfa,Qj,Rj,Sj,Mfa,Tj,ck,dk,ek,Nfa,Ofa,Pfa,Qfa,fk,Rfa,Sfa,Tfa,Wfa,Ufa,gk,Xfa,hk,Yfa,Zfa,ik,kk,$fa,aga,cga,lk,mk,nk,ok,fga,pk,gga,qk,rk,uk,hga,jga,iga,kga,lga,mga,oga,vk,wk,xk,yk,zk,Ak,Bk,pga,Ck,Dk,Ek,Fk,tga,qga,Ik,sga,Jk,rga,Hk,Gk,Lk,vga,Nk,Mk,wga,xga,el,fl,hl,Aga,gl,kl,Bga,ll,yga,Ega,Fga,Gga,ol,pl,ql,Hga,rl,sl,tl,ul,Iga,vl,wl,xl,Jga,Kga,yl,Lga,Pga,Oga,Qga,Rga,Sga,Mga,Tga,Vga,Wga,zl,Al,Cl,Dl,El,Fl,Gl,Xga,Hl,Bl,Il,Yga,Zga,$ga,aha,cha,bha, dha,Jl,Kl,Ll,Ml,Nl,Ol,Pl,eha,Ql,Rl,Sl,fha,hha,iha,Ul,dm,cm,fm,gm,hm,kha,lha,im,jm,km,nha,oha,rha,pha,sha,wha,lm,vha,tha,mm,nm,xha,om,yha,pm,Aha,zha,Bha,Cha,tm,um,Dha,Eha,Fha,vm,wm,Gha,xm,Hha,Iha,Kha,Oha,ym,Pha,Qha,Rha,Sha,Tha,Bm,Uha,Vha,Wha,Im,Hm,Gm,Xha,Yha,Zha,Jm,Km,Lm,aia,Qm,Rm,Sm,Tm,Um,Vm,cia,dia,eia,Wm,Ym,Zm,cn,dn,gn,gia,iia,hia,jia,kia,nn,lia,mia,on,nia,oia,pia,qia,sn,qn,Dn,En,Fn,ria,sia,tia,Gn,Hn,In,uia,via,wia,Jn,xia,Kn,Ln,yia,zia,Aia,Bia,Cia,Dia,Mn,Nn,On,Qn,Gia,Rn,Sn,Hia,Fia,Pn,Iia,Tn,Un, Vn,Xn,Wn,Jia,Kia,Lia,Yn,Nia,Zn,Pia,Qia,Ria,Sia,Tia,Uia,Via,Wia,bo,co,eo,Yia,Xia,go,Zia,ho,$ia,io,aja,bja,jo,ko,lo,cja,mo,no,dja,oo,po,qo,ro,so,to,uo,vo,eja,fja,gja,hja,wo,ija,kja,jja,yo,zo,mja,lja,rja,qja,Ao,sja,tja,uja,wja,vja,xja,Bo,yja,zja,Do,Aja,Bja,Cja,Dja,Eo,Eja,Fo,Fja,Go,Ho,Hja,Io,Ija,Jo,Ko,Jja,Kja,Lo,No,Mja,Oo,Lja,Nja,Oja,Pja,Rja,Po,Sja,So,To,Uja,Vja,Yja,Zja,Uo,Vo,Wo,ep,fp,gp,hp,ip,jp,kp,lp,mp,np,cka,bka,dka,fka,eka,hka,aka,gka,$ja,op,pp,jka,kka,lka,tp,up,vp,qp,nka,wp,ika,pka,qka,rka,oka, xp,yp,zp,Ap,ska,mka,tka,Bp,uka,vka,wka,xka,yka,Bka,Dp,Cka,Ep,Dka,Eka,Fka,Ika,Hp,Kka,Gp,Jp,Lka,Kp,Mp,Np,Mka,Nka,Up,Oka,Pka,Vp,Qka,fq,cq,dq,eq,Rka,iq,hq,Ska,kq,Tka,Vka,lq,Wka,Xka,bla,Yka,oq,pq,hla,qq,rq,sq,jla,vq,kla,lla,wq,nla,yq,zq,Aq,ola,Cq,Dq,Eq,Fq,Vq,Wq,qla,Xq,rla,Zq,$q,ar,br,cr,dr,sla,tla,ula,vla,wla,xla,er,yla,lr,zla,Ala,Bla,mr,or,pr,qr,tr,ur,vr,Dla,yr,zr,Ar,Ela,Fla,Br,Gla,Hla,Dr,Pla,Qla,Rla,Er,Sla,Tla,Wla,Hr,Ir,Xla,Kr,Lr,Mr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is, js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Yla,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,et,gt,ht,jt,kt,lt,mt,Ft,Ht,It,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,bu,cu,du,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,ru,tu,uu,vu,wu,xu,yu,zu,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,Qu,Ru,Su,Tu,Uu,Vu,Wu,Xu,Yu,Zu,$u,av,bv,cv,dv,ev,fv,gv,hv,iv,jv,kv,lv,mv,nv,ov,pv,qv,rv,tv,uv,vv,wv,xv,yv,zv,Av,Bv,Cv,Dv,Ev,Fv,Gv,Hv,Iv,Jv,Kv,Lv,Mv,Nv, Ov,Pv,Qv,Rv,Sv,Tv,Uv,Vv,Wv,Xv,Yv,Zv,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,tw,uw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Ow,Uw,Vw,Ww,Xw,Yw,Zw,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,mx,nx,ox,px,qx,rx,sx,tx,ux,vx,wx,xx,yx,zx,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Hx,Ix,Jx,Kx,Zla,Lx,$la,Mx,ama,Nx,Ox,Px,Qx,Rx,Sx,Tx,Ux,Vx,Wx,Xx,Yx,Zx,$x,ay,by,cy,dy,ey,fy,gy,hy,iy,jy,ky,ly,my,ny,oy,py,qy,ry,sy,ty,uy,vy,bma,cma,yy,Ay,dma,Ey,By,Fy,ema,Jy,Ky,Ly,My,Ny,Py,Qy,ima,Ry,Sy,Ty,fma,Uy,lma,oma,Vy,qma, sma,$y,tma,uma,vma,zma,xma,yma,cz,az,ez,dz,Ama,gz,hz,iz,Bma,oz,Cma,pz,Dma,qz,sz,Ema,uz,vz,Fma,wz,xz,Hma,Az,Cz,Dz,rz,Ez,Fz,Gz,Hz,Iz,Jz,Kz,Jma,Lz,Oz,Nz,Lma,Oma,Mma,Nma,Pma,Qma,Uma,Vma,Rma,Xma,Sz,Tz,Wz,Xz,Yma,Vz,Yz,$ma,ana,dna,ena,bA,cA,fna,gna,dA,eA,fA,gA,iA,jna,kna,pA,lna,mna,qA,nna,vA,wA,xA,ona,pna,rna,tna,BA,EA,CA,HA,IA,KA,una,RA,SA,TA,UA,WA,XA,ZA,zna,Ana,aB,Bna,Cna,cB,Dna,Ena,dB,eB,Fna,fB,Gna,jB,Ina,Jna,hB,Kna,Lna,Nna,Mna,nB,Hna,Pna,Qna,Rna,qB,Sna,Tna,EB,FB,Una,Vna,IB,Wna,Xna,Yna,Zna,NB,$na,aoa, boa,coa,doa,eoa,foa,goa,PB,hoa,RB,joa,koa,loa,moa,noa,SB,YB,poa,soa,toa,voa,ooa,woa,xoa,qoa,roa,TB,UB,XB,uoa,WB,VB,yoa,Goa,zoa,Aoa,Boa,Coa,Doa,Koa,Eoa,bC,cC,eC,Moa,hC,Noa,dC,iC,mC,Voa,Ooa,Uoa,oC,Woa,Zoa,pC,nC,Xoa,Yoa,$oa,rC,bpa,cpa,dpa,epa,fpa,gpa,hpa,apa,jpa,kpa,lpa,mpa,npa,uC,vC,xC,ppa,yC,qpa,rpa,BC,CC,tpa,spa,upa,wpa,ypa,xpa,Bpa,Epa,Cpa,PC,OC,Fpa,NC,QC,RC,Jpa,Lpa,UC,VC,Mpa,WC,XC,Npa,Opa,ZC,Ppa,Rpa,$C,Spa,aD,bD,eD,dD,cD,gD,hD,iD,Upa,jD,lD,Vpa,nD,oD,rD,qD,pD,sD,tD,$pa,bqa,Zpa,Ypa,aqa,vD,xD,JD,cqa, DD,ED,jqa,LD,iqa,nqa,oqa,hqa,mqa,lqa,uD,MD,CD,ID,kqa,AD,zD,Xpa,OD,vqa,uqa,yqa,zqa,SD,Aqa,UD,VD,XD,Cqa,Dqa,Eqa,Fqa,Gqa,Hqa,NA,Pqa,Mqa,Rqa,Sqa,Tqa,Wqa,Xqa,Zqa,$qa,ara,bra,Vqa,dra,bE,cE,era,eE,gE,hE,iE,jE,kE,gra,lE,mE,nE,oE,lra,nra,pra,qra,qE,sra,tra,wE,ura,xE,AE,vra,wra,DE,EE,FE,GE,HE,IE,JE,xra,KE,LE,zra,yra,ME,Fra,NE,OE,PE,RE,Gra,Hra,TE,UE,VE,Jra,Kra,Lra,Mra,XE,Nra,Ora,Pra,Rra,Sra,$E,Ura,bF,Vra,cF,nF,aF,Yra,oF,asa,bsa,csa,$ra,dsa,esa,rF,qF,Xra,hsa,Zra,sF,jsa,lsa,vF,msa,wF,xF,nsa,tF,osa,yF,ksa,psa, zF,BF,EF,GF,rsa,HF,IF,vsa,xsa,wsa,zsa,Dsa,PF,KF,ysa,usa,tsa,ssa,OF,LF,NF,Gsa,Hsa,Isa,YF,ZF,Jsa,$F,aG,XF,Nsa,Ksa,Lsa,Osa,bG,Psa,dG,Qsa,eG,fG,gG,hG,Rsa,Ssa,iG,Tsa,jG,Usa,Vsa,kG,mG,qG,Wsa,rG,sG,tG,uG,vG,wG,xG,Xsa,yG,AG,Zsa,$sa,zG,BG,cta,dta,CG,eta,FG,fta,GG,IG,gta,HG,JG,hta,LG,jta,kta,NG,OG,TG,mta,QG,UG,WG,nta,YG,SG,VG,ota,ZG,pta,$G,qta,PG,RG,lta,XG,aH,rta,sta,bH,tta,cH,uta,dH,eH,gH,vta,fH,hH,iH,wta,jH,lH,mH,nH,oH,xta,pH,qH,yta,rH,zta,sH,tH,uH,Ata,vH,Bta,Cta,Dta,xH,wH,Eta,Fta,Gta,Hta,yH,zH,AH,BH,Ita, Jta,DH,Kta,EH,FH,Lta,Mta,GH,Nta,Ota,Sta,Tta,Pta,Qta,Rta,HH,JH,IH,KH,LH,Uta,Vta,MH,NH,Wta,Xta,OH,Yta,QH,Zta,RH,$ta,aua,bua,cua,SH,dua,UH,VH,WH,eua,gua,YH,XH,bI,UF,cI,dI,TF,SF,eI,fI,kH,hua,gI,hI,iI,$H,jI,iua,mI,nI,pI,jua,qI,rI,sI,tI,uI,vI,kua,wI,UI,VI,WI,XI,ZI,lua,$I,aJ,bJ,mua,nua,oua,gJ,cJ,hJ,iJ,pua,qua,rua,jJ,lJ,Bsa,MF,vua,wua,xua,yua,zua,Aua,JF,kJ,mJ,pJ,qJ,Dua,Eua,Fua,rJ,Jua,Gua,Hua,Lua,Mua,sJ,Kua,Nua,tJ,uJ,vJ,Oua,Pua,wJ,Qua,Rua,xJ,nJ,Sua,AJ,Tua,Uua,Vua,CJ,BJ,Wua,Xua,Yua,Zua,Csa,Asa,EJ,FJ,GJ,IJ, JJ,KJ,LJ,MJ,HJ,QJ,ava,TJ,bva,cva,dva,eva,UJ,fva,gva,hva,iva,VJ,jva,WJ,lva,XJ,nva,ova,mva,kva,pva,qva,rva,aK,tva,bK,Fsa,cK,uva,wva,QF,xva,yva,zva,eK,Ava,fK,gK,mK,Cva,pK,qK,tK,uK,Dva,Fva,Eva,Gva,Hva,Iva,Jva,Kva,Lva,wK,xK,yK,Mva,Nva,zK,Ova,AK,BK,Pva,CK,Qva,DK,Rva,EK,FK,GK,HK,Sva,Tva,Vva,IK,Wva,Uva,JK,dL,$K,fL,iL,jL,Xva,dwa,aL,cL,mL,hwa,rL,QK,sL,PK,tL,ZK,wL,xL,yL,zL,AL,BL,jwa,kwa,CL,lwa,mwa,nwa,owa,DL,pwa,uwa,twa,qwa,swa,rwa,EL,vwa,FL,wwa,xwa,zwa,Awa,Bwa,Fwa,KL,LL,Iwa,ML,NL,Jwa,Lwa,Owa,Pwa,Qwa,Rwa,OL, QL,RL,SL,TL,UL,VL,WL,XL,YL,Twa,ZL,Uwa,$L,aM,bM,cM,dM,eM,fM,Wwa,Xwa,gM,Ywa,kM,axa,bxa,lM,mM,cxa,exa,gxa,sM,hxa,zM,rxa,lxa,mxa,txa,AM,uxa,wxa,vxa,xxa,CM,FM,yxa,BM,GM,HM,zxa,Dxa,Axa,Cxa,UM,cN,eN,eya,Pxa,Rxa,OM,fN,dya,Qxa,TM,gN,Nxa,gya,fya,LM,SM,mya,iya,jya,kya,lya,nya,hN,oya,pya,jN,kN,qya,mN,KM,QM,Wxa,Bxa,$xa,pN,RM,hya,xN,zN,AN,CN,BN,Cya,dN,Dya,EN,Eya,GN,HN,Oxa,JN,vya,PM,Fya,Gxa,Fxa,Kwa,KN,LN,Hya,MN,NN,ON,QN,PN,RN,Iya,Jya,SN,UN,Kya,Lya,VN,WN,XN,YN,Mya,Nya,ZN,Oya,$N,aO,bO,cO,dO,eO,Pya,hO,Qya,iO,kO,Tya, jO,Uya,Rya,Sya,Vya,Wya,Xya,lO,mO,nO,Zya,oO,pO,$ya,rO,tO,cza,xO,vO,fza,eza,gza,AO,dza,CO,wO,DO,zO,yO,uO,FO,GO,IO,KO,jza,kza,iza,LO,MO,NO,OO,PO,lza,QO,RO,mza,SO,TO,UO,pza,nza,YO,qza,rza,ZO,sza,bP,cP,tza,yza,dP,zza,eP,fP,Aza,Bza,Cza,Dza,gP,hP,Fza,Gza,Eza,Iza,Hza,kP,Lza,oP,pP,Mza,Nza,eJ,Oza,Pza,qP,Qza,Sza,Tza,sP,tP,uP,vP,Vza,zP,AP,Wza,Yza,Xza,$za,Zza,aAa,CP,bAa,cAa,dAa,eAa,fAa,jAa,lAa,mAa,oAa,nAa,pAa,EP,rAa,KP,LP,MP,NP,OP,PP,vAa,RP,QP,xAa,tAa,uAa,yAa,wAa,AAa,SP,BAa,TP,CAa,DAa,VP,FAa,GAa,HAa,IAa,JAa,WP, LAa,OAa,RAa,KAa,YP,$Aa,ZP,aBa,zBa,ABa,GBa,EBa,TBa,dCa,eCa,fCa,dQ,eQ,gCa,hCa,iCa,jCa,kCa,mCa,kQ,oCa,pCa,iQ,jQ,nCa,sCa,tCa,lQ,wCa,uCa,xCa,mQ,hza,yCa,bza,zCa,ACa,BCa,CCa,JCa,FCa,GCa,HCa,KCa,DCa,LCa,MCa,NCa,ICa,OCa,BP,QCa,RCa,PCa,oQ,pQ,SCa,TCa,VCa,sQ,uQ,XCa,vQ,YCa,yQ,zQ,ZCa,$Ca,bDa,cDa,dDa,eDa,fDa,gDa,hDa,iDa,DQ,kDa,lDa,nDa,oDa,pDa,qDa,rDa,sDa,wDa,xDa,EQ,FQ,yDa,GQ,zDa,IQ,BDa,ADa,JQ,KQ,LQ,MQ,CDa,NQ,DDa,EDa,OQ,FDa,JDa,GDa,IDa,HDa,KDa,PQ,LDa,MDa,NDa,ODa,QQ,QDa,TDa,SDa,RQ,UDa,SQ,TQ,UQ,WQ,XQ,VDa,WDa,XDa,YQ, ZQ,ZDa,YDa,$Q,$Da,aEa,aR,bEa,bR,cR,fR,dEa,gR,eEa,hR,iR,jR,fEa,gEa,jEa,kEa,lR,mEa,nR,oR,nEa,pR,pEa,qR,uEa,sEa,rEa,qEa,wEa,rR,sR,tR,uR,vR,wR,xR,zR,AEa,DEa,EEa,AR,BR,Z,GEa,CR,LEa,PEa,QEa,REa,XEa,aFa,fFa,gFa,AFa,BFa,CFa,hFa,jFa,pFa,GFa,JFa,HFa,LFa,IFa,MFa,DGa,TFa,EGa,UFa,VFa,IR,GGa,IGa,KGa,JGa,HGa,XFa,fGa,gGa,OGa,QGa,iGa,jGa,lGa,mGa,nGa,XGa,pGa,sGa,zGa,eHa,aHa,bHa,gHa,jHa,iHa,kHa,lHa,tHa,mHa,LR,qHa,zHa,AHa,BHa,CHa,DHa,GHa,KHa,mIa,lIa,PR,qIa,MA,sIa,rIa,tIa,vIa,uIa,wIa,RR,xIa,zIa,CIa,DIa,EIa,AIa,JIa,IIa, SIa,UIa,VIa,WIa,VR,XIa,ZIa,WR,$Ia,ZR,$R,YR,ECa,aJa,bJa,eJa,dJa,gJa,dS,hJa,iJa,jJa,kJa,gS,lJa,mJa,pJa,qJa,hS,rJa,iS,jS,kS,sJa,vJa,wJa,vS,xJa,zS,AS,BS,CS,DS,yJa,AJa,zJa,BJa,CJa,DJa,FJa,GS,HS,GJa,HJa,IJa,JJa,MS,PJa,OJa,NS,QJa,RJa,SJa,OS,PS,TJa,VJa,WJa,QS,XJa,RS,$Ja,ZJa,aKa,bKa,cKa,dKa,US,SS,eKa,VS,fKa,$S,aT,iKa,hKa,jKa,fT,mKa,lKa,iT,jT,kT,pKa,nKa,oKa,qKa,lT,mT,tKa,rKa,sKa,nT,uKa,vKa,wKa,oT,pT,xKa,yKa,qT,zKa,AKa,BKa,CKa,DKa,EKa,FKa,IKa,GKa,JKa,KKa,LKa,MKa,OKa,zT,QKa,RKa,PKa,TKa,SKa,WKa,UKa,VKa,YKa,ZKa, $Ka,aLa,bLa,XKa,cLa,dLa,eLa,fLa,jLa,lLa,kLa,nLa,oLa,uLa,DT,yLa,xLa,wLa,sLa,tLa,pLa,qLa,vLa,ET,FT,ALa,oS,cJa,HT,BLa,CLa,zLa,ELa,FLa,GLa,JT,HLa,JLa,KLa,LLa,QT,RT,MLa,NLa,OLa,PLa,QLa,SLa,RLa,TLa,ST,TT,ULa,XLa,YLa,VT,WLa,ZLa,$La,VLa,WT,aMa,$T,bMa,cMa,ZT,eMa,dMa,fMa,gMa,hMa,iMa,kMa,lMa,jMa,oMa,mMa,eU,fU,qMa,hU,iU,rMa,tMa,kU,sMa,uMa,vMa,wMa,yMa,xMa,zMa,AMa,BMa,CMa,DMa,qU,rU,FMa,EMa,uU,sU,tU,GMa,HMa,vU,IMa,JMa,LMa,KMa,MMa,NMa,QMa,RMa,SMa,VMa,UMa,TMa,WMa,XMa,xU,yU,YMa,ZMa,$Ma,aNa,zU,CU,bNa,cNa,dNa,eNa,fNa, gNa,EU,hNa,iNa,lNa,FU,mNa,kNa,GU,nNa,oNa,rNa,pNa,qNa,JU,sNa,uNa,vNa,xNa,yNa,KU,LU,zNa,tNa,BNa,ANa,MU,NU,OU,RU,SU,CNa,TU,DNa,ENa,WU,FNa,XU,GNa,YU,ZU,HNa,$U,INa,MNa,KNa,JNa,LNa,QNa,RNa,SNa,TNa,VNa,WNa,XNa,UNa,ZNa,YNa,$Na,cOa,dV,eOa,dOa,aOa,bOa,gOa,fOa,hOa,eV,fV,iOa,jOa,kOa,lOa,mOa,nOa,oOa,pOa,xOa,sOa,tOa,qOa,AOa,kV,BOa,FOa,nV,GOa,COa,jV,qV,pV,lV,rV,JOa,KOa,sV,mV,yOa,IOa,oV,DOa,HOa,LOa,gV,uV,MOa,NOa,EOa,vV,wV,POa,xV,QOa,AV,BV,ROa,SOa,UOa,VOa,TOa,CV,DV,WOa,XOa,YOa,ZOa,$Oa,bPa,dPa,cPa,aPa,fPa,ePa,EV,FV, gPa,iPa,jPa,GV,hPa,kPa,lPa,HV,mPa,JV,MV,LV,oPa,nPa,pPa,NV,qPa,rPa,tPa,sPa,uPa,vPa,wPa,QV,xPa,cU,BPa,pU,yPa,CPa,APa,FS,zPa,DPa,FPa,GPa,HPa,EPa,IPa,JPa,KPa,LPa,MPa,VV,NPa,WV,PPa,XV,RPa,YV,QPa,TPa,UPa,SPa,ZV,VPa,XPa,YPa,WPa,aW,bW,$Pa,cW,aQa,eW,cQa,dQa,eQa,fQa,gQa,hQa,iQa,jQa,kQa,bQa,fW,lQa,mQa,hW,nQa,oQa,pQa,qQa,vQa,zQa,xQa,sQa,kW,rQa,yQa,mW,BQa,AQa,nW,DQa,EQa,FQa,HQa,IQa,GQa,JQa,sW,KQa,MQa,LQa,NQa,UQa,xW,VQa,WQa,AW,XQa,YQa,BW,ZQa,OQa,CW,aRa,bRa,dRa,DW,eRa,EW,gRa,fRa,FW,SQa,vW,hRa,iRa,jRa,kRa,lRa,PQa, RQa,wW,yW,tW,mRa,nRa,oRa,qRa,rRa,pRa,tRa,xRa,HW,yRa,zRa,vRa,JW,ARa,BRa,sRa,CRa,wRa,DRa,KW,IW,ERa,GRa,FRa,GW,IRa,MW,JRa,NW,LW,OW,KRa,PW,LRa,ORa,NRa,QRa,RRa,PRa,SW,RW,TRa,URa,VRa,WRa,XRa,YRa,$Ra,ZRa,UW,VW,aSa,bSa,dSa,hSa,eSa,fSa,gSa,iSa,jSa,kSa,bX,lSa,mSa,nSa,cX,dX,oSa,pSa,qSa,eX,rSa,wSa,ySa,zSa,jX,kX,lX,mX,vSa,ASa,gX,sSa,BSa,fX,hX,tSa,uSa,iX,CSa,DSa,xSa,ESa,ISa,FSa,JSa,KSa,GSa,HSa,LSa,MSa,kxa,qxa,OSa,NSa,oX,TSa,RSa,SSa,PSa,USa,pX,QSa,qX,rX,VSa,WSa,XSa,YSa,$Sa,aTa,sX,bTa,cTa,dTa,eTa,gTa,hTa,uX,oTa, kTa,fTa,qTa,lTa,mTa,jTa,nTa,vX,iTa,pTa,wTa,uTa,tTa,sTa,rTa,xX,xTa,yX,BTa,zX,ETa,CX,DTa,AX,CTa,DX,FTa,BX,ITa,zTa,LTa,GTa,ATa,HTa,MTa,EX,FX,NTa,OTa,QTa,PTa,STa,RTa,TTa,UTa,GX,VTa,WTa,IX,XTa,HX,YTa,XW,ZTa,$Ta,aUa,WW,bUa,KX,LX,cUa,eUa,dUa,MX,fUa,aX,gUa,hUa,ZW,$W,lUa,OX,PX,mUa,RX,NX,SX,jUa,iUa,kUa,TX,oUa,pUa,nUa,YW,QX,qUa,rUa,sUa,tUa,JTa,KTa,uUa,vUa,UX,AUa,wUa,BUa,CUa,DUa,zUa,EUa,GUa,VX,XX,IUa,JUa,HUa,KUa,LUa,YX,MUa,OUa,RUa,WUa,TUa,VUa,aVa,bVa,$Ua,cVa,dVa,fVa,gVa,eVa,$X,hVa,iVa,jVa,kVa,lVa,mVa,nVa,oVa, pVa,qVa,sVa,vVa,wVa,yVa,BVa,CVa,xVa,aY,rVa,bY,zVa,AVa,DVa,EVa,FVa,MVa,LVa,hY,NVa,KVa,QVa,RVa,SVa,TVa,UVa,VVa,WVa,XVa,jY,cY,ZVa,$Va,iY,bWa,YVa,cWa,dWa,eWa,fWa,kY,gWa,hWa,iWa,jWa,kWa,lWa,mWa,pWa,oWa,nWa,lY,qWa,sWa,tWa,uWa,nY,oY,vWa,xWa,yWa,zWa,AWa,FUa,rY,wWa,BWa,EWa,GWa,vTa,CWa,DWa,FWa,tX,xUa,HWa,IWa,JWa,KWa,rWa,sY,WX,LWa,uY,vY,MWa,wY,NWa,OWa,PWa,QWa,RWa,SWa,UWa,TWa,WWa,XWa,aXa,YWa,$Wa,bXa,yY,fXa,dXa,eXa,iXa,jXa,kXa,lXa,mXa,xY,nXa,hXa,cXa,zY,oXa,ZWa,pXa,AY,rXa,qXa,tXa,uXa,vXa,sXa,BY,yXa,xXa,BXa,AXa, zXa,CXa,DXa,CY,EXa,EY,IXa,FXa,GXa,HXa,JXa,KXa,LXa,NXa,MXa,OXa,PXa,QXa,SXa,UXa,TXa,VXa,RXa,WXa,YXa,$Xa,aYa,XXa,bYa,cYa,eYa,dYa,fYa,ZXa,GY,gYa,hYa,jYa,lYa,mYa,nYa,oYa,rYa,sYa,qYa,tYa,uYa,vYa,xYa,wYa,AYa,JY,BYa,yYa,zYa,CYa,MY,EYa,DYa,FYa,GYa,HYa,JYa,IYa,MYa,NY,NYa,OY,PYa,QY,SY,QYa,PY,RYa,TY,TYa,OYa,UYa,VYa,RY,WYa,UY,XYa,SYa,pYa,LY,ZYa,$Ya,aZa,bZa,cZa,dZa,eZa,WY,fZa,hZa,iZa,jZa,gZa,kZa,lZa,XY,mZa,nZa,YY,ZY,oZa,pZa,qZa,$Y,bZ,tZa,uZa,aZ,sZa,rZa,eZ,dZ,fZ,cZ,vZa,zZa,BZa,DZa,EZa,xZa,CZa,FZa,yZa,GZa,HZa,JZa, gZ,KZa,IZa,hZ,LZa,AZa,MZa,wZa,iZ,SZa,PZa,TZa,QZa,OZa,UZa,NZa,XZa,jZ,YZa,$Za,fJ,b_a,e_a,f_a,EO,oZ,g_a,QQa,i_a,pZ,FY,j_a,l_a,h_a,qW,c_a,m_a,n_a,pY,qY,uZ,aWa,d_a,tZ,kZ,q_a,r_a,t_a,s_a,k_a,rZ,v_a,vZ,w_a,wQa,x_a,DY,CQa,y_a,$Qa,kKa,qZ,z_a,B_a,A_a,uQa,C_a,E_a,F_a,p_a,a_a,H_a,G_a,sZ,lZ,I_a,xZ,lW,J_a,K_a,zW,L_a,M_a,N_a,tQa,wZ,u_a,O_a,Z_a,U_a,T_a,a0a,S_a,zZ,rW,d0a,b0a,f0a,CZ,DZ,g0a,h0a,FZ,Y_a,KZ,j0a,JZ,EZ,l0a,m0a,V_a,NZ,n0a,X_a,HZ,i0a,GZ,t0a,BZ,u0a,v0a,PZ,k0a,QZ,RZ,w0a,IZ,e0a,p0a,o0a,x0a,y0a,z0a,A0a,eS,B0a, LZ,C0a,E0a,AZ,SZ,c0a,F0a,G0a,W_a,OZ,MZ,H0a,I0a,TZ,UZ,MRa,VZ,TC,WZ,XZ,K0a,M0a,N0a,YZ,O0a,$Z,P0a,Q0a,a_,ZZ,R0a,S0a,b_,c_,d_,e_,f_,g_,h_,U0a,T0a,i_,j_,V0a,k_,l_,W0a,X0a,Y0a,m_,n_,o_,p_,q_,r_,s_,t_,Z0a,u_,v_,w_,$0a,a1a,x_,b1a,c1a,d1a,e1a,y_,z_,A_,f1a,B_,C_,D_,g1a,E_,F_,G_,H_,I_,J_,K_,L_,M_,h1a,N_,O_,P_,i1a,Q_,R_,S_,T_,j1a,U_,V_,k1a,W_,l1a,X_,Y_,m1a,vza,wza,xza,oza,n1a,q1a,r1a,s1a,aP,f0,VO,o1a,g0,v1a,w1a,x1a,y1a,p1a,A1a,$_,B1a,C1a,h0,D1a,i0,b0,E1a,a0,z1a,j0,H1a,G1a,d0,e0,l0,k0,I1a,m0,K1a,J1a,L1a,n0,o0, p0,q0,M1a,r0,u0,O1a,T1a,V1a,U1a,W1a,X1a,Z1a,a2a,b2a,y0,z0,x0,A0,B0,C0,D0,c2a,d2a,E0,F0,w0,G0,H0,f2a,j2a,I0,k2a,g2a,l2a,J0,m2a,p2a,o2a,t2a,q2a,K0,L0,z2a,C2a,A2a,F2a,E2a,H2a,B2a,D2a,I2a,K2a,L2a,J2a,N2a,O2a,R2a,U2a,S2a,Y2a,g3a,f3a,Z2a,h3a,a3a,b3a,$2a,k3a,m3a,r3a,u3a,v3a,x3a,y3a,A3a,C3a,B3a,J3a,E3a,D3a,K3a,N3a,O3a,P3a,Q3a,V0,Kpa,T3a,R3a,X0,SC,Y0,Z0,Ipa,$0,V3a,W3a,c3a,X3a,Y3a,Z3a,X2a,$3a,a1,a4a,q3a,b4a,c4a,b1,y2a,M0,d4a,W0,p3a,o3a,Q2a,s3a,w3a,z3a,u2a,L3a,e4a,i3a,d3a,f4a,g4a,$1a,c1,h4a,d1,i4a,e1,f1,g1, h1,Y1a,k4a,j4a,P2a,t3a,l4a,M3a,T0,v2a,x2a,n2a,n3a,W2a,T2a,i2a,h2a,e2a,j3a,e3a,F3a,r2a,s2a,I3a,G3a,H3a,l3a,o4a,m4a,i1,n4a,j1,$O,c0,t1a,Z_,p4a,k1,l1,m1,n1,r4a,q4a,s4a,o1,p1,q1,U0,t4a,r1,S3a,u4a,v4a,w2a,N0,O0,w4a,s1,x4a,y4a,u1,v1,A4a,x1,B4a,C4a,z4a,w1,D4a,E4a,F4a,y1,I4a,H4a,z1,nQ,J4a,K4a,t1,L4a,M4a,N4a,A1,B1,O4a,C1,D1,P4a,Q4a,R4a,S4a,T4a,U4a,V4a,W4a,X4a,Y4a,E1,F1,Z4a,G1,H1,I1,J1,K1,L1,M1,a5a,b5a,$4a,c5a,d5a,e5a,N1,f5a,g5a,O1,P1,Q1,h5a,i5a,j5a,R1,k5a,S1,l5a,T1,m5a,U1,n5a,V1,o5a,q5a,W1,t5a,p5a,r5a,s5a, u5a,Y1,v5a,w5a,x5a,$1,Z1,a2,y5a,z5a,A5a,C5a,B5a,b2,D5a,E5a,G5a,F5a,c2,d2,U3a,H5a,e2,I5a,f2,K5a,L5a,J5a,M5a,g2,N5a,O5a,P5a,h2,i2,j2,Q5a,k2,l2,m2,R5a,S5a,n2,T5a,U5a,o2,X1,p2,q2,r2,uza,s2,V5a,t2,W5a,u2,v2,Y5a,X5a,w2,x2,y2,Z5a,$5a,a6a,z2,b6a,c6a,d6a,f6a,e6a,g6a,h6a,j6a,i6a,k6a,l6a,m6a,n6a,o6a,p6a,q6a,r6a,s6a,t6a,u6a,v6a,w6a,x6a,y6a,z6a,A6a,A2,B2,C2,B6a,C6a,D6a,E6a,F6a,G6a,H6a,I6a,J6a,K6a,L6a,M6a,N6a,O6a,P6a,D2,Q6a,R6a,E2,F2,T6a,U6a,G2,V6a,H2,W6a,I2,X6a,J2,Y6a,Z6a,$6a,K2,a7a,L2,b7a,c7a,d7a,e7a,f7a,N2, g7a,h7a,i7a,j7a,k7a,m7a,O2,l7a,n7a,o7a,p7a,q7a,u7a,r7a,s7a,t7a,w7a,y7a,z7a,A7a,x7a,P2,B7a,C7a,D7a,E7a,F7a,R2,G7a,S2,T2,U2,H7a,I7a,K7a,L7a,M7a,N7a,P7a,O7a,Q7a,V2,W2,T7a,R7a,S7a,X2,U7a,V7a,Y2,W7a,X7a,Y7a,$7a,a8a,b8a,c8a,d8a,Hpa,Z7a,e8a,i8a,j8a,l8a,aaa,ia,zj,Ta,paa;ba=function(a){return function(){return aaa[a].apply(this,arguments)}}; g.ca=function(a,b){return aaa[a]=b}; baa=function(a){var b=0;return function(){return bb?null:"string"===typeof a?a.charAt(b):a[b]}; wb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; yaa=function(a){for(var b=0,c=0,d={};c>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0b?1:ac&&g.Kb(a,-(c+1),0,b)}; g.Xb=function(a,b,c){var d={};(0,g.Wb)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; Caa=function(a){for(var b=[],c=0;c")&&(a=a.replace(Laa,">"));-1!=a.indexOf('"')&&(a=a.replace(Maa,"""));-1!=a.indexOf("'")&&(a=a.replace(Naa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Oaa,"�"));return a}; g.fc=function(a,b){return-1!=a.indexOf(b)}; gc=function(a,b){return g.fc(a.toLowerCase(),b.toLowerCase())}; g.jc=function(a,b){var c=0;a=hc(String(a)).split(".");b=hc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.kc=function(){var a=g.La.navigator;return a&&(a=a.userAgent)?a:""}; pc=function(a){return lc||mc?oc?oc.brands.some(function(b){return(b=b.brand)&&g.fc(b,a)}):!1:!1}; qc=function(a){return g.fc(g.kc(),a)}; rc=function(){return lc||mc?!!oc&&0=a}; $aa=function(a){return g.Jc?"webkit"+a:a.toLowerCase()}; Mc=function(a,b){g.tb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;a&&this.init(a,b)}; Nc=function(a){return!(!a||!a[aba])}; cba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Ad=e;this.key=++bba;this.removed=this.TE=!1}; Rc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Ad=null}; g.Sc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)}; g.Tc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}; Uc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}; g.Wc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}; dba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}; g.Xc=function(a){for(var b in a)return b}; eba=function(a){for(var b in a)return a[b]}; Yc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}; g.Zc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}; g.$c=function(a,b){return null!==a&&b in a}; g.ad=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1}; bd=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}; fba=function(a,b){return(b=bd(a,b))&&a[b]}; g.cd=function(a){for(var b in a)return!1;return!0}; g.gba=function(a){for(var b in a)delete a[b]}; g.ed=function(a,b){b in a&&delete a[b]}; g.fd=function(a,b,c){return null!==a&&b in a?a[b]:c}; g.gd=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0}; g.hd=function(a){var b={},c;for(c in a)b[c]=a[c];return b}; g.id=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.id(a[c]);return b}; g.kd=function(a,b){for(var c,d,e=1;ea.u&&(a.u++,b.next=a.j,a.j=b)}; Fd=function(a){return function(){return a}}; g.Gd=function(){}; rba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; Hd=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; Jd=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; sba=function(a,b){var c=0;return function(d){g.La.clearTimeout(c);var e=arguments;c=g.La.setTimeout(function(){a.apply(b,e)},50)}}; Ld=function(){if(void 0===Kd){var a=null,b=g.La.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:bb,createScript:bb,createScriptURL:bb})}catch(c){g.La.console&&g.La.console.error(c.message)}Kd=a}else Kd=a}return Kd}; Md=function(a,b){this.WX=a===tba&&b||"";this.f1=uba}; Rd=function(a){return a instanceof Md&&a.constructor===Md&&a.f1===uba?a.WX:"type_error:Const"}; g.Sd=function(a){return new Md(tba,a)}; Td=function(a){this.pO=a;this.Uo=!0}; vba=function(a){return a instanceof Td&&a.constructor===Td?a.pO:"type_error:SafeScript"}; xba=function(a){var b=Ld();a=b?b.createScript(a):a;return new Td(a,wba)}; Ud=function(a){this.sO=a}; yba=function(a){return a instanceof Ud&&a.constructor===Ud?a.sO:"type_error:TrustedResourceUrl"}; Bba=function(a,b){var c=Rd(a);if(!zba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Aba,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof Md?Rd(d):encodeURIComponent(String(d))}); return Vd(a)}; Vd=function(a){var b=Ld();a=b?b.createScriptURL(a):a;return new Ud(a,Cba)}; Wd=function(a){this.rO=a}; g.Xd=function(a){return a instanceof Wd&&a.constructor===Wd?a.rO:"type_error:SafeUrl"}; Dba=function(a){var b=a.indexOf("#");0a*b?a+b:a}; qe=function(a,b,c){return a+c*(b-a)}; re=function(a,b){return 1E-6>=Math.abs(a-b)}; g.se=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; te=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.we=function(a,b){this.width=a;this.height=b}; g.xe=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; ye=function(a){return a.width*a.height}; g.ze=function(a){return encodeURIComponent(String(a))}; Ae=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; g.De=function(a){return a=ec(a)}; g.Ee=function(a){return null==a?"":String(a)}; Fe=function(a){for(var b=0,c=0;c>>0;return b}; Ge=function(a){var b=Number(a);return 0==b&&g.cc(a)?NaN:b}; cca=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; dca=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; eca=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; fca=function(a){var b=1;a=a.split(":");for(var c=[];0a}; of=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return nf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Bb(e.className.split(/\s+/),c))},!0)}; nf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; He=function(a){this.j=a||g.La.document||document}; sf=function(a){"function"!==typeof g.La.setImmediate||g.La.Window&&g.La.Window.prototype&&!uc()&&g.La.Window.prototype.setImmediate==g.La.setImmediate?(pf||(pf=oca()),pf(a)):g.La.setImmediate(a)}; oca=function(){var a=g.La.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!qc("Presto")&&(a=function(){var e=g.Ye("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Wa)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()}, this); f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}}); if("undefined"!==typeof a&&!tc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.KS;c.KS=null;e()}}; return function(e){d.next={KS:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.La.setTimeout(e,0)}}; pca=function(a){g.La.setTimeout(function(){throw a;},0)}; tf=function(){this.u=this.j=null}; uf=function(){this.next=this.scope=this.fn=null}; g.xf=function(a,b){vf||qca();wf||(vf(),wf=!0);rca.add(a,b)}; qca=function(){if(g.La.Promise&&g.La.Promise.resolve){var a=g.La.Promise.resolve(void 0);vf=function(){a.then(sca)}}else vf=function(){sf(sca)}}; sca=function(){for(var a;a=rca.remove();){try{a.fn.call(a.scope)}catch(b){pca(b)}qba(tca,a)}wf=!1}; g.zf=function(a){this.j=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.Gd)try{var b=this;a.call(void 0,function(c){yf(b,2,c)},function(c){yf(b,3,c)})}catch(c){yf(this,3,c)}}; uca=function(){this.next=this.context=this.u=this.B=this.j=null;this.C=!1}; Af=function(a,b,c){var d=vca.get();d.B=a;d.u=b;d.context=c;return d}; Bf=function(a){if(a instanceof g.zf)return a;var b=new g.zf(g.Gd);yf(b,2,a);return b}; Cf=function(a){return new g.zf(function(b,c){c(a)})}; g.xca=function(a,b,c){wca(a,b,c,null)||g.xf(g.Xa(b,a))}; yca=function(a){return new g.zf(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.C&&a.Yw()}; Kca=function(a,b){return a.J.has(b)?void 0:a.u.get(b)}; Lca=function(a){for(var b=0;b "+a)}; Pf=function(){throw Error("Invalid UTF8");}; Yca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b}; ada=function(a){var b=!1;b=void 0===b?!1:b;if(Zca){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=($ca||($ca=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;ef)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e=h){f=1024*(f-55296)+h-56320+65536;d[c++]=f>> 18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a}; bda=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}; g.Rf=function(a,b){void 0===b&&(b=0);dda();b=eda[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; g.Sf=function(a,b){if(fda&&!b)a=g.La.btoa(a);else{for(var c=[],d=0,e=0;e>=8);c[d++]=f}a=g.Rf(c,b)}return a}; hda=function(a){var b=[];gda(a,function(c){b.push(c)}); return b}; Tf=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.fc("=.",a[b-1])&&(c=g.fc("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;gda(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; gda=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; dda=function(){if(!ag){ag={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));eda[c]=d;for(var e=0;ea;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.v(uda(c,a)),b=c.next().value,a=c.next().value,c=b);jg=c>>>0;kg=a>>>0}; xda=function(a){if(16>a.length)vda(Number(a));else if(wda)a=BigInt(a),jg=Number(a&BigInt(4294967295))>>>0,kg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);kg=jg=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),kg*=1E6,jg=1E6*jg+d,4294967296<=jg&&(kg+=jg/4294967296|0,jg%=4294967296);b&&(b=g.v(uda(jg,kg)),a=b.next().value,b=b.next().value,jg=a,kg=b)}}; uda=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; lg=function(a,b){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,b)}; xg=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<d&&h&128);32>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw Of();}; mg=function(a,b){a.j=b;if(b>a.B)throw Xca(a.B,b);}; yg=function(a){var b=a.u,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Of();mg(a,c);return e}; zg=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; Ag=function(a){var b=zg(a),c=zg(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)}; Bg=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;cb)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw Xca(b,a.B-c);a.j=d;return c}; Ada=function(a,b){if(0==b)return fg();var c=yda(a,b);a.OE&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?cg():zda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return tda(c)}; Dg=function(a,b){if(Cg.length){var c=Cg.pop();c.init(a,void 0,void 0,b);a=c}else a=new lg(a,b);this.j=a;this.B=this.j.j;this.u=this.C=-1;Bda(this,b)}; Bda=function(a,b){b=void 0===b?{}:b;a.aL=void 0===b.aL?!1:b.aL}; Cda=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=yg(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Wca(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0}; Eg=function(a){switch(a.u){case 0:0!=a.u?Eg(a):Bg(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)Eg(a);else{var b=yg(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!Cda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}Eg(a)}while(1);break;default:throw Wca(a.u,a.B);}}; Fg=function(a,b,c){var d=a.j.B,e=yg(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.B=d}; Ig=function(a){var b=yg(a.j)>>>0;a=a.j;var c=yda(a,b);a=a.u;if(Dda){var d=a,e;(e=Gg)||(e=Gg=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===Hg){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Hg=!0}catch(p){Hg=!1}}!Hg&&(Gg=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;fl?c.push(l):224>l?f>=b?Pf():(m=a[f++],194>l||128!==(m&192)?(f--,Pf()):c.push((l&31)<<6|m&63)): 240>l?f>=b-1?Pf():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,Pf()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?Pf():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,Pf()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Pf(),8192<=c.length&&(h=Yca(h,c),c.length=0);f=Yca(h,c)}return f}; Eda=function(a){var b=yg(a.j)>>>0;return Ada(a.j,b)}; Fda=function(a,b){this.u=a>>>0;this.j=b>>>0}; Hda=function(a){if(!a)return Gda||(Gda=new Fda(0,0));if(!/^\d+$/.test(a))return null;xda(a);return new Fda(jg,kg)}; Ida=function(a,b){this.u=a>>>0;this.j=b>>>0}; Kda=function(a){if(!a)return Jda||(Jda=new Ida(0,0));if(!/^-?\d+$/.test(a))return null;xda(a);return new Ida(jg,kg)}; Jg=function(){this.j=[]}; Lda=function(a,b,c){for(;0>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; Kg=function(a,b){for(;127>>=7;a.j.push(b)}; Mda=function(a,b){if(0<=b)Kg(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; Lg=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)}; Nda=function(){this.B=[];this.u=0;this.j=new Jg}; Mg=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)}; Oda=function(a,b){Ng(a,b,2);b=a.j.end();Mg(a,b);b.push(a.u);return b}; Pda=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127>>=7,a.u++;b.push(c);a.u++}; Ng=function(a,b,c){Kg(a.j,8*b+c)}; Qda=function(a,b,c){null!=c&&("string"===typeof c&&Hda(c),Ng(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,jg=b,kg=c,Lg(a,jg),Lg(a,kg)):(c=Hda(c),a=a.j,b=c.j,Lg(a,c.u),Lg(a,b)))}; Og=function(a,b,c){Ng(a,b,2);Kg(a.j,c.length);Mg(a,a.j.end());Mg(a,c)}; Rda=function(a,b){this.j=a;this.u=b}; Qg=function(a,b){if(Pg)return a[Pg]|=b;if(void 0!==a.Xo)return a.Xo|=b;Object.defineProperties(a,{Xo:{value:b,configurable:!0,writable:!0,enumerable:!1}});return b}; Tg=function(a){var b=Rg(a);1!==(b&1)&&(Object.isFrozen(a)&&(a=Array.prototype.slice.call(a)),Sg(a,b|1));return a}; Sda=function(a,b){Pg?a[Pg]&&(a[Pg]&=~b):void 0!==a.Xo&&(a.Xo&=~b)}; Rg=function(a){var b;Pg?b=a[Pg]:b=a.Xo;return null==b?0:b}; Sg=function(a,b){Pg?a[Pg]=b:void 0!==a.Xo?a.Xo=b:Object.defineProperties(a,{Xo:{value:b,configurable:!0,writable:!0,enumerable:!1}});return a}; Tda=function(a,b){Object.isFrozen(a)&&(a=Array.prototype.slice.call(a));Sg(a,b);return a}; dh=function(a){Qg(a,1);return a}; eh=function(a){return!!(Rg(a)&2)}; Uda=function(a){Qg(a,16);return a}; Vda=function(a,b){Sg(b,(a|0)&-51)}; fh=function(a,b){Sg(b,(a|18)&-41)}; gh=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object}; hh=function(a,b,c){if(null!=a)if("string"===typeof a)a=a?new eg(a,dg):fg();else if(a.constructor!==eg)if(bg(a))a=c?tda(a):a.length?new eg(new Uint8Array(a),dg):fg();else{if(!b)throw Error();a=void 0}return a}; jh=function(a){ih(Rg(a.Xd))}; ih=function(a){if(a&2)throw Error();}; Wda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();}; kh=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number|null|undefined, found "+typeof a+": "+a);return a}; Xda=function(a){return a.displayName||a.name||"unknown type name"}; Yda=function(a){return null==a?a:!!a}; Zda=function(a){if(null==a)return a;switch(typeof a){case "string":return+a;case "number":return a}}; $da=function(a){return a}; aea=function(a){return a}; bea=function(a){return a}; cea=function(a){return a}; lh=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Xda(b)+" but got "+(a&&Xda(a.constructor)));return a}; nh=function(a,b,c,d){var e=!1;if(null!=a&&"object"===typeof a&&!(e=Array.isArray(a))&&a.eN===mh)return a;if(!e)return c?d&2?(a=b[dea])?b=a:(a=new b,Qg(a.Xd,18),b=b[dea]=a):b=new b:b=void 0,b;e=c=Rg(a);0===e&&(e|=d&16);e|=d&2;e!==c&&Sg(a,e);return new b(a)}; oh=function(a,b,c){return-1===b?null:b>=a.C?a.u?a.u[b]:void 0:c&&a.u&&(c=a.u[b],null!=c)?c:a.Xd[b+a.B]}; K=function(a,b,c,d){jh(a);return ph(a,b,c,d)}; ph=function(a,b,c,d){a.K&&(a.K=void 0);if(b>=a.C||d)return d=a.C+a.B,0<=d&&Number.isInteger(d),(a.u||(a.u=a.Xd[d]={}))[b]=c,a;a.Xd[b+a.B]=c;(c=a.u)&&b in c&&delete c[b];return a}; rh=function(a,b,c){return void 0!==qh(a,b,c,!1)}; th=function(a,b,c,d,e){var f=oh(a,b,d);Array.isArray(f)||(f=sh);var h=Rg(f);h&1||dh(f);if(e)h&2||Qg(f,18),c&1||Object.freeze(f);else{e=!(c&2);var l=h&2;c&1||!l?e&&h&16&&!l&&Sda(f,16):(f=dh(Array.prototype.slice.call(f)),ph(a,b,f,d))}return f}; eea=function(a,b){var c=oh(a,b);var d=null==c?c:"number"===typeof c||"NaN"===c||"Infinity"===c||"-Infinity"===c?Number(c):void 0;null!=d&&d!==c&&ph(a,b,d);return d}; fea=function(a,b){var c=oh(a,b),d=hh(c,!0,!!(Rg(a.Xd)&18));null!=d&&d!==c&&ph(a,b,d);return d}; uh=function(a,b,c,d,e){var f=eh(a.Xd),h=th(a,b,e||1,d,f),l=Rg(h);if(!(l&4)){Object.isFrozen(h)&&(h=dh(h.slice()),ph(a,b,h,d));for(var m=0,n=0;mc||c>b.length)throw Error();b[c]=d;return a}; Jh=function(a,b,c,d){jh(a);(c=Ih(a,c))&&c!==b&&null!=d&&ph(a,c,void 0,!1);return ph(a,b,d)}; Ih=function(a,b){for(var c=0,d=0;d=e){Object.assign(b[b.length-1]={},f);break}}e=b;c=!c;f=a.C;var l;for(h=0;he&&"number"!==typeof a[e]){var f=a[e++];if(Array.isArray(f))return b.u=f[0],b.extensions=f[1],b;b.extensions=f}for(;ed?-2147483648:0)?-d:d,1.7976931348623157E308>>0,jg=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),kg=(c|b/4294967296)>>>0,jg=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022>>0;jg=4503599627370496*d>>>0}Lg(a, jg);Lg(a,kg)}}; qi=function(a,b,c){b=oh(b,c);null!=b&&("string"===typeof b&&Kda(b),null!=b&&(Ng(a,c,0),"number"===typeof b?(a=a.j,vda(b),Lda(a,jg,kg)):(c=Kda(b),Lda(a.j,c.u,c.j))))}; ri=function(a,b,c){b=Zda(oh(b,c));null!=b&&null!=b&&(Ng(a,c,0),Mda(a.j,b))}; Lea=function(a,b,c){b=Yda(oh(b,c));null!=b&&(Ng(a,c,0),a.j.j.push(b?1:0))}; Mea=function(a,b,c){b=oh(b,c);null!=b&&Og(a,c,ada(b))}; Nea=function(a,b,c,d,e){b=qh(b,d,c);null!=b&&(c=Oda(a,c),e(b,a),Pda(a,c))}; Oea=function(a){return function(){var b=new Nda;Eea(this,b,ni(a));Mg(b,b.j.end());for(var c=new Uint8Array(b.u),d=b.B,e=d.length,f=0,h=0;hu;u+=4)t[u/4]=q[u]<<24|q[u+1]<<16|q[u+2]<<8|q[u+3];for(u=16;80>u;u++)q=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(q<<1|q>>>31)&4294967295;q=e[0];var y=e[1],B=e[2],G=e[3],M=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var N=G^y&(B^G);var H=1518500249}else N=y^B^G,H=1859775393;else 60>u?(N=y&B|G&(y|B),H=2400959708):(N=y^B^G,H=3395469782);N=((q<<5|q>>>27)&4294967295)+N+M+H+t[u]&4294967295;M=G;G=B;B=(y<<30|y>>>2)&4294967295;y=q;q=N}e[0]=e[0]+q&4294967295;e[1]=e[1]+y&4294967295;e[2]= e[2]+B&4294967295;e[3]=e[3]+G&4294967295;e[4]=e[4]+M&4294967295} function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var u=[],y=0,B=q.length;yn?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var y=24;0<=y;y-=8)q[t++]=e[u]>>y&255;return q} for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,D2:function(){for(var q=d(),t="",u=0;ub?a:a.slice(0,b)}; fj=function(a,b){if(a){a=a.split("&");for(var c=0;cc&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; hj=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Ae(a.slice(d,-1!==e?e:0))}; wj=function(a,b){for(var c=a.search(nfa),d=0,e,f=[];0<=(e=mfa(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(ofa,"$1")}; pfa=function(a,b,c){return kj(wj(a,b),b,c)}; g.xj=function(a){g.Cd.call(this);this.headers=new Map;this.V=a||null;this.B=!1;this.Aa=this.j=null;this.ma="";this.u=0;this.C="";this.D=this.Ba=this.ea=this.Da=!1;this.K=0;this.qa=null;this.Ja="";this.Ma=this.J=!1}; rfa=function(a,b,c,d,e,f,h){var l=new g.xj;qfa.push(l);b&&l.Sa("complete",b);l.vG("ready",l.e2);f&&(l.K=Math.max(0,f));h&&(l.J=h);l.send(a,c,d,e)}; sfa=function(a){return g.Ue&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; ufa=function(a,b){a.B=!1;a.j&&(a.D=!0,a.j.abort(),a.D=!1);a.C=b;a.u=5;tfa(a);yj(a)}; tfa=function(a){a.Da||(a.Da=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; vfa=function(a){if(a.B&&"undefined"!=typeof zj)if(a.Aa[1]&&4==g.Aj(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.Aj(a))g.Lf(a.uW,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.B=!1;try{if(Bj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2a.ib()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ma}; Dfa=function(a,b){a.D=new g.Ui(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())}; Ffa=function(a){Efa(a,function(b,c){b=kj(b,"format","json");var d=!1;try{d=Ve().navigator.sendBeacon(b,c.hm())}catch(e){}a.Aa&&!d&&(a.Aa=!1);return d})}; Efa=function(a,b){if(0!==a.u.length){var c=wj(Cfa(a),"format");c=lfa(c,"auth",a.Ma(),"authuser",a.sessionIndex||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.C.zf(e,a.K,a.J);if(!b(c,f)){++a.J;break}a.K=0;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}}; Gfa=function(a){g.tb.call(this,"event-logged",void 0);this.j=a}; Afa=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new Kj;K(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Mj(this,new Wh)}; Mj=function(a,b){Nh(a.j,Wh,1,b);oh(b,1)||K(b,1,1);a.B||(b=Oj(a),oh(b,5)||K(b,5,a.locale));a.u&&(b=Oj(a),Lh(b,Gj,9)||Nh(b,Gj,9,a.u))}; Hfa=function(a,b){rh(Lh(a.j,Wh,1),Hj,11)&&(a=Pj(a),K(a,1,b))}; Ifa=function(a,b){rh(Lh(a.j,Wh,1),Hj,11)&&(a=Pj(a),Uh(a,2,b))}; Kfa=function(a,b){var c=void 0===c?Jfa:c;b(Ve(),c).then(function(d){a.u=d;d=Oj(a);Nh(d,Gj,9,a.u);return!0}).catch(function(){return!1})}; Oj=function(a){a=Lh(a.j,Wh,1);var b=Lh(a,Hj,11);b||(b=new Hj,Nh(a,Hj,11,b));return b}; Pj=function(a){a=Oj(a);var b=Lh(a,Fj,10);b||(b=new Fj,Uh(b,2,!1),Nh(a,Fj,10,b));return b}; Lfa=function(a,b,c){rfa(a.url,function(d){d=d.target;Bj(d)?b(g.Cj(d)):c(d.getStatus())},a.requestType,a.body,a.Yv,a.timeoutMillis,a.withCredentials)}; Qj=function(a,b){g.D.call(this);this.J=a;this.Ba=b;this.C="https://play.google.com/log?format=json&hasfast=true";this.D=!1;this.qa=Lfa;this.j=""}; Rj=function(a,b,c,d,e,f){a=void 0===a?-1:a;b=void 0===b?"":b;c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;g.D.call(this);f?b=f:(a=new Qj(a,"0"),a.j=b,g.J(this,a),""!=c&&(a.C=c),d&&(a.D=!0),e&&(a.u=e),b=a.zf());this.j=b}; Sj=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; Mfa=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; Tj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c}; ck=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()}; dk=function(a,b){this.logger=a;this.j=b;this.startMillis=ck()}; ek=function(a,b,c){this.logger=a;this.operation=b;this.j=c;this.startMillis=ck()}; Nfa=function(a,b){var c=ck()-a.startMillis;a.logger.UM(b?"h":"m",c,a.j)}; Ofa=function(){}; Pfa=function(a,b){this.Ue=a;a=new Qj(1654,"0");a.u="12";if(b){var c=new ti;b=iea(c,b,$da);a.B=b}b=new Rj(1654,"","",!1,"",a.zf());b=new g.Nf(b);this.clientError=new Oca(b);this.V=new Nca(b);this.ea=new Mca(b);this.K=new Pca(b);this.B=new Qca(b);this.C=new Rca(b);this.j=new Sca(b);this.D=new Tca(b);this.u=new Uca(b);this.J=new Vca(b)}; Qfa=function(a){this.j=a;this.j.yj("/client_streamz/bg/fiec",{Wd:3,Vd:"rk"},{Wd:2,Vd:"ec"})}; fk=function(a,b,c){a.j.hk("/client_streamz/bg/fiec",b,c)}; Rfa=function(a){this.j=a;this.j.Gx("/client_streamz/bg/fil",{Wd:3,Vd:"rk"})}; Sfa=function(a){this.j=a;this.j.yj("/client_streamz/bg/fsc",{Wd:3,Vd:"rk"})}; Tfa=function(a){this.j=a;this.j.Gx("/client_streamz/bg/fsl",{Wd:3,Vd:"rk"})}; Wfa=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} a=Ufa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=gk(a,l),d+=gk(a,l+4),e+=gk(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Vfa.toString(e)}; Ufa=function(a){for(var b=[],c=0;c=b.length)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;cb)throw Error("Bad port number "+b);a.C=b}else a.C=null}; el=function(a,b,c){b instanceof gl?(a.u=b,yga(a.u,a.K)):(c||(b=hl(b,zga)),a.u=new gl(b,a.K))}; g.il=function(a,b,c){a.u.set(b,c)}; g.jl=function(a){return a instanceof g.Pk?a.clone():new g.Pk(a)}; fl=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; hl=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Aga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; Aga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; gl=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b}; kl=function(a){a.j||(a.j=new Map,a.u=0,a.B&&fj(a.B,function(b,c){a.add(Ae(b),c)}))}; Bga=function(a,b){kl(a);b=ll(a,b);return a.j.has(b)}; g.Cga=function(a,b,c){a.remove(b);0>7,a.error.code].concat(Vga(b)))}; Hl=function(a,b,c){Al.call(this,a);this.J=b;this.clientState=c;this.B="S";this.u="q"}; Bl=function(a){return new Promise(function(b){return void setTimeout(b,a)})}; Il=function(a,b){return Promise.race([a,Bl(12E4).then(b)])}; Yga=function(a){this.j=void 0;this.C=new g.jk;this.state=1;this.B=0;this.u=void 0;this.qy=a.qy;this.gW=a.gW;this.onError=a.onError;this.logger=a.k9a?new Ofa:new Pfa(a.Ue,a.f2)}; Zga=function(a,b,c){var d=window.webpocb;if(!d)throw new zl(4,Error("PMD:Undefined"));d=d(hg(vh(b,1)));if(!(d instanceof Function))throw new zl(16,Error("APF:Failed"));return new Dl(a.logger,c,d,Xh(Th(b,3),0),1E3*Xh(Th(b,2),0))}; $ga=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,y,B,G;return g.A(function(M){switch(M.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Ui(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){M.La(4);break}g.xa(M,5);a.state=3;a.B=e-1;return g.z(M,a.u&&1===e?a.u:a.sB(e),7);case 7:return f=M.u,a.u=void 0,a.state=4,h=new dk(a.logger,"b"),g.z(M,jga(f),8);case 8:return l=new kk({challenge:f}),a.state=5,g.z(M,Il(l.snapshot({}),function(){return Promise.reject(new zl(15,"MDA:Timeout"))}),9); case 9:return m=M.u,h.done(),a.state=6,g.z(M,Il(a.logger.VM("g",e,a.qy.yT(m)),function(){return Promise.reject(new zl(10,"BWB:Timeout"))}),10); case 10:n=M.u;a.state=7;p=new dk(a.logger,"i");if(g.Zh(n,4)){l.dispose();var N=new Fl(a.logger,g.Zh(n,4),1E3*Xh(Th(n,2),0))}else Xh(Th(n,3),0)?N=Zga(a,n,l):(l.dispose(),N=new El(a.logger,hg(vh(n,1)),1E3*Xh(Th(n,2),0)));q=N;p.done();u=t=void 0;null==(u=(t=a).gW)||u.call(t,hg(vh(n,1)));a.state=8;return M.return(q);case 5:y=g.za(M);b=y instanceof zl?y:y instanceof Tj?new zl(11,y):new zl(12,y);a.logger.wC(b.code);G=B=void 0;null==(G=(B=a).onError)||G.call(B,b);a:{if(y instanceof Tj)switch(y.code){case 2:case 13:case 14:case 4:break; default:N=!1;break a}N=!0}if(!N)throw b;return g.z(M,Bl(d.getValue()),11);case 11:g.Vi(d);case 3:e++;M.La(2);break;case 4:throw b;}})}; aha=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:return b=void 0,g.xa(e,4),g.z(e,$ga(a),6);case 6:b=e.u;g.ya(e,5);break;case 4:c=g.za(e);if(a.j){a.logger.wC(13);e.La(0);break}a.logger.wC(14);c instanceof zl||(c=new zl(14,c instanceof Error?c:Error(String(c))));b=new Gl(a.logger,c);case 5:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.C.resolve(),g.z(e,a.j.D.promise,1)}})}; cha=function(a){var b;bha(a,null==(b=globalThis.location)?void 0:b.ancestorOrigins)}; bha=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u,y,B,G,M,N,H,U,aa,da,ua,la;g.A(function(X){switch(X.j){case 1:g.xa(X,2);c=!0;globalThis.sessionStorage?(null!=(d=globalThis.sessionStorage.getItem)&&d.call||(a.logger.Xy("r"),c=!1),null!=(e=globalThis.sessionStorage.setItem)&&e.call||(a.logger.Xy("w"),c=!1),null!=(f=globalThis.sessionStorage.removeItem)&&f.call||(a.logger.Xy("d"),c=!1)):(a.logger.Xy("n"),c=!1);if(!c)return X.return();a.logger.Xy("a");h=80;l=")";m="u";if(!(b&&(null==(n=globalThis.crypto)? 0:null==(p=n.subtle)?0:p.digest)&&globalThis.TextEncoder)){X.La(4);break}if(!(0Math.random()?(da=new ek(a.logger,"d",m),globalThis.sessionStorage.removeItem("nWC1Uzs7EI"),da.done(), ua=new ek(a.logger,"a",m),globalThis.sessionStorage.setItem("nWC1Uzs7EI",aa),ua.done()):(la=new ek(a.logger,G?"w":"i",m),globalThis.sessionStorage.setItem("nWC1Uzs7EI",aa),la.done());g.ya(X,0);break;case 2:g.za(X),a.logger.nV(),g.wa(X)}})}; dha=function(a){var b={};g.Wb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c}); xaa(a,function(c){return null===b[c.event]})}; Jl=function(){this.me=0;this.j=!1;this.u=-1;this.fv=!1;this.Uj=0}; Kl=function(){this.u=null;this.j=!1}; Ll=function(a){Kl.call(this);this.C=a}; Ml=function(){Kl.call(this)}; Nl=function(){Kl.call(this)}; Ol=function(){this.j={};this.u=!0;this.B={}}; Pl=function(a,b,c){a.j[b]||(a.j[b]=new Ll(c));return a.j[b]}; eha=function(a){a.j.queryid||(a.j.queryid=new Nl)}; Ql=function(a,b,c){(a=a.j[b])&&a.B(c)}; Rl=function(a,b){if(g.$c(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()}; Sl=function(a){var b={},c=g.Tc(a.j,function(d){return d.j}); g.Sc(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.u?String(d.u):"";0e?encodeURIComponent(xha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; yha=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1}; pm=function(a,b){this.j=a;this.depth=b}; Aha=function(){function a(l,m){return null==l?m:l} var b=lm(),c=Math.max(b.length-1,0),d=wha(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new pm([f.url,f.AM?2:0],a(f.depth,1)));e&&e!=f&&h.push(new pm([e.url,2],0));b.url&&b!=f&&h.push(new pm([b.url,0],a(b.depth,c)));d=g.qm(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=oha(b.url))&&d.push([new pm([e,1],a(b.depth,c))]);d.push([]);return g.qm(d,function(l){return zha(c,l)})}; zha=function(a,b){g.rm(b,function(e){return 0<=e.depth}); var c=sm(b,function(e,f){return Math.max(e,f.depth)},-1),d=Caa(c+2); d[0]=a;g.Wb(b,function(e){return d[e.depth+1]=e.j}); return d}; Bha=function(){var a=void 0===a?Aha():a;return a.map(function(b){return om(b)})}; Cha=function(a){var b=!1;b=void 0===b?!1:b;em.google_image_requests||(em.google_image_requests=[]);var c=pha("IMG",em.document);b&&(c.attributionSrc="");c.src=a;em.google_image_requests.push(c)}; tm=function(a){var b="Xg";if(a.Xg&&a.hasOwnProperty(b))return a.Xg;var c=new a;a.Xg=c;a.hasOwnProperty(b);return c}; um=function(){this.u=new kha;this.j=cm()?new dm:new Ul}; Dha=function(){vm();var a=em.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof em.setInterval&&"function"===typeof em.clearInterval&&"function"===typeof em.setTimeout&&"function"===typeof em.clearTimeout)}; Eha=function(){vm();return Bha()}; Fha=function(){}; vm=function(){var a=tm(Fha);if(!a.j){if(!em)throw Error("Context has not been set and window is undefined.");a.j=tm(um)}return a.j}; wm=function(a){O.call(this,a)}; Gha=function(a){this.B=a;this.j=-1;this.u=this.C=0}; xm=function(a,b){return function(){var c=g.Ea.apply(0,arguments);if(-1Math.random())}; Uha=function(a){a&&Cm&&Am()&&(Cm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Cm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; Vha=function(){var a=Dm;this.j=Em;this.uT="jserror";this.jP=!0;this.iK=null;this.u=this.XM;this.Hc=void 0===a?null:a}; Wha=function(a,b,c){var d=Fm;return xm(ym().j.j,function(){try{if(d.Hc&&d.Hc.j){var e=d.Hc.start(a.toString(),3);var f=b();d.Hc.end(e)}else f=b()}catch(l){var h=d.jP;try{Uha(e),h=d.u(a,new Gm(Hm(l)),void 0,c)}catch(m){d.XM(217,m)}if(!h)throw l;}return f})()}; Im=function(a,b,c,d){return xm(ym().j.j,function(){var e=g.Ea.apply(0,arguments);return Wha(a,function(){return b.apply(c,e)},d)})}; Hm=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}; Gm=function(a){Qha.call(this,Error(a),{message:a})}; Xha=function(){em&&"undefined"!=typeof em.google_measure_js_timing&&(em.google_measure_js_timing||Dm.disable())}; Yha=function(a){Fm.iK=function(b){g.Wb(a,function(c){c(b)})}}; Zha=function(a,b){return Wha(a,b)}; Jm=function(a,b){return Im(a,b)}; Km=function(a,b,c,d){Fm.XM(a,b,c,d)}; Lm=function(){return Date.now()-$ha}; aia=function(){var a=ym().B,b=0<=Mm?Lm()-Mm:-1,c=Nm?Lm()-Om:-1,d=0<=Pm?Lm()-Pm:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Km(637,Error(),.001);var f=b;-1!=c&&cd?500:h}; Qm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; Rm=function(a){return a.right-a.left}; Sm=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1}; Tm=function(a,b,c){b instanceof g.se?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a}; Um=function(a,b,c){var d=new Qm(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c}; Vm=function(a,b,c,d,e,f,h,l){this.C=a;this.K=b;this.B=c;this.J=d;this.j=e;this.D=f;this.u=h;this.V=l}; cia=function(a){var b=a!==a.top,c=a.top===sha(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),dba(bia,function(h){return"function"===typeof f[h]})||(e=1)); return{qn:f,compatibility:e,V8:d}}; dia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint}; eia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.we(b.innerWidth,b.innerHeight)).round():ica(b||window).round()}catch(d){return new g.we(-12245933,-12245933)}}; Wm=function(a,b,c){try{a&&(b=b.top);var d=eia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new Qm(f,f,f,f);var h=kca(Je(b.document).j),l=h.x,m=h.y;return new Qm(m,l+f,m+e,l)}catch(n){return new Qm(-12245933,-12245933,-12245933,-12245933)}}; g.Xm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; Ym=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}; g.$m=function(a,b,c){if("string"===typeof b)(b=Zm(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Zm(c,d);f&&(c.style[f]=e)}}; Zm=function(a,b){var c=fia[b];if(!c){var d=cca(b);c=d;void 0===a.style[d]&&(d=(g.Jc?"Webkit":an?"Moz":g.Ue?"ms":null)+eca(d),void 0!==a.style[d]&&(c=d));fia[b]=c}return c}; g.bn=function(a,b){var c=a.style[cca(b)];return"undefined"!==typeof c?c:a.style[Zm(a,b)]||""}; cn=function(a,b){var c=Ie(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; dn=function(a,b){return cn(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; g.fn=function(a,b,c){if(b instanceof g.se){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.en(d,!1);a.style.top=g.en(b,!1)}; gn=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; gia=function(a){if(g.Ue&&!g.Ic(8))return a.offsetParent;var b=Ie(a),c=dn(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=dn(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.hn=function(a){var b=Ie(a),c=new g.se(0,0);var d=b?Ie(b):document;d=!g.Ue||g.Ic(9)||"CSS1Compat"==Je(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=gn(a);b=kca(Je(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; iia=function(a,b){var c=new g.se(0,0),d=Ve(Ie(a));if(!Fc(d,"parent"))return c;do{var e=d==b?g.hn(a):hia(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c}; g.jn=function(a,b){a=jia(a);b=jia(b);return new g.se(a.x-b.x,a.y-b.y)}; hia=function(a){a=gn(a);return new g.se(a.left,a.top)}; jia=function(a){if(1==a.nodeType)return hia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.se(a.clientX,a.clientY)}; g.kn=function(a,b,c){if(b instanceof g.we)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.en(b,!0);a.style.height=g.en(c,!0)}; g.en=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.ln=function(a){var b=kia;if("none"!=dn(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}; kia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Jc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=gn(a),new g.we(a.right-a.left,a.bottom-a.top)):new g.we(b,c)}; g.mn=function(a,b){a.style.display=b?"":"none"}; nn=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; lia=function(a){return new Qm(a.top,a.right,a.bottom,a.left)}; mia=function(a){var b=a.top||0,c=a.left||0;return new Qm(b,c+(a.width||0),b+(a.height||0),c)}; on=function(a){return null!=a&&0<=a&&1>=a}; nia=function(){var a=g.kc();return a?pn("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return gc(a,b)})||gc(a,"OMI/")&&!gc(a,"XiaoMi/")?!0:gc(a,"Presto")&&gc(a,"Linux")&&!gc(a,"X11")&&!gc(a,"Android")&&!gc(a,"Mobi"):!1}; oia=function(){this.B=!jm(em.top);this.isMobileDevice=im()||lha();var a=lm();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.B?!1:a.ub.u?!1:typeof a.jtypeof b.j?!1:a.jc++;){if(a===b)return!0;try{if(a=g.jf(a)||a){var d=Ie(a),e=d&&Ve(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; Kia=function(a,b,c){if(!a||!b)return!1;b=Tm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;jm(window.top)&&window.top&&window.top.document&&(window=window.top);if(!dia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Ie(c))&&b.defaultView&&b.defaultView.frameElement)&&Jia(b,a);var d=a===c;a=!d&&a&&nf(a,function(e){return e===c}); return!(b||d||a)}; Lia=function(a,b,c,d){return qn().B?!1:0>=Rm(a)||0>=a.getHeight()?!0:c&&d?Zha(208,function(){return Kia(a,b,c)}):!1}; Yn=function(a,b,c){g.D.call(this);this.position=Mia.clone();this.EG=this.PF();this.TM=-2;this.k9=Date.now();this.jY=-1;this.ep=b;this.uG=null;this.jB=!1;this.PG=null;this.opacity=-1;this.requestSource=c;this.q9=!1;this.ZM=function(){}; this.zY=function(){}; this.Bj=new iha;this.Bj.Ys=a;this.Bj.j=a;this.Rs=!1;this.Ju={lN:null,kN:null};this.JX=!0;this.RD=null;this.Ky=this.n4=!1;ym().J++;this.Eh=this.ML();this.fY=-1;this.uf=null;this.hasCompleted=this.j4=!1;this.Dc=new Ol;hha(this.Dc);Nia(this);1==this.requestSource?Ql(this.Dc,"od",1):Ql(this.Dc,"od",0)}; Nia=function(a){a=a.Bj.Ys;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Oia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+dca()):!!a.getAttribute("data-"+dca());b&&(qn().u=!0)}; Zn=function(a,b){b!=a.Ky&&(a.Ky=b,a=qn(),b?a.J++:0c?0:a}; Ria=function(a,b,c){if(a.uf){a.uf.Qr();var d=a.uf.K,e=d.C,f=e.j;if(null!=d.J){var h=d.B;a.PG=new g.se(h.left-f.left,h.top-f.top)}f=a.ZH()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.XT(d);a.uG=d;a.Ra(f,b,c,!1,h,e,d.V)}}; Sia=function(a){if(a.jB&&a.RD){var b=1==Rl(a.Dc,"od"),c=qn().j,d=a.RD,e=a.uf?a.uf.getName():"ns",f=new g.we(Rm(c),c.getHeight());c=a.ZH();a={Z8:e,PG:a.PG,M9:f,ZH:c,me:a.Eh.me,F9:b};if(b=d.u){b.Qr();e=b.K;f=e.C.j;var h=null,l=null;null!=e.J&&f&&(h=e.B,h=new g.se(h.left-f.left,h.top-f.top),l=new g.we(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={Z8:b.getName(),PG:h,M9:l,ZH:c,F9:!1,me:e}}else c=null;c&&Dia(d,a,c)}}; Tia=function(a,b,c){b&&(a.ZM=b);c&&(a.zY=c)}; g.$n=function(){}; g.ao=function(a){return{value:a,done:!1}}; Uia=function(){this.C=this.j=this.B=this.u=this.D=0}; Via=function(a){var b={};var c=g.Ya()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b}; Wia=function(){Jl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; bo=function(a){return on(a.volume)&&0Math.max(1E4,a.B/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ma;var d=c-a.ma,e=0;0<=d?(a.qa+=b,a.Ja+=Math.max(b-d,0),e=Math.min(d,a.qa)):a.Oa+=Math.abs(d);0!=d&&(a.qa=0);-1==a.Ua&&0=a.B/2:0=a.Ba:!1:!1}; ija=function(a){var b=nn(a.Eh.me,2),c=a.Tg.B,d=a.Eh,e=vo(a),f=uo(e.C),h=uo(e.J),l=uo(d.volume),m=nn(e.K,2),n=nn(e.qa,2),p=nn(d.me,2),q=nn(e.Aa,2),t=nn(e.Ba,2);d=nn(d.Uj,2);a=a.Gs().clone();a.round();e=Un(e,!1);return{L9:b,gC:c,IG:f,BG:h,SA:l,JG:m,CG:n,me:p,LG:q,DG:t,Uj:d,position:a,NG:e}}; kja=function(a,b){jja(a.j,b,function(){return{L9:0,gC:void 0,IG:-1,BG:-1,SA:-1,JG:-1,CG:-1,me:-1,LG:-1,DG:-1,Uj:-1,position:void 0,NG:[]}}); a.j[b]=ija(a)}; jja=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; Jo=function(a){a=void 0===a?em:a;In.call(this,new En(a,2))}; Ko=function(){var a=Jja();En.call(this,em.top,a,"geo")}; Jja=function(){ym();var a=qn();return a.B||a.u?0:2}; Kja=function(){}; Lo=function(){this.done=!1;this.j={D1:0,rS:0,n9a:0,nT:0,oM:-1,s2:0,q2:0,t2:0,Y8:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new Dn(this)}; No=function(){var a=Mo;a.J||(a.J=!0,Lja(a,function(){return a.C.apply(a,g.oa(g.Ea.apply(0,arguments)))}),a.C())}; Mja=function(){tm(Kja);var a=tm(Eo);null!=a.j&&a.j.j?ria(a.j.j):qn().update(em)}; Oo=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{Mja();var d=Lm();ym().D=d;if(null!=tm(Eo).j)for(var e=0;eg.Zc(Wja).length?null:sm(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Xja[d[0]]||!Xja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; Zja=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?Rn(b.j,a.j):Rn(b.u,a.j);case "tos":return a.u?Qn(b.j,a.j):Qn(b.u,a.j)}return 0}; Uo=function(a,b,c,d){mo.call(this,b,d);this.K=a;this.V=c}; Vo=function(){}; Wo=function(a){mo.call(this,"fully_viewable_audible_half_duration_impression",a)}; ep=function(a){this.j=a}; fp=function(a,b){mo.call(this,a,b)}; gp=function(a){no.call(this,"measurable_impression",a)}; hp=function(){ep.apply(this,arguments)}; ip=function(a,b,c){qo.call(this,a,b,c)}; jp=function(a){a=void 0===a?em:a;In.call(this,new En(a,2))}; kp=function(a,b,c){qo.call(this,a,b,c)}; lp=function(a){a=void 0===a?em:a;In.call(this,new En(a,2))}; mp=function(){En.call(this,em,2,"mraid");this.Ja=0;this.qa=this.Aa=!1;this.K=null;this.u=cia(this.B);this.C.j=new Qm(0,0,0,0);this.Ma=!1}; np=function(a,b,c){a.Ft("addEventListener",b,c)}; cka=function(a){ym().C=!!a.Ft("isViewable");np(a,"viewableChange",$ja);"loading"===a.Ft("getState")?np(a,"ready",aka):bka(a)}; bka=function(a){"string"===typeof a.u.qn.AFMA_LIDAR?(a.Aa=!0,dka(a)):(a.u.compatibility=3,a.K="nc",a.fail("w"))}; dka=function(a){a.qa=!1;var b=1==Rl(ym().Dc,"rmmt"),c=!!a.Ft("isViewable");(b?!c:1)&&vm().setTimeout(Jm(524,function(){a.qa||(eka(a),Km(540,Error()),a.K="mt",a.fail("w"))}),500); fka(a);np(a,a.u.qn.AFMA_LIDAR,gka)}; fka=function(a){var b=1==Rl(ym().Dc,"sneio"),c=void 0!==a.u.qn.AFMA_LIDAR_EXP_1,d=void 0!==a.u.qn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.qn.AFMA_LIDAR_EXP_2=!0);c&&(a.u.qn.AFMA_LIDAR_EXP_1=!b)}; eka=function(a){a.Ft("removeEventListener",a.u.qn.AFMA_LIDAR,gka);a.Aa=!1}; hka=function(a,b){if("loading"===a.Ft("getState"))return new g.we(-1,-1);b=a.Ft(b);if(!b)return new g.we(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.we(-1,-1):new g.we(a,b)}; aka=function(){try{var a=tm(mp);a.Ft("removeEventListener","ready",aka);bka(a)}catch(b){Km(541,b)}}; gka=function(a,b){try{var c=tm(mp);c.qa=!0;var d=a?new Qm(a.y,a.x+a.width,a.y+a.height,a.x):new Qm(0,0,0,0);var e=Lm(),f=sn();var h=new Um(e,f,c);h.j=d;h.volume=b;c.Ms(h)}catch(l){Km(542,l)}}; $ja=function(a){var b=ym(),c=tm(mp);a&&!b.C&&(b.C=!0,c.Ma=!0,c.K&&c.fail("w",!0))}; op=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.K=(a.start=this.T3,a.firstquartile=this.O3,a.midpoint=this.Q3,a.thirdquartile=this.U3,a.complete=this.L3,a.error=this.M3,a.pause=this.gO,a.resume=this.oX,a.skip=this.S3,a.viewable_impression=this.Mo,a.mute=this.bA,a.unmute=this.bA,a.fullscreen=this.P3,a.exitfullscreen=this.N3,a.fully_viewable_audible_half_duration_impression=this.Mo,a.measurable_impression=this.Mo,a.abandon=this.gO,a.engagedview=this.Mo,a.impression=this.Mo,a.creativeview= this.Mo,a.progress=this.bA,a.custom_metric_viewable=this.Mo,a.bufferstart=this.gO,a.bufferfinish=this.oX,a.audio_measurable=this.Mo,a.audio_audible=this.Mo,a);a={};this.V=(a.overlay_resize=this.R3,a.abandon=this.dM,a.close=this.dM,a.collapse=this.dM,a.overlay_unmeasurable_impression=function(b){return yo(b,"overlay_unmeasurable_impression",sn())},a.overlay_viewable_immediate_impression=function(b){return yo(b,"overlay_viewable_immediate_impression",sn())},a.overlay_unviewable_impression=function(b){return yo(b, "overlay_unviewable_impression",sn())},a.overlay_viewable_end_of_session_impression=function(b){return yo(b,"overlay_viewable_end_of_session_impression",sn())},a); ym().u=3;ika(this);this.B=!1}; pp=function(a,b,c,d){b=a.uD(null,d,!0,b);b.C=c;Cja([b],a.B);return b}; jka=function(a,b,c){dha(b);var d=a.j;g.Wb(b,function(e){var f=g.qm(e.criteria,function(h){var l=Yja(h);if(null==l)h=null;else if(h=new Vja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Haa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h}); pn(f,function(h){return null==h})||gja(c,new Uo(e.id,e.event,f,d))})}; kka=function(){var a=[],b=ym();a.push(tm(Ko));Rl(b.Dc,"mvp_lv")&&a.push(tm(mp));b=[new jp,new lp];b.push(new Fo(a));b.push(new Jo(em));return b}; lka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Lm(),c=ym(),d=qn();Mm=b;c.B=79463069;"o"!==a.u&&(Qja=sha(em));if(Dha()){Mo.j.rS=0;Mo.j.oM=Lm()-b;var e=kka(),f=tm(Eo);f.u=e;Eja(f,function(){qp()})?Mo.done||(Nja(),Fn(f.j.j,a),No()):d.B?qp():No()}else rp=!0}catch(h){throw Co.reset(),h; }}}; tp=function(a){Mo.u.cancel();sp=a;Mo.done=!0}; up=function(a){if(a.u)return a.u;var b=tm(Eo).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u}; vp=function(a,b,c){if(null==a.j)return b.hA|=4,!1;a=mka(a.j,c,b);b.hA|=a;return 0==a}; qp=function(){var a=[new Jo(em)],b=tm(Eo);b.u=a;Eja(b,function(){tp("i")})?Mo.done||(Nja(),No()):tp("i")}; nka=function(a,b){if(!a.Hb){var c=yo(a,"start",sn());c=a.hO.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="953";null!==Qo&&(d.v=Qo);fj(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)}); b=Rja();fj(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//pagead2.googlesyndication.com/pagead/gen_204?"+Ln(Kn(new Jn,d));Bia(b);a.Hb=!0}}; wp=function(a,b,c){Oo(Mo,[a],!sn());kja(a,c);4!=c&&jja(a.Aa,c,a.PF);return yo(a,b,sn())}; ika=function(a){Pja(function(){var b=oka();null!=a.u&&(b.sdk=a.u);var c=tm(Eo);null!=c.j&&(b.avms=c.j.getName());return b})}; pka=function(a,b,c,d){if(a.B)var e=Bo(Co,b);else e=yja(Co,c),null!==e&&e.di!==b&&(a.dB(e),e=null);e||(b=a.uD(c,Lm(),!1,b),0==Co.u.length&&(ym().B=79463069),Dja([b]),e=b,e.C=up(a),d&&(e.Za=d));return e}; qka=function(a){g.Wb(Co.j,function(b){3==b.Ji&&a.dB(b)})}; rka=function(a,b){var c=a[b];void 0!==c&&0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)}; bla=function(a){if(!a)return he;var b=document.createElement("div").style;Yka(a).forEach(function(c){var d=g.Jc&&c in Zka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Zb(d,"--")||Zb(d,"var")||(c=Xka($ka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Vka(c),null!=c&&Xka(ala,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return Xba(g.Sd("Output of CSS sanitizer"),b.cssText||"")}; Yka=function(a){g.Pa(a)?a=g.Gb(a):(a=g.Zc(a),g.Db(a,"cssText"));return a}; g.nq=function(a){var b,c=b=0,d=!1;a=a.split(dla);for(var e=0;e=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=pq(a,c);var l=(pq(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else fh;h++)fg.Ya()}; g.xq=function(a){this.j=a}; nla=function(){}; yq=function(){}; zq=function(a){this.j=a}; Aq=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}; ola=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}; Cq=function(a,b){this.u=a;this.j=null;if(g.Ue&&!g.Ic(9)){Bq||(Bq=new g.gq);this.j=Bq.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),Bq.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}}; Dq=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return pla[b]})}; Eq=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}}; Fq=function(a,b){this.u=a;this.j=b+"::"}; g.Gq=function(a){var b=new Aq;return b.isAvailable()?a?new Fq(b,a):b:null}; Vq=function(a,b){this.j=a;this.u=b}; Wq=function(a){this.j=[];if(a)a:{if(a instanceof Wq){var b=a.Ko();a=a.Sl();if(0>=this.j.length){for(var c=this.j,d=0;df?1:2048>f?2:65536>f?3:4}var l=new Yq.Iw(e);for(b=c=0;cf?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>> 6&63),l[c++]=128|f&63);return l}; Zq=function(a){for(var b=a.length;0<=--b;)a[b]=0}; $q=function(a,b,c,d,e){this.UX=a;this.V2=b;this.U2=c;this.K2=d;this.E4=e;this.BU=a&&a.length}; ar=function(a,b){this.oT=a;this.cz=0;this.Lt=b}; br=function(a,b){a.qg[a.pending++]=b&255;a.qg[a.pending++]=b>>>8&255}; cr=function(a,b,c){a.Nh>16-c?(a.Wi|=b<>16-a.Nh,a.Nh+=c-16):(a.Wi|=b<>>=1,c<<=1;while(0<--b);return c>>>1}; tla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=sla(d[e]++,e))}; ula=function(a){var b;for(b=0;286>b;b++)a.Dj[2*b]=0;for(b=0;30>b;b++)a.Pu[2*b]=0;for(b=0;19>b;b++)a.Di[2*b]=0;a.Dj[512]=1;a.Oq=a.Wz=0;a.Wl=a.matches=0}; vla=function(a){8e?ir[e]:ir[256+(e>>>7)];dr(a,h,c);l=jr[h];0!==l&&(e-=kr[h],cr(a,e,l))}}while(da.mq;){var m=a.Ag[++a.mq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.Oq--;e&&(a.Wz-=d[2*m+1])}b.cz=l;for(h=a.mq>>1;1<=h;h--)er(a,c,h);m=f;do h=a.Ag[1],a.Ag[1]=a.Ag[a.mq--],er(a,c,1),d=a.Ag[1],a.Ag[--a.Iy]=h,a.Ag[--a.Iy]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.Ag[1]=m++,er(a,c,1);while(2<= a.mq);a.Ag[--a.Iy]=a.Ag[1];h=b.oT;m=b.cz;d=b.Lt.UX;e=b.Lt.BU;f=b.Lt.V2;var n=b.Lt.U2,p=b.Lt.E4,q,t=0;for(q=0;15>=q;q++)a.Lp[q]=0;h[2*a.Ag[a.Iy]+1]=0;for(b=a.Iy+1;573>b;b++){var u=a.Ag[b];q=h[2*h[2*u+1]+1]+1;q>p&&(q=p,t++);h[2*u+1]=q;if(!(u>m)){a.Lp[q]++;var y=0;u>=n&&(y=f[u-n]);var B=h[2*u];a.Oq+=B*(q+y);e&&(a.Wz+=B*(d[2*u+1]+y))}}if(0!==t){do{for(q=p-1;0===a.Lp[q];)q--;a.Lp[q]--;a.Lp[q+1]+=2;a.Lp[p]--;t-=2}while(0m||(h[2*d+1]!==q&&(a.Oq+=(q- h[2*d+1])*h[2*d],h[2*d+1]=q),u--)}tla(c,l,a.Lp)}; zla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h=h?a.Di[34]++:a.Di[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}}; Ala=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h=h?(dr(a,17,a.Di),cr(a,h-3,3)):(dr(a,18,a.Di),cr(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}}; Bla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Dj[2*c])return 0;if(0!==a.Dj[18]||0!==a.Dj[20]||0!==a.Dj[26])return 1;for(c=32;256>c;c++)if(0!==a.Dj[2*c])return 1;return 0}; mr=function(a,b,c){a.qg[a.cB+2*a.Wl]=b>>>8&255;a.qg[a.cB+2*a.Wl+1]=b&255;a.qg[a.IM+a.Wl]=c&255;a.Wl++;0===b?a.Dj[2*c]++:(a.matches++,b--,a.Dj[2*(fr[c]+256+1)]++,a.Pu[2*(256>b?ir[b]:ir[256+(b>>>7)])]++);return a.Wl===a.vC-1}; or=function(a,b){a.msg=nr[b];return b}; pr=function(a){for(var b=a.length;0<=--b;)a[b]=0}; qr=function(a){var b=a.state,c=b.pending;c>a.Be&&(c=a.Be);0!==c&&(Yq.Jx(a.Sj,b.qg,b.fD,c,a.jz),a.jz+=c,b.fD+=c,a.FP+=c,a.Be-=c,b.pending-=c,0===b.pending&&(b.fD=0))}; tr=function(a,b){var c=0<=a.wk?a.wk:-1,d=a.zb-a.wk,e=0;if(0>>3;var h=a.Wz+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)cr(a,b?1:0,3),wla(a,c,d);else if(4===a.strategy||h===f)cr(a,2+(b?1:0),3),yla(a,rr,sr);else{cr(a,4+(b?1:0),3);c=a.sG.cz+1;d=a.jF.cz+1;e+=1;cr(a,c-257,5);cr(a,d-1,5);cr(a,e-4,4);for(f=0;f>>8&255;a.qg[a.pending++]=b&255}; Dla=function(a,b){var c=a.xV,d=a.zb,e=a.Tk,f=a.MV,h=a.zb>a.Qi-262?a.zb-(a.Qi-262):0,l=a.window,m=a.Tt,n=a.jp,p=a.zb+258,q=l[d+e-1],t=l[d+e];a.Tk>=a.iU&&(c>>=2);f>a.ac&&(f=a.ac);do{var u=b;if(l[u+e]===t&&l[u+e-1]===q&&l[u]===l[d]&&l[++u]===l[d+1]){d+=2;for(u++;l[++d]===l[++u]&&l[++d]===l[++u]&&l[++d]===l[++u]&&l[++d]===l[++u]&&l[++d]===l[++u]&&l[++d]===l[++u]&&l[++d]===l[++u]&&l[++d]===l[++u]&&de){a.Zy=b;e=u;if(u>=f)break;q=l[d+e-1];t=l[d+e]}}}while((b=n[b&m])>h&&0!== --c);return e<=a.ac?e:a.ac}; yr=function(a){var b=a.Qi,c;do{var d=a.WY-a.ac-a.zb;if(a.zb>=b+(b-262)){Yq.Jx(a.window,a.window,b,b,0);a.Zy-=b;a.zb-=b;a.wk-=b;var e=c=a.dG;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.jp[--e],a.jp[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Zd.Ui)break;e=a.Zd;c=a.window;f=a.zb+a.ac;var h=e.Ui;h>d&&(h=d);0===h?c=0:(e.Ui-=h,Yq.Jx(c,e.input,e.Fv,h,f),1===e.state.wrap?e.Id=wr(e.Id,c,h,f):2===e.state.wrap&&(e.Id=xr(e.Id,c,h,f)),e.Fv+=h,e.qw+=h,c=h);a.ac+=c;if(3<=a.ac+a.Rh)for(d=a.zb-a.Rh, a.oe=a.window[d],a.oe=(a.oe<a.ac+a.Rh););}while(262>a.ac&&0!==a.Zd.Ui)}; zr=function(a,b){for(var c;;){if(262>a.ac){yr(a);if(262>a.ac&&0===b)return 1;if(0===a.ac)break}c=0;3<=a.ac&&(a.oe=(a.oe<a.zb?a.zb:2;return 4===b?(tr(a,!0),0===a.Zd.Be?3:4):a.Wl&&(tr(a,!1),0===a.Zd.Be)?1:2}; Ar=function(a,b){for(var c,d;;){if(262>a.ac){yr(a);if(262>a.ac&&0===b)return 1;if(0===a.ac)break}c=0;3<=a.ac&&(a.oe=(a.oe<=a.Qe&&(1===a.strategy||3===a.Qe&&4096a.zb?a.zb:2;return 4===b?(tr(a,!0),0===a.Zd.Be?3:4):a.Wl&&(tr(a,!1),0===a.Zd.Be)?1:2}; Ela=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.ac){yr(a);if(258>=a.ac&&0===b)return 1;if(0===a.ac)break}a.Qe=0;if(3<=a.ac&&0a.ac&&(a.Qe=a.ac)}3<=a.Qe?(c=mr(a,1,a.Qe-3),a.ac-=a.Qe,a.zb+=a.Qe,a.Qe=0):(c=mr(a,0,a.window[a.zb]),a.ac--,a.zb++);if(c&&(tr(a,!1),0===a.Zd.Be))return 1}a.Rh=0;return 4=== b?(tr(a,!0),0===a.Zd.Be?3:4):a.Wl&&(tr(a,!1),0===a.Zd.Be)?1:2}; Fla=function(a,b){for(var c;;){if(0===a.ac&&(yr(a),0===a.ac)){if(0===b)return 1;break}a.Qe=0;c=mr(a,0,a.window[a.zb]);a.ac--;a.zb++;if(c&&(tr(a,!1),0===a.Zd.Be))return 1}a.Rh=0;return 4===b?(tr(a,!0),0===a.Zd.Be?3:4):a.Wl&&(tr(a,!1),0===a.Zd.Be)?1:2}; Br=function(a,b,c,d,e){this.t3=a;this.D4=b;this.R4=c;this.C4=d;this.func=e}; Gla=function(){this.Zd=null;this.status=0;this.qg=null;this.wrap=this.pending=this.fD=this.Zl=0;this.Gd=null;this.Tm=0;this.method=8;this.Uy=-1;this.Tt=this.aQ=this.Qi=0;this.window=null;this.WY=0;this.head=this.jp=null;this.MV=this.iU=this.strategy=this.level=this.WM=this.xV=this.Tk=this.ac=this.Zy=this.zb=this.Bv=this.UW=this.Qe=this.wk=this.kq=this.jq=this.hM=this.dG=this.oe=0;this.Dj=new Yq.Fp(1146);this.Pu=new Yq.Fp(122);this.Di=new Yq.Fp(78);pr(this.Dj);pr(this.Pu);pr(this.Di);this.ES=this.jF= this.sG=null;this.Lp=new Yq.Fp(16);this.Ag=new Yq.Fp(573);pr(this.Ag);this.Iy=this.mq=0;this.depth=new Yq.Fp(573);pr(this.depth);this.Nh=this.Wi=this.Rh=this.matches=this.Wz=this.Oq=this.cB=this.Wl=this.vC=this.IM=0}; Hla=function(a,b){if(!a||!a.state||5b)return a?or(a,-2):-2;var c=a.state;if(!a.Sj||!a.input&&0!==a.Ui||666===c.status&&4!==b)return or(a,0===a.Be?-5:-2);c.Zd=a;var d=c.Uy;c.Uy=b;if(42===c.status)if(2===c.wrap)a.Id=0,ur(c,31),ur(c,139),ur(c,8),c.Gd?(ur(c,(c.Gd.text?1:0)+(c.Gd.Ns?2:0)+(c.Gd.gs?4:0)+(c.Gd.name?8:0)+(c.Gd.comment?16:0)),ur(c,c.Gd.time&255),ur(c,c.Gd.time>>8&255),ur(c,c.Gd.time>>16&255),ur(c,c.Gd.time>>24&255),ur(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),ur(c,c.Gd.os&255),c.Gd.gs&& c.Gd.gs.length&&(ur(c,c.Gd.gs.length&255),ur(c,c.Gd.gs.length>>8&255)),c.Gd.Ns&&(a.Id=xr(a.Id,c.qg,c.pending,0)),c.Tm=0,c.status=69):(ur(c,0),ur(c,0),ur(c,0),ur(c,0),ur(c,0),ur(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),ur(c,3),c.status=113);else{var e=8+(c.aQ-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.zb&&(e|=32);c.status=113;vr(c,e+(31-e%31));0!==c.zb&&(vr(c,a.Id>>>16),vr(c,a.Id&65535));a.Id=1}if(69===c.status)if(c.Gd.gs){for(e=c.pending;c.Tm<(c.Gd.gs.length& 65535)&&(c.pending!==c.Zl||(c.Gd.Ns&&c.pending>e&&(a.Id=xr(a.Id,c.qg,c.pending-e,e)),qr(a),e=c.pending,c.pending!==c.Zl));)ur(c,c.Gd.gs[c.Tm]&255),c.Tm++;c.Gd.Ns&&c.pending>e&&(a.Id=xr(a.Id,c.qg,c.pending-e,e));c.Tm===c.Gd.gs.length&&(c.Tm=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Gd.name){e=c.pending;do{if(c.pending===c.Zl&&(c.Gd.Ns&&c.pending>e&&(a.Id=xr(a.Id,c.qg,c.pending-e,e)),qr(a),e=c.pending,c.pending===c.Zl)){var f=1;break}f=c.Tme&&(a.Id=xr(a.Id,c.qg,c.pending-e,e));0===f&&(c.Tm=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Gd.comment){e=c.pending;do{if(c.pending===c.Zl&&(c.Gd.Ns&&c.pending>e&&(a.Id=xr(a.Id,c.qg,c.pending-e,e)),qr(a),e=c.pending,c.pending===c.Zl)){f=1;break}f=c.Tme&&(a.Id=xr(a.Id,c.qg,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&& (c.Gd.Ns?(c.pending+2>c.Zl&&qr(a),c.pending+2<=c.Zl&&(ur(c,a.Id&255),ur(c,a.Id>>8&255),a.Id=0,c.status=113)):c.status=113);if(0!==c.pending){if(qr(a),0===a.Be)return c.Uy=-1,0}else if(0===a.Ui&&(b<<1)-(4>=8,c.Nh-=8)):5!==b&&(cr(c,0,3),wla(c,0,0),3===b&&(pr(c.head),0===c.ac&&(c.zb=0,c.wk=0,c.Rh=0))),qr(a),0===a.Be))return c.Uy=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(ur(c,a.Id&255),ur(c,a.Id>>8&255),ur(c,a.Id>>16&255),ur(c,a.Id>>24&255),ur(c,a.qw&255),ur(c,a.qw>>8&255),ur(c,a.qw>>16&255),ur(c,a.qw>>24&255)):(vr(c,a.Id>>>16),vr(c,a.Id&65535));qr(a);0a.Ut&&(a.Ut+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Zd=new Ila;this.Zd.Be=0;var b=this.Zd;var c=a.level,d=a.method,e=a.Ut,f=a.J4,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15f||9e||15c||9h||4c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Id=2===c.wrap?0:1;c.Uy=0;if(!Jla){d=Array(16);for(f=h=0;28>f;f++)for(hr[f]=h,e=0;e< 1<f;f++)for(kr[f]=h,e=0;e<1<>=7;30>f;f++)for(kr[f]=h<<7,e=0;e<1<=e;e++)d[e]=0;for(e=0;143>=e;)rr[2*e+1]=8,e++,d[8]++;for(;255>=e;)rr[2*e+1]=9,e++,d[9]++;for(;279>=e;)rr[2*e+1]=7,e++,d[7]++;for(;287>=e;)rr[2*e+1]=8,e++,d[8]++;tla(rr,287,d);for(e=0;30>e;e++)sr[2*e+1]=5,sr[2*e]=sla(e,5);Kla=new $q(rr,gr,257,286,15);Lla=new $q(sr,jr,0,30,15);Mla=new $q([],Nla,0,19,7);Jla=!0}c.sG=new ar(c.Dj,Kla); c.jF=new ar(c.Pu,Lla);c.ES=new ar(c.Di,Mla);c.Wi=0;c.Nh=0;ula(c);c=0}else c=or(b,-2);0===c&&(b=b.state,b.WY=2*b.Qi,pr(b.head),b.WM=Cr[b.level].D4,b.iU=Cr[b.level].t3,b.MV=Cr[b.level].R4,b.xV=Cr[b.level].C4,b.zb=0,b.wk=0,b.ac=0,b.Rh=0,b.Qe=b.Tk=2,b.Bv=0,b.oe=0);b=c}}else b=-2;if(0!==b)throw Error(nr[b]);a.header&&(b=this.Zd)&&b.state&&2===b.state.wrap&&(b.state.Gd=a.header);if(a.eB){var n;"string"===typeof a.eB?n=rla(a.eB):"[object ArrayBuffer]"===Ola.call(a.eB)?n=new Uint8Array(a.eB):n=a.eB;a=this.Zd; f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.ac)b=-2;else{1===b&&(a.Id=wr(a.Id,f,h,0));n.wrap=0;h>=n.Qi&&(0===b&&(pr(n.head),n.zb=0,n.wk=0,n.Rh=0),c=new Yq.Iw(n.Qi),Yq.Jx(c,f,h-n.Qi,n.Qi,0),f=c,h=n.Qi);c=a.Ui;d=a.Fv;e=a.input;a.Ui=h;a.Fv=0;a.input=f;for(yr(n);3<=n.ac;){f=n.zb;h=n.ac-2;do n.oe=(n.oe<=-54- -15*Math.pow(4,1)?(0,c[5])((0,c[2])((0,c[22])(c[40],c[78]),c[33],c[37],c[17]),c[57],(0,c[69])(c[20],c[29]),c[56],c[45]):(0,c[31])((0,c[69])(c[10],c[49]),c[65-Math.pow(7,1)-57],((0,c[28])(c[36]),(0,c[27])((0,c[5])(),c[29],c[85])),c[28],c[36])),-10>=c[58]&&(((0,c[27])((0,c[0])(), c[45],c[85]),c[28])(c[Math.pow(4,4)- -12816+-13036]),5)||(0,c[1])((0,c[32])(c[39],c[79]),c[4],c[Math.pow(8,5)+-23328-new Date("1970-01-01T10:07:14.000+07:30")/1E3],c[47]),-4>=c[63]&&(10===c[40]||((((0,c[67])(c[36],c[37]),(0,c[55])(c[15],c[47]),c[64])(c[46],c[37]),c[30])(c[-72+99*Math.pow(1,5)],c[40]),0))&&((0,c[19])(c[34],c[22]),((0,c[4])(c[86],c[34]),c[25])((0,c[69])(),c[47],c[83]),c[4])(c[91],c[43]),c[9]!=new Date("1970-01-01T03:30:03.000+03:30")/1E3&&(-8!==c[60]?((((0,c[55])(c[24],c[82]),((0,c[79])(c[new Date("1970-01-01T03:30:36.000+03:30")/ 1E3],c[5]),c[34])((0,c[91])(c[43],c[83]),c[91],c[46],c[73]),c[82])(c[50],c[2356+Math.pow(6,new Date("1970-01-01T05:45:05.000+05:45")/1E3)+-10078]),c[94])(c[38],c[64]),c[new Date("1969-12-31T16:45:57.000-07:15")/1E3])(c[new Date("1969-12-31T19:00:54.000-05:00")/1E3],c[93]):(((((0,c[53])(c[70]),c[46])(c[54],c[20]),c[31])(c[5],c[64])*(0,c[94])(c[69],c[61]),(0,c[53])(c[61]),c[52])((0,c[30])(),c[54],c[12]),c[31])(c[0],c[64])),-10===c[85]?(0,c[57])(c[new Date("1969-12-31T22:00:14.000-02:00")/1E3],c[6380+ Math.pow(1,1)-6368]):(0,c[94])(c[32],c[70])}try{0>c[58]&&(-4!==c[50]&&((((0,c[25])((0,c[31])(c[58],c[74]),c[46],c[64],c[47]),(0,c[53])(c[74]),c[52])((0,c[30])(),c[74],c[15]),c[94])(c[90],c[54]),[])||(0,c[17])((0,c[28])(c[54]),(0,c[31])(c[83],c[61])%(0,c[57])(c[70],c[16]),c[25],(0,c[52])((0,c[24])(),c[74],c[12]),c[57],c[74],c[65])),1!==c[47]&&(-4>c[77]?(0,c[31])(c[55],c[54]):(0,c[82])(c[66],c[64])),4m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=vma(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.La;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m, p)}},b.method,d,b.headers,b.responseType,b.withCredentials); d=b.timeout||0;if(b.onTimeout&&0=m||403===Vy(p.xhr))return Cf(new dz("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0a;a++)this.u.push(0);this.B=0;this.qa=g.$z(window,"mousemove",(0,g.Wa)(this.ea,this));this.V=g.Yy((0,g.Wa)(this.ma,this),25)}; fA=function(a){g.D.call(this);this.V=[];this.Hb=a||this}; gA=function(a,b,c,d){for(var e=0;e=f)Ina(a,m,u,h,y,b.join(),e),l=y;G.La(2);break;case 3:return G.return(Promise.reject(l))}})}; Ina=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.VA&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&SA("QUOTA_EXCEEDED",{dbName:UA(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.VA&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),SA("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Jna(a,!1,d,f,b,h.tag),RA(e)):Jna(a,!0,d, f,b,h.tag)}; Jna=function(a,b,c,d,e,f){SA("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; hB=function(a){this.j=a}; g.oB=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; Kna=function(a,b){return g.pB(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; Lna=function(a,b,c){var d=[];return g.pB(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; Nna=function(a){return"getAllKeys"in IDBObjectStore.prototype?dB(a.j.getAllKeys(void 0,void 0)):Mna(a)}; Mna=function(a){var b=[];return g.Ona(a,{query:void 0},function(c){b.push(c.RF());return c.continue()}).then(function(){return b})}; g.lB=function(a,b,c){return dB(a.j.put(b,c))}; g.pB=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return qB(a).then(function(d){return eB(d,c)})}; g.Ona=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return fB(a).then(function(e){return eB(e,c)})}; nB=function(a){var b=this;this.j=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()}); b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)}); b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.u){e=g.VA;for(var f=b.j.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; g.DB=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return qB(a).then(function(d){return eB(d,c)})}; Rna=function(a,b){this.request=a;this.cursor=b}; qB=function(a){return dB(a).then(function(b){return b?new Rna(a,b):null})}; Sna=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new Gna(h.result,{closed:q}));return t} var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.g9,p=c.upgrade,q=c.closed,t;h.addEventListener("upgradeneeded",function(u){try{if(null===u.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&"none"!==u.dataLoss&&SA("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:UA(a)});var y=f(),B=new nB(h.transaction); p&&p(y,function(G){return u.oldVersion=G},B); B.done.catch(function(G){e(G)})}catch(G){e(G)}}); h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())}); u.addEventListener("close",function(){SA("IDB_UNEXPECTEDLY_CLOSED",{dbName:UA(a),dbVersion:u.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; Tna=function(a,b,c){c=void 0===c?{}:c;return Sna(a,b,c)}; EB=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.A(function(h){if(1==h.j)return g.xa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Ena(c),4); if(2!=h.j)return g.ya(h,0);f=g.za(h);throw ZA(f,a,"",-1);})}; FB=function(a,b){this.name=a;this.options=b;this.B=!0;this.D=this.C=0}; Una=function(a,b){return new g.VA("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.GB=function(a,b){if(!b)throw g.$A("openWithToken",UA(a.name));return a.open()}; Vna=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.z(d,g.GB(HB,b),2);c=d.u;return d.return(g.kB(c,["databases"],{Zb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.lB(f,a).then(function(){})})}))})}; IB=function(a,b){var c;return g.A(function(d){if(1==d.j)return a?g.z(d,g.GB(HB,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})}; Wna=function(a,b){var c,d;return g.A(function(e){return 1==e.j?(c=[],g.z(e,g.GB(HB,b),2)):3!=e.j?(d=e.u,g.z(e,g.kB(d,["databases"],{Zb:!0,mode:"readonly"},function(f){c.length=0;return g.pB(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})}; Xna=function(a,b){return Wna(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)}; Yna=function(){var a,b,c,d;return g.A(function(e){switch(e.j){case 1:a=KA();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(JB&&wz()&&!xz()||g.KB)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.xa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.z(e,Vna(d,LB),4);case 4:return g.z(e,IB("yt-idb-test-do-not-use",LB),5);case 5:return e.return(!0);case 2:return g.za(e),e.return(!1)}})}; Zna=function(){if(void 0!==MB)return MB;QA=!0;return MB=Yna().then(function(a){QA=!1;var b;if(null!=(b=JA())&&b.j){var c;b={hasSucceededOnce:(null==(c=KA())?void 0:c.hasSucceededOnce)||a};var d;null==(d=JA())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; NB=function(){return g.Na("ytglobal.idbToken_")||void 0}; g.OB=function(){var a=NB();return a?Promise.resolve(a):Zna().then(function(b){(b=b?LB:void 0)&&g.Ma("ytglobal.idbToken_",b);return b})}; $na=function(a){if(!g.AA())throw a=new g.VA("AUTH_INVALID",{dbName:a}),RA(a),a;var b=g.zA();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; aoa=function(a,b,c,d){var e,f,h,l,m,n;return g.A(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.OB(),2);case 2:h=p.u;if(!h)throw l=g.$A("openDbImpl",a,b),g.Cy("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),RA(l),l;TA(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:$na(a);g.xa(p,3);return g.z(p,Vna(m,h),5);case 5:return g.z(p,Tna(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.za(p),g.xa(p,7),g.z(p,IB(m.actualName, h),9);case 9:g.ya(p,8);break;case 7:g.za(p);case 8:throw n;}})}; boa=function(a,b,c){c=void 0===c?{}:c;return aoa(a,b,!1,c)}; coa=function(a,b,c){c=void 0===c?{}:c;return aoa(a,b,!0,c)}; doa=function(a,b){b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.z(e,g.OB(),2);if(3!=e.j){c=e.u;if(!c)return e.return();TA(a);d=$na(a);return g.z(e,EB(d.actualName,b),3)}return g.z(e,IB(d.actualName,c),0)})}; eoa=function(a,b,c){a=a.map(function(d){return g.A(function(e){return 1==e.j?g.z(e,EB(d.actualName,b),2):g.z(e,IB(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; foa=function(a){var b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.z(e,g.OB(),2);if(3!=e.j){c=e.u;if(!c)return e.return();TA(a);return g.z(e,Xna(a,c),3)}d=e.u;return g.z(e,eoa(d,b,c),0)})}; goa=function(a,b){b=void 0===b?{}:b;var c;return g.A(function(d){if(1==d.j)return g.z(d,g.OB(),2);if(3!=d.j){c=d.u;if(!c)return d.return();TA(a);return g.z(d,EB(a,b),3)}return g.z(d,IB(a,c),0)})}; PB=function(a,b){FB.call(this,a,b);this.options=b;TA(a)}; hoa=function(a,b){var c;return function(){c||(c=new PB(a,b));return c}}; g.QB=function(a,b){return hoa(a,b)}; RB=function(a){return g.GB(ioa(),a)}; joa=function(a,b,c,d){var e,f,h;return g.A(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.gB)()},g.z(l,RB(c),2);case 2:return f=l.u,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.mB(f,"hotConfigStore",e),4);case 4:return h=l.u,l.return(h)}})}; koa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.gB)()},g.z(m,RB(d),2);case 2:return h=m.u,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.mB(h,"coldConfigStore",f),4);case 4:return l=m.u,m.return(l)}})}; loa=function(a){var b,c;return g.A(function(d){return 1==d.j?g.z(d,RB(a),2):3!=d.j?(b=d.u,c=void 0,g.z(d,g.kB(b,["coldConfigStore"],{mode:"readwrite",Zb:!0},function(e){return g.DB(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; moa=function(a){var b,c;return g.A(function(d){return 1==d.j?g.z(d,RB(a),2):3!=d.j?(b=d.u,c=void 0,g.z(d,g.kB(b,["hotConfigStore"],{mode:"readwrite",Zb:!0},function(e){return g.DB(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; noa=function(){return g.A(function(a){return g.z(a,foa("ytGcfConfig"),0)})}; SB=function(){g.D.apply(this,arguments);this.j=[]}; YB=function(){var a=this;this.D=!1;this.B=this.C=0;this.J=new SB;this.ke={D8a:function(){a.D=!0}, U7a:function(){return a.j}, u9a:function(b){TB(a,b)}, Wq:function(b){a.Wq(b)}, q9a:function(b){UB(a,b)}, j3:function(){return a.coldHashData}, l3:function(){return a.hotHashData}, g8a:function(){return a.u}, a8a:function(){return VB()}, c8a:function(){return WB()}, b8a:function(){return g.Na("yt.gcf.config.coldHashData")}, d8a:function(){return g.Na("yt.gcf.config.hotHashData")}, J9a:function(){ooa(a)}, l9a:function(){a.Wq(void 0);XB(a);delete YB.instance}, s9a:function(b){a.B=b}, W7a:function(){return a.B}}}; poa=function(){if(!YB.instance){var a=new YB;YB.instance=a}return YB.instance}; soa=function(a){var b;g.A(function(c){if(1==c.j)return g.Cy("gcf_config_store_enabled")||g.Cy("delete_gcf_config_db")?g.Cy("gcf_config_store_enabled")?g.z(c,g.OB(),3):c.La(2):c.return();2!=c.j&&((b=c.u)&&g.AA()&&!g.Cy("delete_gcf_config_db")?(a.D=!0,ooa(a)):(qoa(a),roa(a)));return g.Cy("delete_gcf_config_db")?g.z(c,noa(),0):c.La(0)})}; toa=function(a){var b,c,d,e,f,h;return g.A(function(l){switch(l.j){case 1:if(a.u)return l.return(WB());if(!a.D)return b=g.$A("getHotConfig IDB not initialized"),Jy(b),l.return(Promise.reject(b));c=NB();d=g.zy("TIME_CREATED_MS");if(!c){e=g.$A("getHotConfig token error");Jy(e);l.La(2);break}return g.z(l,moa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return TB(a,f.config),a.Wq(f.hashData),l.return(WB());case 2:roa(a);if(!(c&&a.u&&a.hotHashData)){l.La(4);break}return g.z(l,joa(a.u,a.hotHashData,c,d),4);case 4:return a.u? l.return(WB()):(h=new g.yA("Config not available in ytConfig"),Jy(h),l.return(Promise.reject(h)))}})}; voa=function(a){var b,c,d,e,f,h;return g.A(function(l){switch(l.j){case 1:if(a.j)return l.return(VB());if(!a.D)return b=g.$A("getColdConfig IDB not initialized"),Jy(b),l.return(Promise.reject(b));c=NB();d=g.zy("TIME_CREATED_MS");if(!c){e=g.$A("getColdConfig");Jy(e);l.La(2);break}return g.z(l,loa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return UB(a,f.config),uoa(a,f.configData),XB(a,f.hashData),l.return(VB());case 2:qoa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.La(4);break}return g.z(l,koa(a.j, a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(VB()):(h=new g.yA("Config not available in ytConfig"),Jy(h),l.return(Promise.reject(h)))}})}; ooa=function(a){if(!a.u||!a.j){if(!NB()){var b=g.$A("scheduleGetConfigs");Jy(b)}a.C||(a.C=g.Ip.Ai(function(){return g.A(function(c){switch(c.j){case 1:return g.xa(c,2),g.z(c,toa(a),4);case 4:g.ya(c,3);break;case 2:g.za(c);case 3:return g.xa(c,5),g.z(c,voa(a),7);case 7:g.ya(c,6);break;case 5:g.za(c);case 6:a.C&&(a.C=0),g.wa(c)}})},100))}}; woa=function(a,b,c){var d,e,f;return g.A(function(h){switch(h.j){case 1:if(!g.Cy("update_log_event_config")){h.La(0);break}c&&TB(a,c);a.Wq(b);d=NB();if(!d){h.La(3);break}if(c){h.La(4);break}return g.z(h,moa(d),5);case 5:e=h.u,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,joa(c,b,d),3);case 3:if(c)for(var l=c,m=g.v(a.J.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.wa(h)}})}; xoa=function(a,b,c){var d,e,f,h;return g.A(function(l){if(1==l.j){if(!g.Cy("update_log_event_config"))return l.La(0);XB(a,b);return(d=NB())?c?l.La(4):g.z(l,loa(d),5):l.La(0)}4!=l.j&&(e=l.u,c=null==(f=e)?void 0:f.config);if(!c)return l.La(0);h=c.configData;return g.z(l,koa(c,b,h,d),0)})}; qoa=function(a){UB(a,g.zy("RAW_COLD_CONFIG_GROUP"));XB(a,g.zy("SERIALIZED_COLD_HASH_DATA"));var b;uoa(a,null==(b=a.j)?void 0:b.configData)}; roa=function(a){TB(a,g.zy("RAW_HOT_CONFIG_GROUP"));a.Wq(g.zy("SERIALIZED_HOT_HASH_DATA"))}; TB=function(a,b){a.u=b;g.Ma("yt.gcf.config.hotConfigGroup",a.u||null)}; UB=function(a,b){a.j=b;g.Ma("yt.gcf.config.coldConfigGroup",a.j||null)}; XB=function(a,b){a.coldHashData=b;g.Ma("yt.gcf.config.coldHashData",a.coldHashData||null)}; uoa=function(a,b){a.configData=b;g.Ma("yt.gcf.config.coldConfigData",a.configData||null)}; WB=function(){return g.Na("yt.gcf.config.hotConfigGroup")}; VB=function(){return g.Na("yt.gcf.config.coldConfigGroup")}; yoa=function(){return"INNERTUBE_API_KEY"in wy&&"INNERTUBE_API_VERSION"in wy}; g.ZB=function(){return{innertubeApiKey:g.zy("INNERTUBE_API_KEY"),innertubeApiVersion:g.zy("INNERTUBE_API_VERSION"),iG:g.zy("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),qM:g.zy("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),MU:g.zy("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.zy("INNERTUBE_CONTEXT_CLIENT_VERSION"),sM:g.zy("INNERTUBE_CONTEXT_HL"),rM:g.zy("INNERTUBE_CONTEXT_GL"),NU:g.zy("INNERTUBE_HOST_OVERRIDE")||"",OU:!!g.zy("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),tM:!!g.zy("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.zy("SERIALIZED_CLIENT_CONFIG_DATA")}}; g.$B=function(a){var b={client:{hl:a.sM,gl:a.rM,clientName:a.qM,clientVersion:a.innertubeContextClientVersion,configInfo:a.iG}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.La.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=Ey();""!==c&&(b.client.experimentsToken=c);c=Fy();0Poa||h=Soa&&(lC++,g.Cy("abandon_compression_after_N_slow_zips")?kC===g.Dy("compression_disable_point")&&lC>Toa&&(jC=!1):jC=!1);Uoa(f);c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=l;c.postParams=void 0}d(a,c)}catch(n){Jy(n),d(a,c)}else d(a, c)}; Voa=function(a){var b=void 0===b?!1:b;var c=(0,g.gB)(),d={startTime:c,ticks:{},infos:{}};if(jC){if(!a.body)return a;try{var e="string"===typeof a.body?a.body:JSON.stringify(a.body),f=Ooa(e);if(null!=f&&(f>Poa||f=Soa)if(lC++,g.Cy("abandon_compression_after_N_slow_zips")){b=lC/kC;var m=Toa/g.Dy("compression_disable_point");0=m&&(jC=!1)}else jC=!1;Uoa(d)}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=h;return a}catch(n){return Jy(n),a}}else return a}; Ooa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return Jy(b),null}}; Uoa=function(a){g.Cy("gel_compression_csi_killswitch")||!g.Cy("log_gel_compression_latency")&&!g.Cy("log_gel_compression_latency_lr")||iC("gel_compression",a,{sampleRate:.1})}; oC=function(a){var b=this;this.RE=this.hg=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){}; this.Gy=function(){}; this.now=Date.now;this.gB=!1;this.ke={r9a:function(p){b.Bf=p}, K9a:function(){b.Zz()}, X1:function(){b.zK()}, dC:function(p){return g.A(function(q){return g.z(q,b.dC(p),0)})}, KH:function(p,q){return b.KH(p,q)}, NH:function(){b.NH()}}; var c;this.eY=null!=(c=a.eY)?c:100;var d;this.rX=null!=(d=a.rX)?d:1;var e;this.kX=null!=(e=a.kX)?e:2592E6;var f;this.fX=null!=(f=a.fX)?f:12E4;var h;this.qX=null!=(h=a.qX)?h:5E3;var l;this.Bf=null!=(l=a.Bf)?l:void 0;this.nF=!!a.nF;var m;this.YE=null!=(m=a.YE)?m:.1;var n;this.sH=null!=(n=a.sH)?n:10;a.handleError&&(this.handleError=a.handleError);a.Gy&&(this.Gy=a.Gy);a.gB&&(this.gB=a.gB);a.RE&&(this.RE=a.RE);this.ob=a.ob;this.hn=a.hn;this.lh=a.lh;this.fh=a.fh;this.Vq=a.Vq;this.aO=a.aO;this.oN=a.oN;nC(this)&& (!this.ob||this.ob("networkless_logging"))&&Woa(this)}; Woa=function(a){nC(a)&&!a.gB&&(a.hg=!0,a.nF&&Math.random()<=a.YE&&a.lh.d2(a.Bf),a.NH(),a.fh.Th()&&a.Zz(),a.fh.Sa(a.aO,a.Zz.bind(a)),a.fh.Sa(a.oN,a.zK.bind(a)))}; Zoa=function(a,b){if(!nC(a))throw g.$A("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var h,l,m,n;return g.A(function(p){switch(p.j){case 1:h=Xoa(f);(l=Yoa(f))&&a.ob&&a.ob("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.ob&&a.ob("nwl_consider_error_code")&&h||a.ob&&!a.ob("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.sH)){p.La(2);break}if(!a.fh.SH){p.La(3);break}return g.z(p,a.fh.SH(),3);case 3:if(a.fh.Th()){p.La(2);break}c(e,f);if(!a.ob||!a.ob("nwl_consider_error_code")||void 0===(null==(m= b)?void 0:m.id)){p.La(6);break}return g.z(p,a.lh.MO(b.id,a.Bf,!1),6);case 6:return p.return();case 2:if(a.ob&&a.ob("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.sH)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.La(8);break}return b.sendCount=a?!1:!0}; Yoa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)}; $oa=function(){if(qC)return qC();var a={};qC=g.QB("LogsDatabaseV2",{Jq:(a.LogsRequestsStore={Hm:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.iB(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.oB(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&jB(b,"sapisid");c(9)&&jB(b,"SWHealthLog")}, version:9});return qC()}; rC=function(a){return g.GB($oa(),a)}; bpa=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.j)return c={startTime:(0,g.gB)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,rC(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.zy("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.mB(d,"LogsRequestsStore",e),3);f=h.u;c.ticks.tc=(0,g.gB)();apa(c);return h.return(f)})}; cpa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j)return c={startTime:(0,g.gB)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(n,rC(b),2);if(3!=n.j)return d=n.u,e=g.zy("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.gB)()],l=IDBKeyRange.bound(f,h),m=void 0,g.z(n,g.kB(d,["LogsRequestsStore"],{mode:"readwrite",Zb:!0},function(p){return g.DB(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&& (m=q.getValue(),"NEW"===a&&(m.status="QUEUED",q.update(m)))})}),3); c.ticks.tc=(0,g.gB)();apa(c);return n.return(m)})}; dpa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.z(d,rC(b),2);c=d.u;return d.return(g.kB(c,["LogsRequestsStore"],{mode:"readwrite",Zb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.lB(f,h).then(function(){return h})})}))})}; epa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.A(function(f){if(1==f.j)return g.z(f,rC(b),2);e=f.u;return f.return(g.kB(e,["LogsRequestsStore"],{mode:"readwrite",Zb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.lB(l,m).then(function(){return m})):g.bB.resolve(void 0)})}))})}; fpa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.z(d,rC(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})}; gpa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.z(d,rC(a),2);b=d.u;c=(0,g.gB)()-2592E6;return g.z(d,g.kB(b,["LogsRequestsStore"],{mode:"readwrite",Zb:!0},function(e){return g.pB(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; hpa=function(){g.A(function(a){return g.z(a,foa("LogsDatabaseV2"),0)})}; apa=function(a){g.Cy("nwl_csi_killswitch")||iC("networkless_performance",a,{sampleRate:1})}; jpa=function(a){return g.GB(ipa(),a)}; kpa=function(a){var b,c;g.A(function(d){if(1==d.j)return g.z(d,jpa(a),2);b=d.u;c=(0,g.gB)()-2592E6;return g.z(d,g.kB(b,["SWHealthLog"],{mode:"readwrite",Zb:!0},function(e){return g.pB(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})}; lpa=function(a){var b;return g.A(function(c){if(1==c.j)return g.z(c,jpa(a),2);b=c.u;return g.z(c,b.clear("SWHealthLog"),0)})}; g.sC=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.tz()){if(a){a=g.Xd(g.de(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");h.f9a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 "));h.e9a&&(a=a.replace(/(\r\n|\n|\r)/g,"
"));h.g9a&&(a=a.replace(/(\t+)/g,'$1'));h=g.ke(a);a=g.ze(g.Wi(g.je(h).toString()))}g.cc(a)|| (h=Xe("IFRAME",{src:'javascript:""',style:"display:none"}),Ie(h).body.appendChild(h))}}else if(e)az(a,b,"POST",e,d);else if(g.zy("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)az(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Eka({url:a});if(l.B&&l.u||l.C){var m=aj(g.cj(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==vj(a,"ri"));break b}}catch(p){}n=!1}n?mpa(a)?(b&&b(),h=!0):h=!1:h=!1;h||npa(a,b)}}; mpa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; npa=function(a,b){var c=new Image,d=""+opa++;tC[d]=c;c.onload=c.onerror=function(){b&&tC[d]&&b();delete tC[d]}; c.src=a}; uC=function(){this.j=new Map;this.u=!1}; vC=function(){if(!uC.instance){var a=g.Na("yt.networkRequestMonitor.instance")||new uC;g.Ma("yt.networkRequestMonitor.instance",a);uC.instance=a}return uC.instance}; xC=function(){wC||(wC=new IA("yt.offline"));return wC}; ppa=function(a){if(g.Cy("offline_error_handling")){var b=xC().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);xC().set("errors",b,2592E3,!0)}}; yC=function(){g.Cd.call(this);var a=this;this.u=!1;this.j=Kka();this.j.Sa("networkstatus-online",function(){if(a.u&&g.Cy("offline_error_handling")){var b=xC().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.yA(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.Hy(d)}xC().set("errors",{},2592E3,!0)}}})}; qpa=function(){if(!yC.instance){var a=g.Na("yt.networkStatusManager.instance")||new yC;g.Ma("yt.networkStatusManager.instance",a);yC.instance=a}return yC.instance}; g.zC=function(a){a=void 0===a?{}:a;g.Cd.call(this);var b=this;this.j=this.C=0;this.u=qpa();var c=g.Na("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.yH?(this.yH=a.yH,c("networkstatus-online",function(){rpa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){rpa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; rpa=function(a,b){a.yH?a.j?(g.Ip.Jm(a.C),a.C=g.Ip.Ai(function(){a.B!==b&&(a.dispatchEvent(b),a.B=b,a.j=(0,g.gB)())},a.yH-((0,g.gB)()-a.j))):(a.dispatchEvent(b),a.B=b,a.j=(0,g.gB)()):a.dispatchEvent(b)}; BC=function(){var a=oC.call;AC||(AC=new g.zC({Q8a:!0,D7a:!0}));a.call(oC,this,{lh:{d2:gpa,iy:fpa,ZT:cpa,z4:dpa,MO:epa,set:bpa},fh:AC,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;Jy(new g.yA(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.Hy(b)}, Gy:Jy,Vq:spa,now:g.gB,XY:ppa,hn:g.FA(),aO:"publicytnetworkstatus-online",oN:"publicytnetworkstatus-offline",nF:!0,YE:.1,sH:g.Dy("potential_esf_error_limit",10),ob:g.Cy,gB:!(g.AA()&&"www.youtube-nocookie.com"!==g.dj(document.location.toString()))});this.u=new g.jk;g.Cy("networkless_immediately_drop_all_requests")&&hpa();goa("LogsDatabaseV2")}; CC=function(){var a=g.Na("yt.networklessRequestController.instance");a||(a=new BC,g.Ma("yt.networklessRequestController.instance",a),g.Cy("networkless_logging")&&g.OB().then(function(b){a.Bf=b;Woa(a);a.u.resolve();a.nF&&Math.random()<=a.YE&&a.Bf&&kpa(a.Bf);g.Cy("networkless_immediately_drop_sw_health_store")&&tpa(a)})); return a}; tpa=function(a){var b;g.A(function(c){if(!a.Bf)throw b=g.$A("clearSWHealthLogsDb"),b;return c.return(lpa(a.Bf).catch(function(d){a.handleError(d)}))})}; spa=function(a,b,c){b=g.Cy("web_fp_via_jspb")?Object.assign({},b):b;g.Cy("use_cfr_monitor")&&upa(a,b);if(g.Cy("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.gB)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.gB)())}c&&0===Object.keys(b).length?g.sC(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),mC(a,b.postBody,b,g.bz)):mC(a,JSON.stringify(b.postParams), b,cz):g.bz(a,b)}; upa=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){vC().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){vC().requestComplete(a,!0);d(e,f)}}; g.DC=function(a){this.config_=null;a?this.config_=a:yoa()&&(this.config_=g.ZB())}; g.EC=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.HV.bypassNetworkless)f.method="POST",d.HV.writeThenSend?CC().writeThenSend(n,f):CC().sendAndWrite(n,f);else if(d.compress)if(f.postBody){var q=f.postBody;"string"!==typeof q&&(q=JSON.stringify(f.postBody));mC(n,q,f,g.bz)}else mC(n,JSON.stringify(f.postParams),f,cz);else g.Cy("web_all_payloads_via_jspb")?g.bz(n,f):cz(n,f)}catch(t){if("InvalidAccessError"==t.name)Jy(Error("An extension is blocking network request."));else throw t; }} !g.zy("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Jy(new g.yA("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.yA("innertube xhrclient not ready",b,c,d),g.Hy(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, onError:function(p,q){if(d.onError)d.onError(q)}, onFetchError:function(p){if(d.onError)d.onError(p)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.NU;h&&(c=h);var l=a.config_.OU||!1;h=Koa(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.tM&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=Py(""+c+b,l);g.Na("ytNetworklessLoggingInitializationOptions")&& vpa.isNwlInitialized?Zna().then(function(p){e(p)}):e(!1)}; g.JC=function(a,b,c){var d=g.FC();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){GC[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; try{g.HC[a]?h():g.Xy(h,0)}catch(l){g.Hy(l)}},c); GC[e]=!0;IC[a]||(IC[a]=[]);IC[a].push(e);return e}return 0}; wpa=function(a){var b=g.JC("LOGGED_IN",function(c){a.apply(void 0,arguments);g.KC(b)})}; g.KC=function(a){var b=g.FC();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Wb(a,function(c){b.unsubscribeByKey(c);delete GC[c]}))}; g.LC=function(a,b){var c=g.FC();return c?c.publish.apply(c,arguments):!1}; ypa=function(a){var b=g.FC();if(b)if(b.clear(a),a)xpa(a);else for(var c in IC)xpa(c)}; g.FC=function(){return g.La.ytPubsubPubsubInstance}; xpa=function(a){IC[a]&&(a=IC[a],g.Wb(a,function(b){GC[b]&&delete GC[b]}),a.length=0)}; g.MC=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1f&&(c=a.substring(f,e),c=c.replace(zpa,""),c=c.replace(Apa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Bpa(a,b,c)}; Bpa=function(a,b,c){c=void 0===c?null:c;var d=Cpa(a),e=document.getElementById(d),f=e&&Vma(e),h=e&&!f;f?b&&b():(b&&(f=g.JC(d,b),b=""+g.Ua(b),Dpa[b]=f),h||(e=Epa(a,d,function(){Vma(e)||(Uma(e,"loaded","true"),g.LC(d),g.Xy(g.Xa(ypa,d),0))},c)))}; Epa=function(a,b,c,d){d=void 0===d?null:d;var e=g.Ye("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; d&&e.setAttribute("nonce",d);g.sk(e,g.Gr(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; Cpa=function(a){var b=document.createElement("a");g.le(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Fe(a)}; PC=function(a){var b=g.Ea.apply(1,arguments);if(!NC(a)||b.some(function(d){return!NC(d)}))throw Error("Only objects may be merged."); b=g.v(b);for(var c=b.next();!c.done;c=b.next())OC(a,c.value);return a}; OC=function(a,b){for(var c in b)if(NC(b[c])){if(c in a&&!NC(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});OC(a[c],b[c])}else if(QC(b[c])){if(c in a&&!QC(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Fpa(a[c],b[c])}else a[c]=b[c];return a}; Fpa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,NC(c)?a.push(OC({},c)):QC(c)?a.push(Fpa([],c)):a.push(c);return a}; NC=function(a){return"object"===typeof a&&!Array.isArray(a)}; QC=function(a){return"object"===typeof a&&Array.isArray(a)}; RC=function(a,b,c,d,e,f,h){g.D.call(this);this.Ea=a;this.jc=b;this.Nb=c;this.le=d;this.Va=e;this.u=f;this.j=h}; Jpa=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.Q(f,Gpa)}); c.Yz?(a.Ea.get().G.W().N("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.vu.filter(function(f){var h;return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?Hpa(a.j,d,e,b.slotId,c.ssdaiAdsConfig):SC(a.jc.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):SC(a.jc.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Ipa(a.u,b)):Hpa(a.j,c.vu,e,b.slotId,c.ssdaiAdsConfig)}; Lpa=function(a,b,c,d,e,f){var h=a.Va.get().fg(1);SC(a.jc.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Kpa(a.le.get(),c,d,e,h.clientPlaybackNonce,h.YS,h.daiEnabled,h,f)},b)}; UC=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!TC(a.Ca,c.value))return!1;return!0}; VC=function(){return""}; Mpa=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}}; WC=function(a,b,c,d){d=void 0===d?!1:d;qb.call(this,a);this.qk=c;this.wu=d;this.args=[];b&&this.args.push(b)}; XC=function(a,b,c){this.yr=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)}; Npa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")}; Opa=function(){this.Rr=[];this.Iq=[]}; ZC=function(){if(!YC){var a=YC=new Opa;a.Iq.length=0;a.Rr.length=0;Ppa(a,Qpa)}return YC}; Ppa=function(a,b){b.Iq&&a.Iq.push.apply(a.Iq,b.Iq);b.Rr&&a.Rr.push.apply(a.Rr,b.Rr)}; Rpa=function(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=$C(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=$C(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=$C(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity}; Spa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d=d.length&&pD(b)===d[0])return d;for(var e=[],f=0;f=a?BD||(BD=CD(function(){e();BD=void 0},0)):10<=f-l&&(cqa(c,d.tier),h.B=f)}; Ypa=function(a,b){if("log_event"===a.endpoint){uD(a);var c=vD(a),d=new Map;d.set(c,[a.payload]);b&&(yD=new b);return new g.zf(function(e,f){yD&&yD.isReady()?DD(d,yD,e,f,{bypassNetworkless:!0},!0):e()})}}; aqa=function(a,b,c){if("log_event"===b.endpoint){uD(void 0,b);a=vD(b,!0);var d=new Map;d.set(a,[b.payload.toJSON()]);c&&(yD=new c);return new g.zf(function(e){yD&&yD.isReady()?ED(d,yD,e,{bypassNetworkless:!0},!0):e()})}}; vD=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new uy;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Jh(d,2,FD,c.playlistId);GD[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),HD[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; xD=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.zf(function(e,f){var h=AD(c,d);ID(h.u);ID(h.j);h.j=0;yD&&yD.isReady()?void 0===d&&g.Cy("enable_web_tiered_gel")?(JD(e,f,a,b,c,300),JD(e,f,a,b,c,200)):JD(e,f,a,b,c,d):(cqa(c,d),e())})}; JD=function(a,b,c,d,e,f){var h=yD;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;var l=new Map,m=new Map,n={isJspb:e,cttAuthInfo:d,tier:f},p={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.Cy("enable_web_tiered_gel")?tD().smartExtractMatchingEntries({keys:[n,p],sizeLimit:zD()}):tD().extractMatchingEntries(p),l.set(d,b),ED(l,h,a,c)):(l=g.Cy("enable_web_tiered_gel")?tD().smartExtractMatchingEntries({keys:[n,p],sizeLimit:zD()}):tD().extractMatchingEntries(p),m.set(d,l),DD(m,h,a,b,c));else if(e){b= g.v(Object.keys(wD));for(d=b.next();!d.done;d=b.next())m=d.value,f=g.Cy("enable_web_tiered_gel")?tD().smartExtractMatchingEntries({keys:[n,p],sizeLimit:zD()}):tD().extractMatchingEntries({isJspb:!0,cttAuthInfo:m}),0pqa&&(a=1);yy("BATCH_CLIENT_COUNTER",a);return a}; hqa=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]}; mqa=function(a,b,c){if(c.ud())var d=1;else if(c.getPlaylistId())d=2;else return;Nh(a,uy,4,c);a=Lh(a,mt,1)||new mt;c=Lh(a,lt,3)||new lt;var e=new kt;e.setToken(b);K(e,1,d);Sh(c,12,kt,e);Nh(a,lt,3,c)}; lqa=function(a){for(var b=[],c=0;cMath.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.yA(a);if(a.args)for(var f=g.v(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.slotType:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.ZD(a)}}; cE=function(a,b,c,d,e,f,h,l){g.D.call(this);this.jc=a;this.le=b;this.cK=c;this.Ea=d;this.j=e;this.Va=f;this.Ia=h;this.Nc=l}; era=function(a){for(var b=Array(a),c=0;ce)return new WC("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={En:new qq(a,e),qD:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Go=new qq(a,e)}return d; default:return new WC("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}}; wra=function(a){var b=1E3*a.startSecs;return new qq(b,b+1E3*a.Ug)}; DE=function(a){return g.Na("ytcsi."+(a||"")+"data_")||xra(a)}; EE=function(){var a=DE();a.info||(a.info={});return a.info}; FE=function(a){a=DE(a);a.metadata||(a.metadata={});return a.metadata}; GE=function(a){a=DE(a);a.tick||(a.tick={});return a.tick}; HE=function(a){a=DE(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}; IE=function(a){a=HE(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}; JE=function(a){var b=DE(a).nonce;b||(b=g.fE(16),DE(a).nonce=b);return b}; xra=function(a){var b={tick:{},info:{}};g.Ma("ytcsi."+(a||"")+"data_",b);return b}; KE=function(){var a=g.Na("ytcsi.debug");a||(a=[],g.Ma("ytcsi.debug",a),g.Ma("ytcsi.reference",{}));return a}; LE=function(a){a=a||"";var b=yra();if(b[a])return b[a];var c=KE(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d}; zra=function(a){a=a||"";var b=yra();b[a]&&delete b[a];var c=KE(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d}; yra=function(){var a=g.Na("ytcsi.reference");if(a)return a;KE();return g.Na("ytcsi.reference")}; ME=function(a){return Ara[a]||"LATENCY_ACTION_UNKNOWN"}; Fra=function(a,b,c){c=HE(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in Bra){c=Bra[a];g.Bb(Cra,c)&&(b=!!b);a in Dra&&"string"===typeof b&&(b=Dra[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h1E5*Math.random()&&(c=new g.yA("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.ZD(c)),!0):!1}; Gra=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; Hra=function(){var a;if(g.Cy("csi_use_performance_navigation_timing")||g.Cy("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==SE?void 0:null==(a=SE.getEntriesByType)?void 0:null==(b=a.call(SE,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=TE(e.requestStart),e.responseEnd=TE(e.responseEnd),e.redirectStart=TE(e.redirectStart),e.redirectEnd=TE(e.redirectEnd),e.domainLookupEnd=TE(e.domainLookupEnd),e.connectStart=TE(e.connectStart), e.connectEnd=TE(e.connectEnd),e.responseStart=TE(e.responseStart),e.secureConnectionStart=TE(e.secureConnectionStart),e.domainLookupStart=TE(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=SE.timing}else a=SE.timing;return a}; TE=function(a){return Math.round(UE()+a)}; UE=function(){return(g.Cy("csi_use_time_origin")||g.Cy("csi_use_time_origin_tvhtml5"))&&SE.timeOrigin?Math.floor(SE.timeOrigin):SE.timing.navigationStart}; VE=function(a){this.j=a}; g.WE=function(a){return new VE({trackingParams:a})}; Jra=function(a){var b=Ira++;return new VE({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})}; Kra=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a}; Lra=function(a){a=void 0===a?0:a;return g.Cy("new_csn_storage_design")?g.zy("client-screen-nonce-store",{})[a]:g.zy(Kra(a))}; Mra=function(a,b){b=void 0===b?0:b;if(g.Cy("new_csn_storage_design")){var c=g.zy("client-screen-nonce-store");c||(c={},yy("client-screen-nonce-store",c));c[b]=a}yy(Kra(b),a)}; XE=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a}; Nra=function(a){return g.zy(XE(void 0===a?0:a))}; g.YE=function(a){return(a=Nra(void 0===a?0:a))?new VE({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null}; Ora=function(){var a=g.zy("csn-to-ctt-auth-info");a||(a={},yy("csn-to-ctt-auth-info",a));return a}; Pra=function(){return Object.values(g.zy("client-screen-nonce-store",{})).filter(function(a){return void 0!==a})}; g.ZE=function(a){a=Lra(void 0===a?0:a);if(!a&&!g.zy("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null}; Rra=function(a){for(var b=g.v(Object.values(Qra)),c=b.next();!c.done;c=b.next())if(g.ZE(c.value)===a)return!0;return!1}; Sra=function(a,b,c){var d=Ora();(c=g.ZE(c))&&delete d[c];b&&(d[a]=b)}; $E=function(a){return Ora()[a]}; Ura=function(a,b,c,d){c=void 0===c?0:c;if(a!==Lra(c)||b!==g.zy(XE(c)))if(Sra(a,d,c),Mra(a,c),yy(XE(c),b),b=function(){setTimeout(function(){if(a)if(g.Cy("web_time_via_jspb")){var e=new xx;K(e,1,Tra);K(e,2,a);var f=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(f,xx,111,WD,e);VD("foregroundHeartbeatScreenAssociated",f)}else g.OA("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Tra,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()}; bF=function(a,b){aF("_start",a,b)}; Vra=function(a,b,c,d){if(null!==b){if("yt_lt"===a){var e="string"===typeof b?b:""+b;FE(c).loadType=e}(a=Fra(a,b,c))&&cF(a,c,d)}}; cF=function(a,b,c){if(!g.Cy("web_csi_via_jspb")||(void 0===c?0:c))c=LE(b||""),PC(c.info,a),a.loadType&&(c=a.loadType,FE(b).loadType=c),PC(IE(b),a),c=JE(b),b=DE(b).cttAuthInfo,PE().info(a,c,b);else{c=new Xx;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=UE()&&0c.duration?d:c},{duration:0}))&&0=b)}; HF=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.v(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Kc||a.has(d.Kc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.Kc,itag:d.itag,xtag:d.u,lang:(null==(e=d.Kc)?void 0:e.name)||"",langid:(null==(f=d.Kc)?void 0:f.id)||""})}else e=new g.AF(d.id,d.Kc),a.add(d.Kc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}}; IF=function(){g.D.apply(this,arguments);this.j=null}; vsa=function(a,b,c,d,e,f){if(a.j)return a.j;var h={},l=new Set,m={};if(JF(d)){for(var n in d.j)d.j.hasOwnProperty(n)&&(a=d.j[n],m[a.info.Qb]=[a.info]);return m}n=ssa(b,d,h);f&&e({aftsrt:KF(n)});for(var p={},q=g.v(Object.keys(n)),t=q.next();!t.done;t=q.next()){t=t.value;for(var u=g.v(n[t]),y=u.next();!y.done;y=u.next()){y=y.value;var B=y.itag,G=void 0,M=t+"_"+((null==(G=y.video)?void 0:G.fps)||0);p.hasOwnProperty(M)?!0===p[M]?m[t].push(y):h[B]=p[M]:(G=LF(b,y,c,d.isLive,l),!0!==G?(h[B]=G,"disablevp9hfr"=== G&&(p[M]="disablevp9hfr")):(m[t]=m[t]||[],m[t].push(y),p[M]=!0))}}f&&e({bfflt:KF(m)});for(var N in m)m.hasOwnProperty(N)&&(d=N,m[d]&&m[d][0].dh()&&(m[d]=m[d],m[d]=tsa(b,m[d],h),m[d]=usa(m[d],h)));f&&e(h);b=g.v(l.values());for(d=b.next();!d.done;d=b.next())(d=c.u.get(d.value))&&--d.pX;f&&e({aftflt:KF(m)});a.j=g.Tc(m,function(H){return!!H.length}); return a.j}; xsa=function(a,b,c,d,e,f,h){if(b.od&&h&&1p?e=c:b.Ed&&u===p&&Dsa(n[c])&&(e=c));"9"===e&&n.h&&OF(n.h)>OF(n["9"])&&(e="h");b.qc&&d.isLive&&"("===e&&n.H&&1440>OF(n["("])&&(e="H");l&&f({vfmly:PF(e)});b=n[e];if(!b.length)return l&&f({novfmly:PF(e)}), hz();NF(b);return iz(new HF(b,a,m))}; zsa=function(a,b){var c=b.K&&!(!a.mac3&&!a.MAC3),d=b.V&&!(!a.meac3&&!a.MEAC3);return b.Da&&!(!a.m&&!a.M)||c||d}; Dsa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&Esa.has(b.itag))return!0;return!1}; PF=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}}; KF=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(PF(d));d=g.v(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")}; ysa=function(a,b,c,d,e,f){var h={},l={};g.Sc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.Td)return l[q]="noenc",!1;if(f.Cc&&"(h"===p.Qb&&f.Pb)return l[q]="lichdr",!1;if("("===p.Qb||"(h"===p.Qb){if(a.B&&c&&"widevine"===c.flavor){var t=p.mimeType+"; experimental=allowed";(t=!!p.Td[c.flavor]&&!!c.j[t])||(l[q]=p.Td[c.flavor]?"unspt":"noflv");return t}if(!QF(a,RF.CRYPTOBLOCKFORMAT)&&!a.Aa||a.ma)return l[q]=a.ma?"disvp":"vpsub",!1}return c&&p.Td[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.Td[c.flavor]? "unspt":"noflv":"nosys",!1)}); m.length&&(h[n]=m)}); d&&Object.entries(l).length&&e(l);return h}; usa=function(a,b){var c=sm(a,function(d,e){return 32c&&(a=a.filter(function(d){if(32a.ea)return"max"+a.ea;if(a.Hb&&"h"===b.Qb&&b.video&&1080a.zd())a.segments=[];else{var c=wb(a.segments,function(d){return d.Na>=b},a); 0c&&(c=a.totalLength-b);a.focus(b);if(!hG(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);gG(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)}; iG=function(a,b,c){a=Ssa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; Tsa=function(a){a=iG(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce&&bf)nG[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;nG[e++]=55296|f>>10;f=56320|f&1023}nG[e++]=f}}f=String.fromCharCode.apply(String,nG); 1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")}; qG=function(a,b){var c;if(null==(c=pG)?0:c.encodeInto)return b=pG.encodeInto(a,b),b.reade?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c}; Wsa=function(a){if(pG)return pG.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=qG(a,b);b.lengthc&&(b=b.subarray(0,c));return b}; rG=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j}; sG=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; tG=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; uG=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; vG=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; wG=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b}; xG=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;ca.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(48>d||122d;d++)c[d]=a.getInt8(b.offset+16+d);return c}; NG=function(a,b){this.j=a;this.pos=0;this.start=b||0}; OG=function(a){return a.pos>=a.j.byteLength}; TG=function(a,b,c){var d=new NG(c);if(!PG(d,a))return!1;d=QG(d);if(!RG(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=SG(d,!0);d=a+(d.start+d.pos-b)+e;d=9b;b++)c=256*c+YG(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+YG(a),d*=128;return b?c-d:c}; VG=function(a){var b=SG(a,!0);a.pos+=b}; ota=function(a){if(!RG(a,440786851,!0))return null;var b=a.pos;SG(a,!1);var c=SG(a,!0)+a.pos-b;a.pos=b+c;if(!RG(a,408125543,!1))return null;SG(a,!0);if(!RG(a,357149030,!0))return null;var d=a.pos;SG(a,!1);var e=SG(a,!0)+a.pos-d;a.pos=d+e;if(!RG(a,374648427,!0))return null;var f=a.pos;SG(a,!1);var h=SG(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295); l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l}; ZG=function(a){var b=a.pos;a.pos=0;var c=1E6;PG(a,[408125543,357149030,2807729])&&(c=UG(a));a.pos=b;return c}; pta=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!$G(a)||!RG(a,160))return a.pos=c,NaN;SG(a,!0);var d=a.pos;if(!RG(a,161))return a.pos=c,NaN;SG(a,!0);YG(a);var e=YG(a)<<8|YG(a);a.pos=d;if(!RG(a,155))return a.pos=c,NaN;d=UG(a);a.pos=c;return(e+d)*b/1E9}; $G=function(a){if(!qta(a)||!RG(a,524531317))return!1;SG(a,!0);return!0}; qta=function(a){if(a.cn()){if(!RG(a,408125543))return!1;SG(a,!0)}return!0}; PG=function(a,b){for(var c=0;cd.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=fH(a,b);c=dH(c,YF(a));return c.timedOut+c.j+ +(b.Un&&!c.C)b.uh?1E3*Math.pow(b.dj,c-b.uh):0;return 0===b?!0:a.K+b<(0,g.gB)()}; wta=function(a,b,c){a.j.set(b,c);a.B.set(b,c);a.C&&a.C.set(b,c)}; jH=function(a,b,c,d){this.V=a;this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.u=new eH(a)}; lH=function(a,b){return kH(a.info,b)}; mH=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; nH=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new mH(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0=b.range.start+b.Tb&&a.range.start+a.Tb+a.u<=b.range.start+b.Tb+b.u:a.Na===b.Na&&a.Tb>=b.Tb&&(a.Tb+a.u<=b.Tb+b.u||b.kf)}; Hta=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Kg()?(a=a.j.Fz(a),pn(a,function(c){return Hta(c,b)})):a.Na===b.Na&&!!b.u&&b.Tb+b.u>a.Tb&&b.Tb+b.u<=a.Tb+a.u}; yH=function(a,b){var c=b.Na;a.D="updateWithSegmentInfo";a.Na=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,yta(a)}; zH=function(a,b){var c=this;this.jb=a;this.J=this.u=null;this.D=this.Wg=NaN;this.K=this.requestId=null;this.ke={t8a:function(){return c.range}}; this.j=a[0].j.u;this.B=b||"";this.jb[0].range&&0=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new bG(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}}; MH=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.D=-1;this.timestampOffset=0;this.J=!1;this.C=this.info.j.Ry()&&!this.info.Tb}; NH=function(a){return Ssa(a.j)}; Wta=function(a,b){if(1!==a.info.j.info.containerType||a.info.Tb||!a.info.kf)return!0;a=NH(a);for(var c=0,d=0;c+4e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b}; RH=function(a,b){b=void 0===b?!1:b;var c=$ta(a);a=b?0:a.info.J;return c||a}; $ta=function(a){g.PH(a.info.j.info)||a.info.j.info.Pe();if(a.u&&6===a.info.type)return a.u.Yj;if(g.PH(a.info.j.info)){var b=NH(a);var c=0;b=g.MG(b,1936286840);b=g.v(b);for(var d=b.next();!d.done;d=b.next())d=gta(d.value),c+=d.uP[0]/d.vr;c=c||NaN;if(!(0<=c))a:{c=NH(a);b=a.info.j.j;for(var e=d=0,f=0;HG(c,d);){var h=IG(c,d);if(1836476516===h.type)e=g.EG(h);else if(1836019558===h.type){!e&&b&&(e=FG(b));if(!e){c=NaN;break a}var l=GG(h.data,h.dataOffset,1953653094),m=e,n=GG(l.data,l.dataOffset,1952868452); l=GG(l.data,l.dataOffset,1953658222);var p=uG(n);uG(n);p&2&&uG(n);n=p&8?uG(n):0;var q=uG(l),t=q&1;p=q&4;var u=q&256,y=q&512,B=q&1024;q&=2048;var G=vG(l);t&&uG(l);p&&uG(l);for(var M=t=0;M=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; bI=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; vI=function(a,b){return 0<=uI(a,b)}; kua=function(a,b){if(!a)return NaN;b=uI(a,b);return 0<=b?a.start(b):NaN}; wI=function(a,b){if(!a)return NaN;b=uI(a,b);return 0<=b?a.end(b):NaN}; UI=function(a){return a&&a.length?a.end(a.length-1):NaN}; VI=function(a,b){a=wI(a,b);return 0<=a?a-b:0}; WI=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return sI(d,e)}; XI=function(a,b,c,d){g.yE.call(this);var e=this;this.Md=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.tU={error:function(){!e.isDisposed()&&e.isActive&&e.oa("error",e)}, updateend:function(){!e.isDisposed()&&e.isActive&&e.oa("updateend",e)}}; g.zE(this.Md,this.tU);this.iE=this.isActive}; ZI=function(a,b,c,d,e,f){g.yE.call(this);var h=this;this.Xb=a;this.Fg=b;this.id=c;this.containerType=d;this.Qb=e;this.dh=f;this.LM=this.sC=this.Ef=null;this.aF=!1;this.appendWindowStart=this.timestampOffset=0;this.wK=sI([],[]);this.YA=!1;this.Gz=YI?[]:void 0;this.Ad=function(m){return h.oa(m.type,h)}; var l;if(null==(l=this.Xb)?0:l.addEventListener)this.Xb.addEventListener("updateend",this.Ad),this.Xb.addEventListener("error",this.Ad)}; lua=function(a,b){b.isEncrypted()&&(a.LM=a.sC);3===b.type&&(a.Ef=b)}; $I=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; aJ=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1}; bJ=function(a,b,c){c=void 0===c?!1:c;g.D.call(this);this.mediaElement=a;this.Ya=b;this.isView=c;this.J=0;this.C=!1;this.D=!0;this.V=0;this.callback=null;this.Ya||(this.Fg=this.mediaElement.wb());this.events=new g.lI(this);g.J(this,this.events);this.B=new aJ(this.Ya?window.URL.createObjectURL(this.Ya):this.Fg.webkitMediaSourceURL,!0);a=this.Ya||this.Fg;gA(this.events,a,["sourceopen","webkitsourceopen"],this.p7);gA(this.events,a,["sourceclose","webkitsourceclose"],this.o7);this.K={updateend:this.K_}}; mua=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; nua=function(a,b){cJ(a)?g.xf(function(){b(a)}):a.callback=b}; oua=function(a,b,c){if(dJ){var d;eJ(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.va)?void 0:fJ(d)},!1);g.zE(b,a.K,a);g.zE(c,a.K,a)}a.j=b;a.u=c;g.J(a,b);g.J(a,c)}; gJ=function(a){return!!a.j||!!a.u}; cJ=function(a){try{return"open"===hJ(a)}catch(b){return!1}}; hJ=function(a){if(a.Ya)return a.Ya.readyState;switch(a.Fg.webkitSourceState){case a.Fg.SOURCE_OPEN:return"open";case a.Fg.SOURCE_ENDED:return"ended";default:return"closed"}}; iJ=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; pua=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Md:a.j,f=a.u.isView()?a.u.Md:a.u,h=new bJ(a.mediaElement,a.Ya,!0);h.B=a.B;oua(h,new XI(e,b,c,d),new XI(f,b,c,d));cJ(a)||a.j.gr(a.j.Kd());return h}; qua=function(a){var b;null==(b=a.j)||b.Qx();var c;null==(c=a.u)||c.Qx();a.D=!1}; rua=function(a){return jJ(function(b,c){return g.fz(b,c,4,1E3)},a,{format:"RAW", method:"GET",withCredentials:!0})}; g.sua=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=mG(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.V&&a.isLivePlayback;a.Ma=Number(EH(c,a.D+":earliestMediaSequence"))||0;if(d=Date.parse(Mta(EH(c,a.D+":mpdResponseTime"))))a.ma=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.rm(c.getElementsByTagName("Period"),a.R7,a);a.state=2;a.oa("loaded");Kua(a)}return a}).bk(function(c){if(c instanceof dz){var d=c.xhr; a.Lg=d.status}a.state=3;a.oa("loaderror");return Cf(d)})}; Mua=function(a,b,c){return Lua(new lJ(a,b,c),a)}; sJ=function(a){return a.isLive&&(0,g.gB)()-a.Da>=a.V}; Kua=function(a){var b=a.V;isFinite(b)&&(sJ(a)?a.refresh():(b=Math.max(0,a.Da+b-(0,g.gB)()),a.C||(a.C=new g.Qp(a.refresh,b,a),g.J(a,a.C)),a.C.start(b)))}; Nua=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.zd()+1}return 0}; tJ=function(a){return a.Rc?a.Rc-(a.K||a.timestampOffset):0}; uJ=function(a){return a.Ab?a.Ab-(a.K||a.timestampOffset):0}; vJ=function(a){if(!isNaN(a.Aa))return a.Aa;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.Om();c<=d.zd();c++)b+=d.getDuration(c);b/=d.Cy();b=.5*Math.round(b/.5);10(0,g.gB)()-1E3*a))return 0;a=g.mA("yt-player-quality");if("string"===typeof a){if(a=g.CF[a],0a.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Ema()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return dI(h)}))?void 0:null==(f=e.j)?void 0:f.powerEfficient)a=8192,b.isEfficient=1; c=c.videoInfos[0].video;e=Math.min(CJ("1",c.fps),CJ("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=CJ("1",30),b.perfCap30=c,a=Math.min(a,c),c=CJ("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a}; FJ=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.YD(b)}}:a}; GJ=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Ua=this.keySystemAccess=null;this.Pw=this.gx=-1;this.yl=null;this.B=!!d&&d.ob("edge_nonprefixed_eme")}; IJ=function(a){return a.B?!1:!a.keySystemAccess&&!!HJ()&&"com.microsoft.playready"===a.keySystem}; JJ=function(a){return"com.microsoft.playready"===a.keySystem}; KJ=function(a){return!a.keySystemAccess&&!!HJ()&&"com.apple.fps.1_0"===a.keySystem}; LJ=function(a){return"com.youtube.fairplay"===a.keySystem}; MJ=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem}; g.NJ=function(a){return"fairplay"===a.flavor}; HJ=function(){var a=window,b=a.MSMediaKeys;wz()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; QJ=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.oI&&!g.tz())return sq("45");if(g.KB||g.Ue)return a.ob("edge_nonprefixed_eme");if(g.OJ)return sq("47");if(g.YA){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.PJ(a,"html5_safari_desktop_eme_min_version"))return sq(a)}return!0}; ava=function(a,b,c,d){var e=uz(),f=(c=e||c&&wz())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.oa(f),g.oa(RJ.playready)):[].concat(g.oa(RJ.playready),g.oa(f))}; TJ=function(){this.B=this.j=0;this.u=Array.from({length:SJ.length}).fill(0)}; bva=function(a){if(0===a.j)return null;for(var b=a.j.toString()+"."+Math.round(a.B).toString(),c=0;c=f&&f>d&&!0===Fsa(a,e,c)&&(d=f)}return d}; g.dK=function(a,b){b=void 0===b?!1:b;return cK()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(mI(),"application/x-mpegURL")?!0:!1}; wva=function(a){vva(function(){for(var b=g.v(Object.keys(RF)),c=b.next();!c.done;c=b.next())QF(a,RF[c.value])})}; QF=function(a,b){b.name in a.J||(a.J[b.name]=xva(a,b));return a.J[b.name]}; xva=function(a,b){if(a.C)return!!a.C[b.name];if(b===RF.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===RF.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Ym);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"', a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.Ym)}; yva=function(a){a.B||(a.B=!0,a.j=!0)}; zva=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).W2);a.u.set(b,{W2:c+1,pX:Math.pow(2,c+1)});a.j=!0}; eK=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;a.nf()}}; Ava=function(a){a.j||(vva(function(){a.nf()}),a.j=!0)}; fK=function(){g.yE.call(this);this.items={}}; gK=function(a){return window.Int32Array?new Int32Array(a):Array(a)}; mK=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!Bva){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);hK=new Uint8Array(256);iK=gK(256);jK=gK(256);kK=gK(256);lK=gK(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;hK[f]=e;b=e<<1^(e>>7&&283);var h=b^e;iK[f]=b<<24|e<<16|e<<8|h;jK[f]=h<<24|iK[f]>>>8;kK[f]=e<<24|jK[f]>>>8;lK[f]=e<<24|kK[f]>>>8}Bva=!0}e=gK(44);for(c=0;4>c;c++)e[c]= a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(hK[a>>16&255]^d)<<24|hK[a>>8&255]<<16|hK[a&255]<<8|hK[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; Cva=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=iK[c>>>24]^jK[d>>16&255]^kK[e>>8&255]^lK[f&255]^b[n++],l=iK[d>>>24]^jK[e>>16&255]^kK[f>>8&255]^lK[c&255]^b[n++],m=iK[e>>>24]^jK[f>>16&255]^kK[c>>8&255]^lK[d&255]^b[n++],f=iK[f>>>24]^jK[c>>16&255]^kK[d>>8&255]^lK[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=hK[c>>>24]^h>>>24;a[1]=hK[d>>16&255]^h>>16&255;a[2]=hK[e>>8&255]^ h>>8&255;a[3]=hK[f&255]^h&255;h=b[41];a[4]=hK[d>>>24]^h>>>24;a[5]=hK[e>>16&255]^h>>16&255;a[6]=hK[f>>8&255]^h>>8&255;a[7]=hK[c&255]^h&255;h=b[42];a[8]=hK[e>>>24]^h>>>24;a[9]=hK[f>>16&255]^h>>16&255;a[10]=hK[c>>8&255]^h>>8&255;a[11]=hK[d&255]^h&255;h=b[43];a[12]=hK[f>>>24]^h>>>24;a[13]=hK[c>>16&255]^h>>16&255;a[14]=hK[d>>8&255]^h>>8&255;a[15]=hK[e&255]^h&255}; pK=function(){if(!nK&&!g.KB){if(oK)return oK;var a;oK=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=oK)?0:b.importKey)&&(null==(c=oK)?0:c.sign)&&(null==(d=oK)?0:d.encrypt))return oK;oK=void 0}}; qK=function(a,b){g.D.call(this);var c=this;this.j=a;this.cipher=this.j.AES128CTRCipher_create(b.byteOffset);g.ob(this,function(){c.j.AES128CTRCipher_release(c.cipher)})}; g.rK=function(a){this.C=a}; g.sK=function(a){this.u=a}; tK=function(a,b){this.j=a;this.D=b}; uK=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.J=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()}; Dva=function(a,b,c){for(var d=a.K,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],t,u,y,B=0;64>B;)16>B?(d[B]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[B-2],u=d[B-15],y=d[B-7]+d[B-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[B]=y),t=q+vK[B]+y+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),u=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=t+u,l+=t,B++,16>B?(d[B]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t= d[B-2],u=d[B-15],y=d[B-7]+d[B-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[B]=y),t=p+vK[B]+y+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),u=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+u,h+=t,B++,16>B?(d[B]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[B-2],u=d[B-15],y=d[B-7]+d[B-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[B]=y),t=n+vK[B]+y+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^ ~h&m),u=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+u,f+=t,B++,16>B?(d[B]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[B-2],u=d[B-15],y=d[B-7]+d[B-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),d[B]=y),t=m+vK[B]+y+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),u=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),y=q,q=l,l=y,y=p,p=h,h=y,y=n,n=f,f=y,m=e+t,e=t+u,B++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]= l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0}; Fva=function(a){var b=new Uint8Array(32),c=64-a.u;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Eva(a);return b}; Eva=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.K=[];a.K.length=64;a.C=0;a.u=0}; Gva=function(a){this.j=a}; Hva=function(a,b,c){a=new uK(a.j);a.update(b);a.update(c);b=Fva(a);a.update(a.D);a.update(b);b=Fva(a);a.reset();return b}; Iva=function(a){this.u=a}; Jva=function(a,b,c,d){var e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(a.j){m.La(2);break}e=a;return g.z(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.z(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})}; Kva=function(a,b,c){a.B||(a.B=new Gva(a.u));return Hva(a.B,b,c)}; Lva=function(a,b,c){var d,e;return g.A(function(f){if(1==f.j){d=pK();if(!d)return f.return(Kva(a,b,c));g.xa(f,3);return g.z(f,Jva(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.za(f);g.ZD(e);nK=!0;return f.return(Kva(a,b,c))})}; wK=function(){g.rK.apply(this,arguments)}; xK=function(){g.sK.apply(this,arguments)}; yK=function(a,b){if(b.buffer!==a.memory.buffer){var c=new Uint8Array(a.memory.buffer,a.malloc(b.byteLength),b.byteLength);c.set(b)}tK.call(this,a,c||b);this.u=new Set;this.C=!1;c&&this.u.add(c.byteOffset)}; Mva=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)}; Nva=function(a){a.u||(a.u=new wK(a.j));return a.u}; zK=function(a){try{return Tf(a)}catch(b){return null}}; Ova=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?zK(b.clientKey):null;var c=b.encryptedClientKey?zK(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.gB)():null;a&&c&&d&&(this.j=new Mva(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=zK(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; AK=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)}; BK=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.u=0;this.B=!1;this.D=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a=SK;f=b?b.useNativeControls:a.use_native_controls;this.V=g.OK(this)&&this.u;d=this.u&&!this.V;f=g.TK(this)||!h&&Fz(d,f)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?f:"0";this.zi=this.u;this.color=Gz("red",b?b.progressBarColor:a.color,bwa);this.uo="3"===this.controlsType||Fz(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Mc=!this.C;this.Am=(f=!this.Mc&&!QK(this)&&!this.Aa&&!this.K&&!PK(this))&&!this.uo&&"1"===this.controlsType; this.Ed=g.UK(this)&&f&&"0"===this.controlsType&&!this.Am;this.zt=this.Fo=h;this.od=("3"===this.controlsType||this.u||Fz(!1,a.use_media_volume))&&!this.V;this.Cm=yz&&!g.Hc(601)?!1:!0;this.Zn=this.C||!1;this.Rc=QK(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Iz("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.J||Fz(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.Lj=this.N("enable_cast_for_web_unplugged")&&g.VK(this)&& h||this.N("enable_cast_on_music_web")&&g.WK(this)&&h||l&&h&&"1"===this.controlsType&&!this.u&&(QK(this)||g.UK(this)||"profilepage"===this.Ma)&&!g.XK(this);this.Dq=!!window.document.pictureInPictureEnabled||qI();l=b?!!b.supportsAutoplayOverride:Fz(!1,a.autoplayoverride);this.ul=!(this.u&&(!g.OK(this)||!this.N("embeds_web_enable_mobile_autoplay")))&&!rz("nintendo wiiu")||l;l=b?!!b.enableMutedAutoplay:Fz(!1,a.mutedautoplay);this.Aq=this.N("embeds_enable_muted_autoplay")&&g.OK(this);this.uh=l&&!1;l=(QK(this)|| PK(this))&&"blazer"===this.playerStyle;this.Tj=b?!!b.disableFullscreen:!Fz(!0,a.fs);this.Pb=!this.Tj&&(l||g.Uz());this.qm=this.N("uniplayer_block_pip")&&(sz()&&sq(58)&&!Cz()||JB);l=g.OK(this)&&!this.zl;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.yd=l||Fz(!this.K,m);this.ym=Fz(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.ea=Cz()&&0=SK?"_top":"_blank";this.Rg="profilepage"===this.Ma;this.rl=Fz("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi); switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "gac":m="ga";break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Da=m;this.qa=Iz("",b?b.authorizedUserIndex:a.authuser);this.Cc=g.OK(this)&&(this.Qc||!Bma()||this.Hb);var n; b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.nm=((m=!this.Cc)||!!this.qa&&m)&&Fz(!this.Aa,this.J?n:void 0);this.Jj=b?b.isMobileDevice||!!b.disableKeyboardControls:Fz(!1,a.disablekb);this.loop=Fz(!1,a.loop);this.pageId=Iz("",b?b.initialDelegatedSessionId:a.pageid);this.bp=Fz(!0,a.canplaylive);this.ub=Fz(!1,a.livemonitor);this.disableSharing=Fz(this.K,b?b.disableSharing:a.ss);(n=b&&this.N("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)? (m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.we(n,m))):n=null;this.Dm=n;this.mute=b?!!b.startMuted:Fz(!1,a.mute);this.storeUserVolume=!this.mute&&Fz("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:Gz(void 0,n,YK);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":Iz("",a.cc_lang_pref);n=Gz(2,b?b.captionsLanguageLoadPolicy: a.cc_load_policy,YK);"3"===this.controlsType&&2===n&&(n=3);this.Ab=n;this.Yi=b?b.hl||"en_US":Iz("en_US",a.hl);this.region=b?b.contentRegion||"US":Iz("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Iz("en",a.host_language);this.Un=!this.Qc&&Math.random()Math.random();this.dl=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new Ova(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.If=new Vva;g.J(this,this.If);this.wl=Fz(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)|| g.zy("DATASYNC_ID");this.po=g.zy("LOGGED_IN",!1);this.aj=(null==b?void 0:b.allowWoffleManagement)||!1;this.pm=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.N("html5_high_res_logging_always")?this.Yf=!0:this.Yf=100*Math.random()<(g.PJ(this.experiments,"html5_unrestricted_layer_high_res_logging_percent")||g.PJ(this.experiments,"html5_high_res_logging_percent"));this.N("html5_ping_queue")&&(this.ll=new eK);this.embedsEnableRcat=!(null==b||!b.embedsEnableRcat)}; g.eL=function(a){var b;if(null==(b=a.webPlayerContextConfig)||!b.embedsEnableLiteUx||a.Qc||a.K)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.PJ(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&ay.width*y.height*y.fps)y=N}else t.push(N)}else l[M]="disdrmhfr";u.reduce(function(aa, da){return da.Bh().isEncrypted()&&aa},!0)&&(q=p); e=Math.max(e,0);p=y||{};n=void 0===p.fps?0:p.fps;y=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;G=a.N("html5_native_audio_track_switching");u.push(twa(t,c,d,f,"93",y,p,n,m,"auto",e,q,B,G));Object.entries(l).length&&h(l);return BL(a.D,u,fL(a,b))}; twa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){for(var y=0,B="",G=g.v(a),M=G.next();!M.done;M=G.next())M=M.value,B||(B=M.itag),M.audioChannels&&M.audioChannels>y&&(y=M.audioChannels,B=M.itag);e=new bI(e,"application/x-mpegURL",{audio:new WH(0,y),video:new YH(f,h,l,null,void 0,n,void 0,t),Td:q,GV:B});a=new jwa(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new DL(e,a,m)}; qwa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN}; swa=function(a,b){for(var c=g.v(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Td===b.Td&&!e.audioChannels)return d}return""}; rwa=function(a){for(var b=new Set,c=g.v(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.v(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.v(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]}; EL=function(a,b){this.j=a;this.u=b}; vwa=function(a,b,c,d){var e=[];c=g.v(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.WF(h.url,!0);if(h.s){var l=h.sp,m=Isa(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.v(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=jI(h.type,h.quality,h.itag,h.width,h.height);e.push(new EL(h,f))}}return BL(a.D,e,fL(a,b))}; FL=function(a,b){this.j=a;this.u=b}; wwa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=jI(e.type,"medium","0");d.push(new FL(f,e.url))}return BL(a.D,d,fL(a,b))}; xwa=function(a,b){var c=[],d=jI(b.type,"auto",b.itag);c.push(new FL(d,b.url));return BL(a.D,c,!1)}; zwa=function(a){return a&&ywa[a]?ywa[a]:null}; Awa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.jE=zK(a.ustreamerConfig)||void 0)}; Bwa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.HW=new Awa(b)}; g.GL=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""}; g.IL=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.HL(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(b.xtags=a.xtags);a.captionId&&(b.captionId=a.captionId);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b}; g.JL=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.HL=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")}; Fwa=function(a,b,c,d){a||(a=b&&Cwa.hasOwnProperty(b)&&Dwa.hasOwnProperty(b)?Dwa[b]+"_"+Cwa[b]:void 0);b=a;if(!b)return null;a=b.match(Ewa);if(!a||5!==a.length)return null;if(a=b.match(Ewa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null}; KL=function(a,b){for(var c={},d=g.v(Object.keys(Gwa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.pE(f)&&(c[Gwa[e]]=f)}return c}; LL=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url}); a.sort(function(l,m){return l.width-m.width||l.height-m.height}); for(var c=g.v(Object.keys(Hwa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Hwa[e];for(var f=g.v(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Iwa(h.url);g.pE(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Iwa(a.url),g.pE(a)&&(b["maxresdefault.jpg"]=a));return b}; Iwa=function(a){return a.startsWith("//")?"https:"+a:a}; ML=function(a){return a&&a.baseUrl||""}; NL=function(a){a=g.Oy(a);for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; Jwa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.vk=b)}; Lwa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.v(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Kwa(d.baseUrl);if(!e)return;d=new g.GL({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.BE(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.AK=b.audioTracks||[];a.JS=b.defaultAudioTrackIndex||0;a.BK=b.translationLanguages?g.qm(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.BE(f.languageName)}}): []; a.gX=[];if(b.recommendedTranslationTargetIndices)for(c=g.v(b.recommendedTranslationTargetIndices),d=c.next();!d.done;d=c.next())a.gX.push(d.value);a.XE=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; Owa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.Q(h,Mwa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.Q(h,Nwa))return Object.assign({is_yto_interstitial:!0},My(h))}); d=g.v(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Ln:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Ln:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e, Ln:0===f?5:7})}}}; Pwa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; Qwa=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)}; Rwa=function(a,b){null!=b?(a.Jl=b,a.wd=!0):(a.Jl="",a.wd=!1)}; OL=function(){var a=Swa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Qla.apply(null,[Rla.apply(null,g.oa(b))].concat(g.oa(c)));this.store=Tla(a,void 0,b)}; g.PL=function(a,b,c){for(var d=Object.assign({},a),e=g.v(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.oa(h),g.oa(l)):l;else if(!Array.isArray(l)&&g.Ra(l)&&!Array.isArray(h)&&g.Ra(h))d[f]=g.PL(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.yA("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,V8a:h,updateValue:l}),g.YD(b), a}return d}; QL=function(a){this.j=a;this.pos=0;this.u=-1}; RL=function(a){var b=jG(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=jG(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c}; SL=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=RL(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:RL(a);break;case 1:a.pos+=8;break;case 2:d=RL(a);a.pos+=d;break;case 5:a.pos+=4}}return!1}; TL=function(a,b){if(SL(a,b))return RL(a)}; UL=function(a,b){if(SL(a,b))return!!RL(a)}; VL=function(a,b){if(SL(a,b)){b=RL(a);var c=iG(a.j,a.pos,b);a.pos+=b;return c}}; WL=function(a,b){if(a=VL(a,b))return g.oG(a)}; XL=function(a,b,c){if(a=VL(a,b))return c(new QL(new dG([a])))}; YL=function(a,b){for(var c=[];SL(a,b);)c.push(RL(a));return c.length?c:void 0}; Twa=function(a,b,c){for(var d=[],e;e=VL(a,b);)d.push(c(new QL(new dG([e]))));return d.length?d:void 0}; ZL=function(a,b){a=a instanceof Uint8Array?new dG([a]):a;return b(new QL(a))}; Uwa=function(a,b){a=void 0===a?4096:a;this.u=b;this.pos=0;this.B=[];b=void 0;if(this.u)try{var c=this.u.exports.malloc(a);b=new Uint8Array(this.u.exports.memory.buffer,c,a)}catch(d){}b||(b=new Uint8Array(a));this.j=b;this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; $L=function(a,b){var c=a.pos+b;if(!(a.j.length>=c)){for(b=2*a.j.length;bd;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for($L(a,4);127>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1}; bM=function(a,b,c){Vwa?aM(a,8*b+c):aM(a,b<<3|c)}; cM=function(a,b,c){void 0!==c&&(bM(a,b,0),aM(a,c))}; dM=function(a,b,c){void 0!==c&&cM(a,b,c?1:0)}; eM=function(a,b,c){void 0!==c&&(bM(a,b,2),b=c.length,aM(a,b),$L(a,b),a.j.set(c,a.pos),a.pos+=b)}; fM=function(a,b,c){void 0!==c&&(Wwa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),$L(a,1.2*c.length),b=qG(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&($L(a,b),b=qG(c,a.j.subarray(a.pos))),a.pos+=b,Xwa(a))}; Wwa=function(a,b,c){c=void 0===c?2:c;bM(a,b,2);a.B.push(a.pos);a.B.push(c);a.pos+=c}; Xwa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}}; gM=function(a,b,c,d,e){c&&(Wwa(a,b,void 0===e?3:e),d(a,c),Xwa(a))}; Ywa=function(a){a.u&&a.j.buffer!==a.u.exports.memory.buffer&&(a.j=new Uint8Array(a.u.exports.memory.buffer,a.j.byteOffset,a.j.byteLength),a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength));return new Uint8Array(a.j.buffer,a.j.byteOffset,a.pos)}; g.hM=function(a,b,c){c=new Uwa(4096,c);b(c,a);return Ywa(c)}; g.iM=function(a){var b=new QL(new dG([Tf(decodeURIComponent(a))]));a=WL(b,2);b=TL(b,4);var c=Zwa[b];if("undefined"===typeof c)throw a=new g.yA("Failed to recognize field number",{name:"EntityKeyHelperError",P7a:b}),g.YD(a),a;return{Q2:b,entityType:c,entityId:a}}; g.jM=function(a,b){var c=new Uwa;eM(c,2,Wsa(a));a=$wa[b];if("undefined"===typeof a)throw b=new g.yA("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.YD(b),b;cM(c,4,a);cM(c,5,1);b=Ywa(c);return encodeURIComponent(g.Rf(b))}; kM=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; axa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.PL(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; bxa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.YD(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.YD(new g.yA("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Xc(e.payload); return kM(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.iM(e).entityType;l=kM(d,m,e)}catch(q){if(q instanceof Error)g.YD(new g.yA("Failed to deserialize entity key",{entityKey:e,bO:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.YD(new g.yA("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Xc(e.payload);var n,p;return axa(d,l,e.entityKey,e.payload[l],null==(n= e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a); case "REPLACE_ENTITY":var c=b.payload;return kM(a,c.entityType,c.key,c.P2);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return kM(h,e,l,f[l])},d)},a); case "UPDATE_ENTITY":return c=b.payload,axa(a,c.entityType,c.key,c.P2,c.S8a);default:return a}}; lM=function(a,b,c){return a[b]?a[b][c]||null:null}; mM=function(a,b){this.type=a||"";this.id=b||""}; g.nM=function(a){return new mM(a.substr(0,2),a.substr(2))}; g.oM=function(a,b){this.u=a;this.author="";this.lB=null;this.playlistLength=0;this.j=this.sessionData=null;this.ea={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Ky(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.ea=KL(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new mM("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.nM(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}}; g.pM=function(a,b){this.j=a;this.Or=this.author="";this.lB=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.yv=this.lengthText="";this.sessionData=null;this.ea={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Or=b.Or||"";if(a=b.endscreen_autoplay_session_data)this.lB=Ky(a,"&");this.mB=b.mB;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText= b.lengthText||"";this.yv=b.yv||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Ky(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.ea=KL(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; cxa=function(a){var b,c,d=null==(b=a.kd)?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.kd)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a}; g.rM=function(a){var b,c,d;a=g.Q(null==(b=a.kd)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,qM);return g.Q(null==a?void 0:a.playerBar,dxa)}; exa=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url}; gxa=function(a,b){var c=g.Na("ytDebugData.callbacks");c||(c={},g.Ma("ytDebugData.callbacks",c));if(g.Cy("web_dd_iu")||fxa.includes(a))c[a]=b}; sM=function(a){this.j=new wq(a)}; hxa=function(){if(void 0===tM){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Gq(g.zA()+"::yt-player"))){tM=new sM(a);break a}tM=void 0}}return tM}; g.uM=function(){var a=hxa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.ixa=function(a){var b=hxa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.vM=function(a){return g.uM()[a]||0}; g.wM=function(a,b){var c=g.uM();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.ixa(c))}; g.xM=function(a){return g.A(function(b){return b.return(g.GB(jxa(),a))})}; zM=function(a,b,c,d,e,f,h,l){var m,n,p,q,t,u;return g.A(function(y){switch(y.j){case 1:return m=g.vM(a),4===m?y.return(4):g.z(y,g.OB(),2);case 2:n=y.u;if(!n)throw g.$A("wiac");if(!l||void 0===h){y.La(3);break}return g.z(y,kxa(l,h),4);case 4:h=y.u;case 3:return p=c.lastModified||"0",g.z(y,g.xM(n),5);case 5:return q=y.u,g.xa(y,6),yM++,g.z(y,g.kB(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Zb:!0},function(B){if(void 0!==f&&void 0!==h){var G=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10, "0");G=g.lB(B.objectStore("media"),h,G)}else G=g.bB.resolve(void 0);var M=lxa(a,b.dh()),N=lxa(a,!b.dh()),H={fmts:mxa(d),format:c||{}};M=g.lB(B.objectStore("index"),H,M);var U=-1===d.downloadedEndTime;H=U?B.objectStore("index").get(N):g.bB.resolve(void 0);var aa={fmts:"music",format:{}};B=U&&e&&!b.dh()?g.lB(B.objectStore("index"),aa,N):g.bB.resolve(void 0);return g.bB.all([B,H,G,M]).then(function(da){da=g.v(da);da.next();da=da.next().value;yM--;var ua=g.vM(a);if(4!==ua&&U&&e||void 0!==da&&g.nxa(da.fmts))ua= 1,g.wM(a,ua);return ua})}),8); case 8:return y.return(y.u);case 6:t=g.za(y);yM--;u=g.vM(a);if(4===u)return y.return(u);g.wM(a,4);throw t;}})}; g.oxa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.z(d,g.OB(),2);if(3!=d.j){b=d.u;if(!b)throw g.$A("ri");return g.z(d,g.xM(b),3)}c=d.u;return d.return(g.kB(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})}; rxa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){if(1==m.j)return g.z(m,g.OB(),2);if(3!=m.j){f=m.u;if(!f)throw g.$A("rc");return g.z(m,g.xM(f),3)}h=m.u;l=g.kB(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Zb:pxa},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return qxa(e,n)}).catch(function(n){throw new g.yA("Error while reading chunk: "+n.name+", "+n.message); })):m.return(l)})}; g.nxa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; lxa=function(a,b){return""+a+"|"+(b?"v":"a")}; mxa=function(a){var b={};return Ly((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; txa=function(a){var b={},c={};a=g.v(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.sxa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.v(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(","); return c}; AM=function(a){g.yE.call(this);this.j=null;this.B=new qla;this.j=null;this.J=new Set;this.crossOrigin=a||""}; uxa=function(a,b,c){for(c=BM(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(CM(d,b))&&(d=g.DM(d,b)))return d;c--}return g.DM(a.levels[0],b)}; wxa=function(a,b,c){c=BM(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=CM(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),d.B.Rh(f,{jV:f,EV:e}))}vxa(a)}; vxa=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=xxa(a,b)}}; xxa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.jV].jf(b.EV);c.onload=function(){var d=b.jV,e=b.EV;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);vxa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.EE()-1);e=[e,d];a.oa("l",e[0],e[1])}; return c}; g.EM=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.B=a[6];this.C=a[7];this.videoLength=d}; CM=function(a,b){return Math.floor(b/(a.columns*a.rows))}; g.DM=function(a,b){b>=a.oJ()&&a.ax();var c=CM(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.ax()+1-d*c;if(f=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1}; GM=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.EM.call(this,a,b,c,0);this.u=null;this.J=d?2:0}; HM=function(a,b,c,d){FM.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;aNM?!1:!0,a.isLivePlayback=!0;else if(dd.isLive){Nq.livestream="1";a.allowLiveDvr=dd.isLiveDvrEnabled?cK()?!0:zz&&5>NM?!1:!0:!1;a.Da=27;dd.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Pq=dd.latencyClass;Pq&&(a.latencyClass=Mxa[Pq]||"UNKNOWN");var At=dd.liveChunkReadahead;At&&(a.liveChunkReadahead=At);var am=Bn&&Bn.livePlayerConfig;if(am){am.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);am.hasSubfragmentedWebm&& (a.Ro=!0);am.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Bt=am.liveExperimentalContentId;Bt&&(a.liveExperimentalContentId=Number(Bt));var Qq=am.isLiveHeadPlayable;a.N("html5_live_head_playable")&&null!=Qq&&(a.isLiveHeadPlayable=Qq)}Oq=!0}else dd.isUpcoming&&(Oq=!0);Oq&&(a.isLivePlayback=!0,Nq.adformat&&"8"!==Nq.adformat.split("_")[1]||a.Ba.push("heartbeat"),a.uo=!0)}var Rq=dd.isPrivate;void 0!==Rq&&(a.isPrivate=Fz(a.isPrivate,Rq))}if(Y){var Ct=dd||null,$k=!1,ch=Y.errorScreen;$k= ch&&(ch.playerLegacyDesktopYpcOfferRenderer||ch.playerLegacyDesktopYpcTrailerRenderer||ch.ypcTrailerRenderer)?!0:Ct&&Ct.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Y.status);if(!$k){a.errorCode=zwa(Y.errorCode)||"auth";var al=ch&&ch.playerErrorMessageRenderer;if(al){a.playerErrorMessageRenderer=al;var Sq=al.reason;Sq&&(a.errorReason=g.BE(Sq));var bm=al.subreason;bm&&(a.Mm=g.BE(bm),a.hx=bm)}else a.errorReason=Y.reason||null;var ap=Y.status;if("LOGIN_REQUIRED"===ap)a.errorDetail= "1";else if("CONTENT_CHECK_REQUIRED"===ap)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===ap){var Tq=Y.errorScreen,Dt=Tq&&Tq.playerKavRenderer;a.errorDetail=Dt&&Dt.kavUrl?"4":"3"}else a.errorDetail=Y.isBlockedInRestrictedMode?"5":"0"}}var Et=a.playerResponse.interstitialPods;Et&&Owa(a,Et);a.Oa&&a.eventId&&(a.Oa=Qy(a.Oa,{ei:a.eventId}));var bk=a.playerResponse.captions;bk&&bk.playerCaptionsTracklistRenderer&&Lwa(a,bk.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&& null!=a.clipConfig.startTimeMs&&(a.XJ=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Qwa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);if(a.N("html5_log_composite_tokens_in_vss")){var bp;a.compositeLiveIngestionOffsetToken=null==(bp=a.playerResponse.playbackTracking)?void 0:bp.compositeLiveIngestionOffsetToken;var Qa; a.compositeLiveStatusToken=null==(Qa=a.playerResponse.playbackTracking)?void 0:Qa.compositeLiveStatusToken}}Cxa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var xI=b.hlsdvr;null!=xI&&(a.allowLiveDvr="1"==xI?cK()?!0:zz&&5>NM?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.mA||(a.mA=b.encoded_ad_safety_reason||null);a.yQ=b.agcid||null;a.vP=b.ad_id||null;a.bQ=b.ad_sys||null;a.RI=b.encoded_ad_playback_context||null;a.Uk=Fz(a.Uk,b.infringe||b.muted);a.OR=b.authkey;a.uQ=b.authuser;a.mutedAutoplay=Fz(a.mutedAutoplay, b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");var Pw=b.length_seconds;Pw&&(a.lengthSeconds="string"===typeof Pw?Ge(Pw):Pw);var yI=!a.isAd()&&!a.Wk&&g.Mz(g.eL(a.u));if(yI){var Qw=a.lengthSeconds;switch(g.eL(a.u)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30Qw&&10c&&($I()||d.N("html5_format_hybridization"))&&(q.u.supportsChangeType=+$I(),q.D=c);2160<=c&&(q.Ja=!0);Yua()&&(q.u.serveVp9OverAv1IfHigherRes= 0,q.Rc=!1);q.jK=m;q.fb=g.KB||Dz()&&!m?!1:!0;q.qa=d.N("html5_format_hybridization");q.qc=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");uz()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.K=!0,q.V=!0);a.Ma&&a.isAd()&&(a.aA&&(q.Aa=a.aA),a.Az&&(q.J=a.Az));q.Za=a.isLivePlayback&&a.Hk()&&a.u.N("html5_drm_live_audio_51");q.Pb=a.FI;return a.ll=q}; eya=function(a){xF("drm_pb_s",void 0,a.Ja);a.Ua||a.j&&MF(a.j);var b={};a.j&&(b=vsa(a.Lw,eN(a),a.u.D,a.j,function(c){return a.oa("ctmp","fmtflt",c)},!0)); b=new WJ(b,a.u,a.HR,dya(a),function(c,d){a.ya(c,d)}); g.J(a,b);a.Dm=!1;a.loading=!0;lva(b,function(c){xF("drm_pb_f",void 0,a.Ja);for(var d=g.v(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Ua=a.Ua;e.gx=a.gx;e.Pw=a.Pw;break;case "widevine":e.yl=a.yl}a.Un=c;if(0p&&(p=u.Bh().audio.numChannels)}2=a.C.videoInfos.length)&&(b=eI(a.C.videoInfos[0]),b!=("fairplay"==a.J.flavor)))for(c=g.v(a.Un),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.J=d;break}}; hN=function(a,b){a.od=b;nya(a,new HF(g.qm(a.od,function(c){return c.Bh()})))}; oya=function(a){var b={cpn:a.clientPlaybackNonce,c:a.u.j.c,cver:a.u.j.cver};a.mx&&(b.ptk=a.mx,b.oid=a.eX,b.ptchn=a.LV,b.pltype=a.sX,a.Nw&&(b.m=a.Nw));return b}; g.iN=function(a){return OM(a)&&a.Ua?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.Td||null}; pya=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.BE(b.text):a.paidContentOverlayText}; jN=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Ge(b.durationMs):a.paidContentOverlayDurationMs}; kN=function(a){var b="";if(a.RJ)return a.RJ;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Qc?"window":"live");a.Ne&&(b="post");return b}; g.lN=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; qya=function(a){return!!a.uh||!!a.rL||!!a.ox||!!a.qx||a.jS||a.V.focEnabled||a.V.rmktEnabled}; mN=function(a){return!!(a.ib||a.yf||a.wl||a.hlsvp||a.Yu())}; KM=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Bb(a.Ba,"ypc");a.ypcPreview&&(b=!1);return a.Oe()&&!a.loading&&(mN(a)||g.Bb(a.Ba,"heartbeat")||b)}; QM=function(a,b){a=Ny(a);var c={};if(b){b=g.v(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.v(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a}; Wxa=function(a,b){a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")||(a.showShareButton=!!b);var c,d,e=(null==(c=g.Q(b,g.WM))?void 0:c.navigationEndpoint)||(null==(d=g.Q(b,g.WM))?void 0:d.command);e&&(a.ao=!!g.Q(e,rya))}; Bxa=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Of=c);if(a.Of){a.embeddedPlayerConfig=a.Of.embeddedPlayerConfig||null;if(c=a.Of.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Of.embedPreview){c=c.thumbnailPreviewRenderer;a.N("embeds_web_enable_video_data_refactoring_embedded_player_response")? Rwa(a,c.controlBgHtml):(d=c.controlBgHtml,null!=d?(a.Jl=d,a.wd=!0):(a.Jl="",a.wd=!1));!a.N("embeds_web_enable_video_data_refactoring_embedded_player_response")&&(d=c.defaultThumbnail)&&(a.ea=LL(d),a.sampledThumbnailColor=d.sampledThumbnailColor);(d=g.Q(null==c?void 0:c.videoDetails,sya))&&$xa(a,b,d);d=g.Q(null==c?void 0:c.videoDetails,g.tya);a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")||(a.Lj=!!c.addToWatchLaterButton);Wxa(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType= d.musicVideoType;var e,f,h,l,m;if(d=g.Q(null==(e=a.Of)?void 0:null==(f=e.embedPreview)?void 0:null==(h=f.thumbnailPreviewRenderer)?void 0:null==(l=h.playButton)?void 0:null==(m=l.buttonRenderer)?void 0:m.navigationEndpoint,g.YM))Bwa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Ge(c.videoDurationSeconds));c.webPlayerActionsPorting&&Qwa(a,c.webPlayerActionsPorting);if(e=g.Q(null==c?void 0:c.playlist,uya)){a.Wk=!0;f=[];h=Number(e.currentIndex);if(e.contents)for(l=0,m= e.contents.length;l(b?parseInt(b[1],10):NaN);c=a.u;c=("TVHTML5_CAST"===g.$J(c)||"TVHTML5"===g.$J(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.u.j.ctheme;var d;if(d=!a.aj)c||(c=a.u,c="TVHTML5"===g.$J(c)&&c.j.cver.startsWith("7")), d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.N("cast_prefer_audio_only_for_atv_and_uploads")||a.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.aj=!0);return a.u.deviceIsAudioOnly||a.aj&&a.u.J}; Dya=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; EN=function(a){return!(!a.zm||!a.u.J)&&a.Yu()}; Eya=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; GN=function(a){if(a.iS||a.cotn||!a.j||a.j.isOtf)return!1;if(a.N("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.Tc&&!a.Hk(),c=b&&FN&&a.N("html5_enable_sabr_vod_streaming_xhr");b=b&&!FN&&a.N("html5_enable_sabr_vod_non_streaming_xhr");var d=a.j.Tc&&!a.Hk(),e=d&&FN&&a.N("html5_enable_sabr_live_streaming_xhr");d=d&&!FN&&a.N("html5_enable_sabr_live_non_streaming_xhr");(c=c||b||e||d)&&!a.tx&&a.ya("sabr",{loc:"m"});return c&&!!a.tx}; HN=function(a){return a.hS&&GN(a)}; Oxa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.vM(b);return b&&!a.zm}; g.IN=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j;return!!b[a.B.id]&&ZF(b[a.B.id].u.j)&&!!b[a.D.id]&&ZF(b[a.D.id].u.j)}; JN=function(a){return a.nx?["OK","LIVE_STREAM_OFFLINE"].includes(a.nx.status):!0}; vya=function(a){return(a=a.Am)&&a.showError?a.showError:!1}; PM=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")}; Fya=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; Gxa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.qx=new exa(b));if(b=b.video_masthead_ad_quartile_urls)a.rL=b.quartile_0_url,a.VY=b.quartile_25_url,a.YY=b.quartile_50_url,a.ZY=b.quartile_75_url,a.OY=b.quartile_100_url,a.ox=b.quartile_0_urls,a.HM=b.quartile_25_urls,a.RM=b.quartile_50_urls,a.YM=b.quartile_75_urls,a.GM=b.quartile_100_urls}; Fxa=function(a){var b={};a=g.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b}; Kwa=function(a){if(a){if(pra(a))return a;a=qra(a);if(pra(a,!0))return a}return""}; g.Gya=function(a){return a.captionsLanguagePreference||a.u.captionsLanguagePreference||g.lN(a,"yt:cc_default_lang")||a.u.Yi}; KN=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; g.$M=function(a){var b;return a.oA||(null==(b=a.suggestions)?void 0:b[0])||null}; LN=function(a,b){this.j=a;this.qa=b||{};this.K=String(Math.floor(1E9*Math.random()));this.J={};this.ma=this.ea=0}; Hya=function(a){return MN(a)&&1==a.getPlayerState(2)}; MN=function(a){a=a.qd();return void 0!==a&&2==a.getPlayerType()}; NN=function(a){a=a.W();return aL(a)&&!g.nL(a)&&"desktop-polymer"==a.playerStyle}; ON=function(a,b){var c=a.W();g.TK(c)||"3"!=c.controlsType||a.kb().KD(b)}; QN=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.interactionLoggingClientData=e;this.j=f;this.id=PN(a)}; PN=function(a){return a+(":"+(Xq.getInstance().j++).toString(36))}; RN=function(a){this.Z=a}; Iya=function(a,b){if(0===b||1===b&&(a.Z.u&&g.YA?0:a.Z.u||g.nL(a.Z)||g.bL(a.Z)||cL(a.Z)||!g.YA))return!0;a=g.Oe("video-ads");return null!=a&&"none"!==cn(a,"display")}; Jya=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; SN=function(){g.yE.call(this);var a=this;this.j={};g.ob(this,function(){for(var b=g.v(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; UN=function(){if(null===TN){TN=new SN;tm(Bp).u="b";var a=tm(Bp),b="h"==up(a)||"b"==up(a),c=!(ym(),!1);b&&c&&(a.D=!0,a.J=new rja)}return TN}; Kya=function(a,b,c){a.j[b]=c}; Lya=function(){}; VN=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); c=0;for(a+=1;a=c*a.j.OI||d)&&wO(a,"first_quartile");(b>=c*a.j.SECOND||d)&&wO(a,"midpoint");(b>=c*a.j.PJ||d)&&wO(a,"third_quartile")}; gza=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.OI||d)&&wO(a,"unmuted_first_quartile");(b>=c*a.j.SECOND||d)&&wO(a,"unmuted_midpoint");(b>=c*a.j.PJ||d)&&wO(a,"unmuted_third_quartile")}; AO=function(a,b,c,d){if(null==a.B){if(cd||d>c)return;wO(a,b)}; dza=function(a,b,c){if(0m.D&&m.Hi()}}; pza=function(a,b){if(a.J&&a.ea){a.ea=!1;var c=a.u.j;if(SO(c)){var d=c.slot;c=c.layout;b=nza(b);a=g.v(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;VO(e.j(),f,h,l);oza(e.j(),f)}}else g.ZD(Error("adMessageRenderer is not augmented on termination"))}}; nza=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.ZD(Error("AdNotify abandoned")),"abandoned";default:return g.ZD(Error("Unexpected eventType for adNotify exit")),"abandoned"}}; g.WO=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c}; g.XO=function(a,b){for(var c={},d=g.v(Object.keys(b)),e=d.next();!e.done;c={xI:c.xI},e=d.next())e=e.value,c.xI=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.xI}}(c)); return a}; YO=function(a,b,c,d){this.j=a;this.C=b;this.u=kO(c);this.B=d}; qza=function(a){for(var b={},c=g.v(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)}; rza=function(a,b,c,d){new YO(a,b,c,d)}; ZO=function(a,b,c,d,e,f,h,l,m){KO.call(this,a,b,c,d,e,1);var n=this;this.mG=!0;this.J=m;this.u=b;this.C=f;this.ea=new fA(this);g.J(this,this.ea);this.D=new g.Qp(function(){n.Oo("load_timeout")},1E4); g.J(this,this.D);this.V=h}; sza=function(a){if(a.V&&(a.G.W().experiments.ob("enable_topsoil_wta_for_halftime")||a.G.W().experiments.ob("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.u.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.YD(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.YD(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.u.u)}}; bP=function(a,b){if(null!==a.J){var c=tza(a);a=g.v(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(uza(d,e,[],!1),vza(d.B(),d.u),wza(d.B(),d.u),xza(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}VO(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;$O(e.Vb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.v(e.Nd);for(f=e.next();!f.done;f=e.next())f.value.Rj(h);oza(d.B(), d.u)}d.Ea.get().G.W().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&aP(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}}; cP=function(a){return(a=a.G.getVideoData(2))?a.clientPlaybackNonce:""}; tza=function(a){if(a=a.u.j.elementId)return a;g.YD(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""}; yza=function(a){function b(h,l){h=a.Y7;var m=Object.assign({},{});m.FINAL=jO(Fd("1"));m.SLOT_POS=jO(Fd("0"));return mO(h,lO(m),l)} function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m); m=a.JP(l,p);l=h(l,p,m,n);g.J(l,m);return l}}} var d=c(function(h,l,m){return new NO(a.G,h,l,m,a.rB,a.Sg)}),e=c(function(h,l,m){return new UO(a.G,h,l,m,a.rB,a.Sg,a.Wm,a.Eq)}),f=c(function(h,l,m){return new QO(a.G,h,l,m,a.rB,a.Sg)}); this.E1=new lza({create:function(h,l){var m=mO(b(h,l),lO(Wya(h)));l=a.JP(h,m);h=new ZO(a.G,h,m,l,a.rB,a.Sg,a.daiEnabled,function(){return new rza(a.Sg,m,a.G,a.cm)},a.Fq,a.Gi); g.J(h,l);return h}},d,e,f)}; dP=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b}; zza=function(a,b){var c=a.startSecs+a.Ug;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{v2:new qq(b,c),f4:new kE(b,c-b,a.context,a.identifier,a.event,a.j)}}; eP=function(){this.j=[]}; fP=function(a,b,c){var d=g.Rb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; Aza=function(){this.j=new eP}; Bza=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()}; Cza=function(a,b,c){a.j&&gP({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})}; Dza=function(a,b){a.j&&gP({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.R1}})}; gP=function(a){g.OA("adsClientStateChange",a)}; hP=function(a){this.G=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.hg=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Fza=function(a,b,c,d,e,f){f();var h=a.G.getVideoData(1),l=a.G.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.K);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.hg=!0,tF("_start",a.actionType)&&Eza(a)))}; Gza=function(a,b){a=g.v(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){xF("ad_i");g.uF({isMonetized:!0});break}}; Eza=function(a){if(a.hg)if(a.G.N("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)sF("video_to_ad");else if(a.G.N("web_csi_via_jspb")){var b=new Vx;b=K(b,8,2);var c=new Xx;c=K(c,21,Hza(a.B));c=K(c,7,4);b=Nh(c,Vx,22,b);b=K(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&K(b,76,a.contentCpn),a.videoId&&K(b,78,a.videoId)):(a.adCpn&&K(b,76,a.adCpn),a.adVideoId&&K(b,78,a.adVideoId));a.adFormat&&K(b,12,a.adFormat);a.contentCpn&& K(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&K(b,28,a.adCpn);a.adVideoId&&K(b,20,a.adVideoId);g.Iy(nF)(b,a.actionType)}else b={adBreakType:Iza(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType= a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),g.uF(b,a.actionType)}; Iza=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; Hza=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}}; g.Kza=function(a){return(a=Jza[a.toString()])?a:"LICENSE"}; g.jP=function(a){g.iP?a=a.keyCode:(a=a||window.event,a=a.keyCode?a.keyCode:a.which);return a}; kP=function(a){if(g.iP)a=new g.se(a.pageX,a.pageY);else{a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));a=new g.se(b,c)}return a}; g.lP=function(a){return g.iP?a.target:ena(a)}; g.mP=function(a){g.iP?a=a.defaultPrevented:(a=a||window.event,a=!1===a.returnValue||a.TU&&a.TU());return a}; Lza=function(a,b){if(g.iP){var c=function(){var d=g.Ea.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.oa(d))}; a.addEventListener("playing",c)}else g.hna(a,"playing",b)}; g.nP=function(a){g.iP?a.preventDefault():fna(a)}; oP=function(){g.D.call(this);this.lM=!1;this.B=null;this.V=this.K=!1;this.D=new g.Cd;this.va=null;g.J(this,this.D)}; pP=function(a){a=a.QB();return 1>a.length?NaN:a.end(a.length-1)}; Mza=function(a){!a.u&&mua()&&(a.C?a.C.then(function(){return Mza(a)}):a.Qf()||(a.u=a.Es()))}; Nza=function(a){a.u&&(a.u.dispose(),a.u=void 0)}; eJ=function(a,b,c){var d;(null==(d=a.va)?0:d.pe())&&a.va.ya("rms",b,void 0===c?!1:c)}; Oza=function(a,b,c){a.Rn()||a.getCurrentTime()>b||10d.length||(d[0]in PAa&&(f.clientName=PAa[d[0]]),d[1]in QAa&&(f.platform=QAa[d[1]]),f.applicationState=h,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.eR=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; fR=function(a,b,c,d,e,f){SQ.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()}; dEa=function(a,b,c,d){RQ.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; gR=function(a,b){this.u=a;this.j=b}; eEa=function(a,b){return a.u+b*(a.j-a.u)}; hR=function(a,b,c){return a.j-a.u?g.oe((b-a.u)/(a.j-a.u),0,1):null!=c?c:Infinity}; iR=function(a,b){g.xQ.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",X:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.J(this,this.u);this.Lc=this.Fa("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; jR=function(a,b,c,d,e,f){yQ.call(this,a,{I:"div",S:"ytp-ad-player-overlay",X:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.V=f;this.C=this.Fa("ytp-ad-player-overlay-flyout-cta");this.api.W().N("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.u=this.Fa("ytp-ad-player-overlay-instream-info");this.B=null;fEa(this)&&(a=Xe("div"),g.Yp(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new dEa(this.api,this.layoutId,this.interactionLoggingClientData,this.sb),c.Ha(a),c.init(PN("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.B=a);this.D=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Ba=this.Fa("ytp-ad-player-overlay-progress-bar"); this.qa=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.j=e;g.J(this,this.j);this.hide()}; fEa=function(a){a=a.api.W();return g.WK(a)&&a.u}; gEa=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.jj("/sharing_services",a);g.sC(d)}; g.kR=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; jEa=function(a,b){if(!a)return!1;var c,d=null==(c=g.Q(a,hEa))?void 0:c.signal;if(d&&b.lw)return!!b.lw[d];var e;if((c=null==(e=g.Q(a,iEa))?void 0:e.request)&&b.NK)return!!b.NK[c];for(var f in a)if(b.JK[f])return!0;return!1}; kEa=function(a,b){var c,d=null==(c=g.Q(a,hEa))?void 0:c.signal;if(d&&b.lw&&(c=b.lw[d]))return c();var e;if((c=null==(e=g.Q(a,iEa))?void 0:e.request)&&b.NK&&(e=b.NK[c]))return e();for(var f in a)if(b.JK[f]&&(a=b.JK[f]))return a()}; lR=function(a){return function(){return new a}}; mEa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=lEa[b];if(c){var d=new RegExp(c),e=g.v(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(lEa).forEach(function(h){var l=g.v(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)}); d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length}); e=g.v(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]}; g.mR=function(a){return"/youtubei/v1/"+mEa(a)}; nR=function(){}; oR=function(){}; nEa=function(a){if(Si()){var b=g.zy("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.dj(window.location.href);c&&b.push(c);c=g.dj(a);g.Bb(b,c)||!c&&Zb(a,"/")?(b=ej(a),(b=jfa(b))?(b="ST-"+Fe(b).toString(36),b=(b=g.mz(b)||null)?My(b):{}):b=null):b=null;null==b&&(b={});c=g.zy("LOGIN_INFO");g.Cy("copy_login_info_to_st_cookie")&&c&&(b.session_logininfo=c);pO(a,b)}}; pR=function(a,b,c,d){this.gL=a;this.fh=b;this.j=c;this.C=d;this.B=void 0;this.u=new Map;a.lw||(a.lw={});a.lw=Object.assign({},oEa,a.lw)}; pEa=function(a,b,c,d){if(void 0!==pR.instance){if(d=pR.instance,a=[a!==d.gL,b!==d.fh,c!==d.j,!1,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.yA("InnerTubeTransportService is already initialized",a); }else pR.instance=new pR(a,b,c,d)}; qR=function(a,b,c){var d=void 0===d?aC:d;var e=kEa(b,a.gL);if(!e)return Cf(new g.yA("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?(nEa(f.input),new g.zf(function(h){var l,m,n;return g.A(function(p){if(1==p.j)return m="cors"===(null==(l=f.Et)?void 0:l.mode)?"cors":void 0,a.j.aY?(n=qEa(a,f.config,m),p.La(2)):g.z(p,rEa(a,f.config,m),3);2!=p.j&&(n=p.u);h(sEa(a,f,n));g.wa(p)})})):Cf(new g.yA("Error: Failed to build request for command.",b))}; g.XP=function(a,b,c,d,e){e=void 0===e?{yu:{identity:aC}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.UP(d,f));return new g.zf(function(h){var l,m,n,p,q;return g.A(function(t){if(1==t.j)return l=oz(c),m=Ry(l)?"same-origin":"cors",a.j.aY?(n=qEa(a,e,m),t.La(2)):g.z(t,rEa(a,e,m),3);2!=t.j&&(n=t.u);var u=n;p=Cma(oz(c),u);q={input:p,Et:pz(p),Wo:b,config:e};h(sEa(a,q,n));g.wa(t)})})}; uEa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.p9a)?0:d.D9a)&&a.C){d=g.v(tEa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.C[e]&&a.C[e].handleResponse(b,c)}}; sEa=function(a,b,c){var d,e,f,h,l,m,n,p,q,t,u,y,B,G,M,N,H,U,aa,da,ua,la,X,ma,Y,Ca,W,Va,r;return g.A(function(P){switch(P.j){case 1:P.La(2);break;case 3:if((d=P.u)&&!d.isExpired())return P.return(Promise.resolve(d.j()));case 2:if(!(null==(e=b)?0:null==(f=e.Wo)?0:f.context)){P.La(4);break}h=b.Wo.context;P.La(5);break;case 5:if("hybrid"!==dma()){l=g.v([]);for(m=l.next();!m.done;m=l.next())n=m.value,n.j9a(h);P.La(4);break}return g.z(P,[].reduce(function(pb,Ha){return pb.then(function(){return Ha.i9a(h)})}, Promise.resolve()),4); case 4:if(null==(p=a.B)||!p.y9a(b.input,b.Wo)){P.La(9);break}return g.z(P,a.B.O8a(b.input,b.Wo),10);case 10:return q=P.u,g.Cy("kevlar_process_local_innertube_responses_killswitch")||uEa(a,q,b),P.return(q);case 9:return(y=null==(u=b.config)?void 0:u.Ue)&&a.u.has(y)&&g.Cy("web_memoize_inflight_requests")?t=a.u.get(y):(B=JSON.stringify(b.Wo),N=null!=(M=null==(G=b.Et)?void 0:G.headers)?M:{},b.Et=Object.assign({},b.Et,{headers:Object.assign({},N,c)}),H=Object.assign({},b.Et),"POST"===b.Et.method&&(H=Object.assign({}, H,{body:B})),(null==(U=b.config)?0:U.w8)&&xF(b.config.w8),aa=function(){return a.fh.fetch(b.input,H,b.config)},t=aa(),y&&a.u.set(y,t)),g.z(P,t,11); case 11:if((da=P.u)&&"error"in da&&(null==(ua=da)?0:null==(la=ua.error)?0:la.details))for(X=da.error.details,ma=g.v(X),Y=ma.next();!Y.done;Y=ma.next())Ca=Y.value,(W=Ca["@type"])&&-1a}; CIa=function(a,b){AIa(a.program,b.p8)&&(yF("bg_i",void 0,"player_att"),g.QR.initialize(a,function(){var c=a.serverEnvironment;yF("bg_l",void 0,"player_att");yIa=(0,g.gB)();for(var d=0;dt.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:PIa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:QIa[t[0]]||"UNKNOWN_INTERFACE",clientVersion:t[2]|| "",platform:RIa[t[1]]||"UNKNOWN_PLATFORM"};t={};if(n){u=void 0;try{u=JSON.parse(n)}catch(G){g.ZD(G)}u&&(t={params:[{key:"ms",value:u.ms}]},u.advertising_id&&(t.advertisingId=u.advertising_id),void 0!==u.limit_ad_tracking&&null!==u.limit_ad_tracking&&(t.limitAdTracking=u.limit_ad_tracking),q.osName=u.os_name,q.userAgent=u.user_agent,q.windowHeightPoints=u.window_height_points,q.windowWidthPoints=u.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId; l=a.serializedMdxMetadata;if(n||l)p={},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;0d&&(d=-(d+1));g.bf(a,b,d);b.setAttribute("data-layer",String(c))}; g.tS=function(a){var b=a.W();if(!b.ze)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!KN(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Ek();var f=c.kd&&c.kd.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.wd&&f;return!c.ypcPreview&&(!d||e)&&!g.Bb(c.Ba,"ypc")&& !a&&(!g.OK(b)||f)}; vJa=function(a){a=g.bS(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.CS)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ya("iqss",{trigger:d},!0),!0):!1}; g.uS=function(a,b,c,d){d=void 0===d?!1:d;g.xQ.call(this,b);var e=this;this.G=a;this.Ba=d;this.K=new g.lI(this);this.ma=new g.VQ(this,c,!0,void 0,void 0,function(){e.CT()}); g.J(this,this.K);g.J(this,this.ma)}; wJa=function(a){a.u&&(document.activeElement&&g.kf(a.element,document.activeElement)&&(mf(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.hA(a.K);a.V=void 0}; vS=function(a,b,c){a.ej()?a.Kb():a.pd(b,c)}; xJa=function(a,b,c,d){d=new g.V({I:"div",Ka:["ytp-linked-account-popup-button"],xa:d,Y:{role:"button",tabindex:"0"}});b=new g.V({I:"div",S:"ytp-linked-account-popup",Y:{role:"dialog","aria-modal":"true",tabindex:"-1"},X:[{I:"div",S:"ytp-linked-account-popup-title",xa:b},{I:"div",S:"ytp-linked-account-popup-description",xa:c},{I:"div",S:"ytp-linked-account-popup-buttons",X:[d]}]});g.uS.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",X:[b]},100);var e=this;this.dialog=b;g.J(this,this.dialog); d.Sa("click",function(){e.Kb()}); g.J(this,d);g.sS(this.G,this.element,4);this.hide()}; g.xS=function(a,b,c,d){g.xQ.call(this,a);this.priority=b;c&&g.wS(this,c);d&&this.Yd(d)}; g.yS=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{I:c?"a":"div",Ka:b,Y:a,X:[{I:"div",S:"ytp-menuitem-icon",xa:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",xa:"{{label}}"},{I:"div",S:"ytp-menuitem-content",xa:"{{content}}"}]}}; zS=function(a,b){a.updateValue("icon",b)}; g.wS=function(a,b){a.updateValue("label",b)}; AS=function(a){g.xS.call(this,g.yS({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.G=a;this.u=this.j=!1;this.Jb=a.Qm();a.Mf(this.element,this,!0);this.T(this.G,"settingsMenuVisibilityChanged",function(c){b.hc(c)}); this.T(this.G,"videodatachange",this.C);this.Sa("click",this.onClick);this.C()}; BS=function(a){return a?g.BE(a):""}; CS=function(a){g.D.call(this);this.api=a}; DS=function(a){CS.call(this,a);var b=this;YR(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)}); YR(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)}); a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)}); a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new AS(b.api);g.J(b,b.menuItem)})}; yJa=function(a){CS.call(this,a);this.events=new g.lI(a);g.J(this,this.events);a.N("fetch_bid_for_dclk_status")&&this.events.T(a,"videoready",function(b){var c,d={contentCpn:(null==(c=a.getVideoData(1))?void 0:c.clientPlaybackNonce)||""};2===a.getPresentingPlayerType()&&(d.adCpn=b.clientPlaybackNonce);g.DA(g.FA(),function(){Wqa("vr",d)})}); a.N("report_pml_debug_signal")&&this.events.T(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})), contentCpn:b.clientPlaybackNonce}};g.OA("adsClientStateChange",e)}})}; AJa=function(a,b){g.V.call(this,{I:"button",Ka:["ytp-button"],Y:{title:"{{title}}","aria-label":"{{label}}","data-priority":"-10","data-tooltip-target-id":"ytp-autonav-toggle-button"},X:[{I:"div",S:"ytp-autonav-toggle-button-container",X:[{I:"div",S:"ytp-autonav-toggle-button",Y:{"aria-checked":"true"}}]}]});this.G=a;this.u=[];this.j=!1;this.isChecked=!0;a.tb(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.KA);this.Sa("click",this.onClick);this.G.W().N("web_player_autonav_toggle_always_listen")&& zJa(this);this.tooltip=b.Ec();g.ob(this,g.ES(b.Ec(),this.element));this.KA()}; zJa=function(a){a.u.push(a.T(a.G,"videodatachange",a.KA));a.u.push(a.T(a.G,"videoplayerreset",a.KA));a.u.push(a.T(a.G,"onPlaylistUpdate",a.KA));a.u.push(a.T(a.G,"autonavchange",a.vR))}; BJa=function(a){a.isChecked=a.isChecked;a.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);FS(a.tooltip)}; CJa=function(a){return a.G.W().N("web_player_autonav_use_server_provided_state")&&UM(a.Pd())}; DJa=function(a){CS.call(this,a);var b=this;this.events=new g.lI(a);g.J(this,this.events);var c=a.W();c.ze&&c.N("web_player_move_autonav_toggle")&&this.events.T(a,"basechromeinitialized",function(){var d=g.cS(a),e=new AJa(a,d);g.J(b,e);d.QA(e)})}; FJa=function(){g.sA();return g.tA(0,192)?g.tA(0,190):!(g.Cy("web_watch_cinematics_disabled_by_default")||g.Cy("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&EJa())}; GS=function(a,b){g.xS.call(this,g.yS({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Sa("click",this.onClick)}; HS=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))}; GJa=function(a){var b=!a.W().Tj&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b}; g.IS=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.eR(a))return g.nP(a),!0;b.pauseVideo();a=e.getAttribute("href");g.qO(a,d,!0);return!1}; g.JS=function(a,b,c){if(jL(b.W())&&2!==b.getPresentingPlayerType()){if(g.eR(c))return b.isFullscreen()&&!b.W().externalFullscreen&&b.toggleFullscreen(),g.nP(c),!0}else if(b.W().N("embeds_enable_webview_nonjs_navigation")&&g.OK(b.W())&&(Cz()||Az()))b=c.target,b instanceof HTMLAnchorElement&&pk(b,fga(a));else{var d=g.eR(c);d&&b.pauseVideo();g.qO(a,void 0,!0);d&&(g.sO(a),g.nP(c))}return!1}; HJa=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,Y:{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"}}],S:"ytp-subtitles-button-icon"}}; IJa=function(){return{I:"div",S:"ytp-spinner-container",X:[{I:"div",S:"ytp-spinner-rotator",X:[{I:"div",S:"ytp-spinner-left",X:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",X:[{I:"div",S:"ytp-spinner-circle"}]}]}]}}; JJa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}}; g.KS=function(a,b,c){return a.W().Jj?b:g.XO("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})}; g.LS=function(a){return a.W().N("web_modern_player_settings")?KJa:a.W().N("web_modern_player_settings_quality_bottom")?LJa:MJa}; MS=function(a){var b=a.N("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";GS.call(this,b,g.LS(a).HI);var c=this;this.G=a;this.j=!1;this.u=new g.Qp(function(){g.$p(c.element,"ytp-menuitem-highlighted")},0); this.Jb=a.Qm();zS(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.Sa(NJa,this.B);g.J(this,this.u)}; PJa=function(a){CS.call(this,a);var b=this;this.j=!1;var c;this.N("web_cinematic_watch_settings")&&(null==(c=a.W().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){OJa(b)}),a.addEventListener("highlightSettingsMenu",function(d){OJa(b); var e=b.menuItem;"menu_item_cinematic_lighting"===d&&(g.Yp(e.element,"ytp-menuitem-highlighted"),g.Yp(e.element,"ytp-menuitem-highlight-transition-enabled"),e.u.start())}),YR(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))}; OJa=function(a){a.menuItem||(a.menuItem=new MS(a.api),g.J(a,a.menuItem),a.menuItem.Ra(a.j))}; NS=function(a){CS.call(this,a);var b=this;this.j={};this.events=new g.lI(a);g.J(this,this.events);this.N("enable_precise_embargos")&&!g.nL(this.api.W())&&(this.events.T(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.Ge("embargo",1);(null==c?0:c.cueRanges)&&QJa(b,c)}),this.events.T(a,g.uE("embargo"),function(c){b.N("html5_report_embargo_in_qoe_ping")&&b.api.Fn(!0); var d;c=null!=(d=b.j[c.id])?d:[];d=g.v(c);for(c=d.next();!c.done;c=d.next()){var e=c.value;b.api.hideControls();b.api.Pg("heartbeat.stop",2,"This video isn't available in your current playback area");c=void 0;(e=null==(c=e.embargo)?void 0:c.onTrigger)&&b.api.Pa("innertubeCommand",e)}}),this.events.T(a,g.vE("embargo"),function(){b.N("html5_report_embargo_in_qoe_ping")&&b.api.Fn(!1)}))}; QJa=function(a,b){if(null!=b&&KN(b)||a.N("enable_discrete_live_precise_embargos")){var c;null==(c=b.cueRanges)||c.filter(function(d){var e;return null==(e=d.onEnter)?void 0:e.some(a.u)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h; e=f+Number(null==(h=d.duration)?void 0:h.seconds);h="embargo_"+f;a.api.addUtcCueRange(h,f,e,"embargo",!1);d.onEnter&&(a.j[h]=d.onEnter.filter(a.u))})}}; RJa=function(a){CS.call(this,a);var b=this;this.j=[];this.events=new g.lI(a);g.J(this,this.events);YR(a,"addEmbedsConversionTrackingParams",function(c){b.api.W().Yn&&b.addEmbedsConversionTrackingParams(c)}); this.events.T(a,"veClickLogged",function(c){b.api.Fk(c)&&(c=Yh(c.visualElement.getAsJspb(),2),b.j.push(c))})}; SJa=function(a){CS.call(this,a);var b=this;this.events=new g.lI(a);g.J(this,this.events);a.W().C&&(this.events.T(a,"initialvideodatacreated",function(c){PP(OP(),16623);b.j=g.ZE();if(AN(c)){PP(OP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.kd){var d,e=null==(d=c.kd)?void 0:d.trackingParams;e&&RP(e)}if(c.getPlayerResponse()){var f;(c=null==(f=c.getPlayerResponse())?void 0:f.trackingParams)&&RP(c)}}else PP(OP(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}), c.Of&&(f=null==(e=c.Of)?void 0:e.trackingParams)&&RP(f)}),this.events.T(a,"loadvideo",function(){PP(OP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED", parentCsn:b.j})}),this.events.T(a,"cuevideo",function(){PP(OP(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED", parentCsn:b.j})}),this.events.T(a,"largeplaybuttonclicked",function(c){PP(OP(),27240,c.visualElement)}),this.events.T(a,"playlistnextbuttonclicked",function(c){PP(OP(),27240,c.visualElement)}),this.events.T(a,"playlistprevbuttonclicked",function(c){PP(OP(),27240,c.visualElement)}),this.events.T(a,"playlistautonextvideo",function(){PP(OP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})}))}; OS=function(a,b){g.V.call(this,{I:"button",Ka:["ytp-fullerscreen-edu-button","ytp-button"],X:[{I:"div",Ka:["ytp-fullerscreen-edu-text"],xa:"Scroll for details"},{I:"div",Ka:["ytp-fullerscreen-edu-chevron"],X:[{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Y:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Wa=a;this.B=b;this.j=new g.VQ(this,250,void 0,100);this.C=this.u=!1;a.tb(this.element,this,61214);this.B=b;g.J(this,this.j);this.T(a, "fullscreentoggled",this.Ra);this.T(a,"presentingplayerstatechange",this.Ra);this.Sa("click",this.onClick);this.Ra()}; PS=function(a){CS.call(this,a);var b=this;this.events=new g.lI(a);g.J(this,this.events);YR(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)}); YR(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)}); var c=a.W();a.N("external_fullscreen_with_edu")&&c.externalFullscreen&&jL(c)&&"1"===c.controlsType&&this.events.T(a,"basechromeinitialized",function(){var d=g.cS(a);b.j=new OS(a,d);g.J(b,b.j);d.QA(b.j)})}; TJa=function(a){g.V.call(this,{I:"div",S:"ytp-gated-actions-overlay",X:[{I:"div",S:"ytp-gated-actions-overlay-background",X:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Ka:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Y:{"aria-label":"Close"},X:[g.CQ()]},{I:"div",S:"ytp-gated-actions-overlay-bar",X:[{I:"div",S:"ytp-gated-actions-overlay-text-container",X:[{I:"div",S:"ytp-gated-actions-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle", xa:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Fa("ytp-gated-actions-overlay-background");this.u=this.Fa("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Fa("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.Pa("onCloseMiniplayer")}); this.hide()}; VJa=function(a,b){var c=0,d={};for(c=0;ce&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;VJa(c,d.actionButtons||[]);c.show()}else c.hide()}),g.sS(this.api,this.j.element,4))}; QS=function(a){CS.call(this,a);var b=this;this.events=new g.lI(a);g.J(this,this.events);g.lL(a.W())&&(YR(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}),YR(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}))}; XJa=function(a,b,c,d){var e=1E3*a.api.getCurrentTime()t.start&&dN;N++)if(G=(G<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(B.charAt(N)),4==N%5){for(var H="",U=0;6>U;U++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(G&31)+H,G>>=5;M+=H}B=M.substr(0,4)+" "+M.substr(4,4)+" "+M.substr(8,4)}else B="";l={video_id_and_cpn:String(c.videoId)+" / "+B,codecs:"", dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:d,extra_debug_info:"",bandwidth_style:y,network_activity_style:y,network_activity_bytes:m.toFixed(0)+" KB",shader_info:u,shader_info_style:u?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1aa)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(aa=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+aa.sequence);l.live_mode= e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=jS(h,"bandwidth");l.network_activity_samples=jS(h,"networkactivity");l.live_latency_samples=jS(h,"livelatency");l.buffer_health_samples=jS(h,"bufferhealth");b=g.IN(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";PM(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20230523_01_RC00", l.release_style=""):l.release_style="display:none";l.debug_info&&0=l.debug_info.length+p.length?l.debug_info+=" "+p:l.extra_debug_info=p;l.extra_debug_info_style=l.extra_debug_info&&0=a.length?0:b}; DKa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; g.rT=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.JM(a.u,b),g.J(a,e),e.Wk=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; EKa=function(a,b){a.index=g.oe(b,0,a.length-1);a.startSeconds=0}; FKa=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.rT(a);a.items=[];for(var d=g.v(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; IKa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j){c=g.yR();var p=a.W(),q={context:g.UR(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};p=p.embedConfig;var t=b.docid||b.video_id||b.videoId||b.id;if(!t){t=b.raw_embedded_player_response;if(!t){var u=b.embedded_player_response;u&&(t=JSON.parse(u))}if(t){var y,B,G,M,N,H;t=(null==(H=g.Q(null==(y=t)?void 0:null==(B=y.embedPreview)?void 0:null==(G=B.thumbnailPreviewRenderer)?void 0:null==(M=G.playButton)? void 0:null==(N=M.buttonRenderer)?void 0:N.navigationEndpoint,g.YM))?void 0:H.videoId)||null}else t=null}y=(y=t)?y:void 0;B=a.playlistId?a.playlistId:b.list;G=b.listType;if(B){var U;"user_uploads"===G?U={username:B}:U={playlistId:B};GKa(p,y,b,U);q.playlistRequest=U}else b.playlist?(U={templistVideoIds:b.playlist.toString().split(",")},GKa(p,y,b,U),q.playlistRequest=U):y&&(U={videoId:y},p&&(U.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=U);d=q;e=g.mR(HKa);g.xa(n,2);return g.z(n,g.XP(c,d, e),4)}if(2!=n.j)return f=n.u,h=a.W(),b.raw_embedded_player_response=f,h.Za=Lz(b,g.OK(h)),h.B="EMBEDDED_PLAYER_MODE_PFL"===h.Za,f&&(l=f,l.trackingParams&&RP(l.trackingParams)),n.return(new g.JM(h,b));m=g.za(n);m instanceof Error||(m=Error("b259802748"));g.YD(m);return n.return(a)})}; GKa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.tT=function(a,b){sT.get(a);sT.set(a,b)}; g.uT=function(a){g.yE.call(this);this.loaded=!1;this.player=a}; JKa=function(){this.u=[];this.j=[]}; g.vT=function(a,b){return b?a.j.concat(a.u):a.j}; g.wT=function(a,b){switch(b.kind){case "asr":KKa(b,a.u);break;default:KKa(b,a.j)}}; KKa=function(a,b){g.xb(b,function(c){return a.equals(c)})||b.push(a)}; g.xT=function(a){g.D.call(this);this.Z=a;this.j=new JKa;this.C=[]}; g.yT=function(a,b,c){g.xT.call(this,a);this.audioTrack=c;this.u=null;this.B=!1;this.eventId=null;this.C=b.BK;this.B=g.yN(b);this.eventId=b.eventId}; LKa=function(){this.j=this.ek=!1}; MKa=function(a){a=void 0===a?{}:a;var b=void 0===a.Ro?!1:a.Ro,c=new LKa;c.ek=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c}; g.NKa=function(a){this.j=a;this.J=new LKa;this.Wn=this.Vn=!1;this.ym=2;this.ma=20971520;this.Ja=8388608;this.ea=120;this.qb=3145728;this.od=this.j.N("html5_platform_backpressure");this.ub=62914560;this.md=10485760;this.Bm=g.PJ(this.j.experiments,"html5_min_readbehind_secs");this.jx=g.PJ(this.j.experiments,"html5_min_readbehind_cap_secs");this.ix=g.PJ(this.j.experiments,"html5_max_readbehind_secs");this.FC=this.j.N("html5_trim_future_discontiguous_ranges");this.Ci=this.j.N("html5_offline_reset_media_stream_on_unresumable_slices"); this.dc=NaN;this.po=this.ll=this.Dq=2;this.Ma=2097152;this.Ae=0;this.oo=1048576;this.Mc=!1;this.yd=1800;this.Am=this.xm=5;this.ib=15;this.yf=1;this.K=1.15;this.V=1.05;this.rl=1;this.Tn=!0;this.Za=!1;this.qo=.8;this.lk=this.Cc=!1;this.Qc=6;this.B=!1;this.Jj=g.PJ(this.j.experiments,"html5_static_abr_resolution_shelf");this.zi=g.PJ(this.j.experiments,"html5_min_startup_buffered_media_duration_secs");this.Xn=g.PJ(this.j.experiments,"html5_post_interrupt_readahead");this.Un=!1;this.Zn=g.PJ(this.j.experiments, "html5_probe_primary_delay_base_ms")||5E3;this.So=100;this.ag=10;this.kx=g.PJ(this.j.experiments,"html5_offline_failure_retry_limit")||2;this.pm=this.j.experiments.ob("html5_clone_original_for_fallback_location");this.uh=1;this.dj=1.6;this.Zf=!1;this.Ab=g.PJ(this.j.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Tj=g.PJ(this.j.experiments,"html5_subsegment_readahead_timeout_secs");this.Ty=g.PJ(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Lj= g.PJ(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.qC=g.PJ(this.j.experiments,"html5_subsegment_readahead_min_load_speed");this.Fo=g.PJ(this.j.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.AC=g.PJ(this.j.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.cg=15;this.Al=1;this.Rc=!1;this.xx=this.j.N("html5_restrict_streaming_xhr_on_sqless_requests");this.gx=g.PJ(this.j.experiments,"html5_max_headm_for_streaming_xhr"); this.qx=this.j.N("html5_pipeline_manifestless_allow_nonstreaming");this.sx=this.j.N("html5_prefer_server_bwe3");this.Pw=this.j.N("html5_last_slice_transition");this.py=this.j.N("html5_store_xhr_headers_readable");this.Op=!1;this.ao=0;this.Yi=2;this.uo=this.nm=!1;this.wm=g.PJ(this.j.experiments,"html5_max_drift_per_track_secs");this.Dm=this.j.N("html5_no_placeholder_rollbacks");this.Hy=this.j.N("html5_subsegment_readahead_enable_mffa");this.ze=this.j.N("html5_allow_video_keyframe_without_audio");this.ox= this.j.N("html5_enable_vp9_fairplay");this.Cm=this.j.N("html5_never_pause_appends");this.qc=!0;this.ye=this.fb=this.Pb=!1;this.qm=!0;this.aj=!1;this.u="";this.Hw=1048576;this.xe=[];this.Kw=this.j.N("html5_woffle_resume");this.Wk=this.j.N("html5_abs_buffer_health");this.Nw=this.j.N("html5_interruption_resets_seeked_time");this.hx=g.PJ(this.j.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ua=!1;this.xl=this.j.N("html5_explicitly_dispose_xhr");this.jo=!1;this.lA=!this.j.N("html5_encourage_array_coalescing"); this.ul=!1;this.wx=this.j.N("html5_restart_on_unexpected_detach");this.Da=0;this.wl="";this.Gw=this.j.N("html5_disable_codec_for_playback_on_error");this.Zi=!1;this.Mw=this.j.N("html5_filter_non_efficient_formats_for_safari");this.j.N("html5_format_hybridization");this.Az=this.j.N("html5_abort_before_separate_init");this.yx=xz();this.Rg=!1;this.Kx=this.j.N("html5_serialize_server_stitched_ad_request");this.mA=this.j.N("html5_skip_buffer_check_seek_to_head");this.Ed=!1;this.gA=this.j.N("html5_attach_po_token_to_bandaid"); this.zm=g.PJ(this.j.experiments,"html5_max_redirect_response_length")||8192;this.Zo=this.j.N("html5_rewrite_timestamps_for_webm");this.Hb=this.j.N("html5_only_media_duration_for_discontinuities");this.vx=g.PJ(this.j.experiments,"html5_resource_bad_status_delay_scaling")||1;this.j.N("html5_onesie_live");this.eD=this.j.N("html5_onesie_premieres");this.Jw=this.j.N("html5_drop_onesie_for_live_mode_mismatch");this.mx=g.PJ(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Em=g.PJ(this.j.experiments, "html5_attach_num_random_bytes_to_bandaid");this.Ax=this.j.N("html5_self_init_consolidation");this.nx=g.PJ(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.D=!1;this.Ba=this.j.N("html5_ssdai_use_post_for_media")&&this.j.N("gab_return_sabr_ssdai_config");this.aA=this.j.N("html5_ssdai_always_decorate_cue");this.Aq=this.j.N("html5_use_post_for_media");this.useUmp=this.j.N("html5_use_ump")||this.j.N("html5_cabr_utc_seek");this.dl=this.j.N("html5_cabr_utc_seek");this.Oa=this.Aa=!1;this.Yn= this.j.N("html5_prefer_drc");this.tx=this.j.N("html5_reset_primary_stats_on_redirector_failure");this.j.N("html5_remap_to_original_host_when_redirected");this.C=!1;this.Xf=this.j.N("html5_enable_sabr_format_selection");this.nA=this.j.N("html5_iterative_seeking_buffered_time");this.Uk=this.j.N("html5_use_network_error_code_enums");this.oA=this.j.N("html5_disable_overlapping_requests");this.Lw=this.j.N("html5_fallback_to_cabr_on_net_bad_status");this.Yf=this.j.N("html5_enable_sabr_partial_segments"); this.qa=!1;this.zt=this.j.N("html5_use_media_end_for_end_of_segment");this.nD=this.j.N("html5_update_ctmp_rqs_logging");this.zl=!this.j.N("html5_remove_deprecated_ticks");this.Ie=this.j.N("html5_disable_bandwidth_cofactors_for_sabr");this.enableServerDrivenRequestCancellation=this.j.N("html5_enable_server_driven_request_cancellation");this.zx=this.j.N("html5_sabr_reset_context_policy_on_redirect");this.yl=this.j.N("html5_live_streaming_impedance_mismatch_applied_in_loader");this.If=this.j.N("html5_enable_sabr_enhanced_sourcebuffer_eviction_logic"); this.Ow=g.PJ(this.j.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.bp=this.j.N("html5_use_goodput_request_for_probing")}; OKa=function(a,b){1080>31));cM(a,16,b.s4);cM(a,17,b.detailedNetworkType);cM(a,18,b.j2);cM(a,19,b.h2);cM(a,21,b.X8);cM(a,23,b.U1);cM(a,28,b.a8);cM(a,34,b.visibility);cM(a,36,b.J2);gM(a,38,b.mediaCapabilities,PKa,3);cM(a,39,b.l9);cM(a,40,b.qT);cM(a,44,b.playerState);dM(a,46,b.H2);cM(a,48,b.G8)}; RKa=function(a){return{qK:YL(a,2),videoId:WL(a,3),YP:TL(a,4)}}; PKa=function(a,b){var c;if(b.XP)for(c=0;c>2)-("="==n[u-2])-("="==n[u-1]);q>4,t>2),t>2];w=F&-8;var E=C+w|0;b:if(!(F&1)){if(!(F&3))break a;F=r[C>>2];C=C-F|0;if(C>>>0=F>>>0){F=F>>>3|0;var L=r[C+12>>2];var I=r[C+8>>2];(L|0)==(I|0)?(I=2368,F=r[592]&X(-2,F),r[I>>2]=F):(r[I+12>>2]=L,r[L+8>>2]=I)}else{var R=r[C+24>>2];F=r[C+12>>2];c:if((C|0)!=(F|0))I=r[C+8>>2],r[I+12>>2]= F,r[F+8>>2]=I;else{L=C+20|0;I=r[L>>2];if(!I&&(L=C+16|0,I=r[L>>2],!I)){F=0;break c}for(;;){var T=L;F=I;L=F+20|0;I=r[L>>2];if(!I&&(L=F+16|0,I=r[F+16>>2],!I))break}r[T>>2]=0}if(R){L=r[C+28>>2];I=(L<<2)+2672|0;c:{if(r[I>>2]==(C|0)){if(r[I>>2]=F)break c;I=2372;F=r[593]&X(-2,L);r[I>>2]=F;break b}r[R+(r[R+16>>2]==(C|0)?16:20)>>2]=F;if(!F)break b}r[F+24>>2]=R;if(I=r[C+16>>2])r[F+16>>2]=I,r[I+24>>2]=F;if(I=r[C+20>>2])r[F+20>>2]=I,r[I+24>>2]=F}}else if(F=r[E+4>>2],3==(F&3)){r[594]=w;r[E+4>>2]=F&-2;r[C+4>>2]= w|1;r[w+C>>2]=w;return}}if(!(C>>>0>=E>>>0)&&(F=r[E+4>>2],F&1)){b:{if(!(F&2)){if(r[598]==(E|0)){r[598]=C;w=r[595]+w|0;r[595]=w;r[C+4>>2]=w|1;if(r[597]!=(C|0))break a;r[594]=0;r[597]=0;return}if(r[597]==(E|0)){r[597]=C;w=r[594]+w|0;r[594]=w;r[C+4>>2]=w|1;r[w+C>>2]=w;return}w=(F&-8)+w|0;c:if(255>=F>>>0)F=F>>>3|0,L=r[E+12>>2],I=r[E+8>>2],(L|0)==(I|0)?(I=2368,F=r[592]&X(-2,F),r[I>>2]=F):(r[I+12>>2]=L,r[L+8>>2]=I);else{R=r[E+24>>2];F=r[E+12>>2];d:if((E|0)!=(F|0))I=r[E+8>>2],r[I+12>>2]=F,r[F+8>>2]=I;else{L= E+20|0;I=r[L>>2];if(!I&&(L=E+16|0,I=r[L>>2],!I)){F=0;break d}for(;T=L,F=I,L=F+20|0,I=r[L>>2],I||(L=F+16|0,I=r[F+16>>2],I););r[T>>2]=0}if(R){L=r[E+28>>2];I=(L<<2)+2672|0;d:{if(r[I>>2]==(E|0)){if(r[I>>2]=F)break d;I=2372;F=r[593]&X(-2,L);r[I>>2]=F;break c}r[R+(r[R+16>>2]==(E|0)?16:20)>>2]=F;if(!F)break c}r[F+24>>2]=R;if(I=r[E+16>>2])r[F+16>>2]=I,r[I+24>>2]=F;if(I=r[E+20>>2])r[F+20>>2]=I,r[I+24>>2]=F}}r[C+4>>2]=w|1;r[w+C>>2]=w;if(r[597]!=(C|0))break b;r[594]=w;return}r[E+4>>2]=F&-2;r[C+4>>2]=w|1;r[w+ C>>2]=w}if(255>=w>>>0)F=(w&-8)+2408|0,I=r[592],w=1<<(w>>>3),I&w?w=r[F+8>>2]:(r[592]=w|I,w=F),r[F+8>>2]=C,r[w+12>>2]=C,r[C+12>>2]=F,r[C+8>>2]=w;else{L=31;16777215>=w>>>0&&(F=vb(w>>>8|0),L=((w>>>38-F&1)-(F<<1)|0)+62|0);r[C+28>>2]=L;r[C+16>>2]=0;r[C+20>>2]=0;T=(L<<2)+2672|0;b:{c:{I=r[593];F=1<>>1|0)|0:0);for(F=r[T>>2];;){I=F;if((r[F+4>>2]&-8)==(w|0))break c;F=L>>>29|0;L<<=1;T=I+(F&4)|0;F=r[T+16>>2];if(!F)break}r[T+16>>2]=C;r[C+24>>2]=I}else r[593]=F|I,r[T>>2]=C,r[C+24>> 2]=T;r[C+12>>2]=C;r[C+8>>2]=C;break b}w=r[I+8>>2];r[w+12>>2]=C;r[I+8>>2]=C;r[C+24>>2]=0;r[C+12>>2]=I;r[C+8>>2]=w}w=r[600]-1|0;r[600]=w?w:-1}}}} function n(w,C,F){if(!F)return r[w+4>>2]==r[C+4>>2];if((w|0)==(C|0))return 1;F=r[w+4>>2];w=P[F|0];C=r[C+4>>2];var E=P[C|0];a:if(!(!w|(E|0)!=(w|0)))for(;;){E=P[C+1|0];w=P[F+1|0];if(!w)break a;C=C+1|0;F=F+1|0;if((w|0)!=(E|0))break}return(w|0)==(E|0)} function p(w){var C;w=1>=w>>>0?1:w;a:{for(;;){if(C=t(w))break a;if(C=r[716])nb[C|0]();else break}gb(1);d();d();d()}return C} function q(w){var C=r[590];var F=w+7&-8;w=C+F|0;a:if(!(w>>>0<=C>>>0&&F)){if(w>>>0>ma()<<16>>>0&&(-1==(Y((w-(ma()<<16)|0)+65535>>>16|0)|0)?F=0:(zb(0),F=1),!F))break a;r[590]=w;return C}r[591]=48;return-1} function t(w){w|=0;var C=0,F;eb=F=eb-16|0;a:{b:{c:{d:{e:{f:{g:{h:{i:{if(244>=w>>>0){var E=r[592];var L=11>w>>>0?16:w+11&-8;var I=L>>>3|0;var R=E>>>I|0;if(R&3){I=I+((R^-1)&1)|0;w=I<<3;R=w+2408|0;C=r[w+2416>>2];w=r[C+8>>2];if((R|0)==(w|0)){var T=2368;R=X(-2,I)&E;r[T>>2]=R}else r[w+12>>2]=R,r[R+8>>2]=w;w=C+8|0;R=I<<3;r[C+4>>2]=R|3;R=R+C|0;r[R+4>>2]|=1;break a}var ka=r[594];if(ka>>>0>=L>>>0)break i;if(R){w=2<>2];w=r[ha+8>>2];(R|0)==(w|0)? (E=X(-2,C)&E,r[592]=E):(r[w+12>>2]=R,r[R+8>>2]=w);r[ha+4>>2]=L|3;I=ha+L|0;w=C<<3;C=w-L|0;r[I+4>>2]=C|1;r[w+ha>>2]=C;if(ka){R=(ka&-8)+2408|0;var fa=r[597];w=1<<(ka>>>3);w&E?w=r[R+8>>2]:(r[592]=w|E,w=R);r[R+8>>2]=fa;r[w+12>>2]=fa;r[fa+12>>2]=R;r[fa+8>>2]=w}w=ha+8|0;r[597]=I;r[594]=C;break a}var ra=r[593];if(!ra)break i;I=r[(la(0-ra&ra)<<2)+2672>>2];fa=(r[I+4>>2]&-8)-L|0;for(R=I;;){j:{w=r[R+16>>2];if(!w&&(w=r[R+20>>2],!w))break j;R=(r[w+4>>2]&-8)-L|0;fa=(C=R>>>0>>0)?R:fa;I=C?w:I;R=w;continue}break}var Aa= r[I+24>>2];C=r[I+12>>2];if((C|0)!=(I|0)){w=r[I+8>>2];r[w+12>>2]=C;r[C+8>>2]=w;break b}R=I+20|0;w=r[R>>2];if(!w){w=r[I+16>>2];if(!w)break h;R=I+16|0}for(;ha=R,C=w,R=w+20|0,w=r[R>>2],w||(R=C+16|0,w=r[C+16>>2],w););r[ha>>2]=0;break b}L=-1;if(!(4294967231>>0)&&(w=w+11|0,L=w&-8,ra=r[593])){fa=0-L|0;E=0;256>L>>>0||(E=31,16777215>>0||(w=vb(w>>>8|0),E=((L>>>38-w&1)-(w<<1)|0)+62|0));R=r[(E<<2)+2672>>2];j:{k:{if(R)for(w=0,I=L<<(31!=(E|0)?25-(E>>>1|0)|0:0);;){ha=(r[R+4>>2]&-8)-L|0;if(!(ha>>>0>=fa>>>0|| (C=R,fa=ha,ha))){fa=0;w=R;break k}ha=r[R+20>>2];R=r[((I>>>29&4)+R|0)+16>>2];w=ha?(ha|0)==(R|0)?w:ha:w;I<<=1;if(!R)break}else w=0;if(!(w|C)){C=0;w=2<>2]}if(!w)break j}for(;R=(r[w+4>>2]&-8)-L|0,fa=(I=R>>>0>>0)?R:fa,C=I?w:C,w=(R=r[w+16>>2])?R:r[w+20>>2],w;);}if(!(!C|r[594]-L>>>0<=fa>>>0)){E=r[C+24>>2];I=r[C+12>>2];if((C|0)!=(I|0)){w=r[C+8>>2];r[w+12>>2]=I;r[I+8>>2]=w;break c}R=C+20|0;w=r[R>>2];if(!w){w=r[C+16>>2];if(!w)break g;R=C+16|0}for(;ha= R,I=w,R=w+20|0,w=r[R>>2],w||(R=I+16|0,w=r[I+16>>2],w););r[ha>>2]=0;break c}}}w=r[594];if(w>>>0>=L>>>0){C=r[597];R=w-L|0;16<=R>>>0?(I=C+L|0,r[I+4>>2]=R|1,r[w+C>>2]=R,r[C+4>>2]=L|3):(r[C+4>>2]=w|3,w=w+C|0,r[w+4>>2]|=1,R=I=0);r[594]=R;r[597]=I;w=C+8|0;break a}Aa=r[595];if(Aa>>>0>L>>>0){R=Aa-L|0;r[595]=R;I=r[598];w=I+L|0;r[598]=w;r[w+4>>2]=R|1;r[I+4>>2]=L|3;w=I+8|0;break a}w=0;ra=L+47|0;r[710]?I=r[712]:(r[713]=-1,r[714]=-1,r[711]=4096,r[712]=4096,r[710]=F+12&-16^1431655768,r[715]=0,r[703]=0,I=4096);ha= ra+I|0;fa=0-I|0;R=ha&fa;if(R>>>0<=L>>>0)break a;if(C=r[702])if(I=r[700],E=I+R|0,C>>>0>>0|I>>>0>=E>>>0)break a;i:{if(!(P[2812]&4)){j:{k:{l:{m:{if(C=r[598])for(w=2816;;){I=r[w>>2];if(I>>>0<=C>>>0&C>>>0>2]>>>0)break m;w=r[w+8>>2];if(!w)break}I=q(0);if(-1==(I|0))break j;E=R;C=r[711];w=C-1|0;w&I&&(E=(R-I|0)+(w+I&0-C)|0);if(E>>>0<=L>>>0)break j;if(C=r[702])if(w=r[700],fa=w+E|0,C>>>0>>0|w>>>0>=fa>>>0)break j;w=q(E);if((I|0)!=(w|0))break l;break i}E=fa&ha-Aa;I=q(E);if((I|0)==(r[w>>2]+r[w+ 4>>2]|0))break k;w=I}if(-1==(w|0))break j;if(L+48>>>0<=E>>>0){I=w;break i}I=r[712];I=I+(ra-E|0)&0-I;if(-1==(q(I)|0))break j;E=I+E|0;I=w;break i}if(-1!=(I|0))break i}r[703]|=4}I=q(R);w=q(0);if(-1==(I|0)|-1==(w|0)|w>>>0<=I>>>0)break d;E=w-I|0;if(E>>>0<=L+40>>>0)break d}w=r[700]+E|0;r[700]=w;w>>>0>Ha[701]&&(r[701]=w);i:{if(ha=r[598]){for(w=2816;;){C=r[w>>2];R=r[w+4>>2];if((C+R|0)==(I|0))break i;w=r[w+8>>2];if(!w)break}break f}w=r[596];w>>>0<=I>>>0&&w||(r[596]=I);w=0;r[705]=E;r[704]=I;r[600]=-1;r[601]= r[710];for(r[707]=0;C=w<<3,R=C+2408|0,r[C+2416>>2]=R,r[C+2420>>2]=R,w=w+1|0,32!=(w|0););C=E-40|0;w=I+8&7?-8-I&7:0;R=C-w|0;r[595]=R;w=w+I|0;r[598]=w;r[w+4>>2]=R|1;r[(I+C|0)+4>>2]=40;r[599]=r[714];break e}if(P[w+12|0]&8|C>>>0>ha>>>0|I>>>0<=ha>>>0)break f;r[w+4>>2]=R+E;w=ha+8&7?-8-ha&7:0;I=w+ha|0;r[598]=I;R=r[595]+E|0;w=R-w|0;r[595]=w;r[I+4>>2]=w|1;r[(R+ha|0)+4>>2]=40;r[599]=r[714];break e}C=0;break b}I=0;break c}Ha[596]>I>>>0&&(r[596]=I);R=I+E|0;w=2816;f:{g:{h:{i:{j:{k:{for(;;){if((R|0)!=r[w>>2]){if(w= r[w+8>>2])continue;break k}break}if(!(P[w+12|0]&8))break j}for(w=2816;;){R=r[w>>2];if(R>>>0<=ha>>>0&&(fa=R+r[w+4>>2]|0,fa>>>0>ha>>>0))break i;w=r[w+8>>2]}}r[w>>2]=I;r[w+4>>2]+=E;ra=(I+8&7?-8-I&7:0)+I|0;r[ra+4>>2]=L|3;E=R+(R+8&7?-8-R&7:0)|0;Aa=L+ra|0;w=E-Aa|0;if((ha|0)==(E|0)){r[598]=Aa;w=r[595]+w|0;r[595]=w;r[Aa+4>>2]=w|1;break g}if(r[597]==(E|0)){r[597]=Aa;w=r[594]+w|0;r[594]=w;r[Aa+4>>2]=w|1;r[w+Aa>>2]=w;break g}fa=r[E+4>>2];if(1==(fa&3)){ha=fa&-8;j:if(255>=fa>>>0)I=r[E+12>>2],R=r[E+8>>2],(I|0)== (R|0)?(T=2368,R=r[592]&X(-2,fa>>>3|0),r[T>>2]=R):(r[R+12>>2]=I,r[I+8>>2]=R);else{L=r[E+24>>2];I=r[E+12>>2];k:if((E|0)!=(I|0))R=r[E+8>>2],r[R+12>>2]=I,r[I+8>>2]=R;else{fa=E+20|0;R=r[fa>>2];if(!R&&(fa=E+16|0,R=r[fa>>2],!R)){I=0;break k}for(;C=fa,I=R,fa=I+20|0,R=r[fa>>2],R||(fa=I+16|0,R=r[I+16>>2],R););r[C>>2]=0}if(L){C=r[E+28>>2];R=(C<<2)+2672|0;k:{if(r[R>>2]==(E|0)){if(r[R>>2]=I)break k;T=2372;R=r[593]&X(-2,C);r[T>>2]=R;break j}r[L+(r[L+16>>2]==(E|0)?16:20)>>2]=I;if(!I)break j}r[I+24>>2]=L;if(R=r[E+ 16>>2])r[I+16>>2]=R,r[R+24>>2]=I;if(R=r[E+20>>2])r[I+20>>2]=R,r[R+24>>2]=I}}E=ha+E|0;fa=r[E+4>>2];w=w+ha|0}r[E+4>>2]=fa&-2;r[Aa+4>>2]=w|1;r[w+Aa>>2]=w;if(255>=w>>>0){R=(w&-8)+2408|0;I=r[592];w=1<<(w>>>3);I&w?w=r[R+8>>2]:(r[592]=w|I,w=R);r[R+8>>2]=Aa;r[w+12>>2]=Aa;r[Aa+12>>2]=R;r[Aa+8>>2]=w;break g}fa=31;16777215>=w>>>0&&(R=vb(w>>>8|0),fa=((w>>>38-R&1)-(R<<1)|0)+62|0);r[Aa+28>>2]=fa;r[Aa+16>>2]=0;r[Aa+20>>2]=0;R=(fa<<2)+2672|0;C=r[593];I=1<>>1|0)|0:0);for(I=r[R>> 2];;){R=I;if((r[I+4>>2]&-8)==(w|0))break h;I=fa>>>29|0;fa<<=1;C=(I&4)+R|0;I=r[C+16>>2];if(!I)break}r[C+16>>2]=Aa}else r[593]=I|C,r[R>>2]=Aa;r[Aa+24>>2]=R;r[Aa+12>>2]=Aa;r[Aa+8>>2]=Aa;break g}C=E-40|0;w=I+8&7?-8-I&7:0;R=C-w|0;r[595]=R;w=w+I|0;r[598]=w;r[w+4>>2]=R|1;r[(I+C|0)+4>>2]=40;r[599]=r[714];w=(fa+(fa-39&7?39-fa&7:0)|0)-47|0;C=w>>>0>>0?ha:w;r[C+4>>2]=27;w=r[707];r[C+16>>2]=r[706];r[C+20>>2]=w;w=r[705];r[C+8>>2]=r[704];r[C+12>>2]=w;r[706]=C+8;r[705]=E;r[704]=I;r[707]=0;for(w=C+24|0;r[w+ 4>>2]=7,R=w+8|0,w=w+4|0,R>>>0>>0;);if((C|0)==(ha|0))break e;r[C+4>>2]&=-2;fa=C-ha|0;r[ha+4>>2]=fa|1;r[C>>2]=fa;if(255>=fa>>>0){R=(fa&-8)+2408|0;I=r[592];w=1<<(fa>>>3);I&w?w=r[R+8>>2]:(r[592]=w|I,w=R);r[R+8>>2]=ha;r[w+12>>2]=ha;r[ha+12>>2]=R;r[ha+8>>2]=w;break e}w=31;16777215>=fa>>>0&&(w=vb(fa>>>8|0),w=((fa>>>38-w&1)-(w<<1)|0)+62|0);r[ha+28>>2]=w;r[ha+16>>2]=0;r[ha+20>>2]=0;R=(w<<2)+2672|0;C=r[593];I=1<>>1|0)|0:0);for(C=r[R>>2];;){R=C;if((fa|0)==(r[R+4>>2]&-8))break f; I=w>>>29|0;w<<=1;I=(I&4)+R|0;C=r[I+16>>2];if(!C)break}r[I+16>>2]=ha}else r[593]=I|C,r[R>>2]=ha;r[ha+24>>2]=R;r[ha+12>>2]=ha;r[ha+8>>2]=ha;break e}w=r[R+8>>2];r[w+12>>2]=Aa;r[R+8>>2]=Aa;r[Aa+24>>2]=0;r[Aa+12>>2]=R;r[Aa+8>>2]=w}w=ra+8|0;break a}w=r[R+8>>2];r[w+12>>2]=ha;r[R+8>>2]=ha;r[ha+24>>2]=0;r[ha+12>>2]=R;r[ha+8>>2]=w}w=r[595];if(!(w>>>0<=L>>>0)){R=w-L|0;r[595]=R;I=r[598];w=I+L|0;r[598]=w;r[w+4>>2]=R|1;r[I+4>>2]=L|3;w=I+8|0;break a}}r[591]=48;w=0;break a}c:if(E){R=r[C+28>>2];w=(R<<2)+2672|0;d:{if(r[w>> 2]==(C|0)){if(r[w>>2]=I)break d;ra=X(-2,R)&ra;r[593]=ra;break c}r[E+(r[E+16>>2]==(C|0)?16:20)>>2]=I;if(!I)break c}r[I+24>>2]=E;if(w=r[C+16>>2])r[I+16>>2]=w,r[w+24>>2]=I;if(w=r[C+20>>2])r[I+20>>2]=w,r[w+24>>2]=I}c:if(15>=fa>>>0)w=fa+L|0,r[C+4>>2]=w|3,w=w+C|0,r[w+4>>2]|=1;else{r[C+4>>2]=L|3;ha=C+L|0;r[ha+4>>2]=fa|1;r[ha+fa>>2]=fa;if(255>=fa>>>0)R=(fa&-8)+2408|0,I=r[592],w=1<<(fa>>>3),I&w?w=r[R+8>>2]:(r[592]=w|I,w=R),r[R+8>>2]=ha,r[w+12>>2]=ha,r[ha+12>>2]=R;else{w=31;16777215>=fa>>>0&&(w=vb(fa>>>8|0), w=((fa>>>38-w&1)-(w<<1)|0)+62|0);r[ha+28>>2]=w;r[ha+16>>2]=0;r[ha+20>>2]=0;R=(w<<2)+2672|0;d:{I=1<>>1|0)|0:0);for(L=r[R>>2];;){R=L;if((r[R+4>>2]&-8)==(fa|0))break d;I=w>>>29|0;w<<=1;I=(I&4)+R|0;L=r[I+16>>2];if(!L)break}r[I+16>>2]=ha}else r[593]=I|ra,r[R>>2]=ha;r[ha+24>>2]=R;r[ha+12>>2]=ha;r[ha+8>>2]=ha;break c}w=r[R+8>>2];r[w+12>>2]=ha;r[R+8>>2]=ha;r[ha+24>>2]=0;r[ha+12>>2]=R}r[ha+8>>2]=w}w=C+8|0;break a}b:if(Aa){R=r[I+28>>2];w=(R<<2)+2672|0;c:{if(r[w>>2]==(I|0)){if(r[w>> 2]=C)break c;T=2372;R=X(-2,R)&ra;r[T>>2]=R;break b}r[Aa+(r[Aa+16>>2]==(I|0)?16:20)>>2]=C;if(!C)break b}r[C+24>>2]=Aa;if(w=r[I+16>>2])r[C+16>>2]=w,r[w+24>>2]=C;if(w=r[I+20>>2])r[C+20>>2]=w,r[w+24>>2]=C}15>=fa>>>0?(w=fa+L|0,r[I+4>>2]=w|3,w=w+I|0,r[w+4>>2]|=1):(r[I+4>>2]=L|3,C=I+L|0,r[C+4>>2]=fa|1,r[C+fa>>2]=fa,ka&&(R=(ka&-8)+2408|0,ha=r[597],w=1<<(ka>>>3),w&E?w=r[R+8>>2]:(r[592]=w|E,w=R),r[R+8>>2]=ha,r[w+12>>2]=ha,r[ha+12>>2]=R,r[ha+8>>2]=w),r[597]=C,r[594]=fa);w=I+8|0}eb=F+16|0;return w|0} function u(w,C,F){var E;if(F)for(E=w;W[E|0]=C,E=E+1|0,F=F-1|0,F;);return w} function y(w,C){var F=w+C|0;var E=r[w+4>>2];a:{b:if(!(E&1)){if(!(E&3))break a;var L=r[w>>2];C=L+C|0;c:{w=w-L|0;if((w|0)!=r[597]){if(255>=L>>>0){var I=r[w+8>>2];E=r[w+12>>2];if((I|0)!=(E|0))break c;I=2368;E=r[592]&X(-2,L>>>3|0);r[I>>2]=E;break b}var R=r[w+24>>2];E=r[w+12>>2];d:if((E|0)!=(w|0))I=r[w+8>>2],r[I+12>>2]=E,r[E+8>>2]=I;else{L=w+20|0;I=r[L>>2];if(!I&&(L=w+16|0,I=r[L>>2],!I)){E=0;break d}for(;;){var T=L;E=I;L=E+20|0;I=r[L>>2];if(!I&&(L=E+16|0,I=r[E+16>>2],!I))break}r[T>>2]=0}if(!R)break b; L=r[w+28>>2];I=(L<<2)+2672|0;d:{if(r[I>>2]==(w|0)){if(r[I>>2]=E)break d;I=2372;E=r[593]&X(-2,L);r[I>>2]=E;break b}r[R+(r[R+16>>2]==(w|0)?16:20)>>2]=E;if(!E)break b}r[E+24>>2]=R;if(I=r[w+16>>2])r[E+16>>2]=I,r[I+24>>2]=E;I=r[w+20>>2];if(!I)break b;r[E+20>>2]=I;r[I+24>>2]=E;break b}E=r[F+4>>2];if(3!=(E&3))break b;r[594]=C;r[F+4>>2]=E&-2;r[w+4>>2]=C|1;r[F>>2]=C;return}r[I+12>>2]=E;r[E+8>>2]=I}E=r[F+4>>2];b:{if(!(E&2)){if(r[598]==(F|0)){r[598]=w;C=r[595]+C|0;r[595]=C;r[w+4>>2]=C|1;if(r[597]!=(w|0))break a; r[594]=0;r[597]=0;return}if(r[597]==(F|0)){r[597]=w;C=r[594]+C|0;r[594]=C;r[w+4>>2]=C|1;r[w+C>>2]=C;return}C=(E&-8)+C|0;c:if(255>=E>>>0)E=E>>>3|0,L=r[F+12>>2],I=r[F+8>>2],(L|0)==(I|0)?(I=2368,E=r[592]&X(-2,E),r[I>>2]=E):(r[I+12>>2]=L,r[L+8>>2]=I);else{R=r[F+24>>2];E=r[F+12>>2];d:if((F|0)!=(E|0))I=r[F+8>>2],r[I+12>>2]=E,r[E+8>>2]=I;else{I=F+20|0;L=r[I>>2];if(!L&&(I=F+16|0,L=r[I>>2],!L)){E=0;break d}for(;T=I,E=L,I=E+20|0,L=r[I>>2],L||(I=E+16|0,L=r[E+16>>2],L););r[T>>2]=0}if(R){L=r[F+28>>2];I=(L<<2)+ 2672|0;d:{if(r[I>>2]==(F|0)){if(r[I>>2]=E)break d;I=2372;E=r[593]&X(-2,L);r[I>>2]=E;break c}r[R+(r[R+16>>2]==(F|0)?16:20)>>2]=E;if(!E)break c}r[E+24>>2]=R;if(I=r[F+16>>2])r[E+16>>2]=I,r[I+24>>2]=E;if(I=r[F+20>>2])r[E+20>>2]=I,r[I+24>>2]=E}}r[w+4>>2]=C|1;r[w+C>>2]=C;if(r[597]!=(w|0))break b;r[594]=C;return}r[F+4>>2]=E&-2;r[w+4>>2]=C|1;r[w+C>>2]=C}if(255>=C>>>0)E=(C&-8)+2408|0,I=r[592],C=1<<(C>>>3),I&C?C=r[E+8>>2]:(r[592]=C|I,C=E),r[E+8>>2]=w,r[C+12>>2]=w,r[w+12>>2]=E;else{L=31;16777215>=C>>>0&&(E= vb(C>>>8|0),L=((C>>>38-E&1)-(E<<1)|0)+62|0);r[w+28>>2]=L;r[w+16>>2]=0;r[w+20>>2]=0;T=(L<<2)+2672|0;b:{I=r[593];E=1<>>1|0)|0:0);for(E=r[T>>2];;){I=E;if((r[E+4>>2]&-8)==(C|0))break b;E=L>>>29|0;L<<=1;T=I+(E&4)|0;E=r[T+16>>2];if(!E)break}r[T+16>>2]=w;r[w+24>>2]=I}else r[593]=E|I,r[T>>2]=w,r[w+24>>2]=T;r[w+12>>2]=w;r[w+8>>2]=w;return}C=r[I+8>>2];r[C+12>>2]=w;r[I+8>>2]=w;r[w+24>>2]=0;r[w+12>>2]=I}r[w+8>>2]=C}} function B(w,C){var F,E=0,L=0,I=0,R=0,T=0,ka=0,ha=0,fa=0,ra=0,Aa=0,rb=0,Mb=0,$a=0;eb=F=eb-128|0;r[F+120>>2]=0;r[F+124>>2]=0;r[F+112>>2]=0;r[F+116>>2]=0;r[F+104>>2]=0;r[F+108>>2]=0;r[F+96>>2]=0;r[F+100>>2]=0;r[F+88>>2]=0;r[F+92>>2]=0;r[F+80>>2]=0;r[F+84>>2]=0;r[F+72>>2]=0;r[F+76>>2]=0;r[F+64>>2]=0;r[F+68>>2]=0;var cb=r[C+4>>2];var Sa=r[C>>2];if((cb|0)==(Sa|0))r[F+8>>2]=0,r[F+12>>2]=0,r[F>>2]=0,Sa=r[F+4>>2]=0;else{I=cb-Sa|0;I=1>=I>>>0?1:I;R=I&3;if(3<=I-1>>>0)for(ha=I&-4;I=F- -64|0,T=I+(P[L+Sa|0]<<2)| 0,r[T>>2]+=1,T=I+(P[Sa+(L|1)|0]<<2)|0,r[T>>2]+=1,T=I+(P[Sa+(L|2)|0]<<2)|0,r[T>>2]+=1,I=I+(P[Sa+(L|3)|0]<<2)|0,r[I>>2]+=1,L=L+4|0,E=E+4|0,(ha|0)!=(E|0););if(R)for(;I=(F- -64|0)+(P[L+Sa|0]<<2)|0,r[I>>2]+=1,L=L+1|0,ka=ka+1|0,(R|0)!=(ka|0););rb=r[F+112>>2];I=r[F+108>>2];L=r[F+104>>2];Mb=r[F+100>>2];$a=r[F+96>>2];fa=r[F+92>>2];ra=r[F+88>>2];ha=r[F+84>>2];R=r[F+80>>2];ka=r[F+76>>2];E=r[F+72>>2];T=r[F+68>>2];Sa=r[F+64>>2];r[F>>2]=0;r[F+4>>2]=0;r[F+8>>2]=0;r[F+12>>2]=0;Aa=Sa<<1;r[F+4>>2]=Aa;Sa=2;E||(Sa=0!= (T|0))}T=T+Aa<<1;r[F+8>>2]=T;E=E+T<<1;r[F+12>>2]=E;E=E+ka<<1;r[F+16>>2]=E;E=E+R<<1;r[F+20>>2]=E;E=E+ha<<1;r[F+24>>2]=E;E=E+ra<<1;r[F+28>>2]=E;E=E+fa<<1;r[F+32>>2]=E;E=E+$a<<1;r[F+36>>2]=E;E=E+Mb<<1;r[F+40>>2]=E;E=L+E<<1;r[F+44>>2]=E;E=E+I<<1;r[F+48>>2]=E;E=E+r[F+112>>2]<<1;r[F+52>>2]=E;cb=r[F+116>>2];E=cb+E<<1;r[F+56>>2]=E;var Nb=r[F+120>>2];r[F+60>>2]=Nb+E<<1;var $b=r[F+124>>2];Aa=0;r[w+8>>2]=0;r[w>>2]=0;r[w+4>>2]=0;T=512;E=0;a:{I=(1<<32-vb($b+(Nb+(cb+((L+I|0)+rb|0)|0)|0)|0))+($b?15:Nb?14:cb?13: rb?12:I?11:L?10:Mb?9:$a?8:fa?7:ra?6:ha?5:R?4:ka?3:Sa)|0;if(L=(I<<1)+512|0){if(-257>=(I|0))break a;I=L<<1;E=p(I);r[w>>2]=E;L=E+I|0;r[w+8>>2]=L;u(E,0,I);r[w+4>>2]=L}L=r[C>>2];if((L|0)!=r[C+4>>2])for(;;){ka=P[L+Aa|0];if(ka){I=(ka<<2)+F|0;R=r[I>>2];r[I>>2]=R+1;I=L=ha=0;if(4<=ka>>>0)for(Sa=ka&252,fa=0;ra=R>>>(L|2)<<1&2|(R>>>(L|1)&1|R>>>L<<1&2|I<<2)<<2,I=ra|R>>>(L|3)&1,L=L+4|0,fa=fa+4|0,(Sa|0)!=(fa|0););if(Sa=ka&3)for(;ra=I<<1,I=ra|R>>>L&1,L=L+1|0,ha=ha+1|0,(Sa|0)!=(ha|0););fa=ka|Aa<<4;if(10>ka>>>0){L= 1<<9-ka;E=r[w>>2];if(8<=ka>>>0)for(ra=L&3,ha=0;L=L-1|0,Va[((L<>1]=fa,ha=ha+1|0,(ra|0)!=(ha|0););if(!(7>>0))for(;Va[((L-1<>1]=fa,Va[((L-2<>1]=fa,Va[((L-3<>1]=fa,L=L-4|0,Va[((L<>1]=fa,L;);}else{R=ra>>9;Sa=ka-10|0;ha=I&511;ka&1?(L=R,I=Sa):(I=(ha<<1)+E|0,ha=pb[I>>1],ha||(ha=0-T|0,Va[I>>1]=ha,T=T+2|0),L=ra>>10,ha=(R&1)-(ha<<16>>16)|0,I=ka-11|0);if(Sa)for(;Sa=(ha<<1)+E|0,R=pb[Sa>>1],R||(R=0-T|0,Va[Sa>>1]=R,T=T+2|0),ra=((L&1)-(R<<16>>16)<< 1)+E|0,R=pb[ra>>1],R||(R=0-T|0,Va[ra>>1]=R,T=T+2|0),Sa=L>>>1|0,L>>=2,ha=(Sa&1)-(R<<16>>16)|0,R=1!=(I|0),I=I-2|0,R;);E=r[w>>2];Va[E+(ha<<1)>>1]=fa}}Aa=Aa+1|0;L=r[C>>2];if(!(Aa>>>0>2]-L>>>0))break}eb=F+128|0;return}gb(1);d();d();d()} function G(w){m(w|0)} function M(w,C,F){1==r[w+28>>2]|r[w+4>>2]!=(C|0)||(r[w+28>>2]=F)} function N(w,C,F,E){W[w+53|0]=1;a:if(r[w+4>>2]==(F|0)){W[w+52|0]=1;F=r[w+16>>2];b:{if(!F){r[w+36>>2]=1;r[w+24>>2]=E;r[w+16>>2]=C;if(1!=(E|0))break a;if(1==r[w+48>>2])break b;break a}if((C|0)==(F|0)){F=r[w+24>>2];2==(F|0)&&(F=r[w+24>>2]=E);if(1!=r[w+48>>2])break a;if(1==(F|0))break b;break a}r[w+36>>2]+=1}W[w+54|0]=1}} function H(w,C,F){var E;(E=r[w+16>>2])?(C|0)==(E|0)?2==r[w+24>>2]&&(r[w+24>>2]=F):(W[w+54|0]=1,r[w+24>>2]=2,r[w+36>>2]+=1):(r[w+36>>2]=1,r[w+24>>2]=F,r[w+16>>2]=C)} function U(){} function aa(w,C,F){var E,L,I;eb=E=eb-32|0;B(E+20|0,C);B(E+8|0,F);a:if(r[w+32>>2])var R=r[E+8>>2];else{R=r[E+8>>2];for(L=r[E+20>>2];;){var T=r[w+28>>2];b:if(15<=(T|0))var ka=r[w+24>>2];else{C=r[w+16>>2];F=r[w+4>>2];var ha=C>>>0>F>>>0?C:F;ka=r[w+24>>2];var fa=r[w>>2];for(F=T;;){if((C|0)!=(ha|0)){var ra=C+1|0;r[w+16>>2]=ra;C=P[C+fa|0];T=F+8|0;r[w+28>>2]=T;ka=C<>2]=ka;var Aa=17>(F|0);F=T;C=ra;if(Aa)continue;break b}break}14>=(F|0)&&(r[w+32>>2]=-2);T=F}F=Va[((ka&511)<<1)+L>>1];if(0<=(F|0))ra= F&15;else for(ra=9,C=ka>>>9&63;ra=ra+1|0,ha=C&1,C=C>>>1|0,F=Va[(ha-F<<1)+L>>1],0>(F|0););ha=ka>>>ra|0;r[w+24>>2]=ha;C=T-ra|0;r[w+28>>2]=C;ra=F>>>4|0;b:{c:{if(4095>=F>>>0){C=r[w+20>>2];if(C>>>0>2]){r[w+20>>2]=C+1;W[C+r[w+8>>2]|0]=ra;break c}r[w+32>>2]=-3;break a}if(256==(ra|0))break a;var rb=pb[(ra<<1)+1470>>1];fa=20>ra-265>>>0?ra-261>>>2|0:0;if((fa|0)<=(C|0))ra=C;else{e:if(24<(C|0))ra=C;else for(F=r[w+16>>2],ra=r[w+4>>2],ka=F>>>0>ra>>>0?F:ra,Aa=r[w>>2];;){if((F|0)==(ka|0)){ra=C;break e}T= F+1|0;r[w+16>>2]=T;F=P[F+Aa|0];ra=C+8|0;r[w+28>>2]=ra;ha|=F<>2]=ha;var Mb=17>(C|0);C=ra;F=T;if(!Mb)break}(ra|0)>=(fa|0)||(r[w+32>>2]=-2)}ka=ha>>>fa|0;r[w+24>>2]=ka;C=ra-fa|0;r[w+28>>2]=C;d:{if(!(14<(C|0))){F=r[w+16>>2];ra=r[w+4>>2];Aa=F>>>0>ra>>>0?F:ra;for(Mb=r[w>>2];;){if((F|0)!=(Aa|0)){ra=F+1|0;r[w+16>>2]=ra;F=P[F+Mb|0];T=C+8|0;r[w+28>>2]=T;ka|=F<>2]=ka;var $a=17>(C|0);C=T;F=ra;if($a)continue;break d}break}14<(C|0)||(r[w+32>>2]=-2)}T=C}F=Va[((ka&511)<<1)+R>>1];if(0<=(F|0))ra= F&15;else for(ra=9,C=ka>>>9&63;ra=ra+1|0,Aa=C&1,C=C>>>1|0,F=Va[(Aa-F<<1)+R>>1],0>(F|0););ka=ka>>>ra|0;r[w+24>>2]=ka;C=T-ra|0;r[w+28>>2]=C;Mb=pb[(F>>>3&536870910)+2048>>1];Aa=47>>0?(F>>>5|0)-1|0:0;if((Aa|0)<=(C|0))ra=C;else{e:if(24<(C|0))ra=C;else for(F=r[w+16>>2],ra=r[w+4>>2],$a=F>>>0>ra>>>0?F:ra,I=r[w>>2];;){if((F|0)==($a|0)){ra=C;break e}T=F+1|0;r[w+16>>2]=T;F=P[F+I|0];ra=C+8|0;r[w+28>>2]=ra;ka|=F<>2]=ka;var cb=17>(C|0);C=ra;F=T;if(!cb)break}(ra|0)>=(Aa|0)||(r[w+32>>2]=-2)}r[w+24>> 2]=ka>>>Aa;r[w+28>>2]=ra-Aa;F=Mb+((-1<(F|0))break b;C=r[w+20>>2];if(F>>>0>C>>>0)break b;ra=(-1<>2]>>0)break b;if(!(0>=(T|0))){if((ra-1|0)!=(0-rb|0))for(ka=T&-2,ra=0;ha=r[w+8>>2],W[ha+C|0]=P[ha+(C-F|0)|0],C=r[w+20>>2]+1|0,r[w+20>>2]=C,ha=r[w+8>>2],W[ha+C|0]=P[ha+(C-F|0)|0],C=r[w+20>>2]+1|0,r[w+20>>2]=C,ra=ra+2|0,(ka|0)!=(ra|0););T&1&&(ra=r[w+8>>2],W[ra+C|0]=P[ra+(C-F|0)|0],r[w+20>>2]+=1)}}if(!r[w+32>>2])continue;break a}break}r[w+32>>2]=-6}R&& m(R);(w=r[E+20>>2])&&m(w);eb=E+32|0} function da(w){return w|0} function ua(w,C,F){var E,L;var I=r[F>>2]^r[C>>2];var R=r[F+4>>2]^r[C+4>>2];var T=r[F+12>>2]^r[C+12>>2];var ka=r[F+8>>2]^r[C+8>>2];F=ka<<8|R>>>24;var ha=ka<<16|R>>>16;var fa=ka<<24|R>>>8;var ra=(R&16777215)<<8|I>>>24;var Aa=(R&65535)<<16|I>>>16;var rb=(R&255)<<24|I>>>8;var Mb=T>>>24|0;var $a=T>>>16|0;var cb=T>>>8|0;var Sa=T;var Nb=(T&16777215)<<8|ka>>>24;var $b=(T&65535)<<16|ka>>>16;var Nd=(T&255)<<24|ka>>>8;for(E=1;;){T=L=(E<<4)+C|0;var wd=r[T>>2];var dc=r[T+4>>2];T=X(P[(Aa&255)+1034|0]<<24|(P[($b& 255)+1034|0]<<16|P[(ha&255)+1034|0]<<8|P[($a&255)+1034|0]<<24)>>>8,24);ha=T>>>8|0;Aa=P[(rb&255)+1034|0];rb=(P[(Nd&255)+1034|0]<<16|P[(fa&255)+1034|0]<<8|P[(cb&255)+1034|0]<<24)>>>8|0;$a=Aa<<24|rb;fa=$a>>>8|0;R=P[(R&255)+1034|0];cb=P[R+1546|0];var ac=X(P[(ra&255)+1034|0]<<24|(P[(Nb&255)+1034|0]<<16|P[(F&255)+1034|0]<<8|P[Mb+1034|0]<<24)>>>8,16);F=ac>>>8|0;ra=F&255;Mb=ha&255;ra=(ha^fa^cb^P[ra+1290|0])<<24|((R^fa^P[Mb+1290|0]^P[ra+1546|0])&255)<<16;fa&=255;F=ra|((R^F^P[fa+1290|0]^P[Mb+1546|0])&255)<< 8|(F^ha^P[R+1290|0]^P[fa+1546|0])&255;cb=0;R=P[(I&255)+1034|0];I=ac&255;ha=T&255;fa=(T^rb^P[R+1546|0]^P[I+1290|0])<<24|((R^rb^P[ha+1290|0]^P[I+1546|0])&255)<<16;I=$a&255;I=(cb|fa|((ac^R^P[I+1290|0]^P[ha+1546|0])&255)<<8|(ac^T^P[I+1546|0]^P[R+1290|0])&255)^wd;R=F^=dc;Mb=R>>>24|0;ha=T>>>16|0;fa=ha&255;ra=$a>>>16|0;rb=ra&255;T=T>>>24|0;F=P[(Sa&255)+1034|0];Sa=ac>>>24|0;F=(T^Aa^P[F+1546|0]^P[Sa+1290|0])<<24|(F^Aa^P[T+1290|0]^P[Sa+1546|0])<<16|(F^Sa^P[Aa+1290|0]^P[T+1546|0])<<8|Sa^T^P[F+1290|0]^P[Aa+1546| 0];ka=P[(ka&255)+1034|0];T=ac>>>16|0;Sa=T&255;ka=r[L+8>>2]^((ha^ra^P[ka+1546|0]^P[Sa+1290|0])<<24|((ka^ra^P[fa+1290|0]^P[Sa+1546|0])&255)<<16|((ka^T^P[rb+1290|0]^P[fa+1546|0])&255)<<8|(T^ha^P[ka+1290|0]^P[rb+1546|0])&255);T=F^r[L+12>>2];Sa=ka>>>24|0;F=L=ka<<8|Mb;ha=ka<<16|R>>>16;fa=ka<<24|R>>>8;Mb=T>>>24|0;$a=T>>>16|0;cb=T>>>8|0;ac=T;Nb=Sa|(T&16777215)<<8;$b=(T&65535)<<16|ka>>>16;Sa=T;Nd=(T&255)<<24|ka>>>8;wd=T=R;ra=(T&16777215)<<8|I>>>24;Aa=(T&65535)<<16|I>>>16;rb=(T&255)<<24|I>>>8;E=E+1|0;if(10== (E|0))break}F=r[C+160>>2];R=r[C+164>>2];T=w;dc=r[C+168>>2];C=r[C+172>>2];E=X(P[(ra&255)+1034|0]<<24|(P[(Nb&255)+1034|0]<<16|P[(L&255)+1034|0]<<8|P[Mb+1034|0]<<24)>>>8,16);Aa=X(P[(Aa&255)+1034|0]<<24|(P[($b&255)+1034|0]<<16|P[(ha&255)+1034|0]<<8|P[($a&255)+1034|0]<<24)>>>8,24);ha=P[(cb&255)+1034|0]<<24;ra=E<<8&-16777216|Aa&16711680|P[(ka&255)+1034|0]|ha>>>16;C=(E&-16777216|Aa>>>8&16711680|P[(ac&255)+1034|0]|P[((0|rb)&255)+1034|0]<<24>>>16)^C;r[T+8>>2]=ra^dc;ka=P[(Nd&255)+1034|0]<<16;w=E<<16&-16777216| Aa<<8&16711680|P[(wd&255)+1034|0]|ka>>>8;r[T>>2]=(P[(I&255)+1034|0]|(ha|ka|P[(fa&255)+1034|0]<<8)&65280|Aa<<16&16711680|E<<24)^F;r[T+12>>2]=C;r[T+4>>2]=w^R} function la(w){return w?31-vb(w-1^w)|0:32} function X(w,C){var F=C&31;var E=(-1>>>F&w)<>>w} function ma(){return Ca.byteLength/65536|0} function Y(w){w|=0;var C=ma()|0;w=C+w|0;Cw&&(w=new ArrayBuffer(yb(w,65536)),(new Int8Array(w)).set(W),W=new Int8Array(w),Va=new Int16Array(w),r=new Int32Array(w),P=new Uint8Array(w),pb=new Uint16Array(w),Ha=new Uint32Array(w),new Float32Array(w),new Float64Array(w),Ca=w,e=P);return C} var Ca=new ArrayBuffer(524288),W=new Int8Array(Ca),Va=new Int16Array(Ca),r=new Int32Array(Ca),P=new Uint8Array(Ca),pb=new Uint16Array(Ca),Ha=new Uint32Array(Ca);new Float32Array(Ca);new Float64Array(Ca);var yb=Math.imul,vb=Math.clz32,gb=l.O9a.h9a,zb=l.env.C7a,eb=133952;e=P;c(e,1024,"AQIECBAgQIAbNmN8d3vya2/FMAFnK/7Xq3bKgsl9+llH8K3Uoq+cpHLAt/2TJjY/98w0peXxcdgxFQTHI8MYlgWaBxKA4usnsnUJgywaG25aoFI71rMp4y+EU9EA7SD8sVtqy745SkxYz9DvqvtDTTOFRfkCf1A8n6hRo0CPkp049by22iEQ//PSzQwT7F+XRBfEp349ZF0Zc2CBT9wiKpCIRu64FN5eC9vgMjoKSQYkXMLTrGKRleR558g3bY3VTqlsVvTqZXquCLp4JS4cprTG6N10H0u9i4pwPrVmSAP2DmE1V7mGwR2e4fiYEWnZjpSbHofpzlUo34yhiQ2/5kJoQZktD7BUuxYAAgQGCAoMDhASFBYYGhweICIkJigqLC4wMjQ2ODo8PkBCREZISkxOUFJUVlhaXF5gYmRmaGpsbnBydHZ4enx+gIKEhoiKjI6QkpSWmJqcnqCipKaoqqyusLK0tri6vL7AwsTGyMrMztDS1NbY2tze4OLk5ujq7O7w8vT2+Pr8/hsZHx0TERcVCwkPDQMBBwU7OT89MzE3NSspLy0jISclW1lfXVNRV1VLSU9NQ0FHRXt5f31zcXd1a2lvbWNhZ2WbmZ+dk5GXlYuJj42DgYeFu7m/vbOxt7Wrqa+to6GnpdvZ393T0dfVy8nPzcPBx8X7+f/98/H39evp7+3j4eflAAMGBQwPCgkYGx4dFBcSETAzNjU8Pzo5KCsuLSQnIiFgY2ZlbG9qaXh7fn10d3JxUFNWVVxfWllIS05NREdCQcDDxsXMz8rJ2Nve3dTX0tHw8/b1/P/6+ejr7u3k5+LhoKOmpayvqqm4u769tLeysZCTlpWcn5qZiIuOjYSHgoGbmJ2el5SRkoOAhYaPjImKq6itrqekoaKzsLW2v7y5uvv4/f739PHy4+Dl5u/s6erLyM3Ox8TBwtPQ1dbf3NnaW1hdXldUUVJDQEVGT0xJSmtobW5nZGFic3B1dn98eXo7OD0+NzQxMiMgJSYvLCkqCwgNDgcEAQITEBUWHxwZGgAAAAAAAJAHAAABAAAAAgAAAAMAAAAEAAAATjd5b3V0dWJlNHdhc202Y3J5cHRvMTJfR0xPQkFMX19OXzEyMUFFUzEyOENUUlN0cmVhbUNpcGhlckUATjd5b3V0dWJlNHdhc202Y3J5cHRvMTJTdHJlYW1DaXBoZXJFAAAAAKQIAABgBwAAzAgAACQHAACIBwAAAAAAABAREgAIBwkGCgULBAwDDQIOAQ8="); c(e,1984,"AwAEAAUABgAHAAgACQAKAAsADQAPABEAEwAXABsAHwAjACsAMwA7AEMAUwBjAHMAgwCjAMMA4wACAQAAAAAAAAEAAgADAAQABQAHAAkADQARABkAIQAxAEEAYQCBAMEAAQGBAQECAQMBBAEGAQgBDAEQARgBIAEwAUABYE4xMF9fY3h4YWJpdjExNl9fc2hpbV90eXBlX2luZm9FAAAAAMwIAAA8CAAAMAkAAE4xMF9fY3h4YWJpdjExN19fY2xhc3NfdHlwZV9pbmZvRQAAAMwIAABsCAAAYAgAAAAAAACQCAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAAAAAAFAkAAAYAAAAOAAAACAAAAAkAAAAKAAAADwAAABAAAAARAAAATjEwX19jeHhhYml2MTIwX19zaV9jbGFzc190eXBlX2luZm9FAAAAAMwIAADsCAAAkAgAAFN0OXR5cGVfaW5mbwAAAACkCAAAIAk="); c(e,2360,"QAsC");var nb=b([null,function(w,C){w|=0;C|=0;var F=P[C+4|0]|P[C+5|0]<<8|P[C+6|0]<<16|P[C+7|0]<<24;var E=P[C|0]|P[C+1|0]<<8|P[C+2|0]<<16|P[C+3|0]<<24;W[w+192|0]=E;W[w+193|0]=E>>>8;W[w+194|0]=E>>>16;W[w+195|0]=E>>>24;W[w+196|0]=F;W[w+197|0]=F>>>8;W[w+198|0]=F>>>16;W[w+199|0]=F>>>24;F=P[C+12|0]|P[C+13|0]<<8|P[C+14|0]<<16|P[C+15|0]<<24;C=P[C+8|0]|P[C+9|0]<<8|P[C+10|0]<<16|P[C+11|0]<<24;W[w+200|0]=C;W[w+201|0]=C>>>8;W[w+202|0]=C>>>16;W[w+203|0]=C>>>24;W[w+204|0]=F;W[w+205|0]=F>>>8;W[w+206|0]= F>>>16;W[w+207|0]=F>>>24;r[w+224>>2]=0}, function(w,C,F){w|=0;C|=0;F|=0;var E,L;eb=L=eb-16|0;a:if(F){var I=w+208|0;var R=w+192|0;var T=w+16|0;for(E=r[w+224>>2];;){b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(!E){ua(L,T,R);E=r[L+12>>2];r[I+8>>2]=r[L+8>>2];r[I+12>>2]=E;E=r[L+4>>2];r[I>>2]=r[L>>2];r[I+4>>2]=E;r[w+224>>2]=16;E=P[w+207|0]+1|0;W[w+207|0]=E;(E|0)!=(E&255)&&(E=P[w+206|0]+1|0,W[w+206|0]=E,(E|0)!=(E&255)&&(E=P[w+205|0]+1|0,W[w+205|0]=E,(E|0)!=(E&255)&&(E=P[w+204|0]+1|0,W[w+204|0]=E,(E|0)!=(E&255)&&(E=P[w+203|0]+1|0,W[w+203|0]=E,(E|0)!=(E&255)&& (E=P[w+202|0]+1|0,W[w+202|0]=E,(E|0)!=(E&255)&&(E=P[w+201|0]+1|0,W[w+201|0]=E,(E|0)!=(E&255)&&(E=P[w+200|0]+1|0,W[w+200|0]=E,(E|0)!=(E&255)&&(E=P[w+199|0]+1|0,W[w+199|0]=E,(E|0)!=(E&255)&&(E=P[w+198|0]+1|0,W[w+198|0]=E,(E|0)!=(E&255)&&(E=P[w+197|0]+1|0,W[w+197|0]=E,(E|0)!=(E&255)&&(E=P[w+196|0]+1|0,W[w+196|0]=E,(E|0)!=(E&255)&&(E=P[w+195|0]+1|0,W[w+195|0]=E,(E|0)!=(E&255)&&(E=P[w+194|0]+1|0,W[w+194|0]=E,(E|0)!=(E&255)&&(E=P[w+193|0]+1|0,W[w+193|0]=E,(E|0)!=(E&255)&&(W[R|0]=P[R|0]+1))))))))))))))); E=16;if(16<=F>>>0)break k;break j}if(16>F>>>0)break j;if(16>E>>>0)break i}E=I-E|0;var ka=P[E+24|0]|P[E+25|0]<<8|P[E+26|0]<<16|P[E+27|0]<<24;var ha=P[E+28|0]|P[E+29|0]<<8|P[E+30|0]<<16|P[E+31|0]<<24;var fa=(P[E+20|0]|P[E+21|0]<<8|P[E+22|0]<<16|P[E+23|0]<<24)^(P[C+4|0]|P[C+5|0]<<8|P[C+6|0]<<16|P[C+7|0]<<24);E=(P[E+16|0]|P[E+17|0]<<8|P[E+18|0]<<16|P[E+19|0]<<24)^(P[C|0]|P[C+1|0]<<8|P[C+2|0]<<16|P[C+3|0]<<24);W[C|0]=E;W[C+1|0]=E>>>8;W[C+2|0]=E>>>16;W[C+3|0]=E>>>24;W[C+4|0]=fa;W[C+5|0]=fa>>>8;W[C+6|0]= fa>>>16;W[C+7|0]=fa>>>24;fa=(P[C+12|0]|P[C+13|0]<<8|P[C+14|0]<<16|P[C+15|0]<<24)^ha;E=C+8|0;ka^=P[C+8|0]|P[C+9|0]<<8|P[C+10|0]<<16|P[C+11|0]<<24;W[E|0]=ka;W[E+1|0]=ka>>>8;W[E+2|0]=ka>>>16;W[E+3|0]=ka>>>24;W[E+4|0]=fa;W[E+5|0]=fa>>>8;W[E+6|0]=fa>>>16;W[E+7|0]=fa>>>24;E=r[w+224>>2]-16|0;r[w+224>>2]=E;F=F-16|0;C=C+16|0;break b}if(8>F>>>0)break h}if(8>E>>>0)break g;E=I-E|0;fa=P[E+16|0]|P[E+17|0]<<8|P[E+18|0]<<16|P[E+19|0]<<24;E=(P[E+20|0]|P[E+21|0]<<8|P[E+22|0]<<16|P[E+23|0]<<24)^(P[C+4|0]|P[C+5|0]<< 8|P[C+6|0]<<16|P[C+7|0]<<24);fa^=P[C|0]|P[C+1|0]<<8|P[C+2|0]<<16|P[C+3|0]<<24;W[C|0]=fa;W[C+1|0]=fa>>>8;W[C+2|0]=fa>>>16;W[C+3|0]=fa>>>24;W[C+4|0]=E;W[C+5|0]=E>>>8;W[C+6|0]=E>>>16;W[C+7|0]=E>>>24;E=r[w+224>>2]-8|0;r[w+224>>2]=E;F=F-8|0;C=C+8|0}if(4>F>>>0)break f}if(4>E>>>0)break e;E=I-E|0;E=(P[E+16|0]|P[E+17|0]<<8|P[E+18|0]<<16|P[E+19|0]<<24)^(P[C|0]|P[C+1|0]<<8|P[C+2|0]<<16|P[C+3|0]<<24);W[C|0]=E;W[C+1|0]=E>>>8;W[C+2|0]=E>>>16;W[C+3|0]=E>>>24;E=r[w+224>>2]-4|0;r[w+224>>2]=E;F=F-4|0;C=C+4|0}if(2> F>>>0)break d}if(2>E>>>0)break c;E=I-E|0;E=(P[E+16|0]|P[E+17|0]<<8)^(P[C|0]|P[C+1|0]<<8);W[C|0]=E;W[C+1|0]=E>>>8;E=r[w+224>>2]-2|0;r[w+224>>2]=E;F=F-2|0;C=C+2|0}if(!F)break a}E?(W[C|0]=P[(I-E|0)+16|0]^P[C|0],E=r[w+224>>2]-1|0,r[w+224>>2]=E,F=F-1|0,C=C+1|0):E=0}if(!F)break}}eb=L+16|0}, da,G,function(){}, da,G,U,U,function(w,C,F){w|=0;C|=0;F|=0;var E;eb=E=eb+-64|0;var L=1;if(!n(w,C,0)&&(L=0,C)){eb=L=eb+-64|0;var I=r[C>>2];var R=r[I-4>>2];I=r[I-8>>2];r[L+32>>2]=0;r[L+36>>2]=0;r[L+40>>2]=0;r[L+44>>2]=0;r[L+48>>2]=0;r[L+52>>2]=0;W[L+55|0]=0;W[L+56|0]=0;W[L+57|0]=0;W[L+58|0]=0;W[L+59|0]=0;W[L+60|0]=0;W[L+61|0]=0;W[L+62|0]=0;r[L+24>>2]=0;r[L+28>>2]=0;r[L+20>>2]=0;r[L+16>>2]=2144;r[L+12>>2]=C;r[L+8>>2]=2192;I=C+I|0;C=0;b:if(n(R,2192,0))r[L+56>>2]=1,nb[r[r[R>>2]+20>>2]](R,L+8|0,I,I,1,0),C=1==r[L+32>>2]?I: 0;else{nb[r[r[R>>2]+24>>2]](R,L+8|0,I,1,0);c:switch(r[L+44>>2]){case 0:C=1==r[L+48>>2]?1==r[L+36>>2]?1==r[L+40>>2]?r[L+28>>2]:0:0:0;break b;case 1:break c;default:break b}1!=r[L+32>>2]&&r[L+48>>2]|1!=r[L+36>>2]|1!=r[L+40>>2]||(C=r[L+24>>2])}eb=L- -64|0;L=0;C&&(u(E+12|0,0,52),r[E+56>>2]=1,r[E+20>>2]=-1,r[E+16>>2]=w,r[E+8>>2]=C,nb[r[r[C>>2]+28>>2]](C,E+8|0,r[F>>2],1),w=r[E+32>>2],1==(w|0)&&(r[F>>2]=r[E+24>>2]),L=1==(w|0))}eb=E- -64|0;return L|0}, function(w,C,F,E,L,I){C|=0;F|=0;E|=0;L|=0;n(w|0,r[C+8>>2],I|0)&&N(C,F,E,L)}, function(w,C,F,E,L){w|=0;C|=0;F|=0;E|=0;L|=0;n(w,r[C+8>>2],L)?M(C,F,E):n(w,r[C>>2],L)&&(r[C+16>>2]!=(F|0)&r[C+20>>2]!=(F|0)?(r[C+20>>2]=F,r[C+32>>2]=E,r[C+40>>2]+=1,1!=r[C+36>>2]|2!=r[C+24>>2]||(W[C+54|0]=1),r[C+44>>2]=4):1==(E|0)&&(r[C+32>>2]=1))}, function(w,C,F,E){C|=0;F|=0;E|=0;n(w|0,r[C+8>>2],0)&&H(C,F,E)}, G,function(w,C,F,E,L,I){w|=0;C|=0;F|=0;E|=0;L|=0;I|=0;n(w,r[C+8>>2],I)?N(C,F,E,L):(w=r[w+8>>2],nb[r[r[w>>2]+20>>2]](w,C,F,E,L,I))}, function(w,C,F,E,L){w|=0;C|=0;F|=0;E|=0;L|=0;if(n(w,r[C+8>>2],L))M(C,F,E);else a:if(n(w,r[C>>2],L))if(r[C+16>>2]!=(F|0)&r[C+20>>2]!=(F|0)){r[C+32>>2]=E;b:if(4!=r[C+44>>2]){Va[C+52>>1]=0;w=r[w+8>>2];nb[r[r[w>>2]+20>>2]](w,C,F,F,1,L);if(P[C+53|0]){r[C+44>>2]=3;if(!P[C+52|0])break b;break a}r[C+44>>2]=4}r[C+20>>2]=F;r[C+40>>2]+=1;1!=r[C+36>>2]|2!=r[C+24>>2]||(W[C+54|0]=1)}else 1==(E|0)&&(r[C+32>>2]=1);else w=r[w+8>>2],nb[r[r[w>>2]+24>>2]](w,C,F,E,L)}, function(w,C,F,E){w|=0;C|=0;F|=0;E|=0;n(w,r[C+8>>2],0)?H(C,F,E):(w=r[w+8>>2],nb[r[r[w>>2]+28>>2]](w,C,F,E))}]); return{memory:Object.create(Object.prototype,{grow:{value:Y},buffer:{get:function(){return Ca}}}), add:function(w,C){return(w|0)+(C|0)|0}, getInflatedSize:function(w,C){w|=0;var F=0;P[w+3|0]|31!=P[w|0]|139!=P[w+1|0]||(w=(w+(C|0)|0)-4|0,F=P[w|0]|P[w+1|0]<<8|P[w+2|0]<<16|P[w+3|0]<<24);return F|0}, inflateGzip:function(w,C,F){w|=0;C|=0;var E,L=0,I;eb=E=eb-96|0;r[E+20>>2]=F|0;r[E+16>>2]=C;r[E+12>>2]=w;F=0;31==P[w|0]&&(F=0,139==P[w+1|0]&&(F=0,P[w+3|0]||(w=(w+C|0)-4|0,F=P[w|0]|P[w+1|0]<<8|P[w+2|0]<<16|P[w+3|0]<<24)));r[E+40>>2]=0;r[E+44>>2]=0;r[E+32>>2]=0;r[E+36>>2]=0;r[E+28>>2]=10;for(r[E+24>>2]=F;;){a:if(0<(L|0))var R=r[E+36>>2];else{var T=r[E+28>>2];w=r[E+16>>2];F=w>>>0>>0?T:w;R=r[E+36>>2];var ka=r[E+12>>2];for(w=L;;){if((F|0)!=(T|0)){C=T+1|0;r[E+28>>2]=C;T=P[T+ka|0];L=w+8|0;r[E+40>>2]=L; R=T<>2]=R;var ha=17>(w|0);w=L;T=C;if(ha)continue;break a}break}0>=(w|0)&&(r[E+44>>2]=-2);L=w}C=R>>>1|0;r[E+36>>2]=C;T=L-1|0;r[E+40>>2]=T;a:{if(!(2<(L|0))){w=r[E+28>>2];F=r[E+16>>2];ka=w>>>0>F>>>0?w:F;for(ha=r[E+12>>2];;){if((w|0)!=(ka|0)){F=w+1|0;r[E+28>>2]=F;w=P[w+ha|0];L=T+8|0;r[E+40>>2]=L;C|=w<>2]=C;var fa=17>(T|0);T=L;w=F;if(fa)continue;break a}break}1<(T|0)||(r[E+44>>2]=-2)}L=T}ka=C>>>2|0;r[E+36>>2]=ka;T=L-2|0;r[E+40>>2]=T;a:{switch(C&3){case 2:c:{if(!(6<(L|0))){w=r[E+28>> 2];C=r[E+16>>2];F=w>>>0>C>>>0?w:C;for(ha=r[E+12>>2];;){if((w|0)!=(F|0)){C=w+1|0;r[E+28>>2]=C;w=P[w+ha|0];L=T+8|0;r[E+40>>2]=L;ka|=w<>2]=ka;fa=17>(T|0);T=L;w=C;if(fa)continue;break c}break}4<(T|0)||(r[E+44>>2]=-2)}L=T}C=ka>>>5|0;r[E+36>>2]=C;T=L-5|0;r[E+40>>2]=T;c:{if(!(9<(L|0))){w=r[E+28>>2];F=r[E+16>>2];ha=w>>>0>F>>>0?w:F;for(fa=r[E+12>>2];;){if((w|0)!=(ha|0)){L=w+1|0;r[E+28>>2]=L;w=P[w+fa|0];F=T+8|0;r[E+40>>2]=F;C|=w<>2]=C;var ra=17>(T|0);T=F;w=L;if(ra)continue;break c}break}4< (T|0)||(r[E+44>>2]=-2)}F=T}ha=ka&31;L=C>>>5|0;r[E+36>>2]=L;T=F-5|0;r[E+40>>2]=T;var Aa=C&31;c:if(9<=(F|0)){ka=r[E+28>>2];fa=r[E+12>>2];var rb=r[E+16>>2]}else{w=r[E+28>>2];rb=r[E+16>>2];ka=w>>>0>rb>>>0?w:rb;fa=r[E+12>>2];d:{for(;;){if((w|0)==(ka|0))break d;C=w+1|0;r[E+28>>2]=C;F=P[w+fa|0];w=T+8|0;r[E+40>>2]=w;L|=F<>2]=L;F=17>(T|0);T=w;w=C;if(!F)break}ka=w;break c}3<(T|0)||(r[E+44>>2]=-2)}var Mb=ha+257|0;var $a=Aa+1|0;C=L>>>4|0;r[E+36>>2]=C;T=T-4|0;r[E+40>>2]=T;var cb=p(19);r[E+84>>2]=cb; F=cb+19|0;r[E+92>>2]=F;w=0;W[cb+15|0]=0;W[cb+16|0]=0;W[cb+17|0]=0;W[cb+18|0]=0;W[cb+8|0]=0;W[cb+9|0]=0;W[cb+10|0]=0;W[cb+11|0]=0;W[cb+12|0]=0;W[cb+13|0]=0;W[cb+14|0]=0;W[cb+15|0]=0;W[cb|0]=0;W[cb+1|0]=0;W[cb+2|0]=0;W[cb+3|0]=0;W[cb+4|0]=0;W[cb+5|0]=0;W[cb+6|0]=0;W[cb+7|0]=0;r[E+88>>2]=F;for(I=(L&15)+3|0;;){ha=w;c:{if(2<(T|0))L=C;else{ra=ka>>>0>rb>>>0?ka:rb;w=ka;for(L=C;;){if((w|0)!=(ra|0)){ka=w+1|0;r[E+28>>2]=ka;w=P[w+fa|0];F=T+8|0;r[E+40>>2]=F;L|=w<>2]=L;C=17>(T|0);w=ka;T=F;if(C)continue; break c}break}2>=(T|0)&&(r[E+44>>2]=-2);ka=ra}F=T}C=L>>>3|0;r[E+36>>2]=C;T=F-3|0;r[E+40>>2]=T;W[P[ha+1952|0]+cb|0]=L&7;w=ha+1|0;if((ha|0)==(I|0))break}B(E+72|0,E+84|0);w=p(Mb);r[E+60>>2]=w;C=w+Mb|0;r[E+68>>2]=C;T=0;var Sa=u(w,0,Mb);r[E+64>>2]=C;w=p($a);r[E+48>>2]=w;C=w+$a|0;r[E+56>>2]=C;var Nb=u(w,0,$a);r[E+52>>2]=C;var $b=$a+Mb|0;C=r[E+28>>2];$a=r[E+12>>2];rb=r[E+16>>2];ha=r[E+36>>2];ka=r[E+40>>2];I=r[E+72>>2];for(ra=0;;){c:{if(14>=(ka|0)){F=C>>>0>rb>>>0?C:rb;for(w=C;;){if((w|0)!=(F|0)){C=w+1|0; r[E+28>>2]=C;w=P[w+$a|0];fa=ka+8|0;r[E+40>>2]=fa;ha=w<>2]=ha;L=17>(ka|0);w=C;ka=fa;if(L)continue;break c}break}14>=(ka|0)&&(r[E+44>>2]=-2);C=F}fa=ka}F=Va[I+((ha&511)<<1)>>1];if(0<=(F|0))L=F&15;else for(L=9,w=ha>>>9&63;L=L+1|0,ka=w&1,w=w>>>1|0,F=Va[I+(ka-F<<1)>>1],0>(F|0););ha=ha>>>L|0;r[E+36>>2]=ha;ka=fa-L|0;r[E+40>>2]=ka;w=1;c:{d:{e:{f:{g:switch(F=F>>>4|0,F-16|0){case 2:break e;case 1:break f;case 0:break g;default:break c}g:{if(1<(ka|0))L=ha;else{fa=C>>>0>rb>>>0?C:rb;w=C;for(L=ha;;){if((w| 0)!=(fa|0)){C=w+1|0;r[E+28>>2]=C;w=P[w+$a|0];F=ka+8|0;r[E+40>>2]=F;L|=w<>2]=L;ha=17>(ka|0);w=C;ka=F;if(ha)continue;break g}break}1>=(ka|0)&&(r[E+44>>2]=-2);C=fa}F=ka}ha=L>>>2|0;r[E+36>>2]=ha;ka=F-2|0;r[E+40>>2]=ka;w=(L&3)+3|0;F=ra;break c}f:{if(2<(ka|0))L=ha;else{fa=C>>>0>rb>>>0?C:rb;w=C;for(L=ha;;){if((w|0)!=(fa|0)){C=w+1|0;r[E+28>>2]=C;w=P[w+$a|0];F=ka+8|0;r[E+40>>2]=F;L|=w<>2]=L;ha=17>(ka|0);w=C;ka=F;if(ha)continue;break f}break}2>=(ka|0)&&(r[E+44>>2]=-2);C=fa}F=ka}ha=L>>> 3|0;r[E+36>>2]=ha;ka=F-3|0;r[E+40>>2]=ka;w=(L&7)+3|0;break d}e:{if(6<(ka|0))L=ha;else{fa=C>>>0>rb>>>0?C:rb;w=C;for(L=ha;;){if((w|0)!=(fa|0)){C=w+1|0;r[E+28>>2]=C;w=P[w+$a|0];F=ka+8|0;r[E+40>>2]=F;L|=w<>2]=L;ha=17>(ka|0);w=C;ka=F;if(ha)continue;break e}break}6>=(ka|0)&&(r[E+44>>2]=-2);C=fa}F=ka}ha=L>>>7|0;r[E+36>>2]=ha;ka=F-7|0;r[E+40>>2]=ka;w=(L&127)+11|0}F=0}c:{for(;;){d:{if((T|0)<(Mb|0)){if(T>>>0>=Mb>>>0)break d;L=T+Sa|0}else{L=T-Mb|0;if(L>>>0>Aa>>>0)break d;L=L+Nb|0}W[L|0]=F;T=T+1|0; if(w=w-1|0)continue;break c}break}gb(1);d();d();d()}ra=F;if(!((T|0)<($b|0)))break}aa(E+12|0,E+60|0,E+48|0);m(Nb);m(Sa);I&&m(I);m(cb);break a;default:r[E+44>>2]=-4;break a;case 0:w=T&-8;r[E+40>>2]=w;ka=ka>>>(T&7)|0;r[E+36>>2]=ka;c:{d:{e:{if(15<(w|0))L=w;else for(C=r[E+28>>2],fa=r[E+16>>2],T=C>>>0>fa>>>0?C:fa,ha=r[E+12>>2];;){if((C|0)==(T|0))break e;F=C+1|0;r[E+28>>2]=F;C=P[C+ha|0];L=w+8|0;r[E+40>>2]=L;ka|=C<>2]=ka;ra=17>(w|0);w=L;C=F;if(!ra)break}C=ka>>>16|0;r[E+36>>2]=C;w=L-16|0;r[E+40>> 2]=w;F=ka&65535;if(31>>0)break c;ha=r[E+12>>2];fa=r[E+16>>2];T=r[E+28>>2];break d}15>=(w|0)&&(r[E+44>>2]=-2);C=ka>>>16|0;r[E+36>>2]=C;w=w-16|0;r[E+40>>2]=w;F=ka&65535}fa=T>>>0>fa>>>0?T:fa;d:{for(;;){if((T|0)==(fa|0))break d;L=T+1|0;r[E+28>>2]=L;ra=P[T+ha|0];T=w+8|0;r[E+40>>2]=T;C|=ra<>2]=C;ra=17>(w|0);w=T;T=L;if(!ra)break}break c}15<(w|0)||(r[E+44>>2]=-2)}r[E+36>>2]=C>>>16;w=w-16|0;r[E+40>>2]=w;if(65535!=((C^ka)&65535)){r[E+44>>2]=-5;break a}C=r[E+28>>2];if(Ha[E+16>>2]>>0){r[E+44>> 2]=-2;break a}r[E+36>>2]=0;r[E+40>>2]=0;w=C+((w|0)/-8|0)|0;r[E+28>>2]=w;if(F){T=0;if(1!=(F|0))for(C=F&65534,w=0;W[r[E+20>>2]+(r[E+32>>2]+T|0)|0]=P[r[E+12>>2]+(r[E+28>>2]+T|0)|0],L=T|1,W[r[E+20>>2]+(L+r[E+32>>2]|0)|0]=P[r[E+12>>2]+(L+r[E+28>>2]|0)|0],T=T+2|0,w=w+2|0,(C|0)!=(w|0););F&1&&(W[r[E+20>>2]+(r[E+32>>2]+T|0)|0]=P[r[E+12>>2]+(r[E+28>>2]+T|0)|0]);w=r[E+28>>2]}r[E+28>>2]=w+F;r[E+32>>2]+=F;break a;case 1:}w=p(288);r[E+84>>2]=w;F=w+288|0;r[E+92>>2]=F;C=u(w,8,288);r[E+88>>2]=F;for(T=144;W[C+T|0]= 256>T>>>0?9:7,W[C+(T|1)|0]=255>T>>>0?9:7,W[C+(T|2)|0]=254>T>>>0?9:7,W[C+(T|3)|0]=253>T>>>0?9:7,T=T+4|0,280!=(T|0););w=p(32);r[E+72>>2]=w;F=w+32|0;r[E+80>>2]=F;W[w+24|0]=5;W[w+25|0]=5;W[w+26|0]=5;W[w+27|0]=5;W[w+28|0]=5;W[w+29|0]=5;W[w+30|0]=5;W[w+31|0]=5;W[w+16|0]=5;W[w+17|0]=5;W[w+18|0]=5;W[w+19|0]=5;W[w+20|0]=5;W[w+21|0]=5;W[w+22|0]=5;W[w+23|0]=5;W[w+8|0]=5;W[w+9|0]=5;W[w+10|0]=5;W[w+11|0]=5;W[w+12|0]=5;W[w+13|0]=5;W[w+14|0]=5;W[w+15|0]=5;W[w|0]=5;W[w+1|0]=5;W[w+2|0]=5;W[w+3|0]=5;W[w+4|0]=5;W[w+ 5|0]=5;W[w+6|0]=5;W[w+7|0]=5;r[E+76>>2]=F;aa(E+12|0,E+84|0,E+72|0);m(w);m(C)}w=r[E+44>>2];if(w|R&1)break;else L=r[E+40>>2]}eb=E+96|0;return w|0}, testOnlyExpandKey:function(w,C){w|=0;C|=0;var F=r[w+12>>2];r[C+8>>2]=r[w+8>>2];r[C+12>>2]=F;F=r[w+4>>2];r[C>>2]=r[w>>2];r[C+4>>2]=F;F=r[C+12>>2];for(w=4;;){var E=(w<<2)+C|0;if(!(w&3)){var L=P[(w>>>2|0)+1023|0];F=X(F,24);F=L^(P[(F>>>8&255)+1034|0]<<8|P[(F&255)+1034|0]|P[(F>>>16&255)+1034|0]<<16|P[(F>>>24|0)+1034|0]<<24)}F=r[E-16>>2]^F;r[E>>2]=F;w=w+1|0;if(44==(w|0))break}}, testOnlyAes128CipherBlock:function(w,C,F){w|=0;C|=0;F|=0;var E;eb=E=eb-176|0;var L=r[w+12>>2];r[E+8>>2]=r[w+8>>2];r[E+12>>2]=L;L=r[w+4>>2];r[E>>2]=r[w>>2];r[E+4>>2]=L;w=4;for(L=r[E+12>>2];;){var I=(w<<2)+E|0;if(!(w&3)){var R=P[(w>>>2|0)+1023|0];L=X(L,24);L=R^(P[(L>>>8&255)+1034|0]<<8|P[(L&255)+1034|0]|P[(L>>>16&255)+1034|0]<<16|P[(L>>>24|0)+1034|0]<<24)}L=r[I-16>>2]^L;r[I>>2]=L;w=w+1|0;if(44==(w|0))break}ua(F,E,C);eb=E+176|0}, AES128CTRCipher_create:function(w){w|=0;for(var C,F,E,L,I,R,T;;){eb=I=eb-16|0;r[I+12>>2]=0;(C=t(276))?(F=C-8|0,C&15?(R=C-4|0,T=r[R>>2],C=(C+15&-16)-8|0,C=(15>=C-F>>>0?16:0)+C|0,E=C-F|0,L=(T&-8)-E|0,T&3?(r[C+4>>2]=r[C+4>>2]&1|L|2,L=C+L|0,r[L+4>>2]|=1,r[R>>2]=r[R>>2]&1|E|2,L=F+E|0,r[L+4>>2]|=1,y(F,E)):(F=r[F>>2],r[C+4>>2]=L,r[C>>2]=F+E)):C=F,F=r[C+4>>2],F&3&&(E=F&-8,264>=E>>>0||(r[C+4>>2]=F&1|250,F=C+248|0,L=E-248|0,r[F+4>>2]=L|3,E=C+E|0,r[E+4>>2]|=1,y(F,L))),C=C+8|0):C=0;C&&(r[I+12>>2]=C);eb=I+16| 0;F=r[I+12>>2];if(!F&&(C=r[716])){nb[C|0]();continue}break}r[F>>2]=1812;C=P[w+12|0]|P[w+13|0]<<8|P[w+14|0]<<16|P[w+15|0]<<24;I=P[w+8|0]|P[w+9|0]<<8|P[w+10|0]<<16|P[w+11|0]<<24;W[F+24|0]=I;W[F+25|0]=I>>>8;W[F+26|0]=I>>>16;W[F+27|0]=I>>>24;W[F+28|0]=C;W[F+29|0]=C>>>8;W[F+30|0]=C>>>16;W[F+31|0]=C>>>24;C=P[w+4|0]|P[w+5|0]<<8|P[w+6|0]<<16|P[w+7|0]<<24;w=P[w|0]|P[w+1|0]<<8|P[w+2|0]<<16|P[w+3|0]<<24;W[F+16|0]=w;W[F+17|0]=w>>>8;W[F+18|0]=w>>>16;W[F+19|0]=w>>>24;W[F+20|0]=C;W[F+21|0]=C>>>8;W[F+22|0]=C>>>16; W[F+23|0]=C>>>24;I=F+16|0;C=r[F+28>>2];for(w=4;E=I+(w<<2)|0,w&3||(L=P[(w>>>2|0)+1023|0],C=X(C,24),C=L^(P[(C>>>8&255)+1034|0]<<8|P[(C&255)+1034|0]|P[(C>>>16&255)+1034|0]<<16|P[(C>>>24|0)+1034|0]<<24)),C=r[E-16>>2]^C,r[E>>2]=C,w=w+1|0,44!=(w|0););r[F+192>>2]=0;r[F+196>>2]=0;r[F+224>>2]=0;r[F+200>>2]=0;r[F+204>>2]=0;return F|0}, AES128CTRCipher_release:function(w){if(w|=0)nb[r[r[w>>2]+12>>2]](w)}, AES128CTRCipher_setCounter:function(w,C){w|=0;nb[r[r[w>>2]>>2]](w,C|0)}, AES128CTRCipher_encrypt:function(w,C,F){w|=0;nb[r[r[w>>2]+4>>2]](w,C|0,F|0)}, __indirect_function_table:nb,_start:function(){gb(0);d();d()}, malloc:t,free:m,realloc:function(w,C){w|=0;C|=0;var F=0,E=0;if(!w)return t(C)|0;if(4294967232<=C>>>0)return r[591]=48,0;var L=11>C>>>0?16:C+11&-8;var I=w-8|0;var R=r[I+4>>2];var T=R&-8;a:if(R&3){var ka=T+I|0;if(T>>>0>=L>>>0)T=T-L|0,16>T>>>0||(r[I+4>>2]=R&1|L|2,F=I+L|0,r[F+4>>2]=T|3,r[ka+4>>2]|=1,y(F,T));else if(r[598]==(ka|0)){E=T+r[595]|0;if(E>>>0<=L>>>0)break a;r[I+4>>2]=R&1|L|2;T=I+L|0;F=E-L|0;r[T+4>>2]=F|1;r[595]=F;r[598]=T}else if(r[597]==(ka|0)){T=T+r[594]|0;if(T>>>0>>0)break a;F=T-L|0;16<= F>>>0?(r[I+4>>2]=R&1|L|2,E=I+L|0,r[E+4>>2]=F|1,T=T+I|0,r[T>>2]=F,r[T+4>>2]&=-2):(r[I+4>>2]=T|R&1|2,F=T+I|0,r[F+4>>2]|=1,F=0);r[597]=E;r[594]=F}else{E=r[ka+4>>2];if(E&2)break a;var ha=T+(E&-8)|0;if(ha>>>0>>0)break a;var fa=ha-L|0;c:if(255>=E>>>0)T=r[ka+12>>2],F=r[ka+8>>2],(T|0)==(F|0)?(F=2368,T=r[592]&X(-2,E>>>3|0),r[F>>2]=T):(r[F+12>>2]=T,r[T+8>>2]=F);else{var ra=r[ka+24>>2];var Aa=r[ka+12>>2];d:if((Aa|0)!=(ka|0))F=r[ka+8>>2],r[F+12>>2]=Aa,r[Aa+8>>2]=F;else{E=ka+20|0;F=r[E>>2];if(!F&&(E=ka+16| 0,F=r[E>>2],!F)){Aa=0;break d}for(;T=E,Aa=F,E=F+20|0,F=r[E>>2],F||(E=Aa+16|0,F=r[Aa+16>>2],F););r[T>>2]=0}if(ra){T=r[ka+28>>2];F=(T<<2)+2672|0;d:{if(r[F>>2]==(ka|0)){if(r[F>>2]=Aa)break d;F=2372;T=r[593]&X(-2,T);r[F>>2]=T;break c}r[(r[ra+16>>2]==(ka|0)?16:20)+ra>>2]=Aa;if(!Aa)break c}r[Aa+24>>2]=ra;if(F=r[ka+16>>2])r[Aa+16>>2]=F,r[F+24>>2]=Aa;if(F=r[ka+20>>2])r[Aa+20>>2]=F,r[F+24>>2]=Aa}}15>=fa>>>0?(r[I+4>>2]=R&1|ha|2,F=I+ha|0,r[F+4>>2]|=1):(r[I+4>>2]=R&1|L|2,T=I+L|0,r[T+4>>2]=fa|3,F=I+ha|0,r[F+4>> 2]|=1,y(T,fa))}F=I}else if(!(256>L>>>0)){if(T>>>0>=L+4>>>0&&(F=I,T-L>>>0<=r[712]<<1>>>0))break a;F=0}if(F)return F+8|0;F=t(C);if(!F)return 0;T=F;I=w;E=r[I-4>>2];E=(E&3?-4:-8)+(E&-8)|0;if(C=C>>>0>E>>>0?E:C)for(;W[T|0]=P[I|0],T=T+1|0,I=I+1|0,C=C-1|0,C;);m(w);return F|0}}}.call(void 0,a)}; lLa=function(){this.j=kLa(this)}; kLa=function(a){return{env:{emscripten_notify_memory_growth:function(){}}, wasi_snapshot_preview1:{proc_exit:function(){}, fd_write:function(b,c,d){b=new DataView(a.exports.memory.buffer);for(var e="",f=0,h=0;hMath.random()){var G=new g.yA("Unable to load player module",b,document.location&&document.location.origin);g.YD(G)}sf(e);t&&t(B)}; var u=m,y=u.onreadystatechange;u.onreadystatechange=function(B){switch(u.readyState){case "loaded":case "complete":sf(f)}y&&y(B)}; l&&((h=a.G.W().cspNonce)&&m.setAttribute("nonce",h),g.sk(m,g.Gr(b)),h=g.Le("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.ob(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))}; FLa=function(a,b,c,d,e){g.yE.call(this);var f=this;this.target=a;this.WE=b;this.u=0;this.J=!1;this.C=new g.se(NaN,NaN);this.j=new g.lI(this);this.Aa=this.B=this.K=null;g.J(this,this.j);b=d||e?4E3:3E3;this.ea=new g.Qp(function(){JT(f,1,!1)},b,this); g.J(this,this.ea);this.ma=new g.Qp(function(){JT(f,2,!1)},b,this); g.J(this,this.ma);this.qa=new g.Qp(function(){JT(f,512,!1)},b,this); g.J(this,this.qa);this.Da=c&&0=c.width||!c.height||0>=c.height||g.pE(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; PLa=function(a){var b=a.G.Ib();b=b.isCued()||b.isError()?"none":g.xP(b)?"playing":"paused";a.mediaSession.playbackState=b}; QLa=function(a){g.V.call(this,{I:"div",S:"ytp-paid-content-overlay",Y:{"aria-live":"assertive","aria-atomic":"true"}});this.G=a;this.videoId=null;this.B=!1;this.bf=this.j=null;var b=a.W();a.N("enable_new_paid_product_placement")&&!g.oL(b)?(this.u=new g.V({I:"a",S:"ytp-paid-content-overlay-link",Y:{href:"{{href}}",target:"_blank"},X:[{I:"div",S:"ytp-paid-content-overlay-icon",xa:"{{icon}}"},{I:"div",S:"ytp-paid-content-overlay-text",xa:"{{text}}"},{I:"div",S:"ytp-paid-content-overlay-chevron",xa:"{{chevron}}"}]}), this.T(this.u.element,"click",this.onClick)):this.u=new g.V({I:"div",Ka:["ytp-button","ytp-paid-content-overlay-text"],xa:"{{text}}"});this.C=new g.VQ(this.u,250,!1,100);g.J(this,this.u);this.u.Ha(this.element);g.J(this,this.C);this.G.Mf(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Dd)}; SLa=function(a,b){var c=pya(b),d=jN(b);b.If&&a.G.Po()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Tp(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&RLa(a,d,c,b)):c&&d&&RLa(a,d,c,b))}; RLa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Qp(a.Kb,b,a);g.J(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.Q(e,g.ZM))?void 0:l.url;a.G.Vf(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{I:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 24 24", width:"100%"},X:[{I:"path",Y:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:h?g.BQ():null})}; TLa=function(a,b){a.j&&(g.BO(b,8)&&a.B?(a.B=!1,a.pd(),a.j.start()):(g.BO(b,2)||g.BO(b,64))&&a.videoId&&(a.videoId=null))}; ST=function(a){g.V.call(this,{I:"div",S:"ytp-spinner",X:[IJa(),{I:"div",S:"ytp-spinner-message",xa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.j=new g.Qp(this.show,500,this);g.J(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);this.xc(a.Ib())}; TT=function(a){var b=[{I:"div",Ka:["ytp-unmute-icon"],X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {I:"div",Ka:["ytp-unmute-text"],xa:"Tap to unmute"}];b.push({I:"div",Ka:["ytp-unmute-box"],X:[]});g.uS.call(this,a,{I:"button",Ka:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],X:[{I:"div",S:"ytp-unmute-inner",X:b}]},100);this.j=this.clicked=!1;this.api=a;this.api.tb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",this.Ki);this.Sa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&& !g.OK(this.api.W());g.wQ(this,a);a&&ULa(this);this.B=a}; ULa=function(a){a.j||(a.j=!0,a.api.Xa(a.element,!0))}; g.UT=function(a){g.lI.call(this);var b=this;this.api=a;this.cN=!1;this.Yo=null;this.gF=!1;this.xg=null;this.OK=this.hI=!1;this.HP=this.IP=null;this.eV=NaN;this.GP=this.hB=!1;this.EC=0;this.ZJ=[];this.dO=!1;this.eC={height:0,width:0};this.N9=["ytp-player-content","html5-endscreen","ytp-overlay"];this.jN={kM:!1};var c=a.W(),d=a.kb();this.eC=a.getPlayerSize();this.zS=new g.Qp(this.sN,0,this);g.J(this,this.zS);g.XK(c)||(this.Lm=new g.MT(a),g.J(this,this.Lm),g.sS(a,this.Lm.element,4));if(VLa(this)){var e= new ST(a);g.J(this,e);e=e.element;g.sS(a,e,4)}var f=a.getVideoData();this.gf=new FLa(d,function(l){return b.WE(l)},f,c.zi,!1); g.J(this,this.gf);this.gf.subscribe("autohideupdate",this.vn,this);if(!c.disablePaidContentOverlay){var h=new QLa(a);g.J(this,h);g.sS(a,h.element,4)}this.OP=new TT(a);g.J(this,this.OP);g.sS(this.api,this.OP.element,2);this.iM=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.gI=new g.Qp(this.wr,200,this);g.J(this,this.gI);this.tC=f.videoId;this.lX=new g.Qp(function(){b.EC=0},350); g.J(this,this.lX);this.mF=new g.Qp(function(){b.GP||WLa(b)},350,this); g.J(this,this.mF);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.Yp(f,"ytp-color-white")}g.XK(c)&&g.Yp(f,"ytp-music-player");navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new QT(a),g.J(this,f));this.T(a,"appresize",this.Gb);this.T(a,"presentingplayerstatechange",this.Ki);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.y6);this.T(a,"autonavvisibility",function(){b.yp()}); this.T(a,"sizestylechange",function(){b.yp()}); this.T(d,"click",this.V6,this);this.T(d,"dblclick",this.W6,this);this.T(d,"mousedown",this.Z6,this);c.Pb&&(this.T(d,"gesturechange",this.X6,this),this.T(d,"gestureend",this.Y6,this));this.kt=[d.aB];this.Lm&&this.kt.push(this.Lm.element);e&&this.kt.push(e)}; XLa=function(a,b){if(!b)return!1;var c=a.api.Fe();if(c.mu()&&(c=c.wb())&&g.kf(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()}; VLa=function(a){a=sz()&&67<=Dma()&&!a.api.W().V;return!rz("tizen")&&!LK&&!a&&!0}; WT=function(a,b){b=void 0===b?2:b;g.yE.call(this);this.api=a;this.j=null;this.Ad=new fA(this);g.J(this,this.Ad);this.u=cEa;this.Ad.T(this.api,"presentingplayerstatechange",this.Dd);this.j=this.Ad.T(this.api,"progresssync",this.zc);this.Ln=b;1===this.Ln&&this.zc()}; aMa=function(a){g.V.call(this,{I:"button",Ka:["ytp-button","ytp-back-button"],X:[{I:"div",S:"ytp-arrow-back-icon",X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},X:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",yc:!0,Y:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.G=a;g.wQ(this,a.W().xm);this.Sa("click",this.onClick)}; g.XT=function(a){g.V.call(this,{I:"div",X:[{I:"div",S:"ytp-bezel-text-wrapper",X:[{I:"div",S:"ytp-bezel-text",xa:"{{title}}"}]},{I:"div",S:"ytp-bezel",Y:{role:"status","aria-label":"{{label}}"},X:[{I:"div",S:"ytp-bezel-icon",xa:"{{icon}}"}]}]});this.G=a;this.u=new g.Qp(this.show,10,this);this.j=new g.Qp(this.hide,500,this);g.J(this,this.u);g.J(this,this.j);this.hide()}; $T=function(a,b,c){if(0>=b){c=xDa();b="muted";var d=0}else c=c?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,Y:{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"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,Y:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";ZT(a,c,b,d+"%")}; bMa=function(a,b){b=b?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{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"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.G.getPlaybackRate(),d=g.XO("Speed is $RATE",{RATE:String(c)});ZT(a,b,d,c+"x")}; cMa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";ZT(a,HJa(),b)}; ZT=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Tp(a.j);a.u.start();a.updateValue("title",d);g.bq(a.element,"ytp-bezel-text-hide",!d)}; eMa=function(a,b,c){g.V.call(this,{I:"button",Ka:["ytp-button","ytp-cards-button"],Y:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.OK(a.W()))},X:[{I:"span",S:"ytp-cards-button-icon-default",X:[{I:"div",S:"ytp-cards-button-icon",X:[a.W().N("player_new_info_card_format")?iDa():{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{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"}}]}]}, {I:"div",S:"ytp-cards-button-title",xa:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",X:[{I:"div",S:"ytp-cards-button-icon",X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",S:"ytp-svg-shadow",Y:{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",S:"ytp-svg-fill",Y:{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",S:"ytp-svg-shadow-fill",Y:{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"}}]}]},{I:"div", S:"ytp-cards-button-title",xa:"Shopping"}]}]});this.G=a;this.B=b;this.C=c;this.j=null;this.u=new g.VQ(this,250,!0,100);g.J(this,this.u);g.bq(this.C,"ytp-show-cards-title",g.OK(a.W()));this.hide();this.Sa("click",this.D5);this.Sa("mouseover",this.X5);dMa(this,!0)}; dMa=function(a,b){b?a.j=g.ES(a.B.Ec(),a.element):(a.j=a.j,a.j(),a.j=null)}; fMa=function(a,b,c){g.V.call(this,{I:"div",S:"ytp-cards-teaser",X:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",X:a.W().N("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",Y:{"aria-label":"Show cards","aria-haspopup":"true"},X:[iDa()]},{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",Y:{"aria-label":"Close"},X:[g.CQ()]}]:[{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"}]}]});var d=this;this.G=a;this.ma= b;this.jh=c;this.C=new g.VQ(this,250,!1,250);this.j=null;this.K=new g.Qp(this.k6,300,this);this.J=new g.Qp(this.j6,2E3,this);this.D=[];this.u=null;this.V=new g.Qp(function(){d.element.style.margin="0"},250); this.onClickCommand=this.B=null;g.J(this,this.C);g.J(this,this.K);g.J(this,this.J);g.J(this,this.V);a.W().N("player_new_info_card_format")?(g.Yp(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.gp),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.wP),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.wP)):this.Sa("click",this.wP);this.T(c.element,"mouseover",this.BR);this.T(c.element,"mouseout",this.AR);this.T(a,"cardsteasershow", this.w7);this.T(a,"cardsteaserhide",this.Kb);this.T(a,"cardstatechange",this.AY);this.T(a,"presentingplayerstatechange",this.AY);this.T(a,"appresize",this.UP);this.T(a,"onShowControls",this.UP);this.T(a,"onHideControls",this.g2);this.Sa("mouseenter",this.b0)}; gMa=function(a){g.V.call(this,{I:"button",Ka:[aU.BUTTON,aU.TITLE_NOTIFICATIONS],Y:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},X:[{I:"div",S:aU.TITLE_NOTIFICATIONS_ON,Y:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},X:[g.mDa()]},{I:"div",S:aU.TITLE_NOTIFICATIONS_OFF,Y:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},X:[{I:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{I:"path",Y:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); this.api=a;this.j=!1;a.tb(this.element,this,36927);this.Sa("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; hMa=function(a,b){a.j=b;a.element.classList.toggle(aU.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.hQ:c.fQ)?(a=a.api.Pm())?qR(a,b):g.YD(Error("No innertube service available when updating notification preferences.")):g.YD(Error("No update preferences command available.")):g.YD(Error("No video data when updating notification preferences."))}; g.bU=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=iMa(a,b);if(a=g.tk(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))wpa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)}; iMa=function(a,b){var c=document.location.protocol;return lfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")}; g.dU=function(a,b,c,d,e,f,h,l,m,n,p,q){q=void 0===q?null:q;a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var t=p.W(),u=t.userDisplayName&&g.UK(t);g.V.call(this,{I:"div",Ka:["ytp-button","ytp-sb"],X:[{I:"div",S:"ytp-sb-subscribe",Y:u?{title:g.XO("Subscribe as $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":tL(t),"data-tooltip-opaque":String(g.OK(t)),tabindex:"0", role:"button"}:{"aria-label":"Subscribe to channel"},X:[{I:"div",S:"ytp-sb-text",X:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",xa:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",Y:u?{title:g.XO("Subscribed as $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":tL(t),"data-tooltip-opaque":String(g.OK(t)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},X:[{I:"div",S:"ytp-sb-text",X:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div", S:"ytp-sb-count",xa:d}:""]}],Y:{"aria-live":"polite"}});var y=this;this.channelId=h;this.B=q;this.G=p;var B=this.Fa("ytp-sb-subscribe"),G=this.Fa("ytp-sb-unsubscribe");f&&g.Yp(this.element,"ytp-sb-classic");if(e){l?this.j():this.u();var M=function(){if(t.qa){var H=y.channelId;if(m||n){var U={c:H};var aa;g.QR.isInitialized()&&(aa=DIa(U));U=aa||"";if(aa=p.getVideoData())if(aa=aa.subscribeCommand){var da=p.Pm();da?(qR(da,aa,{botguardResponse:U,feature:m}),p.Pa("SUBSCRIBE",H)):g.YD(Error("No innertube service available when updating subscriptions."))}else g.YD(Error("No subscribe command in videoData.")); else g.YD(Error("No video data available when updating subscription."))}G.focus();G.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")}else g.bU(g.gL(y.G.W()),"sb_button",y.C)},N=function(){var H=y.channelId; if(m||n){var U=p.getVideoData();qR(p.Pm(),U.unsubscribeCommand,{feature:m});p.Pa("UNSUBSCRIBE",H)}B.focus();B.removeAttribute("aria-hidden");G.setAttribute("aria-hidden","true")}; this.T(B,"click",M);this.T(G,"click",N);this.T(B,"keypress",function(H){13===H.keyCode&&M(H)}); this.T(G,"keypress",function(H){13===H.keyCode&&N(H)}); this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.u);this.B&&u&&(this.tooltip=this.B.Ec(),cU(this.tooltip),g.ob(this,g.ES(this.tooltip,B)),g.ob(this,g.ES(this.tooltip,G)))}else g.Yp(B,"ytp-sb-disabled"),g.Yp(G,"ytp-sb-disabled")}; kMa=function(a,b){g.V.call(this,{I:"div",S:"ytp-title-channel",X:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",Y:{href:"{{channelLink}}",target:a.W().ea,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",Y:{"aria-hidden":"{{flyoutUnfocusable}}"},X:[{I:"div",S:"ytp-title-expanded-heading",X:[{I:"div",S:"ytp-title-expanded-title",X:[{I:"a",xa:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.W().ea,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",xa:"{{expandedSubtitle}}",Y:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var c=this;this.api=a;this.D=b;this.channel=this.Fa("ytp-title-channel");this.j=this.Fa("ytp-title-channel-logo");this.channelName=this.Fa("ytp-title-expanded-title");this.J=this.Fa("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.C=!1;a.tb(this.j,this,36925);a.tb(this.channelName,this,37220);g.OK(this.api.W())&& jMa(this);this.T(a,"videodatachange",this.Ra);this.T(a,"videoplayerreset",this.Ra);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(d){c.api.rb(c.channelName);g.tk(eU(c));d.preventDefault()}),this.T(this.j,"click",this.A5)); this.Ra()}; lMa=function(a){if(!a.api.W().Cc){var b=a.api.getVideoData(),c=new g.dU("Subscribe",null,"Subscribed",null,!0,!1,b.dk,b.subscribed,"channel_avatar",null,a.api,a.D);a.api.Mf(c.element,a);var d;a.api.Vf(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.rb(c.element)}); a.subscribeButton=c;g.J(a,a.subscribeButton);a.subscribeButton.Ha(a.J);a.subscribeButton.hide();var e=new gMa(a.api);a.u=e;g.J(a,e);e.Ha(a.J);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.qm&&(e.show(),a.api.Xa(e.element,!0))}); a.T(a.api,"UNSUBSCRIBE",function(){b.qm&&(e.hide(),a.api.Xa(e.element,!1),hMa(e,!1))})}}; jMa=function(a){var b=a.api.W();lMa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.u||b.Hb?a.T(a.j,"click",function(c){a.api.N("web_player_ve_conversion_fixes_for_channel_info")||(mMa(a)&&(c.preventDefault(),a.isExpanded()?a.eF():a.uF()),a.api.rb(a.j))}):(a.T(a.channel,"mouseenter",a.uF),a.T(a.channel,"mouseleave",a.eF),a.T(a.channel,"focusin", a.uF),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.eF()}),a.T(a.j,"click",function(){a.api.N("web_player_ve_conversion_fixes_for_channel_info")||a.api.rb(a.j)})); a.B=new g.Qp(function(){a.isExpanded()&&(a.api.N("web_player_ve_conversion_fixes_for_channel_info")&&a.api.Xa(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.Xa(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Xa(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.J(a,a.B);a.T(a.channel,nMa,function(){oMa(a)}); a.T(a.api,"onHideControls",a.LO);a.T(a.api,"appresize",a.LO);a.T(a.api,"fullscreentoggled",a.LO)}; oMa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; mMa=function(a){var b=a.api.getPlayerSize();return g.OK(a.api.W())&&524<=b.width}; eU=function(a){var b=a.api.W(),c=a.api.getVideoData();c=g.uL(b)+c.Mc;if(!g.OK(b))return c;var d={};b.Ba&&g.TR(d,a.api.W().loaderUrl);g.aS(a.api,"addEmbedsConversionTrackingParams",[d]);g.SR(d,"emb_ch_name_ex");return g.jj(c,d)}; fU=function(a,b,c,d,e,f){var h={I:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",S:"ytp-panel-header",X:[{I:"div",Ka:["ytp-panel-back-button-container"],X:[{Y:{"aria-label":"Back to previous menu"},I:"button",Ka:["ytp-button",l]}]},{Y:{tabindex:"0"},I:"span",Ka:[m],X:[c]}]};if(e){var p="ytp-panel-options";n.X.push({I:"button",Ka:["ytp-button",p],X:[d]})}h.X=[n]}d=!1;f&&(f={I:"div",S:"ytp-panel-footer",X:[f]},d=!0,h.X?h.X.push(f):h.X=[f]);g.xQ.call(this, h);this.content=b;d&&h.X?b.Ha(this.element,h.X.length-1):b.Ha(this.element);this.yU=!1;this.xU=d;c&&(c=this.Fa(l),m=this.Fa(m),this.T(c,"click",this.UV),this.T(m,"click",this.UV),this.yU=!0,e&&(p=this.Fa(p),this.T(p,"click",e)));b.subscribe("size-change",this.ZV,this);this.T(a,"fullscreentoggled",this.ZV);this.G=a}; g.gU=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.xQ({I:"div",S:"ytp-panel-menu",Y:h});fU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)}; g.pMa=function(a){for(var b=g.v(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.KN,a);a.items=[];g.af(a.menuItems.element);a.menuItems.oa("size-change")}; qMa=function(a,b){return b.priority-a.priority}; hU=function(a){var b=g.yS({"aria-haspopup":"true"});g.xS.call(this,b,a);this.Sa("keydown",this.j)}; iU=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; rMa=function(a,b){g.V.call(this,{I:"div",S:"ytp-user-info-panel",Y:{"aria-label":"User info"},X:a.W().qa&&!a.N("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",X:[{I:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable}}",role:"text"},xa:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable2}}",role:"text"},xa:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon", xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",X:[{I:"div",X:[{I:"text",Y:{tabIndex:"{{userInfoFocusable}}"},xa:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",X:[{I:"a",Y:{tabIndex:"{{userInfoFocusable2}}",role:"button"},xa:a.W().Cc?"":"Sign in on YouTube"}]}]}]});this.Wa=a;this.j=b;a.W().qa||a.W().Cc||(a=this.Fa("ytp-user-info-panel-login"),this.T(a,"click",this.e0));this.closeButton=new g.V({I:"button",Ka:["ytp-collapse","ytp-button"],Y:{title:"Close"},X:[g.vDa()]});this.closeButton.Ha(this.element); g.J(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.d0);this.Ra()}; tMa=function(a,b,c,d){g.gU.call(this,a);this.Jb=c;this.Sc=d;this.getVideoUrl=new hU(6);this.Sm=new hU(5);this.Nm=new hU(4);this.lc=new hU(3);this.xD=new g.xS(g.yS({href:"{{href}}",target:this.G.W().ea},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.xS(g.yS(),1,"Stats for nerds");this.Zx=new g.xQ({I:"div",Ka:["ytp-copytext","ytp-no-contextmenu"],Y:{draggable:"false",tabindex:"1"},xa:"{{text}}"});this.ZS=new fU(this.G,this.Zx);this.cE=this.Os=null;g.OK(this.G.W())&&this.G.N("embeds_web_enable_new_context_menu_triggering")&& (this.closeButton=new g.V({I:"button",Ka:["ytp-collapse","ytp-button"],Y:{title:"Close"},X:[g.vDa()]}),g.J(this,this.closeButton),this.closeButton.Ha(this.element),this.closeButton.Sa("click",this.l2,this));g.OK(this.G.W())&&(this.Zk=new g.xS(g.yS(),8,"Account"),g.J(this,this.Zk),this.bd(this.Zk,!0),this.Zk.Sa("click",this.j7,this),a.tb(this.Zk.element,this.Zk,137682));this.G.W().Bm&&(this.Kk=new GS("Loop",7),g.J(this,this.Kk),this.bd(this.Kk,!0),this.Kk.Sa("click",this.d6,this),a.tb(this.Kk.element, this.Kk,28661));g.J(this,this.getVideoUrl);this.bd(this.getVideoUrl,!0);this.getVideoUrl.Sa("click",this.V5,this);a.tb(this.getVideoUrl.element,this.getVideoUrl,28659);g.J(this,this.Sm);this.bd(this.Sm,!0);this.Sm.Sa("click",this.W5,this);a.tb(this.Sm.element,this.Sm,28660);g.J(this,this.Nm);this.bd(this.Nm,!0);this.Nm.Sa("click",this.U5,this);a.tb(this.Nm.element,this.Nm,28658);g.J(this,this.lc);this.bd(this.lc,!0);this.lc.Sa("click",this.T5,this);g.J(this,this.xD);this.bd(this.xD,!0);this.xD.Sa("click", this.R6,this);g.J(this,this.showVideoInfo);this.bd(this.showVideoInfo,!0);this.showVideoInfo.Sa("click",this.k7,this);g.J(this,this.Zx);this.Zx.Sa("click",this.I5,this);g.J(this,this.ZS);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=yc("Chromium")&&(b=!0);40>=yc("Firefox")&&(b=!1);b&&(this.Os=new g.V({I:"textarea",S:"ytp-html5-clipboard",Y:{readonly:"",tabindex:"-1"}}),g.J(this,this.Os),this.Os.Ha(this.element));var e;null==(e=this.Zk)||zS(e,pDa());var f;null==(f=this.Kk)|| zS(f,{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});zS(this.lc,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});zS(this.xD,{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]});zS(this.showVideoInfo,hDa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);sMa(this);this.bP(this.G.getVideoData())}; kU=function(a,b){var c=!1;if(a.Os){var d=a.Os.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Jb.Kb():(a.Zx.Yd(b,"text"),g.jU(a.Jb,a.ZS),JJa(a.Zx.element),a.Os&&(a.Os=null,sMa(a)));return c}; sMa=function(a){var b=!!a.Os;g.wS(a.lc,b?"Copy debug info":"Get debug info");iU(a.lc,!b);g.wS(a.Nm,b?"Copy embed code":"Get embed code");iU(a.Nm,!b);g.wS(a.getVideoUrl,b?"Copy video URL":"Get video URL");iU(a.getVideoUrl,!b);g.wS(a.Sm,b?"Copy video URL at current time":"Get video URL at current time");iU(a.Sm,!b);zS(a.Nm,b?fDa():null);zS(a.getVideoUrl,b?DQ():null);zS(a.Sm,b?DQ():null)}; uMa=function(a){return g.OK(a.G.W())?a.Zk:a.Kk}; g.lU=function(a,b){g.uS.call(this,a,{I:"div",Ka:["ytp-popup",b||""]},100,!0);this.j=[];this.J=this.D=null;this.maxHeight=this.maxWidth=0;this.size=new g.we(0,0);this.Sa("keydown",this.f0)}; vMa=function(a){var b=a.j[a.j.length-1];if(b){g.kn(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.$m(b.element,"width","");g.$m(b.element,"height","");g.$m(b.element,"maxWidth","100%");g.$m(b.element,"maxHeight","100%");g.$m(b.content.element,"height","");var c=g.ln(b.element);c.width+=1;c.height+=1;g.$m(b.element,"width",c.width+"px");g.$m(b.element,"height",c.height+"px");g.$m(b.element,"maxWidth","");g.$m(b.element,"maxHeight","");var d=0;b.yU&&(d=b.Fa("ytp-panel-header"),d=g.ln(d).height); var e=0;b.xU&&(e=b.Fa("ytp-panel-footer"),g.$m(e,"width",c.width+"px"),e=g.ln(e).height);g.$m(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];wMa(a,b,c,!0)}}; wMa=function(a,b,c,d){xMa(a);b&&(b.unsubscribe("size-change",a.fA,a),b.unsubscribe("back",a.lj,a));c.subscribe("size-change",a.fA,a);c.subscribe("back",a.lj,a);if(a.Bb){g.Yp(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ha(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;vMa(a);g.kn(a.element,e);a.D=new g.Qp(function(){yMa(a,b,c,d)},20,a); a.D.start()}else c.Ha(a.element),b&&b.detach()}; yMa=function(a,b,c,d){a.D.dispose();a.D=null;g.Yp(a.element,"ytp-popup-animating");d?(g.Yp(b.element,"ytp-panel-animate-forward"),g.$p(c.element,"ytp-panel-animate-back")):(g.Yp(b.element,"ytp-panel-animate-back"),g.$p(c.element,"ytp-panel-animate-forward"));g.kn(a.element,a.size);a.J=new g.Qp(function(){g.$p(a.element,"ytp-popup-animating");b.detach();g.aq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a); a.J.start()}; xMa=function(a){a.D&&g.Sp(a.D);a.J&&g.Sp(a.J)}; g.nU=function(a,b,c){g.lU.call(this,a);this.Da=b;this.Sc=c;this.C=new g.lI(this);this.qa=new g.Qp(this.B7,1E3,this);this.Aa=this.B=null;g.J(this,this.C);g.J(this,this.qa);a.tb(this.element,this,28656);g.Yp(this.element,"ytp-contextmenu");zMa(this);this.hide()}; zMa=function(a){g.hA(a.C);var b=a.G.W();"gvn"===b.playerStyle||(b.u||b.Hb)&&b.N("embeds_web_enable_new_context_menu_triggering")||(b=a.G.kb(),a.C.T(b,"contextmenu",a.G5),a.C.T(b,"touchstart",a.h0,null,!0),a.C.T(b,"touchmove",a.BW,null,!0),a.C.T(b,"touchend",a.BW,null,!0))}; AMa=function(a){a.G.isFullscreen()?g.sS(a.G,a.element,10):a.Ha(document.body)}; g.oU=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{I:"button",Ka:["ytp-button","ytp-copylink-button"],Y:{title:"{{title-attr}}","data-tooltip-opaque":String(g.OK(a.W()))},X:[{I:"div",S:"ytp-copylink-icon",xa:"{{icon}}"},{I:"div",S:"ytp-copylink-title",xa:"Copy link",Y:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.Ec();b=a.W();cU(this.tooltip);g.bq(this.element,"ytp-show-copylink-title",g.OK(b)&&!g.XK(b));a.tb(this.element,this,86570);this.Sa("click", this.onClick);this.T(a,"videodatachange",this.Ra);this.T(a,"videoplayerreset",this.Ra);this.T(a,"appresize",this.Ra);this.Ra();g.ob(this,g.ES(this.tooltip,this.element))}; BMa=function(a){var b=a.api.W(),c=a.api.getVideoData(),d=a.api.kb().getPlayerSize().width,e=b.N("shorts_mode_to_player_api")?a.api.Yb():a.j.Yb(),f=b.B;return!!c.videoId&&d>=a.u&&c.ao&&!(c.wd&&b.ma)&&!e&&!f}; CMa=function(a){a.updateValue("icon",bDa());if(a.api.W().u)pU(a.tooltip,a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");FS(a.tooltip);pU(a.tooltip,a.element);var b=a.Sa("mouseleave",function(){a.Ic(b);a.Ra();a.tooltip.xk()})}}; DMa=function(a,b){return g.A(function(c){if(1==c.j)return g.xa(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.za(c);var d=c.return,e=!1,f=g.Ye("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(JB){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f); return d.call(c,e)})}; qU=function(a){g.V.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",X:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",X:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",X:[{I:"div",S:"ytp-doubletap-arrows-container",X:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div", S:"ytp-doubletap-tooltip",X:[{I:"div",S:"ytp-chapter-seek-text-legacy",xa:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",xa:"{{seekTime}}"}]}]}]});this.G=a;this.C=new g.Qp(this.show,10,this);this.u=new g.Qp(this.hide,700,this);this.J=this.B=0;this.D=!1;this.j=this.Fa("ytp-doubletap-static-circle");g.J(this,this.C);g.J(this,this.u);this.hide();this.K=this.Fa("ytp-doubletap-fast-forward-ve");this.V=this.Fa("ytp-doubletap-rewind-ve");this.G.tb(this.K,this,28240);this.G.tb(this.V,this,28239); this.G.Xa(this.K,!0);this.G.Xa(this.V,!0);this.D=a.N("web_show_cumulative_seek_time")}; rU=function(a,b,c){a.B=b===a.J?a.B+c:c;a.J=b;var d=a.G.kb().getPlayerSize();a.D?a.u.stop():g.Tp(a.u);a.C.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Yp(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";EMa(a,a.D?a.B:c)}; FMa=function(a,b,c){g.Tp(a.u);a.C.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.Yp(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")}; EMa=function(a,b){b=g.XO("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)}; uU=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.G=a;this.Pb=b;this.qb=this.ma=this.V=this.u=this.j=this.J=this.expanded=this.enabled=this.Ja=!1;this.fb=new g.Qp(function(){d.badge.element.style.width=""},200,this); this.Ba=new g.Qp(function(){sU(d);tU(d)},200,this); this.dismissButton=new g.V({I:"button",Ka:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.B=new g.V({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",X:[{I:"label",S:"ytp-suggested-action-badge-title",xa:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.B);this.Aa=new g.V({I:"div",S:"ytp-suggested-action-badge-icon-container",X:[c?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.J(this,this.Aa);this.badge=new g.V({I:"button", Ka:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],X:[this.Aa,this.B]});g.J(this,this.badge);this.badge.Ha(this.element);this.K=new g.VQ(this.badge,250,!1,100);g.J(this,this.K);this.Oa=new g.VQ(this.B,250,!1,100);g.J(this,this.Oa);this.ib=new g.Op(this.W8,null,this);g.J(this,this.ib);this.Ma=new g.Op(this.O2,null,this);g.J(this,this.Ma);g.J(this,this.fb);g.J(this,this.Ba);this.G.Mf(this.badge.element,this.badge,!0);this.G.Mf(this.dismissButton.element,this.dismissButton, !0);this.T(this.G,"onHideControls",function(){d.UG(!1)}); this.T(this.G,"onShowControls",function(){d.UG(!0)}); this.T(this.badge.element,"click",this.QG);this.T(this.dismissButton.element,"click",this.MC);this.T(this.G,"pageTransition",this.j0);this.T(this.G,"appresize",this.mm);this.T(this.G,"fullscreentoggled",this.R5);this.T(this.G,"cardstatechange",this.x5);this.T(this.G,"annotationvisibility",this.z9,this);this.T(this.G,"offlineslatestatechange",this.A9,this)}; sU=function(a){g.bq(a.badge.element,"ytp-suggested-action-badge-with-controls",a.V||!a.J)}; tU=function(a,b){var c=a.YH();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ib.stop(),a.Ma.stop(),a.fb.stop(),a.ib.start()):(g.wQ(a.B,a.expanded),g.bq(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),GMa(a))}; GMa=function(a){a.j&&a.G.Xa(a.badge.element,a.Sz());a.u&&a.G.Xa(a.dismissButton.element,a.Sz()&&a.YH())}; HMa=function(a){var b=a.text||"";g.lf(g.Oe("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.ub?a.ub:"")}; vU=function(a,b){b?a.u&&a.G.rb(a.dismissButton.element):a.j&&a.G.rb(a.badge.element)}; IMa=function(a,b){uU.call(this,a,b,!1);this.D=[];this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.qa=new g.V({I:"div",S:"ytp-featured-product-open-in-new"});g.J(this,this.qa);this.countdownTimer=new g.V({I:"text",S:"ytp-featured-product-countdown",xa:"{{content}}"});this.countdownTimer.hide();g.J(this,this.countdownTimer);this.banner=new g.V({I:"a",S:"ytp-featured-product-container",Y:{href:"{{url}}",target:"_blank"},X:[{I:"div",S:"ytp-featured-product-thumbnail",X:[{I:"img", Y:{src:"{{thumbnail}}"}},this.qa]},{I:"div",S:"ytp-featured-product-details",X:[{I:"text",S:"ytp-featured-product-title",xa:"{{title}}"},this.countdownTimer,{I:"text",S:"ytp-featured-product-vendor",xa:"{{vendor}}"},{I:"text",S:"ytp-featured-product-price",xa:"{{price}}"}]},this.dismissButton]});g.J(this,this.banner);this.banner.Ha(this.B.element);this.T(this.G,g.uE("featured_product"),this.J8);this.T(this.G,g.vE("featured_product"),this.FH);this.T(this.G,"videodatachange",this.onVideoDataChange)}; JMa=function(a){var b;return null==(b=g.Q(g.Q(a,g.qQ),g.ZM))?void 0:b.url}; LMa=function(a,b){KMa(a);if(b){var c=g.bN.getState().entities;c=lM(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.v(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.D.push(d);var f=void 0;e=g.v(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next())(f=f.value)&&b.push(new g.sE(1E3*Number(f.startTimeSec),1E3*Number(f.endTimeSec)||0x7ffffffffffff,{id:d.identifier,namespace:"featured_product"}))}}a.G.Je(b)}}}; KMa=function(a){a.D=[];a.G.Ge("featured_product")}; MMa=function(a){var b,c,d,e,f=null==(b=a.C)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;c=a.countdownTimer;d=c.Yd;var h={seconds:b};e=h.hours||0;f=h.minutes||0;var l=h.seconds||0;e=l+60*f+3600*e+86400*(h.days||0)+604800*(h.weeks||0)+2629800*(h.months||0)+31557600*(h.years||0);0>=e?e={hours:0,minutes:0,seconds:0}:(h=e,e=Math.floor(h/3600),h%=3600,f=Math.floor(h/60),l=Math.floor(h%60),e={hours:e, minutes:f,seconds:l});var m=void 0===e.hours?0:e.hours;f=void 0===e.minutes?0:e.minutes;h=void 0===e.seconds?0:e.seconds;l=0f?"0"+f:""+f;e.push(f);e.push(10>h?"0"+h:""+h);f=":";"da fi id si sl sr sr-Latn".split(" ").includes(wU)&&(f=".");d.call(c,e.join(f));if(0b);d=a.next())c++;return 0===c?c:c-1}; YMa=function(a,b){for(var c=0,d=g.v(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&b=a.C&&!b}; oNa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.j.Ml(),vS(a.B,a.element,!1)):g.YD(b))}; g.IU=function(a,b){var c=sQ(),d=a.W();c={I:"div",S:"ytp-share-panel",Y:{id:sQ(),role:"dialog","aria-labelledby":c},X:[{I:"div",S:"ytp-share-panel-inner-content",X:[{I:"div",S:"ytp-share-panel-title",Y:{id:c},xa:"Share"},{I:"a",Ka:["ytp-share-panel-link","ytp-no-contextmenu"],Y:{href:"{{link}}",target:d.ea,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},xa:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",X:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",Y:{type:"checkbox", checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",X:[IJa()]},{I:"div",S:"ytp-share-panel-service-buttons",xa:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",xa:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Ka:["ytp-share-panel-close","ytp-button"],Y:{title:"Close"},X:[g.CQ()]}]};g.uS.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Ec();this.B=[];this.D=this.Fa("ytp-share-panel-inner-content"); this.closeButton=this.Fa("ytp-share-panel-close");this.T(this.closeButton,"click",this.Kb);g.ob(this,g.ES(this.tooltip,this.closeButton));this.C=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Ra);this.j=this.Fa("ytp-share-panel-link");g.ob(this,g.ES(this.tooltip,this.j));this.api.tb(this.j,this,164503);this.T(this.j,"click",function(f){if(e.api.N("web_player_add_ve_conversion_logging_to_outbound_links")){g.nP(f);e.api.rb(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h= pNa(e,h);g.JS(h,e.api,f)&&e.api.Pa("SHARE_CLICKED")}else e.api.rb(e.j)}); this.Sa("click",this.r0);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.y4);this.hide()}; rNa=function(a,b){qNa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;fd;e={Cr:e.Cr,gk:e.gk},f++){e.Cr=c[f];a:switch(e.Cr.img||e.Cr.iconId){case "facebook":var h={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.Cr.sname||e.Cr.serviceName;e.gk=new g.V({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],Y:{href:e.Cr.url,target:"_blank",title:l},X:[h]});e.gk.Sa("click",function(p){return function(q){if(g.eR(q)){var t=p.Cr.url;var u=void 0===u?{}:u;u.target=u.target||"YouTube";u.width=u.width||"600";u.height=u.height||"600";var y=u;y||(y={});u=window;var B=t instanceof Wd?t:g.de("undefined"!=typeof t.href?t.href:String(t));var G=void 0!==self.crossOriginIsolated, M="strict-origin-when-cross-origin";window.Request&&(M=(new Request("/")).referrerPolicy);var N="unsafe-url"===M;M=y.noreferrer;if(G&&M){if(N)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");M=!1}t=y.target||t.target;G=[];for(var H in y)switch(H){case "width":case "height":case "top":case "left":G.push(H+"="+y[H]);break;case "target":case "noopener":case "noreferrer":break;default:G.push(H+"="+(y[H]?1:0))}H=G.join(",");Cc()&& u.navigator&&u.navigator.standalone&&t&&"_self"!=t?(y=g.Ye("A"),g.le(y,B),y.target=t,M&&(y.rel="noreferrer"),B=document.createEvent("MouseEvent"),B.initMouseEvent("click",!0,!0,u,1),y.dispatchEvent(B),u={}):M?(u=$ba("",u,t,H),B=g.Xd(B),u&&(g.pL&&g.fc(B,";")&&(B="'"+B.replace(/'/g,"%27")+"'"),u.opener=null,""===B&&(B="javascript:''"),g.Sd("b/12014412, meta tag with sanitized URL"),B='',B=g.ke(B),(y= u.document)&&y.write&&(y.write(g.je(B)),y.close()))):((u=$ba(B,u,t,H))&&y.noopener&&(u.opener=null),u&&y.noreferrer&&(u.opener=null));u&&(u.opener||(u.opener=window),u.focus());g.nP(q)}}}(e)); g.ob(e.gk,g.ES(a.tooltip,e.gk.element));"Facebook"===l?a.api.tb(e.gk.element,e.gk,164504):"Twitter"===l&&a.api.tb(e.gk.element,e.gk,164505);a.T(e.gk.element,"click",function(p){return function(){a.api.rb(p.gk.element)}}(e)); a.api.Xa(e.gk.element,!0);a.B.push(e.gk);d++}}var m=b.more||b.moreLink,n=new g.V({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],X:[{I:"span",S:"ytp-share-panel-service-button-more",X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{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"}}]}]}],Y:{href:m,target:"_blank",title:"More"}});n.Sa("click",function(p){var q=m;a.api.N("web_player_add_ve_conversion_logging_to_outbound_links")&&(a.api.rb(a.moreButton.element),q=pNa(a,q));g.JS(q,a.api,p)&&a.api.Pa("SHARE_CLICKED")}); g.ob(n,g.ES(a.tooltip,n.element));a.api.tb(n.element,n,164506);a.api.N("web_player_add_ve_conversion_logging_to_outbound_links")||a.T(n.element,"click",function(){a.api.rb(n.element)}); a.api.Xa(n.element,!0);a.B.push(n);a.moreButton=n;a.updateValue("buttons",a.B)}; pNa=function(a,b){var c=a.api.W(),d={};c.Ba&&g.OK(c)&&g.TR(d,c.loaderUrl);g.OK(c)&&(g.aS(a.api,"addEmbedsConversionTrackingParams",[d]),b=g.jj(b,g.SR(d,"emb_share")));return b}; qNa=function(a){for(var b=g.v(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.kb(c);a.B=[]}; JU=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0}; sNa=function(a,b){a.startSec+=b;a.endSec+=b}; uNa=function(a,b){uU.call(this,a,b);this.D=this.C=this.isContentForward=this.qa=this.Ua=this.Za=!1;tNa(this);this.T(this.G,"changeProductsInVideoVisibility",this.A6);this.T(this.G,"videodatachange",this.onVideoDataChange);this.T(this.G,"paidcontentoverlayvisibilitychange",this.t6)}; vNa=function(a){a.Da&&a.Aa.element.removeChild(a.Da.element);a.Da=void 0}; xNa=function(a){return a.map(function(b){var c,d;if((b=null==(c=g.Q(b,wNa))?void 0:null==(d=c.thumbnail)?void 0:d.thumbnails)&&0!==b.length)return b[0].url}).filter(function(b){return void 0!==b}).map(function(b){return new g.V({I:"img", S:"ytp-suggested-action-product-thumbnail",Y:{alt:"",src:b}})})}; yNa=function(a,b){a.isContentForward=b;g.bq(a.badge.element,"ytp-suggested-action-badge-content-forward",b)}; KU=function(a){var b=a.isContentForward&&!a.YH();g.bq(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.C);g.bq(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.D)}; LU=function(a,b,c){return new g.sE(1E3*a,1E3*b,{priority:9,namespace:c})}; zNa=function(a){a.G.Ge("shopping_overlay_visible");a.G.Ge("shopping_overlay_preview_collapsed");a.G.Ge("shopping_overlay_preview_expanded");a.G.Ge("shopping_overlay_expanded")}; tNa=function(a){a.T(a.G,g.uE("shopping_overlay_visible"),function(){a.Dg(!0)}); a.T(a.G,g.vE("shopping_overlay_visible"),function(){a.Dg(!1)}); a.T(a.G,g.uE("shopping_overlay_expanded"),function(){a.ma=!0;tU(a)}); a.T(a.G,g.vE("shopping_overlay_expanded"),function(){a.ma=!1;tU(a)}); a.T(a.G,g.uE("shopping_overlay_preview_collapsed"),function(){a.C=!0;KU(a)}); a.T(a.G,g.vE("shopping_overlay_preview_collapsed"),function(){a.C=!1;KU(a)}); a.T(a.G,g.uE("shopping_overlay_preview_expanded"),function(){a.D=!0;KU(a)}); a.T(a.G,g.vE("shopping_overlay_preview_expanded"),function(){a.D=!1;KU(a)})}; BNa=function(a,b){g.V.call(this,{I:"div",S:"ytp-shorts-title-channel",X:[{I:"a",S:"ytp-shorts-title-channel-logo",Y:{href:"{{channelLink}}",target:a.W().ea,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",X:[{I:"div",S:"ytp-shorts-title-expanded-title",X:[{I:"a",xa:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.W().ea,tabIndex:"0"}}]}]}]});var c=this;this.api=a;this.u=b;this.j=this.Fa("ytp-shorts-title-channel-logo");this.channelName=this.Fa("ytp-shorts-title-expanded-title"); this.subscribeButton=null;a.tb(this.j,this,36925);this.T(this.j,"click",function(d){c.api.N("web_player_ve_conversion_fixes_for_channel_info")?(c.api.rb(c.j),g.tk(MU(c)),d.preventDefault()):c.api.rb(c.j)}); a.tb(this.channelName,this,37220);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(d){c.api.rb(c.channelName);g.tk(MU(c));d.preventDefault()}); ANa(this);this.T(a,"videodatachange",this.Ra);this.T(a,"videoplayerreset",this.Ra);this.Ra()}; ANa=function(a){if(!a.api.W().Cc){var b=a.api.getVideoData(),c=new g.dU("Subscribe",null,"Subscribed",null,!0,!1,b.dk,b.subscribed,"channel_avatar",null,a.api,a.u);a.api.Mf(c.element,a);var d;a.api.Vf(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.rb(c.element)}); a.subscribeButton=c;g.J(a,a.subscribeButton);a.subscribeButton.Ha(a.element)}}; MU=function(a){var b=a.api.W(),c=a.api.getVideoData();c=g.uL(b)+c.Mc;if(!g.OK(b))return c;var d={};b.Ba&&g.TR(d,a.api.W().loaderUrl);g.aS(a.api,"addEmbedsConversionTrackingParams",[d]);g.SR(d,"emb_ch_name_ex");return g.jj(c,d)}; NU=function(a){g.uS.call(this,a,{I:"button",Ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],X:[{I:"div",S:"ytp-skip-intro-button-text",xa:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.Qp(function(){b.hide()},5E3); this.ze=this.cg=NaN;g.J(this,this.j);this.J=function(){b.show()}; this.D=function(){b.hide()}; this.C=function(){var c=b.G.getCurrentTime();c>b.cg/1E3&&c=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+t+"px/"+l+"px "+m+"px"}; TU=function(a){return a.N("web_big_boards")?a.Rf()?a.N("web_big_boards_enable_in_miniplayer"):a.isInline()?a.N("web_big_boards_enable_in_inline"):!0:!1}; g.UU=function(a,b){g.V.call(this,{I:"div",S:"ytp-storyboard-framepreview",X:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",xa:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Fa("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.lI(this);this.j=new g.VQ(this,100);g.J(this,this.events);g.J(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Dd);b&&this.T(this.element,"click",function(){b.hs()}); TU(this.api)&&g.Yp(this.element,"ytp-storyboard-framepreview-big-boards")}; DNa=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){DNa(a,a.api.Gj())}),a.events.T(a.api,"progresssync",a.Te),a.events.T(a.api,"appresize",a.D)),a.B=NaN,ENa(a),a.j.show(200)):(c&&g.hA(a.events),a.j.hide(),a.j.stop())}; ENa=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.kb().getPlayerSize(),e=BM(b,d.width);e=yxa(b,e,c);a.update({timestamp:g.dR(c)});e!==a.B&&(a.B=e,wxa(b,e,d.width),b=uxa(b,e,d.width),CNa(a.C,b,d.width,d.height))}; g.VU=function(a,b){g.V.call(this,{I:"button",Ka:["ytp-fullscreen-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"f","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.G=a;this.u=b;this.message=null;this.j=g.ES(this.u.Ec(),this.element);this.B=new g.Qp(this.Z1,2E3,this);g.J(this,this.B);this.T(a,"fullscreentoggled",this.jm);this.T(a,"presentingplayerstatechange",this.Ra);this.Sa("click",this.onClick);g.Uz()&&(b=this.G.kb(),this.T(b,Yma(),this.BN),this.T(b,Xz(document), this.Lq));a.W().Pb||a.W().V||this.disable();a.tb(this.element,this,139117);this.Ra();this.jm(a.isFullscreen())}; WU=function(a,b,c){g.V.call(this,{I:"button",Ka:["ytp-button","ytp-jump-button"],Y:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}",style:"display: none;"},X:[0=h)break}a.J=d;a.frameCount=b.EE();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.J.length;)d= void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,null==(d=a.C.pop())||d.dispose(); for(;a.C.length-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; dOa=function(a){return-((a.B.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)}; aOa=function(){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})}; bOa=function(){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",X:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",xa:"{{chapterTitle}}"}]})}; gOa=function(a,b,c,d){d=void 0===d?!1:d;b=new fOa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}}; fOa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y}; hOa=function(a){g.V.call(this,{I:"div",S:"ytp-heat-map-chapter",X:[{I:"svg",S:"ytp-heat-map-svg",Y:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},X:[{I:"defs",X:[{I:"clipPath",Y:{id:"{{id}}"},X:[{I:"path",S:"ytp-heat-map-path",Y:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",Y:{"clip-path":"url(#hm_1)",fill:"white", height:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",Y:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.J=this.Fa("ytp-heat-map-svg");this.D=this.Fa("ytp-heat-map-path");this.C=this.Fa("ytp-heat-map-graph");this.B=this.Fa("ytp-heat-map-play");this.u=this.Fa("ytp-heat-map-hover");this.Oe=!1;this.j=60;a=""+g.Ua(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a);this.api.N("web_heat_map_v2")&& g.Yp(this.api.getRootNode(),"ytp-heat-map-v2")}; eV=function(){g.V.call(this,{I:"div",S:"ytp-chapter-hover-container",X:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",X:[{I:"div",Ka:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Fa("ytp-progress-linear-live-buffer");this.B=this.Fa("ytp-ad-progress-list"); this.D=this.Fa("ytp-load-progress");this.J=this.Fa("ytp-play-progress");this.u=this.Fa("ytp-hover-progress");this.j=this.Fa("ytp-chapter-hover-container")}; fV=function(a,b){g.$m(a.j,"width",b)}; iOa=function(a,b){g.$m(a.j,"margin-right",b+"px")}; jOa=function(){this.fraction=this.position=this.u=this.j=this.B=this.width=NaN}; kOa=function(){g.V.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; lOa=function(a){return a.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")}; g.hV=function(a,b){g.xQ.call(this,{I:"div",S:"ytp-progress-bar-container",Y:{"aria-disabled":"true"},X:[{I:"div",Ka:["ytp-heat-map-container"],X:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Ka:["ytp-progress-bar"],Y:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},X:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"}, {I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",X:[{I:"div",Ka:["ytp-scrubber-button","ytp-swatch-background-color"],X:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Ka:["ytp-fine-scrubbing-container"],X:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",xa:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",xa:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",Y:{title:"{{clipstarttitle}}"},xa:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end", Y:{title:"{{clipendtitle}}"},xa:"{{clipendicon}}"}]});this.api=a;this.Ae=!1;this.Zf=this.Oa=this.K=this.Yf=0;this.Ed=null;this.Ja={};this.qc={};this.clipEnd=Infinity;this.Ab=this.Fa("ytp-clip-end");this.md=new g.TS(this.Ab,!0);this.Ie=this.Fa("ytp-clip-end-exclude");this.Rg=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.Pb=this.Fa("ytp-clip-start");this.Qc=new g.TS(this.Pb,!0);this.ma=this.ib=0;this.Lc=this.Fa("ytp-progress-bar");this.ub={};this.Cc={};this.Mc=this.Fa("ytp-chapters-container"); this.cg=this.Fa("ytp-timed-markers-container");this.j=[];this.J=[];this.ye={};this.yf=null;this.Ua=-1;this.qb=this.Aa=0;this.V=null;this.ag=this.Fa("ytp-scrubber-button");this.uh=this.Fa("ytp-scrubber-container");this.fb=new g.se;this.If=new jOa;this.B=new gR(0,0);this.Eb=null;this.C=this.ze=!1;this.Xf=null;this.qa=this.Fa("ytp-heat-map-container");this.od=this.Fa("ytp-heat-map-edu");this.D=[];this.heatMarkersDecorations=[];this.Za=this.Fa("ytp-fine-scrubbing-container");this.Rc=this.Fa("ytp-fine-scrubbing-edu"); this.u=void 0;this.Da=this.yd=this.Ba=!1;this.tooltip=b.Ec();g.ob(this,g.ES(this.tooltip,this.Ab));g.J(this,this.md);this.md.subscribe("hoverstart",this.WV,this);this.md.subscribe("hoverend",this.VV,this);this.T(this.Ab,"click",this.EH);g.ob(this,g.ES(this.tooltip,this.Pb));g.J(this,this.Qc);this.Qc.subscribe("hoverstart",this.WV,this);this.Qc.subscribe("hoverend",this.VV,this);this.T(this.Pb,"click",this.EH);mOa(this);this.T(a,"resize",this.Gb);this.T(a,"presentingplayerstatechange",this.v0);this.T(a, "videodatachange",this.Ls);this.T(a,"videoplayerreset",this.D3);this.T(a,"cuerangesadded",this.C9);this.T(a,"cuerangesremoved",this.s8);this.T(a,"onLoopRangeChange",this.DR);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.uE("timedMarkerCueRange"),this.z7);this.T(a,"updatemarkervisibility",this.CY);this.updateVideoData(a.getVideoData(),!0);this.DR(a.getLoopRange());gV(this)&&!this.u&&(this.u=new ZNa(this.api,this.tooltip),a=g.hn(this.element).x||0,this.u.Gb(a,this.K),this.u.Ha(this.Za), g.J(this,this.u),this.T(this.u.dismissButton,"click",this.hs),this.T(this.u.playButton,"click",this.nL),this.T(this.u.element,"dblclick",this.nL));a=this.api.W();!a.N("embeds_disable_progress_bar_context_menu_handling")&&g.OK(a)&&a.u&&g.Yp(this.element,"ytp-no-contextmenu");this.api.tb(this.qa,this,139609,!0);this.api.tb(this.od,this,140127,!0);this.api.tb(this.Rc,this,151179,!0);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)}; mOa=function(a){if(0===a.j.length){var b=new eV;a.j.push(b);g.J(a,b);b.Ha(a.Mc,0)}for(;1=h&&B<=p&&f.push(t)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,t=p.j[q-1];void 0!==t&&0a.qb&&(a.qb=m/f),d=!0)}c++}}return d}; kV=function(a){if(a.K){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:KN(d))&&b.airingStart&&b.airingEnd?BOa(a,b.airingStart,b.airingEnd):BOa(a,b.seekableStart,b.seekableEnd);d=hR(c,b.loaded,0);b=hR(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;lV(a,b,d);e&&COa(a);DOa(a)}}}; BOa=function(a,b,c){return EOa(a)?new gR(Math.max(b,a.Eb.startTimeMs/1E3),Math.min(c,a.Eb.endTimeMs/1E3)):new gR(b,c)}; FOa=function(a,b){var c;if("repeatChapter"===(null==(c=a.Eb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[yU(a.j,b.startTimeMs)],g.bq(b.j,"ytp-repeating-chapter",!1)),a.Eb&&(b=a.j[yU(a.j,a.Eb.startTimeMs)],g.bq(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.bq(d.j,"ytp-exp-chapter-hover-container",!a.Eb)})}; nV=function(a,b){var c=eEa(a.B,b.fraction);if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.K-(a.C?3:2)*a.Aa)}; COa=function(a){a.ag.style.removeProperty("height");for(var b=g.v(Object.keys(a.Ja)),c=b.next();!c.done;c=b.next())HOa(a,c.value);oV(a);lV(a,a.ma,a.ib)}; jV=function(a){var b=a.fb.x;b=g.oe(b,0,a.K);a.If.update(b,a.K);return a.If}; qV=function(a){return(a.C?135:90)-pV(a)}; pV=function(a){var b=48,c=a.api.W();a.C?b=54:g.OK(c)&&!c.u&&(b=40);return b}; lV=function(a,b,c){a.ma=b;a.ib=c;var d=jV(a),e=a.B.j,f=eEa(a.B,a.ma),h=g.XO("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.dR(f,!0),DURATION:g.dR(e,!0)}),l=yU(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Eb&&2!==a.api.getPresentingPlayerType()&&(e=a.Eb.startTimeMs/1E3,f=a.Eb.endTimeMs/1E3);e=hR(a.B,e,0);l=hR(a.B,f,1);h=a.api.getVideoData();f=g.oe(b,e,l);c=(null==h?0:g.IN(h))?1:g.oe(c, e,l);b=yOa(a,b,d);g.$m(a.uh,"transform","translateX("+b+"px)");rV(a,d,e,f,"PLAY_PROGRESS");(null==h?0:KN(h))?(b=a.api.getProgressState().seekableEnd)&&rV(a,d,f,hR(a.B,b),"LIVE_BUFFER"):rV(a,d,e,c,"LOAD_PROGRESS");if(a.api.N("web_player_heat_map_played_bar")){var m;null!=(m=a.D[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}}; rV=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Aa*(a.C?3:2),l=c*h;c=mV(a,l);var m=d*h;h=mV(a,m);"HOVER_PROGRESS"===e&&(h=mV(a,b.j*d,!0),m=b.j*d-IOa(a,b.j*d)*(a.C?3:2));b=Math.max(l-JOa(a,c),0);for(d=c;d=a.j.length)return a.K;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; yOa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.v(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.B}; IOa=function(a,b){for(var c=a.j.length,d=0,e=g.v(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d}; g.tV=function(a,b,c,d){var e=a.K!==c,f=a.C!==d;a.Yf=b;a.K=c;a.C=d;gV(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);COa(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.iV(a);a.u&&f&&gV(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-pV(a),a.Za.style.height=c+"px",g.$m(a.qa,"transform","translateY("+-d+"px)"),g.$m(a.Lc,"transform","translateY("+-d+"px)")),cOa(a.u))}; oV=function(a){var b=!!a.Eb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Eb?(c=a.Eb.startTimeMs/1E3,d=a.Eb.endTimeMs/1E3):(e=c>a.B.u,f=0a.ma);g.bq(a.ag,"ytp-scrubber-button-hover",c===d&&1b||b===a.C)){a.C=b;b=a.K*a.scale;var c=a.Aa*a.scale,d=uxa(a.u,a.C,b);CNa(a.bg,d,b,c,!0);a.Ba.start()}}; DPa=function(a){var b=a.j;3===a.type&&a.Ja.stop();a.api.removeEventListener("appresize",a.Da);a.ma||b.setAttribute("title",a.B);a.B="";a.j=null}; FPa=function(a,b){g.V.call(this,{I:"button",Ka:["ytp-watch-later-button","ytp-button"],Y:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.OK(a.W()))},X:[{I:"div",S:"ytp-watch-later-icon",xa:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",xa:"Watch later"}]});this.G=a;this.u=b;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.Ec();cU(this.tooltip);a.tb(this.element,this,28665);this.Sa("click",this.onClick,this);this.T(a,"videoplayerreset",this.Iv); this.T(a,"appresize",this.MA);this.T(a,"videodatachange",this.MA);this.T(a,"presentingplayerstatechange",this.MA);this.MA();a=this.G.W();var c=g.mA("yt-player-watch-later-pending");a.C&&c?(Wua(),EPa(this)):this.Ra(2);g.bq(this.element,"ytp-show-watch-later-title",g.OK(a));g.ob(this,g.ES(b.Ec(),this.element))}; GPa=function(a){var b=a.G.getPlayerSize(),c=a.G.W(),d=a.G.getVideoData(),e=g.OK(c)&&g.pS(a.G)&&g.BO(a.G.Ib(),128);a=c.N("shorts_mode_to_player_api")?a.G.Yb():a.u.Yb();var f=c.B;if(b=c.nm&&240<=b.width&&!d.isAd())if(d.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){b=!0;var h,l,m=null==(h=d.Of)?void 0:null==(l=h.embedPreview)?void 0:l.thumbnailPreviewRenderer;m&&(b=!!m.addToWatchLaterButton);if(g.UK(d.W())){var n,p;(h=null==(n=d.kd)?void 0:null==(p=n.playerOverlays)?void 0:p.playerOverlayRenderer)&& (b=!!h.addToMenu)}var q,t,u,y;if(null==(y=g.Q(null==(q=d.kd)?void 0:null==(t=q.contents)?void 0:null==(u=t.twoColumnWatchNextResults)?void 0:u.desktopOverlay,XM))?0:y.suppressWatchLaterButton)b=!1}else b=d.Lj;return b&&!e&&!(d.wd&&c.ma)&&!a&&!f}; HPa=function(a,b){g.bU(g.gL(a.G.W()),"wl_button",function(){Wua({videoId:b});window.location.reload()})}; EPa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ra(3);var b=a.G.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.G.Pm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ra(2);a.G.W().J&&a.G.Pa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Ra(1);a.G.W().u&&pU(a.tooltip,a.element);a.G.W().J&&a.G.Pa("WATCH_LATER_VIDEO_ADDED")}; qR(c,b).then(d,function(){a.isRequestPending=!1;a.Ra(4,"An error occurred. Please try again later.");a.G.W().J&&a.G.Pa("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; IPa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=IJa();break;case 1:c=bDa();break;case 2:c={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{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:c={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path", yc:!0,Y:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}}; g.TV=function(a){g.UT.call(this,a);var b=this;this.kG=(this.rq=g.OK(this.api.W()))&&(this.api.W().u||Cz()||Az());this.GK=48;this.HK=69;this.Do=null;this.nt=[];this.Sc=new g.XT(this.api);this.Ou=new qU(this.api);this.Ih=new g.V({I:"div",S:"ytp-chrome-top"});this.ZD=[];this.tooltip=new g.RV(this.api,this);this.backButton=this.xz=null;this.channelAvatar=new kMa(this.api,this);this.title=new QV(this.api,this);this.ri=new g.tQ({I:"div",S:"ytp-chrome-top-buttons"});this.Ei=this.shareButton=this.Mn=null; this.jh=new eMa(this.api,this,this.Ih.element);this.overflowButton=this.Fh=null;this.hh="1"===this.api.W().controlsType?new qPa(this.api,this,this.gf):null;this.contextMenu=new g.nU(this.api,this,this.Sc);this.rK=!1;this.zF=new g.V({I:"div",Y:{tabindex:"0"}});this.yF=new g.V({I:"div",Y:{tabindex:"0"}});this.lD=null;this.cO=this.cN=this.gF=!1;var c=a.kb(),d=a.W(),e=a.getVideoData();this.rq&&(g.Yp(a.getRootNode(),"ytp-embed"),g.Yp(a.getRootNode(),"ytp-embed-playlist"),this.kG&&(g.Yp(a.getRootNode(), "ytp-embed-overlays-autohide"),g.Yp(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.GK=60,this.HK=89);a.W().B&&g.Yp(a.getRootNode(),"ytp-embed-pfl");this.api.W().u&&(g.Yp(a.getRootNode(),"ytp-mobile"),this.api.W().V&&g.Yp(a.getRootNode(),"ytp-embed-mobile-exp"));this.Of=e&&e.Of;g.J(this,this.Sc);g.sS(a,this.Sc.element,4);g.J(this,this.Ou);g.sS(a,this.Ou.element,4);e=new g.V({I:"div",S:"ytp-gradient-top"});g.J(this,e);g.sS(a,e.element,1);this.EP=new g.VQ(e,250,!0,100);g.J(this,this.EP); g.J(this,this.Ih);g.sS(a,this.Ih.element,1);this.DP=new g.VQ(this.Ih,250,!0,100);g.J(this,this.DP);g.J(this,this.tooltip);g.sS(a,this.tooltip.element,4);var f=new gNa(a);g.J(this,f);g.sS(a,f.element,5);f.subscribe("show",function(n){b.Rp(f,n)}); this.ZD.push(f);this.xz=new EU(a,this,f);g.J(this,this.xz);d.xm&&(this.backButton=new aMa(a),g.J(this,this.backButton),this.backButton.Ha(this.Ih.element));this.rq||this.xz.Ha(this.Ih.element);g.J(this,this.channelAvatar);this.channelAvatar.Ha(this.Ih.element);g.J(this,this.title);this.title.Ha(this.Ih.element);this.rq&&(e=new BNa(this.api,this),g.J(this,e),e.Ha(this.Ih.element));g.J(this,this.ri);this.ri.Ha(this.Ih.element);var h=new g.IU(a,this);g.J(this,h);g.sS(a,h.element,5);h.subscribe("show", function(n){b.Rp(h,n)}); this.ZD.push(h);this.Mn=new FPa(a,this);g.J(this,this.Mn);this.Mn.Ha(this.ri.element);this.shareButton=new g.HU(a,this,h);g.J(this,this.shareButton);this.shareButton.Ha(this.ri.element);this.Ei=new g.oU(a,this);g.J(this,this.Ei);this.Ei.Ha(this.ri.element);this.rq&&this.xz.Ha(this.ri.element);g.J(this,this.jh);this.jh.Ha(this.ri.element);d.Xn&&(e=new NU(a),g.J(this,e),g.sS(a,e.element,4));d.B||(e=new fMa(a,this,this.jh),g.J(this,e),e.Ha(this.ri.element));this.Fh=new cNa(a,this);g.J(this,this.Fh); g.sS(a,this.Fh.element,5);this.Fh.subscribe("show",function(){b.Rp(b.Fh,b.Fh.ej())}); this.ZD.push(this.Fh);this.overflowButton=new g.DU(a,this,this.Fh);g.J(this,this.overflowButton);this.overflowButton.Ha(this.ri.element);this.hh&&g.J(this,this.hh);"3"===d.controlsType&&(e=new GU(a,this),g.J(this,e),g.sS(a,e.element,9));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.IY,this);e=new iR(a,new WT(a));g.J(this,e);g.sS(a,e.element,4);this.zF.Sa("focus",this.b3,this);g.J(this,this.zF);this.yF.Sa("focus",this.d3,this);g.J(this,this.yF);var l;(this.Bq=d.zi?null:new g.AU(a, c,this.contextMenu,this.gf,this.Sc,this.Ou,function(){return b.Ml()},null==(l=this.hh)?void 0:l.Lc))&&g.J(this,this.Bq); this.rq||(this.api.N("web_player_enable_featured_product_banner_on_desktop")&&(this.xT=new IMa(this.api,this),g.J(this,this.xT),g.sS(a,this.xT.element,4)),this.HX=new uNa(this.api,this),g.J(this,this.HX),g.sS(a,this.HX.element,4));this.ZX=new vPa(this.api,this);g.J(this,this.ZX);g.sS(a,this.ZX.element,4);if(this.rq){var m=new RMa(a,this.api.W().Hb);g.J(this,m);g.sS(a,m.element,5);m.subscribe("show",function(n){b.Rp(m,n)}); c=new VMa(a,this,m);g.J(this,c);g.sS(a,c.element,4)}this.kt.push(this.Sc.element);this.T(a,"fullscreentoggled",this.Lq);this.T(a,"offlineslatestatechange",function(){b.api.nC()&&JT(b.gf,128,!1)}); this.T(a,"cardstatechange",function(){b.ql()}); this.T(a,"resize",this.H5);this.T(a,"videoplayerreset",this.Iv);this.T(a,"showpromotooltip",this.f6)}; JPa=function(a){var b=a.api.W(),c=g.BO(a.api.Ib(),128);return b.C&&c&&!a.api.isFullscreen()}; KPa=function(a){if(a.ah()&&!a.Yb()&&a.Fh){var b=a.api.N("web_player_hide_overflow_button_if_empty_menu");!a.Mn||b&&!GPa(a.Mn)||dNa(a.Fh,a.Mn);!a.shareButton||b&&!nNa(a.shareButton)||dNa(a.Fh,a.shareButton);!a.Ei||b&&!BMa(a.Ei)||dNa(a.Fh,a.Ei)}else{if(a.Fh){b=a.Fh;for(var c=g.v(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.Mn&&!g.kf(a.ri.element,a.Mn.element)&&a.Mn.Ha(a.ri.element);a.shareButton&&!g.kf(a.ri.element,a.shareButton.element)&&a.shareButton.Ha(a.ri.element); a.Ei&&!g.kf(a.ri.element,a.Ei.element)&&a.Ei.Ha(a.ri.element)}}; LPa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==cn(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=LPa(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexc.Jz||0>c.Gt||0>c.durationMs||0>c.startMs||0>c.Uq)return eW(a,b),[];b=oH(c.Jz,c.Uq);var l;if(null==(l=a.j)?0:l.Yf){var m=c.pN||0;var n=b.length-m}return[new qH(3,f,b,"makeSliceInfosMediaBytes",c.Gt-1,c.startMs/1E3,c.durationMs/1E3,m,n,void 0,c.qj,d)]}if(0>c.Gt)return eW(a,b),[];var p;return(null==(p=a.Ta)?0:p.Tc)?(a=f.Yj,[new qH(3,f,void 0,"makeSliceInfosMediaBytes", c.Gt,void 0,a,void 0,a*f.info.dc,!0,c.qj,d)]):[]}; jQa=function(a,b,c){a.Ta=b;a.j=c;b=g.v(a.Yc);for(c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;for(var e=g.v(d.vX),f=e.next();!f.done;f=e.next())f=iQa(a,c,f.value),hQa(a,c,d,f)}}; kQa=function(a,b,c){(a=a.Yc.get(b))&&!a.Yg&&(dW?(b=0a;a++){var b=g.Ye("VIDEO");b.load();gW.push(new g.gT(b))}}; hW=function(a){g.D.call(this);this.app=a;this.j=null;this.u=1}; nQa=function(){this.j=!1}; oQa=function(a){var b=new nQa;b.j=a.N("h5_gapless_support_types_diff");return b}; g.iW=function(a,b,c,d){d=void 0===d?!1:d;oP.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d}; pQa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.zk()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(b=b.Fe())&&b.isView()&&(b=b.mediaElement);if(b&&12m&&(f=m-200,a.K=!0);h&&l.getCurrentTime()>=f/1E3?a.J():(a.u=l,h&&(h=f,f=a.u,a.app.Wa.addEventListener(g.uE("vqueued"),a.J),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.D=new g.sE(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.D)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.u&&(l=d,m=0, b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,lW(a.u,!0)),m=Math.max(0,h-a.u.getCurrentTime()),l=Math.min(d,lW(b)+m)),h=Oua(f,l)||d,h!==d&&a.j.ya("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Rg=!0;d.getVideoData().Ma=!0;g.oW(d,!0);f={};a.u&&(f=g.pW(a.u.Jc().provider),h=a.u.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.ya("queued",f);0!==b&&d.seekTo(b+.01,{bv:!0,CP:3,ue:"videoqueuer_queued"});a.B=new qQa(a.V,a.app.qd(),a.j,c,a.app,e);c=a.B;Infinity!==c.status.status&& (kW(c,1),c.j.subscribe("internalvideodatachange",c.xu,c),c.u.subscribe("internalvideodatachange",c.xu,c),c.j.subscribe("mediasourceattached",c.xu,c),c.u.subscribe("statechange",c.Dd,c),c.j.subscribe("newelementrequired",c.kW,c),c.xu());return a.C}; AQa=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.K&&qW(a.app.qd(),!0,!1);b=null;if(!a.B){e.La(2);break}g.xa(e,3);return g.z(e,vQa(a.B),5);case 5:g.ya(e,2);break;case 3:b=c=g.za(e);case 2:if(!a.j)return e.return();g.jW.Rq("vqsp",function(){rW(a.app,a.j)}); g.jW.Rq("vqpv",function(){a.app.playVideo()}); b&&CQa(a.j,b.message);d=a.C;nW(a);return e.return(d.resolve(void 0))}})}; nW=function(a){if(a.u){if(a.D){var b=a.u;a.app.Wa.removeEventListener(g.uE("vqueued"),a.J);b.removeCueRange(a.D)}a.u=null;a.D=null}a.B&&(6!==a.B.status.status&&(b=a.B,Infinity!==b.status.status&&b.Gg("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.bS(a.app,1)&&a.j!==a.app.qd()&&a.j.dispose();a.j=null;a.K=!1}; DQa=function(a){var b;return(null==(b=a.B)?void 0:b.currentVideoDuration)||-1}; EQa=function(a,b,c){if(a.uv())return"qine";var d;if(b.videoId!==(null==(d=a.j)?void 0:d.ud()))return"vinm";if(0>=DQa(a))return"ivd";if(1!==c)return"upt";var e,f;null==(e=a.B)?f=void 0:f=5!==e.getStatus().status?"neb":null!=pQa(e.policy,e.j,e.u,e.lm)?"pge":null;a=f;return null!=a?a:null}; FQa=function(){var a=Xma();return!(!a||"visible"===a)}; HQa=function(a){var b=GQa();b&&document.addEventListener(b,a,!1)}; IQa=function(a){var b=GQa();b&&document.removeEventListener(b,a,!1)}; GQa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Rz+"VisibilityState"])return"";a=Rz+"visibilitychange"}return a}; JQa=function(){g.yE.call(this);var a=this;this.fullscreen=0;this.pictureInPicture=this.j=this.u=this.inline=!1;this.B=function(){a.Dg()}; HQa(this.B);this.C=this.getVisibilityState(this.Ch(),this.isFullscreen(),this.Rf(),this.isInline(),this.Py(),this.Ny())}; sW=function(a,b,c,d,e){e=void 0===e?[]:e;g.D.call(this);this.Z=a;this.Fc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;this.u=new Map;if(e.length)for(this.j=e[0],a=g.v(e),b=a.next();!b.done;b=a.next())b=b.value,(c=b.Yp())&&this.B.set(c,b.CB())}; KQa=function(a,b,c,d){if(a.j&&!(b>c)){b=new sW(a.Z,b,c,a.j,d);d=g.v(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.Yp();e&&e!==a.j.Yp()&&a.u.set(e,[c])}a.j.j.set(b.Pl(),b)}}; MQa=function(a,b,c,d,e,f){return new LQa(c,c+(d||0),!d,b,a,new g.JM(a.Z,f),e)}; LQa=function(a,b,c,d,e,f,h){g.D.call(this);this.Fc=a;this.u=b;this.type=d;this.B=e;this.videoData=f;this.clipId=h;this.j=new Map}; NQa=function(a){this.end=this.start=a}; g.uW=function(a,b,c){g.D.call(this);var d=this;this.api=a;this.Z=b;this.va=c;this.qb="";this.Ja=new Map;this.fb=new Map;this.Oa=new Map;this.D=new Map;this.C=[];this.ea=[];this.J=new Map;this.Qc=new Map;this.ma=new Map;this.md=NaN;this.qc=this.Hb=null;this.Mc=new g.Qp(function(){OQa(d,d.md)}); this.events=new g.lI(this);this.Cc=g.PJ(this.Z.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.V=new g.Qp(function(){d.Ba=!0;var e=d.va,f=d.Cc;e.ya("sdai",{aftimeout:f});e.Rd(new xL("ad.fetchtimeout",{timeout:f}));PQa(d);d.YB(!1)},this.Cc); this.Ba=!1;this.Aa=new Map;this.Pb=[];this.Da=null;this.Ie=new Set;this.Ma=[];this.Rc=[];this.ye=[];this.Ed=[];this.j=void 0;this.ub=0;this.ib=!0;this.K=!1;this.Ua=[];this.xe=new Set;this.Ae=new Set;this.ze=new Set;this.B=0;this.qa=null;this.Ab=new Set;this.yd=0;this.Pp=this.od=!1;this.u="";this.va.getPlayerType();QQa(this.va,this);this.Za=this.Z.pe();g.J(this,this.Mc);g.J(this,this.events);g.J(this,this.V);tW(this)||(this.events.T(this.api,g.uE("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api, g.vE("serverstitchedcuerange"),this.onCueRangeExit))}; UQa=function(a,b,c,d,e,f,h,l){var m=RQa(a,f,f+e);a.Ba&&a.va.ya("sdai",{adaftto:1});a.Pp&&a.va.ya("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.va;h=void 0===h?f+e:h;f===h&&!e&&a.Z.N("html5_allow_zero_duration_ads_on_timeline")&&a.va.ya("sdai",{attl0d:1});f>h&&vW(a,{reason:"enterTime_greater_than_return",Fc:f,Ld:h});var p=1E3*n.Qd();fn&&vW(a,{reason:"parent_return_greater_than_content_duration",Ld:h,X8a:n}); n=null;p=g.Rb(a.ea,{Ld:f},function(q,t){return q.Ld-t.Ld}); 0<=p&&(n=a.ea[p],n.Ld>f&&SQa(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;pd?-1*(d+2):d;return 0<=d&&(a=a.ea[d],a.Ld>=c)?{Bo:a,lz:b}:{Bo:void 0,lz:b}}; BW=function(a,b){var c="";tW(a)?(c=b/1E3-a.fq(),c=a.va.Ey(c)):(b=ZQa(a,b))&&(c=b.getId());return c?a.J.get(c):void 0}; ZQa=function(a,b){a=g.v(a.D.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; OQa=function(a,b){var c=a.qc||a.api.qd().getPlayerState();CW(a,!0);a.va.seekTo(b);a=a.api.qd();b=a.getPlayerState();g.xP(c)&&!g.xP(b)?a.playVideo():g.wP(c)&&!g.wP(b)&&a.pauseVideo()}; CW=function(a,b){a.md=NaN;a.Mc.stop();a.Hb&&b&&$Qa(a.Hb);a.qc=null;a.Hb=null}; aRa=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.v(a.ea),f=e.next();!f.done;f=e.next())f=f.value,(f.Fcc)&&d.push(f);a.ea=d;d=g.v(a.D.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.va.removeCueRange(e),a.D.delete(e.getId()),a.va.ya("sdai",{rmAdCR:1}));d=YQa(a,b/1E3);b=d.Bo;d=d.lz;if(b&&(d=1E3*d-b.Fc,e=b.Fc+d,b.durationMs=d,b.Ld=e,d=a.D.get(b.cpn))){e=g.v(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start= b.Fc+b.durationMs:f.end===d.start&&(f.end=b.Fc);d.start=b.Fc;d.end=b.Fc+b.durationMs}if(b=YQa(a,c/1E3).Bo){var h;d="playback_timelinePlaybackId_"+b.Oc+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Fc+"_parentReturnTimeMs_"+b.Ld;a.xC("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; bRa=function(a){a.qb="";a.Ja.clear();a.fb.clear();a.Oa.clear();a.D.clear();a.C=[];a.ea=[];a.J.clear();a.Qc.clear();a.ma.clear();a.Aa.clear();a.Pb=[];a.Da=null;a.Ie.clear();a.Ma=[];a.Rc=[];a.ye=[];a.Ed=[];a.Ua=[];a.xe.clear();a.Ae.clear();a.ze.clear();a.Ab.clear();a.Ba=!1;a.j=void 0;a.ub=0;a.ib=!0;a.K=!1;a.B=0;a.qa=null;a.yd=0;a.od=!1;a.Pp=!1;yW(a,a.u)&&a.va.ya("sdai",{rsac:"resetAll",sac:a.u});a.u="";a.V.isActive()&&wW(a)}; dRa=function(a,b,c,d,e,f){if(!a.Pp)if(g.cRa(a,c))a.Za&&a.va.ya("sdai",{gdu:"undec",seg:c,itag:e});else return DW(a,b,c,d,f)}; DW=function(a,b,c,d,e){var f=a.Aa.get(c);if(!f){b+=a.fq();b=YQa(a,b,1);if(b.Bo)return b.Bo;b=EW(a,c-1,null!=d?d:2);if(a.Z.N("html5_ssdai_always_decorate_cue")&&e)return a.va.ya("sdai",{misscue:e,sq:c,type:d,prevsstate:null==b?void 0:b.Dx,prevrecord:a.Aa.has(c-1)}),a.Aa.get(c-1);if(2===(null==b?void 0:b.Dx))return a.Aa.get(c-1)}return f}; eRa=function(a){if(a.Ua.length)for(var b=g.v(a.Ua),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.v(a.D.values());for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);c=g.v(a.C);for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);a.D.clear();a.C=[];a.Ja.clear();a.fb.clear();a.Oa.clear();a.j||(a.ib=!0)}; EW=function(a,b,c,d){if(1===c){if(a.Z.N("html5_reset_daistate_on_audio_codec_change")&&d&&d!==a.qb&&(""!==a.qb&&(a.va.ya("sdai",{rstadaist:1,old:a.qb,"new":d}),a.Ja.clear()),a.qb=d),a.Ja.has(b))return a.Ja.get(b)}else{if(2===c&&a.fb.has(b))return a.fb.get(b);if(3===c&&a.Oa.has(b))return a.Oa.get(b)}}; gRa=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;fRa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.va.removeCueRange(e);if(a.Ua.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else fRa(a,b,c)}; fRa=function(a,b,c){b=VQa(b,c);c=!0;g.Vb(a.C,b,function(h,l){return h.start-l.start}); for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.va.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.va.addCueRange(b),b=a.va.qB("serverstitchedcuerange",36E5),b=g.v(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())}; FW=function(a,b,c){if(void 0===c||!c){c=g.v(a.Pb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.Pb.push(new NQa(b))}}; g.cRa=function(a,b){a=g.v(a.Pb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; SQa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",U8a:b,Fc:c,Ld:d,K7a:e.Oc,L7a:(null==(f=e.videoData)?void 0:f.videoId)||"",H7a:e.durationMs,I7a:e.Fc,J7a:e.Ld};vW(a,b)}; vW=function(a,b){a=a.va;a.ya("timelineerror",b);a.Rd(new xL("dai.timelineerror",b))}; hRa=function(a,b){var c=[];a=a.ma.get(b);if(!a)return[];a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; iRa=function(a,b,c){var d=0;a=a.ma.get(c);if(!a)return-1;a=g.v(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; jRa=function(a,b){var c=[];a=a.ma.get(b);if(!a)return[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c}; kRa=function(a,b){var c=0;a=a.ma.get(b);if(!a)return 0;a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Ld!==b.Fc&&c++;return c}; lRa=function(a,b,c){var d=!1;if(c&&(c=a.ma.get(c))){c=g.v(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Ld!==e.Fc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Ae.has(e)&&(a.va.ya("sdai",{decoratedAd:e}),a.Ae.add(e)))}}; PQa=function(a){a.Za&&a.va.ya("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.yd)+"_isTimeout_"+a.Ba})}; RQa=function(a,b,c){if(a.Ma.length)for(var d={},e=g.v(a.Ma),f=e.next();!f.done;d={Wt:d.Wt},f=e.next()){d.Wt=f.value;f=1E3*d.Wt.startSecs;var h=1E3*d.Wt.Ug+f;if(b>f&&bf&&cd?-1*(d+2):d]))for(a=g.v(a.segments),c=a.next();!c.done;c=a.next())if(c=c.value,c.Pl()<=b&&c.HF()>b)return c}}; tRa=function(a,b,c){g.D.call(this);var d=this;this.api=a;this.Z=b;this.j=c;this.J=new Map;this.u=[];this.B=this.K=null;this.ea=NaN;this.D=this.C=null;this.V=new g.Qp(function(){sRa(d,d.ea)}); this.ma=[];this.qa=new g.Qp(function(){var e=d.ma.pop();if(e){var f=e.Oc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ma.length&&g.Rp(d.qa,4500))}}); this.events=new g.lI(this);c.getPlayerType();g.J(this,this.V);g.J(this,this.qa);g.J(this,this.events);this.events.T(this.api,g.uE("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Ki)}; xRa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return GW(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Qd();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.Kd(),GW(a,m,h,l),"";n=null;for(var p=g.v(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Fc&&eq.Fc)return GW(a,"overlappingReturn",h,l),"";if(f===q.Fc)return GW(a,"outOfOrder",h,l),"";e===q.Ld&&(n=q)}h="cs_childplayback_"+uRa++;l={Le:HW(d,!0),lm:Infinity,target:null};var t={Oc:h,playerVars:b,playerType:c,durationMs:d,Fc:e,Ld:f,Zr:l};a.u=a.u.concat(t).sort(function(B,G){return B.Fc-G.Fc}); n?vRa(a,n,{Le:HW(n.durationMs,!0),lm:n.Zr.lm,target:t}):(b={Le:HW(e,!1),lm:e,target:t},a.J.set(b.Le,b),m.addCueRange(b.Le));b=!0;if(a.j===a.api.qd()&&(m=1E3*m.getCurrentTime(),m>=t.Fc&&mb)break;if(f>b)return{Bo:d,lz:b-e};c=f-d.Ld/1E3}return{Bo:null,lz:b-c}}; sRa=function(a,b){var c=a.D||a.api.qd().getPlayerState();KW(a,!0);b=isFinite(b)?b:a.j.bq();var d=BRa(a,b);b=d.Bo;d=d.lz;var e=b&&!IW(a,b)||!b&&a.j!==a.api.qd(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||JW(a);b?wRa(a,b,d,c):CRa(a,d,c)}; CRa=function(a,b,c){var d=a.j,e=a.api.qd();d!==e&&a.api.Sq();d.seekTo(b,{ue:"application_timelinemanager"});DRa(a,c)}; wRa=function(a,b,c,d){var e=IW(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.JM(a.Z,b.playerVars);f.Oc=b.Oc;a.api.Ws(f,b.playerType)}f=a.api.qd();e||f.addCueRange(b.Zr.Le);f.seekTo(c,{ue:"application_timelinemanager"});DRa(a,d)}; DRa=function(a,b){a=a.api.qd();var c=a.getPlayerState();g.xP(b)&&!g.xP(c)?a.playVideo():g.wP(b)&&!g.wP(c)&&a.pauseVideo()}; KW=function(a,b){a.ea=NaN;a.V.stop();a.C&&b&&$Qa(a.C);a.D=null;a.C=null}; IW=function(a,b){a=a.api.qd();return!!a&&a.getVideoData().Oc===b.Oc}; ERa=function(a){var b=a.u.find(function(e){return IW(a,e)}); if(b){var c=a.api.qd();JW(a);var d=new g.rP(8);b=ARa(a,b)/1E3;CRa(a,b,d);c.ya("forceParentTransition",{childPlayback:1});a.j.ya("forceParentTransition",{parentPlayback:1})}}; GRa=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.v(a.J),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;l.lm>=d&&l.target&&l.target.Ld<=e&&(a.j.removeCueRange(h),a.J.delete(h))}d=b;e=c;f=[];h=g.v(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Fc>=d&&l.Ld<=e){var m=a;m.K===l&&JW(m);IW(m,l)&&m.api.Sq()}else f.push(l);a.u=f;d=BRa(a,b/1E3);b=d.Bo;d=d.lz;b&&(d*=1E3,FRa(a,b,d,b.Ld===b.Fc+b.durationMs?b.Fc+d:b.Ld));(b=BRa(a,c/1E3).Bo)&& GW(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Oc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Fc+" parentReturnTimeMs="+b.Ld+"}.Child playbacks can only have duration updated not their start."))}; FRa=function(a,b,c,d){b.durationMs=c;b.Ld=d;d={Le:HW(c,!0),lm:c,target:null};vRa(a,b,d);IW(a,b)&&1E3*a.api.qd().getCurrentTime()>c&&(b=ARa(a,b)/1E3,c=a.api.qd().getPlayerState(),CRa(a,b,c))}; GW=function(a,b,c,d){a.j.ya("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; IRa=function(a){a&&"web"!==a&&HRa.includes(a)}; MW=function(a,b){g.D.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Qp(function(){JRa(c);LW(c)}); g.J(this,this.j)}; JRa=function(a){var b=(0,g.gB)();a.data.forEach(function(c){c.expire=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)}; ORa=function(a){g.V.call(this,{I:"div",Ka:["html5-video-player"],Y:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},X:[{I:"div",S:g.QW.VIDEO_CONTAINER,Y:{"data-layer":"0"}}]});var b=this;this.app=a;this.aB=this.Fa(g.QW.VIDEO_CONTAINER);this.yz=new g.Xm(0,0,0,0);this.pc=null;this.uH=new g.Xm(0,0,0,0);this.VL=this.gN=this.fN=NaN;this.eG=this.qH=this.mO=this.OS=!1;this.MK=NaN;this.EM=!1;this.zC=null;this.AN=function(){b.element.focus()}; this.bH=function(){b.app.Wa.oa("playerUnderlayVisibilityChange","visible");b.pc.classList.remove(g.QW.VIDEO_CONTAINER_TRANSITIONING);b.pc.removeEventListener(NJa,b.bH);b.pc.removeEventListener("transitioncancel",b.bH)}; var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])}; this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])}; var e=a.W();e.transparentBackground&&this.Lr("ytp-transparent");"0"===e.controlsType&&this.Lr("ytp-hide-controls");g.Yp(this.element,"ytp-exp-bottom-control-flexbox");e.N("enable_new_paid_product_placement")&&!g.oL(e)&&g.Yp(this.element,"ytp-exp-ppp-update");Uma(this.element,"version",MRa(a));this.IX=!1;this.uB=new g.we(NaN,NaN);NRa(this);this.T(a.Wa,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; NRa=function(a){function b(){a.pc&&RW(a);SW(a)!==a.EM&&a.resize()} function c(h,l){a.Ls(h,l)} function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())} function e(){a.uH=new g.Xm(0,0,0,0);a.yz=new g.Xm(0,0,0,0)} var f=a.app.Wa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.ob(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; QRa=function(a){var b=g.bS(a.app);if(b=b?b.getVideoData():null){if(g.qN(b)||g.rN(b)||g.tN(b))return 16/9;if(cN(b)&&b.C.j)return a=b.C.videoInfos[0].video,PRa(a.width,a.height)}return(a=a.pc)?PRa(a.videoWidth,a.videoHeight):16/9}; RRa=function(a,b,c,d){var e=c,f=PRa(b.width,b.height);a.OS?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(SRa*b-a)||1>Math.abs(SRa/a-b)?SRa:a/b}; SW=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.bS(a.app);if(!b||b.Po())return!1;a=a.app.Wa.Ib();b=!g.BO(a,2)||b&&b.getVideoData().Ma;var c=g.BO(a,1024);return a&&b&&!c&&!a.isCued()}; RW=function(a){var b="3"===a.app.W().controlsType&&!a.eG&&SW(a)&&!a.app.iz||!1;a.pc.controls=b;a.pc.tabIndex=b?0:-1;b?a.pc.removeEventListener("focus",a.AN):a.pc.addEventListener("focus",a.AN)}; TRa=function(a){var b=a.Hj(),c=1,d=!1,e=RRa(a,b,a.getVideoAspectRatio()),f=a.app.W(),h=f.N("enable_desktop_player_underlay"),l=Hma(),m=g.PJ(f.experiments,"player_underlay_min_player_width");m=h&&a.mO&&a.getPlayerSize().width>m;if(SW(a)){var n=QRa(a);var p=isNaN(n)||g.KB||TW&&g.YA||m;JB&&!g.Hc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.N("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Xm(p,0,b.width,b.height)):p=new g.Xm(0, 0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Xm((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.YA&&(n=p.width-b.height*n,0Math.max(p.width-e.width,p.height-e.height));if(l||a.IX)a.pc.style.display="";a.EM=!0}else{p=-b.height;JB?p*=window.devicePixelRatio:g.pL&&(p-=window.screen.height);p=new g.Xm(0,p,b.width,b.height);if(l||a.IX)a.pc.style.display="none";a.EM=!1}Ym(a.uH,p)||(a.uH=p,g.VK(f)?(a.pc.style.setProperty("width", p.width+"px","important"),a.pc.style.setProperty("height",p.height+"px","important")):g.kn(a.pc,p.getSize()),d=new g.se(p.left,p.top),g.fn(a.pc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Xm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Ym(a.yz,b)||(a.yz=b,d=!0);g.$m(a.pc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.qH&&(m&&(a.pc.addEventListener(NJa,a.bH),a.pc.addEventListener("transitioncancel",a.bH),a.pc.classList.add(g.QW.VIDEO_CONTAINER_TRANSITIONING)),a.qH=m,a.app.Wa.oa("playerUnderlayVisibilityChange", a.qH?"transitioning":"hidden"));return d}; URa=function(){this.csn=g.ZE();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set}; VRa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)}; WRa=function(a){if(a.csn!==g.ZE())if("UNDEFINED_CSN"===a.csn)a.csn=g.ZE();else{var b=g.ZE(),c=g.YE();if(b&&c){a.csn=b;for(var d=g.v(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.Iy(g.DP)(void 0,b,c,e)}if(b)for(a=g.v(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.GP(b,c)}}; XRa=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1}; YRa=function(a,b){var c=Math.min(2.5,DK(a.schedule));a=UW(a);return b-c*a}; $Ra=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Wk&&(d=Math.abs(d));d/=a.playbackRate;var f=1/FK(a.schedule);c=Math.max(.9*(d-3),DK(a.schedule)+2048*f)/f*a.policy.qo/(b+c);if(!a.policy.Ae||d)c=Math.min(c,d);a.policy.cg&&e&&(c=Math.max(c,a.policy.cg));return ZRa(a,c,b)}; ZRa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.po*c),Math.min(Math.min(a.policy.Ma,31*c),Math.ceil(b*c))))||65536}; UW=function(a){return FK(a.schedule,!a.policy.lk,a.policy.oo)}; VW=function(a){return UW(a)/a.playbackRate}; aSa=function(a,b,c,d,e){this.Ga=a;this.Ta=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.C=!1;this.u=this.Ta.isManifestless&&!this.Ta.Ne;this.B=null}; bSa=function(a,b,c){if(!a.policy.qa){a=b.j.index;var d=b.u.Na;JH(a,d)||c&&c.Na===d?(b.D=!JH(a,d),b.ea=!JH(a,d)):(b.D=!0,b.ea=!0)}}; dSa=function(a,b,c,d,e){if(!b.j.Kg()){if(!(d=0===c||!!b.B.length&&b.B[0]instanceof WW))a:{if(b.B.length&&(d=b.B[0],d instanceof XW&&d.Zj&&d.uj)){d=!0;break a}d=!1}d||a.policy.C||YW(b);return c}a=ZW(b,c);if(!isNaN(a))return a;e.rC||b.yk();return d&&(a=wI(d.yg(),c),!isNaN(a))?($W(b,a+cSa),c):$W(b,c)}; hSa=function(a,b,c,d){if(a.policy.qa)a.videoTrack.D=!1,a.audioTrack.D=!1;else{if(a.Zg()&&a.j){var e=eSa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.u=!0;g.xf(function(){a.Ga.ya("seekreason",{reason:"behindMinSq",tgt:e});fSa(a,e)}); return}}c?a.videoTrack.ea=!1:a.audioTrack.ea=!1;var f=a.policy.mA||!a.u;0<=ZW(a.videoTrack,a.j)&&0<=ZW(a.audioTrack,a.j)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Ga.ya("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.xf(function(){if(a.u||!a.policy.qc)gSa(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.D:a.audioTrack.D,n=-1!==a.videoTrack.J&&-1!==a.audioTrack.J,p=a.j>=h&&a.ja.seekCount?(a.seekCount++,a.Ga.ya("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Ga.ya("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ga.va.seekTo(h+ .1,{bv:!0,ue:"chunkSelectorSynchronizeMedia",Nr:!0})))}})}}; eSa=function(a,b,c){if(!a.Zg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Vg(a.j);return(JH(c,a.Ta.Re)||b.Na===a.Ta.Re)&&da.B&&(a.B=NaN,a.D=NaN);if(a.j&&a.j.Na===d){d=a.j;e=d.Ye;var f=c.ut(e);a.ya("sdai",{onqevt:e.event,sq:b.jb[0].Na,gab:f});f?"predictStart"!==e.event?d.bC?cX(a,4,"cue"):(a.B=b.jb[0].Na,a.D=b.jb[0].C,a.ya("sdai",{joinad:a.u,sg:a.B,st:a.D.toFixed(3)}),a.ea=Date.now(),cX(a,2,"join"),c.XF(d.Ye)):(a.K=b.jb[0].Na+ Math.max(Math.ceil(-e.j/5E3),1),a.ya("sdai",{onpred:b.jb[0].Na,est:a.K}),a.ea=Date.now(),cX(a,3,"predict"),c.XF(d.Ye)):1===a.u&&cX(a,5,"nogab")}else 1===a.u&&cX(a,5,"noad")}}; mSa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b}; nSa=function(a,b){if(a.j){var c=a.j.Ye.Ug-(b.startTime+a.J-a.j.Ye.startSecs);0>=c||(c=new kE(a.j.Ye.startSecs-(isNaN(a.J)?0:a.J),c,a.j.Ye.context,a.j.Ye.identifier,"stop",a.j.Ye.j+1E3*b.duration),a.ya("cuepointdiscontinuity",{segNum:b.Na}),bX(a,c,b.Na))}}; cX=function(a,b,c){a.u!==b&&(a.ya("sdai",{setsst:b,old:a.u,r:c}),a.u=b)}; dX=function(a,b,c,d){(void 0===d?0:d)?cX(a,1,"sk2h"):0b)return!0;a.ma.clear()}return!1}; lX=function(a,b){return new eX(a.J,a.j,b||a.B.reason)}; mX=function(a){return a.B.isLocked()}; vSa=function(a){a.Ua?a.Ua=!1:a.ea=(0,g.gB)();a.V=!1;return new eX(a.J,a.j,a.B.reason)}; ASa=function(a,b){var c={};b=g.v(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&dI(f)&&f.video.j>a.policy.Da,l=e<=a.policy.Da?dI(d):UF(d);if(!f||h||l)c[e]=d}return c}; gX=function(a,b){a.B=b;var c=a.D.videoInfos;if(!mX(a)){var d=(0,g.gB)();c=g.fo(c,function(q){if(q.dc>this.policy.dc)return!1;var t=this.Ta.j[q.id],u=t.info.Qb;return this.policy.Gw&&this.Za.has(u)||this.ma.get(q.id)>d||4=q.video.width&&480>=q.video.height}))}c.length||(c=a.D.videoInfos); var e=g.fo(c,b.C,b);if(mX(a)&&a.Aa){var f=g.xb(c,function(q){return q.id===a.Aa}); f?e=[f]:delete a.Aa}f="m"===b.reason||"s"===b.reason;a.policy.Mw&&TW&&g.YA&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.j||q.j.powerEfficient)})); if(0c.lE.video.width?(g.Cb(e,b),b--):iX(a,c.kE)*a.policy.K>iX(a,c.lE)&&(g.Cb(e,b-1),b--);c=e[e.length-1];a.ib=!!a.j&&!!a.j.info&&a.j.info.Qb!==c.Qb;a.C=e;OKa(a.policy,c)}; sSa=function(a,b){b?a.u=a.Ta.j[b]:(b=g.xb(a.D.j,function(c){return!!c.Kc&&c.Kc.isDefault}),a.policy.Yn&&!b&&(b=g.xb(a.D.j,function(c){return c.audio.j})),b=b||a.D.j[0],a.u=a.Ta.j[b.id]); fX(a)}; BSa=function(a,b){for(var c=0;c+1d}; fX=function(a){if(!a.u||!a.policy.u&&!a.u.info.Kc){var b=a.D.j;a.u&&a.policy.Yn&&(b=b.filter(function(d){return d.audio.j===a.u.info.audio.j}),b.length||(b=a.D.j)); a.u=a.Ta.j[b[0].id];if(1a.B.j:BSa(a,a.u))a.u=a.Ta.j[g.ub(b).id]}}}; hX=function(a){a.policy.Zi&&(a.Ma=a.Ma||new g.Qp(function(){a.policy.Zi&&a.j&&!kX(a)&&1===Math.floor(10*Math.random())?(jX(a,a.j),a.V=!0):a.Ma.start()},6E4),g.Rp(a.Ma)); if(!a.nextVideo||!a.policy.u)if(mX(a))a.nextVideo=360>=a.B.j?a.Ta.j[a.C[0].id]:a.Ta.j[g.ub(a.C).id];else{for(var b=Math.min(a.K,a.C.length-1),c=VW(a.Da),d=iX(a,a.u.info),e=c/a.policy.V-d;0=f);b++);a.nextVideo=a.Ta.j[a.C[b].id];a.K!==b&&a.logger.info(function(){var h=a.B;return"Adapt to: "+iua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+ ", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))}); a.K=b}}; tSa=function(a){var b=a.policy.V,c=VW(a.Da),d=c/b-iX(a,a.u.info);b=g.Ab(a.C,function(e){return iX(this,e)b&&(b=0);a.K=b;a.nextVideo=a.Ta.j[a.C[b].id];a.logger.info(function(){return"Initial selected fmt: "+iua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})}; uSa=function(a){if(a.qb.length){var b=a.qb,c=function(d,e){if("f"===d.info.Qb||b.includes(lH(d,a.Ta.Tc,a.Ga.ud())))return d;for(var f={},h=0;ha.policy.Jj&&(c*=1.5);return c}; CSa=function(a,b){a=fba(a.Ta.j,function(c){return c.info.itag===b}); if(!a)throw Error("Itag "+b+" from server not known.");return a}; DSa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Aua(a.Ta)){for(var c=Math.max(0,a.K-2);c=m+100?h=!0:n+100=f){var n=Object.assign({},a.Jd[e]),p=a.Ta.J.get(mJ(a.Jd[e].formatId));f=Math.max(l,f);l=p.index.Vg(f+.1);var q=p.index.getStartTime(l);f=l+ +(.1c?--a.j:b.push(h);0!==b.length&&(e=b[0],e.startTimeMsc&&a.j!==b.length-1&&(h=a.Ta.J.get(mJ(d.formatId)),c=h.index.Vg(c/1E3),m=Math.max(0,c-1),m>=d.lr-a.u?(d.yh=m+a.u,c=1E3*h.index.getStartTime(c),d.durationMs-=e-c):b.pop()),a.Jd=b))}}; KSa=function(a){var b=[],c=[].concat(g.oa(a.sz));a.Jd.forEach(function(h){b.push(Object.assign({},h))}); for(var d=a.j,e=g.v(a.C.cU()),f=e.next();!f.done;f=e.next())d=ISa(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset)}); return{Jd:b,sz:c}}; GSa=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(100=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.yh;b.formatId=c.formatId;b.durationMs=c.durationMs;b.yh=c.yh;c.formatId=a;c.startTimeMs=e;c.durationMs=d-e;c.lr=b.yh+1;c.yh=f;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&& (b.durationMs=c.startTimeMs-b.startTimeMs,b.yh=c.lr-1);return!1}; HSa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.Ta.Tc||b.Jk===c.Jk}; LSa=function(a){a.Jd=[];a.sz=[];a.j=-1}; MSa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)}; kxa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=nX.jr("woe");d=new g.rK(a.u);return g.z(f,d.encrypt(b,a.j),2)}e=f.u;nX.Vp(c,Math.ceil(b.byteLength/16));return f.return(e)})}; qxa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=nX.jr("wod");d=new g.rK(a.u);return g.z(f,d.decrypt(b,a.j),2)}e=f.u;nX.Vp(c,Math.ceil(b.byteLength/16));return f.return(e)})}; OSa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Da=c;this.C=this.u=0;this.Ef=null;this.ma=new Set;this.ea=[];this.indexRange=this.initRange=null;this.V=new JK;this.qa=this.Aa=!1;this.ke={r8a:function(){return d.B}, T7a:function(){return d.chunkSize}, S7a:function(){return d.K}, R7a:function(){return d.J}}; (b=NSa(this))?(this.chunkSize=b.csz,this.B=Math.floor(b.clen/b.csz),this.K=b.ck,this.J=b.civ):(this.chunkSize=a.Hw,this.B=0,this.K=g.fE(16),this.J=g.fE(16));this.D=new Uint8Array(this.chunkSize);this.K&&this.J&&(this.crypto=new MSa(this.K,this.J))}; NSa=function(a){if(a.policy.xe&&a.policy.Kw)for(var b={},c=g.v(a.policy.xe),d=c.next();!d.done;b={mE:b.mE,nE:b.nE},d=c.next())if(d=g.Oy(d.value),b.mE=+d.clen,b.nE=+d.csz,0=d.length)return;if(0>c)throw Error("Missing data");a.C=a.B;a.u=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0=a.j.totalLength)throw Error();return jG(a.j,a.offset++)}; eTa=function(a,b){b=void 0===b?!1:b;var c=dTa(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=dTa(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+dTa(a),d*=128;return b?c:c-d}; gTa=function(a,b,c){var d=this;this.Ga=a;this.policy=b;this.J=c;this.logger=new g.$V("dash");this.u=[];this.j=null;this.Aa=-1;this.ea=0;this.Ba=NaN;this.ma=0;this.B=NaN;this.V=this.Ma=0;this.Za=-1;this.Ja=this.C=this.D=this.Da=null;this.fb=this.Ua=NaN;this.K=this.qa=this.Oa=this.ib=null;this.qb=!1;this.timestampOffset=0;this.ke={cU:function(){return d.u}}; if(this.policy.u){var e=this.J,f=this.policy.u;this.policy.Oa&&a.ya("atv",{ap:this.policy.Oa});this.K=new OSa(this.policy,e,function(h,l,m){tX(a,new sX(d.policy.u,2,{kD:new bTa(f,h,e.info,l,m)}))}); this.K.V.promise.then(function(h){d.K=null;1===h?tX(a,new sX(d.policy.u,h)):d.Ga.ya("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); h instanceof rX&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Ga.ya("offlinenwerr",{em:l}),fTa(d),tX(a,new sX(d.policy.u,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Ga.ya("dldbwerr",{em:l}),fTa(d),tX(a,new sX(d.policy.u,4,{gG:!0})))})}}; hTa=function(a){return a.u.length?a.u[0]:null}; uX=function(a){return a.u.length?a.u[a.u.length-1]:null}; oTa=function(a,b,c,d){d=void 0===d?0:d;if(a.C){var e=a.C.Tb+a.C.u;if(0=a.Aa&&0===a.ea){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8e&&(f=-1)}else{h=new cTa(h);for(m=l=!1;;){n=h.cq();var p=h;try{var q=eTa(p,!0),t=eTa(p,!1);var u=q;var y=t}catch(G){y=u=-1}p=u;var B=y;if(!(0f&&(f=n),m))break;163===p&&(f=Math.max(0,f),e=h.cq()+B);if(160===p){0>f&&(e=f=h.cq()+B);break}h.skip(B)}}0>f&&(e=-1)}if(0>f)break;a.Aa=f;a.ea=e-f}if(a.Aa>d)break;a.Aa?(d=lTa(a,a.Aa),d.C&&mTa(a,d),jTa(a,b,d),nTa(a,d),a.Aa=0):a.ea&&(d=lTa(a,0>a.ea?Infinity:a.ea),a.ea-=d.j.totalLength,nTa(a,d))}}a.j&&a.j.info.kf&&(nTa(a,a.j),a.j=null)}; kTa=function(a,b){!b.info.j.dn()&&0===b.info.Tb&&(g.PH(b.info.j.info)||b.info.j.info.Pe())&&cua(b);if(1===b.info.type)try{mTa(a,b),pTa(a,b)}catch(d){g.YD(d);var c=wH(b.info);c.hms="1";a.Ga.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.aM(b);a.K&&TSa(a.K,b);c.Kg()&&a.policy.C&&(a=a.Ga.Ta,a.Oa.push(fI(c.info,a.Tc)))}; fTa=function(a){var b;null==(b=a.K)||b.dispose();a.K=null}; qTa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0); a.j&&(b+=a.j.j.totalLength);return b}; lTa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=Xta(c,b);a.j=c[1];return c[0]}; mTa=function(a,b){var c=NH(b);if(cI(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new NG(c);PG(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;UF(d)&&!cI(d)&&(d=NH(b),(new NG(d)).cn(),TG([408125543,374648427,174,224],21936,d));b.info.j.info.dh()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.PH(d.info)?d.B=fta(c):d.info.Pe()&&(d.B=mta(c))));b.info.j.info.Pe()&& b.info.dh()&&(c=NH(b),(new NG(c)).cn(),TG([408125543,374648427,174,224],30320,c)&&TG([408125543,374648427,174,224],21432,c));if(a.policy.yx&&b.info.j.info.Pe()){c=NH(b);var e=new NG(c);if(PG(e,[408125543,374648427,174,29637])){d=SG(e,!0);e=e.start+e.pos;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=vG(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Da&&!!a.Da.J.D)if(b=c.info.dh())b=aua(c),h=a.Da,wX?(l=1/b,b=xX(a,b)>=xX(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&rTa(c)&&(b=a.Da,wX?(l=aua(c),h=1/l,l=xX(a,l),b=xX(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,eta(NH(c),b))}else{h=!1;a.D||(cua(c),c.u&&(a.D=c.u,h=!0,f=c.info,d=c.u.j,f.D="updateWithEmsg",f.Na=d,f=c.u,f.C&&(a.J.index.u=!f.C),f=c.info.j.info,d=NH(c),g.PH(f)?LG(d,1701671783):f.Pe()&&TG([408125543],307544935,d)));a:if((f=RH(c,a.policy.Hb))&&bua(c))l=sTa(a,c),a.V+=l,f-=l,a.ma+=f,a.B=a.policy.Zo?a.B+f:NaN;else{if(a.policy.uo){if(d=m=a.Ga.Nr(Yta(c),1),0<=a.B&&6!==c.info.type){if(a.policy.Zo&&isNaN(a.Ua)){g.ZD(new g.yA("Missing duration while processing previous chunk", xH(c.info)));a.Ga.isOffline()&&!a.policy.Ci||tTa(a,c,d);iTa(a,"m");break a}var n=m-a.B,p=n-a.V,q=c.info.Na,t=a.Ja?a.Ja.Na:-1,u=a.fb,y=a.Ua,B=a.policy.wm&&n>a.policy.wm,G=10Math.abs(a.B-d);if(1E-4l&&f>a.Za)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.PH(b.info.j.info))eta(NH(b),d);else if(b.info.j.info.Pe()&&(f=e-h,!g.PH(b.info.j.info)&&(b.info.j.info.Pe(),d=new NG(NH(b)),l=b.C?d:new NG(new DataView(b.info.j.j.buffer)),RH(b,!0)))){var n= 1E3*f,p=ZG(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||$G(d))if(RG(d,160))if(SG(d,!0),RG(d,155)){if(f=d.pos,m=SG(d,!0),d.pos=f,n=1E9*n/p,p=UG(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=RH(b,a.policy.Hb);d=c-d}d&&b.info.j.info.Pe()&&a.Ga.ya("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d}; rTa=function(a){return a.info.j.dn()&&a.info.Na===a.info.j.index.zd()}; xX=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.J.D&&b&&(b+=a.J.D.j);return b+a.getDuration()}; xTa=function(a,b){0>b||(a.u.forEach(function(c){QH(c,b)}),a.timestampOffset=b)}; yX=function(a,b){var c=this,d=b.Mh,e=b.Dz,f=void 0===b.pB?1:b.pB,h=void 0===b.fH?f:b.fH,l=void 0===b.Km?!1:b.Km,m=void 0===b.wq?!1:b.wq,n=void 0===b.dL?!1:b.dL,p=b.Lk,q=b.Na;b=b.Wg;this.kc=a;this.requestNumber=++yTa;this.j=this.now();this.J=this.Oa=NaN;this.Aa=0;this.C=this.j;this.u=0;this.Ua=this.j;this.Ba=0;this.Za=this.Ma=this.isActive=!1;this.B=0;this.qa=NaN;this.V=this.D=Infinity;this.ea=NaN;this.Ja=!1;this.ma=NaN;this.K=void 0;this.ke={J8a:function(){return c.Km}}; this.Mh=d;this.Dz=e;this.policy=this.Mh.Aa;this.pB=f;this.fH=h;this.Km=l;this.wq=m;n&&(this.K=[]);this.Lk=p;this.Na=q;this.Wg=b;this.snapshot=GK(this.Mh);zTa(this);ATa(this,this.j);this.qa=(this.ma-this.j)/1E3}; BTa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; zX=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.qa).toFixed(),pb:a.pB,stall:(1E3*a.B).toFixed(),ht:(a.Oa-a.j).toFixed(),elt:(a.J-a.j).toFixed(),elb:a.Aa};a.url&&NPa(b,a.url);return b}; ETa=function(a,b,c,d){if(!a.Ma){a.Ma=!0;if(!a.wq){CTa(a,b,c);DTa(a,b,c);var e=a.xs();if(2===e&&d)AX(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.j)/1E3,(d<=a.policy.j||!a.policy.j)&&!a.Za&&BX(a)&&AX(a,d,c),BX(a)&&(d=a.Mh,d.j.Bi(1,a.B/Math.max(c,2048)),HK(d));c=a.Mh;b=(b-a.j)/1E3||.05;d=a.qa;e=a.Km;c.J.Bi(b,a.u/b);c.C=(0,g.gB)();e||c.u.Bi(1,b-d)}CX(a)}}; CX=function(a){a.isActive&&(a.isActive=!1)}; DTa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.xs();if(a.isActive)1===f&&0e?(a.B+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=BX(a)?d+b:d+Math.max(b,c);a.ma=d}; HTa=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; MTa=function(a,b){if(b+1<=a.totalLength){var c=jG(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=jG(a,b++);else if(2===c)c=jG(a,b++),a=jG(a,b++),a=(c&63)+64*a;else if(3===c){c=jG(a,b++);var d=jG(a,b++);a=jG(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=jG(a,b++);d=jG(a,b++);var e=jG(a,b++);a=jG(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),hG(a,c,4)?a=Rsa(a).getUint32(c-a.B,!0):(d=jG(a,c+2)+256*jG(a,c+3),a=jG(a,c)+256*(jG(a,c+1)+ 256*d)),b+=5;return[a,b]}; EX=function(a){this.kc=a;this.j=new dG}; FX=function(a,b){this.info=a;this.callback=b;this.state=1;this.vz=this.gM=!1;this.qe=null}; NTa=function(a){return g.rm(a.info.jb,function(b){return 3===b.type})}; OTa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.kc=c;this.status=0;this.j=new dG;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.nz()}; this.xhr.onload=function(){return e.onDone()}; this.xhr.onerror=function(){return e.onError()}; this.xhr.fetch(function(f){e.u&&e.j.append(e.u);e.policy.j?e.j.append(f):e.u=f;e.B+=f.length;f=(0,g.gB)();10this.policy.gx?!1:!0:!1,b),this.Hd.j.start(),g.xf(function(){})}catch(B){$Ta(this,B,!0)}}; ZTa=function(a){if(!(BH(a.info)&&a.info.Km()&&a.policy.Rc&&a.gD)||2<=a.info.j.u||0=b&&(e.u.pop(),e.B-=RH(l,e.policy.Hb),f=l.info)}f&&(e.C=0c?$W(a,d):a.u=a.j.Jr(b-1,!1).jb[0]}; RX=function(a,b){var c;for(c=0;c=a.ma:c}; SX=function(a){var b;return NX(a)||!(null==(b=uX(a.C))||!rH(b.info))}; jUa=function(a){var b=[],c=LX(a);c&&b.push(c);b=g.Fb(b,a.C.Rm());c=g.v(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.v(d.info.jb),h=f.next();!h.done;e={Fw:e.Fw},h=f.next())e.Fw=h.value,d.gM&&(b=g.fo(b,function(l){return function(m){return!Gta(m,l.Fw)}}(e))),(tH(e.Fw)||4===e.Fw.type)&&b.push(e.Fw)}a.u&&!zta(a.u,g.ub(b),a.u.j.dn())&&b.push(a.u); return b}; iUa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:iUa(a,c?b:0)?a[b].startTime:NaN}; TX=function(a){return!(!a.u||a.u.j===a.j)}; oUa=function(a){return TX(a)&&a.j.Kg()&&a.u.j.info.dcb&&a.Bb)return!0;var c=a.zd();return bb)return 1;c=a.zd();return b=f)return 1;d=b.Yi;if(!d||e(0,g.gB)()?0:1}; UX=function(a,b,c,d,e,f,h,l,m,n,p,q){g.D.call(this);this.Ga=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.C=e;this.j=f;this.timing=h;this.D=l;this.schedule=m;this.Ta=n;this.B=p;this.ma=q;this.qa=!1;this.pD="";this.Lk=null;this.K=0;this.Wg=NaN;this.ea=!1;this.u=null;this.Zj=this.V=NaN;this.uj=null;this.J=0;this.logger=new g.$V("dash");0f&&(c=d.j.Zw(d,e-h.u)))),d=c):(0>d.Na&&(c=wH(d),c.pr=""+b.B.length,a.Ga.Zg()&&(c.sk="1"),c.snss=d.D,a.Ga.ya("nosq",c)),d=h.IA(d));if(a.policy.Aa)for(c=g.v(d.jb),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.dn()?(c=$Ra(a.D,b.j.info.dc,c.j.info.dc,0),d=d.j.Zw(d,c)):d=d.j.IA(d);if(a.u){l= d.jb[0].j.info.id;c=a.j;e=d.jb[0].Na;c=0>e&&!isNaN(c.B)?c.B:e;e=mSa(a.j,d.jb[0].C,c);var m=b===a.audioTrack?1:2;f=d.jb[0].j.info.Qb;h=l.split(";")[0];a:{var n=a.j;if(n.policy.aA&&n.j){var p=n.j.Ye.event;if(n.j.Na===c){n="predictStart"===p?void 0:n.j.Ye.event;break a}if(n.j.Na===c-1){n="start"===p||"continue"===p?p:void 0;break a}}n=void 0}if(a.policy.Ba&&0!==a.j.u){if(l=a.u.Is(e,c,l,m,f,n),0>c&&2===m&&dX(a.j,0,0,!0),l){var q;m=(null==(q=l.JD)?void 0:q.Xr)||"";var t;q=(null==(t=l.JD)?void 0:t.OX)|| -1;a.Ga.ya("sdai",{ssdaiinfo:"1",ds:m,skipsq:q,itag:h,f:f,sg:c,st:e.toFixed(3)});d.J=l}}else if(t=a.u.Io(e,c,l,m,f,n),0>c&&2===m&&dX(a.j,0,0,!0),t){q={dec_sq:c,itag:h,st:e.toFixed(3)};if(a.policy.Kx&&b.isRequestPending(c-1)){a.Ga.ya("sdai",{wt_daistate_on_sg:c-1});return}a.Ga.ya("sdai",q);t&&(d.u=new g.WF(t))}else 5!==a.j.u&&a.Ga.ya("sdai",{nodec_sq:c,itag:h,st:e.toFixed(3)})}a.policy.ul&&-1!==d.jb[0].Na&&d.jb[0].Na=e.K?(e.ya("sdai",{haltrq:f+1,est:e.K}),d=!1):d=2!==e.u;if(!d||!iH(b.u?b.u.j.u:b.j.u,a.policy,a.C)||a.Ga.isSuspended&&(!Sva(a.schedule)||a.Ga.kF))return!1;if(a.policy.u&&5<=yM)return g.Rp(a.Ga.yG),!1;if(a.Ta.isManifestless){if(0=a.policy.Al||!a.policy.qx&&0=a.policy.ym)return!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Kg()&&(b.u=g.ub(d.j.Fz(d)),d=b.u);if(!rH(d)&&!d.j.Ir(d))return!1;f=a.Ta.Ne||a.Ta.B;if(a.Ta.isManifestless&&f){f=b.j.index.zd();var h=c.j.index.zd();f=Math.min(f,h);if(0= f)return b.ma=f,c.ma=f,!1}if(d.j.info.audio&&4===d.type)return!1;if(!a.policy.od&&oUa(b)&&!a.policy.Mc)return!0;if(rH(d)||!a.policy.od&&OX(b)&&OX(b)+OX(c)>a.policy.qb)return!1;f=!b.D&&!c.D;if(e=!e)e=d.B,e=!!(c.u&&!rH(c.u)&&c.u.BBUa(a,b)?(BUa(a,b),!1):(a=b.Xb)&&a.isLocked()?!1:!0}; BUa=function(a,b){var c=a.j;c=c.j?c.j.Ye:null;if(a.policy.Aa&&c)return c.startSecs+c.Ug+15;b=xUa(a.Ga,b,!0);!mX(a.Ga.He)&&0a.Ga.getCurrentTime())return c.start/1E3;return Infinity}; DUa=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.u)b=null;else{var d=b.jb[0];if(b.range)var e=oH(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.j.B.get("defrag")||"1"===b.j.B.get("otf")){b=null;break a}e=oH(0,4096)}e=new zH([new qH(5,d.j,e,"createProbeRequestInfo"+d.D,d.Na)],b.B);e.K=c;e.u=b.u;b=e}b&&zUa(a,b)}}; zUa=function(a,b){a.Ga.aG(b);var c=Ita(b);c={Mh:a.schedule,pB:c,fH:YRa(a.D,c),Km:sH(b.jb[0]),wq:ZF(b.j.j),dL:a.policy.B,Dz:function(e,f){a.Ga.tD(e,f)}}; a.Lk&&(c.Na=b.jb[0].Na,c.Wg=b.Wg,c.Lk=a.Lk);var d={Cu:Jta(b,a.Ga.getCurrentTime()),gD:a.policy.Rc&&BH(b)&&b.jb[0].j.info.video?DSa(a.B):void 0,SD:a.policy.Aa,poToken:a.Ga.RL(),Lv:a.Ga.Dy(),pD:a.pD,Zj:isNaN(a.Zj)?null:a.Zj,uj:a.uj};return new XW(a.policy,b,c,a.C,function(e,f){try{a:{var h=e.info.jb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Fs()||!(!a.Ga.Ya||a.Ga.isSuspended||3f){if(a.policy.B){var n=e.policy.nD?Object.assign(zX(e.timing),{rst:e.state,strm:e.xhr.Nt(),d:DX(e.timing),cncl:e.isDisposed()}):Object.assign(zX(e.timing),{rst:e.state,strm:e.xhr.Nt(),d:DX(e.timing)});a.Ga.ya("rqs",n)}e.BX&&a.Ga.ya("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var p=a.timing,q=e.info.jb[0].j,t=!p.K&&q.info.video,u=!p.u&&q.info.audio;3===e.state?t?p.tick("vrr"):u&&p.tick("arr"):4===e.state?t?(p.K=e.jf(),g.FA(),HA(4)):u&&(p.u=e.jf()):e.ov()&&t&&(g.FA(),HA(4));var y= a.Ga;a.Zj&&e.vK&&y&&(a.Zj=NaN,a.Ga.ya("cabrUtcSeek",{mediaTimeSeconds:e.vK}));if(3===e.state){RX(l,e);BH(e.info)&&VX(a,l,h,!0);if(a.u){var B=e.info.Io();B&&a.u.Dk(e.info.jb[0].Na,h.info.id,B)}a.Ga.nf()}else if(e.isComplete()&&5===e.info.jb[0].type){if(4===e.state){var G=(e.info.jb[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;G&&G instanceof XW&&G.Fs()&&G.aE(!0)}e.dispose()}else{if(!e.Zm()&&e.vz&&2<=e.state&&3!==e.state){var M=e.xhr.getResponseHeader("X-Response-Itag");if(M){var N=CSa(a.B, M),H=e.info.C;if(H){var U=H-N.LL();N.C=!0;e.info.jb[0].j.C=!1;var aa=N.Tu(U);e.info=aa;if(e.qe){var da=e.qe,ua=aa.jb;(ua.length!==da.jb.length||ua.lengtha.j||c.push(d)}return c}; RUa=function(a,b,c){b.push.apply(b,g.oa(PUa[a]||[]));c.N("html5_early_media_for_drm")&&b.push.apply(b,g.oa(QUa[a]||[]))}; WUa=function(a,b){var c=eN(a),d=a.W().D;if(ZX&&!d.j)return ZX;for(var e=[],f=[],h={},l=g.v(SUa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.v(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=TUa(p);!q||!q.video||dI(q)&&!c.Ja&&q.video.j>c.D||(n?(e.push(p),RUa(p,e,a)):(q=LF(c,q,d),!0===q?(n=!0,e.push(p),RUa(p,e,a)):h[p]=q))}}l=g.v(UUa);for(n=l.next();!n.done;n=l.next())for(n=g.v(n.value),p=n.next();!p.done;p=n.next())if(m=p.value,(p=VUa(m))&&p.audio&&(a.N("html5_onesie_51_audio")||!TF(p)&& !SF(p)))if(p=LF(c,p,d),!0===p){f.push(m);RUa(m,f,a);break}else h[m]=p;c.B&&b("orfmts",h);ZX={video:e,audio:f};d.j=!1;return ZX}; TUa=function(a){var b=aI[a],c=XUa[b],d=YUa[a];if(!d||!c)return null;var e=new YH(d.width,d.height,d.fps);c=nJ(c,e,b);return new bI(a,c,{video:e,dc:d.bitrate/8})}; VUa=function(a){var b=XUa[aI[a]],c=ZUa[a];return c&&b?new bI(a,b,{audio:new WH(c.audioSampleRate,c.numChannels)}):null}; aVa=function(a){return{iY:Twa(a,1,$Ua),U8:WL(a,2)}}; bVa=function(a){return{R8a:TL(a,1)}}; $Ua=function(a){return{clipId:WL(a,1),eE:XL(a,2,cVa),T4:XL(a,3,bVa)}}; cVa=function(a){return{P9:WL(a,1),Z7:TL(a,2),P8a:TL(a,3),iB:TL(a,4),vr:TL(a,5)}}; dVa=function(a){return{first:TL(a,1),bV:TL(a,2)}}; fVa=function(a,b){gM(a,1,b.formatId,$X,3);cM(a,2,b.startTimeMs);cM(a,3,b.durationMs);cM(a,4,b.lr);cM(a,5,b.yh);gM(a,9,b.o7a,eVa,3)}; gVa=function(a,b){fM(a,1,b.videoId);cM(a,2,b.Jk)}; eVa=function(a,b){var c;if(b.sS)for(c=0;ca;a++)dY[a]=255>=a?9:7;GVa.length=32;GVa.fill(5);eY.length=286;eY.fill(0);for(a=261;285>a;a++)eY[a]=Math.floor((a-261)/4);fY[257]=3;for(a=258;285>a;a++){var b=fY[a-1];b+=1<a;a++)HVa[a]=3>=a?0:Math.floor((a-2)/2);for(a=gY[0]=1;30>a;a++)b=gY[a-1],b+=1<a.Sj.length&&(a.Sj=new Uint8Array(2*a.B),a.B=0,a.u=0,a.C=!1,a.j=0,a.register=0)}a.Sj.length!==a.B&&(a.Sj=a.Sj.subarray(0,a.B));return a.error?new Uint8Array(0):a.Sj}; MVa=function(a,b,c){b=KVa(b);c=KVa(c);for(var d=a.data,e=a.Sj,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<>4;for(NVa(a,7);0>c;)c=b[hY(a,1)-c];return c>>4}; hY=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<>=b;a.j-=b;return c}; NVa=function(a,b){a.j-=b;a.register>>=b}; KVa=function(a){for(var b=[],c=g.v(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; QVa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,u;return g.A(function(y){switch(y.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=b.exports.inflateGzip(c,a.length,e))throw Error("inflateGzip="+f);h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return y.return(h)}catch(B){g.YD(B),b.reload()}if(!("DecompressionStream"in window))return y.return(g.OVa(new g.IVa(a)));l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new dG([]);case 2:return g.z(y,n.read(),4);case 4:q=y.u;t=q.value;if(u=q.done){y.La(3);break}p.append(t);y.La(2);break;case 3:return y.return(iG(p))}})}; RVa=function(a){YX.call(this,"onesie");this.Sd=a;this.j={};this.C=!0;this.B=null;this.queue=new EVa(this);this.D={}}; SVa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.v(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.wU){var e=a.queue;e.j.push({videoId:d.videoId,sP:c,isEncrypted:!1});e.u||FVa(e)}}}; TVa=function(a,b){var c=b.totalLength,d=!1;switch(a.B){case 0:a.NN(b,a.C).then(function(e){var f=a.Sd;f.Xc("oprr");f.playerResponse=e;f.bN||(f.zD=!1);iY(f)},function(e){a.Sd.fail(e)}); break;case 2:a.Xc("ormk");b=iG(b);a.queue.decrypt(b);break;default:d=!0}a.Sd.Tl&&a.Sd.ya("ombup","id.11;pt."+a.B+";len."+c+(d?";ignored.1":""));a.B=null}; UVa=function(a){return new Promise(function(b){setTimeout(b,a)})}; VVa=function(a,b){var c=aK(b.Z.experiments,"debug_bandaid_hostname");if(c)b=XV(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=zK(a.videoId);a=[];if(b)for(b=g.v(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}}; WVa=function(a,b,c){c=void 0===c?0:c;var d,e;return g.A(function(f){if(1==f.j)return d=[],d.push(b.load()),0a.policy.qb)return a.policy.B&&a.Ga.ya("sabrHeap",{a:""+OX(a.audioTrack),v:""+OX(a.videoTrack)}),!1;if(!a.C)return!0;b=1E3*PX(a.audioTrack,!0);var c=1E3*PX(a.videoTrack,!0)>a.C.targetVideoReadaheadMs;return!(b>a.C.targetAudioReadaheadMs)|| !c}; fWa=function(a,b){b=new pVa(a.policy,b,a.Ta,a.u,a,{Mh:a.Mh,Dz:function(c,d){a.va.tD(c,d)}, Km:a.policy.Ie},a.Ga.Dy());a.policy.B&&a.Ga.ya("rqs",sVa(b));return b}; kY=function(a,b){if(!b.isDisposed()&&!a.isDisposed())if(b.isComplete()&&b.tv())b.dispose();else if(b.WU()?(a.policy.zx&&(a.Vo.clear(),a.Tp.clear()),a.j.pop(),null==b||b.dispose()):b.Zm()?a.Ks(b):gWa(a),!(b.isDisposed()||b instanceof jY)){if(b.isComplete())var c=vUa(b,a.policy,a.u);else c=uUa(b,a.policy,a.u,a.K),1===c&&(a.K=!0);0!==c&&(c=2===c,b=new aY(1,b.info.data),b.u=c,fWa(a,b))}a.Ga.nf()}; gWa=function(a){for(;a.j.length&&a.j[0].XU();){var b=a.j.shift();hWa(a,b)}a.j.length&&hWa(a,a.j[0])}; hWa=function(a,b){if(a.policy.D){var c;var d=((null==(c=a.Ga.rf)?void 0:oRa(c,b.Yp()))||0)/1E3}else d=0;if(a.policy.Xf){c=new Set(b.Xp(a.ud()));c=g.v(c);for(var e=c.next();!e.done;e=c.next()){var f=e.value;if(!(e=!(b instanceof jY))){var h=a.B,l=h.Ta.Tc;h.Ga.ud();e=KUa(h.j,l);h=KUa(h.videoInfos,l);e=e.includes(f)||h.includes(f)}if(e&&b.Sk(f,a.ud()))for(e=b.Wj(f,a.ud()),f=b.Rm(f,a.ud()),e=g.v(e),h=e.next();!h.done;h=e.next()){h=h.value;a.policy.D&&a.policy.D&&d&&3===h.info.type&&QH(h,d);a.policy.B&& b instanceof jY&&a.Ga.ya("omblss",{s:xH(h.info)});l=h.info.j.info.Gk();var m=h.info.j;if(l){var n=a.B;m!==n.u&&(n.u=m,n.VG(m,n.audioTrack,!0))}else n=a.B,m!==n.B&&(n.B=m,n.VG(m,n.videoTrack,!1));MX(l?a.audioTrack:a.videoTrack,f,h)}}}else for(h=b.JT()||lX(a.J),c=new Set(b.Xp(a.ud())),a.policy.D?l=c:l=[(null==(f=h.video)?void 0:lH(f,a.Ta.Tc,a.ud()))||"",(null==(e=h.audio)?void 0:lH(e,a.Ta.Tc,a.ud()))||""],f=g.v(l),e=f.next();!e.done;e=f.next())if(e=e.value,c.has(e)&&b.Sk(e,a.ud()))for(h=b.Wj(e,a.ud()), l=g.v(h),h=l.next();!h.done;h=l.next())h=h.value,a.policy.D&&d&&3===h.info.type&&QH(h,d),a.policy.B&&b instanceof jY&&a.Ga.ya("omblss",{s:xH(h.info)}),m=b.Rm(e,a.ud()),MX(h.info.j.info.Gk()?a.audioTrack:a.videoTrack,m,h)}; iWa=function(a,b){for(var c=[],d=0;d=a.policy.Fo,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e=a.policy.Tj&&!a.B;if(!f&&!c&&nWa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.Ux.bj()||0)-a.K.u-a.policy.Ab;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){lY(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Lj;d=e.C&&c<=e.B){c=!0;break a}c=!1}return c?!0:(a.ya("ostmf",{ct:a.currentTime,a:b.j.info.Gk()}),!1)}; tWa=function(a){if(!a.Ta.Tc)return!0;var b=a.va.getVideoData(),c,d;if(a.policy.Jw&&!!(null==(c=a.Ua)?0:null==(d=c.t4)?0:d.d8)!==a.Ta.Ne)return a.ya("ombplmm",{}),!1;b=b.Pb||b.liveUtcStartSeconds||b.Yi;if(a.Ta.Ne&&b)return a.ya("ombplst",{}),!1;if(a.Ta.qa)return a.ya("ombab",{}),!1;b=Date.now();return xJ(a.Ta)&&!isNaN(a.ma)&&b-a.ma>1E3*a.policy.mx?(a.ya("ombttl",{}),!1):a.Ta.Re&&a.Ta.B||!a.policy.eD&&a.Ta.isPremiere?!1:!0}; uWa=function(a,b){var c=b.j,d=a.Ta.Tc;if(tWa(a))if(a.ud(),a.V&&a.V.Yc.has(kH(c.info,d))){if(d=kH(c.info,d),sWa(a,b)){var e=new zH(a.V.Rm(d)),f=function(h){try{if(h.Zm())a.handleError(h.hf(),h.Zp()),RX(b,h),BH(h.info)&&VX(a.u,b,c,!0),a.nf();else if(EUa(a.u,h)){var l;null==(l=a.B)||lSa(l,h.info,a.J);a.nf()}}catch(m){h=zL(m),a.handleError(h.errorCode,h.details,h.severity),a.yk()}}; c.C=!0;AH(e)&&(cUa(b,new WW(a.policy,d,e,a.V,f)),jSa(a.timing))}}else a.ya("ombfmt",{})}; nY=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.He;b=d.nextVideo&&d.nextVideo.index.Vg(b)||0;d.Ba!==b&&(d.Ja={},d.Ba=b,gX(d,d.B));b=!mX(d)&&-1(0,g.gB)()-d.ea;var e=d.nextVideo&&3*iX(d,d.nextVideo.info)=b&&PX(c,!0)>=b;else if(c.B.length||d.B.length){var e=c.j.info.dc+d.j.info.dc;e=10*(1-VW(b)/e);b=Math.max(e,b.policy.zi);c=PX(d,!0)>=b&&PX(c,!0)>=b}else c=!0;if(!c)return"abr";c=a.videoTrack;if(0a.currentTime||360(e?e.Na:-1));if(f)return a.j.Zg()&&rY(a),!1;CWa(a,b,c,d.info);if(a.Ta.u&&0===d.info.Tb){if(null==c.zs()){e=LX(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var h=0;he)){a:{e=a.policy.Ua?(0,g.gB)():0;f=d.C||d.B?d.info.j.j:null;h=d.j;d.B&&(h=new dG([]),eG(h,d.B),eG(h,d.j));var l=iG(h);h=a.policy.Ua?(0,g.gB)():0;f=FWa(a,c,l,d.info,f);a.policy.Ua&&(!d.info.Tb||d.info.kf||10>d.info.C)&&a.ya("sba",c.lc({as:xH(d.info),pdur:Math.round(h-e),adur:Math.round((0,g.gB)()-h)})); if("s"===f)a.Da&&(a.Da=!1),a.Oa=0,a=!0;else{if("i"===f||"x"===f)GWa(a,"checked",f,d.info);else{if("q"===f){if(!a.Da){a.Da=!0;a=!1;break a}d.info.dh()?(c=a.policy,c.ma=Math.floor(.8*c.ma),c.ub=Math.floor(.8*c.ub),c.ea=Math.floor(.8*c.ea)):(c=a.policy,c.Ja=Math.floor(.8*c.Ja),c.md=Math.floor(.8*c.md),c.ea=Math.floor(.8*c.ea));zT(a.policy)?pSa(a.qa,d.info.j):jX(a.He,d.info.j)}qY(a.va,{reattachOnAppend:f})}a=!1}}e=!a}if(e)return!1;b.gw(d);return!0}; GWa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",zT(a.policy)?d.j.info.video&&!(0a.Oa?(a.Oa++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=wH(d);var h;d.mrs=null==(h=a.Ya)?void 0:hJ(h);d.origin=b;d.reason=c;a.handleError(e,d,f)}; vTa=function(a,b,c,d,e){var f=a.Ta;var h=!1,l=-1;for(p in f.j){var m=iI(f.j[p].info.mimeType)||f.j[p].info.dh();if(d===m)if(h=f.j[p].index,JH(h,b.Na)){m=b;var n=h.Ho(m.Na);n&&n.startTime!==m.startTime?(h.segments=[],h.nJ(m),h=!0):h=!1;h&&(l=b.Na)}else h.nJ(b),h=!0}if(0<=l){var p={};f.oa("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;hSa(a.j,b,d,f);a.B.JN(b,c,d,e);b.Na===a.Ta.Re&&f&&uJ(a.Ta)&&b.startTime>uJ(a.Ta)&&(a.Ta.Ab=b.startTime+(isNaN(a.timestampOffset)?0:a.timestampOffset),a.j.Zg()&& a.j.j=b&&rWa(a,d.startTime,!1)}); return c&&c.startTime=a.length))for(var b=(0,g.JX)([60,0,75,0,73,0,68,0,62,0]),c=28;cd;++d)b[d]=a[c+2*d];a=mG(b);a=Tf(a);if(!a)break;c=a[0];a[0]=a[3];a[3]=c;c=a[1];a[1]=a[2];a[2]=c;c=a[4];a[4]=a[5];a[5]=c;c=a[6];a[6]=a[7];a[7]=c;return a}c++}}; wY=function(a,b){uY.call(this);var c=this;this.B=a;this.j=[];this.u=new g.Qp(function(){c.oa("log_qoe",{wvagt:"timer",reqlen:c.j?c.j.length:-1});if(c.j){if(0d;d++)c[2*d]=''.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new zY(null,null,null,null,a)}; vXa=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c}; sXa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=c&&(a=.75*c),b=.5*(c-a),c=new vY(b,c,c-b-a,this)):c=null;break a;case "widevine":c= new wY(c,this);break a;default:c=null}if(this.D=c)g.J(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.uS,this),this.D.subscribe("log_qoe",this.Ti,this);QJ(this.Z.experiments);this.Ti({cks:this.j.Bh()})}; xXa=function(a){var b=rXa(a.C);b?b.then(FJ(function(){zXa(a)}),FJ(function(c){if(!a.isDisposed()){g.YD(c); var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.oa("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Ti({mdkrdy:1}),a.ea=!0); a.ma&&(b=rXa(a.ma))}; BXa=function(a,b,c){a.Ma=!0;c=new YSa(b,c);a.Z.N("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));AXa(a,c)}; AXa=function(a,b){if(!a.isDisposed()){a.Ti({onInitData:1});if(a.Z.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.Ti({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Da&&!a.videoData.isLivePlayback)CY(a);else{if(!(a.Z.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Pe)){a.Da=!0;c=b.cryptoPeriodIndex;var d=b.j;$Sa(b);b.Pe||(d&&b.j!==d?a.oa("ctmp","cpsmm", {emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.oa("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.oa("widevine_set_need_key_info",b)}}else a.uS(b)}}; zXa=function(a){if(!a.isDisposed())if(a.Z.N("html5_drm_set_server_cert")&&!g.bL(a.Z)||MJ(a.j)){var b=a.C.setServerCertificate();b?b.then(FJ(function(c){a.Z.pe()&&a.oa("ctmp","ssc",{success:c})}),FJ(function(c){a.oa("ctmp","ssce",{n:c.name, m:c.message})})).then(FJ(function(){CXa(a)})):CXa(a)}else CXa(a)}; CXa=function(a){a.isDisposed()||(a.ea=!0,a.Ti({onmdkrdy:1}),CY(a))}; DXa=function(a){return"widevine"===a.j.flavor&&a.videoData.N("html5_drm_cpi_license_key")}; CY=function(a){if(a.Ma&&a.ea&&!a.Aa){for(;a.B.length;){var b=a.B[0],c=DXa(a)?aTa(b):g.Rf(b.initData);if(MJ(a.j)&&!b.u)a.B.shift();else{if(a.u.get(c))if("fairplay"!==a.j.flavor||MJ(a.j)){a.B.shift();continue}else a.u.delete(c);$Sa(b);break}}a.B.length&&a.createSession(a.B[0])}}; EXa=function(a){var b;if(b=g.tz()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.oG(b),a.oa("ctmp","drm",{metrics:b}))}; EY=function(a){g.D.call(this);var b=this;this.va=a;this.j=this.va.W();this.videoData=this.va.getVideoData();this.uC=0;this.J=this.B=!1;this.D=0;this.C=g.PJ(this.j.experiments,"html5_delayed_retry_count");this.u=new g.Qp(function(){DY(b.va)},g.PJ(this.j.experiments,"html5_delayed_retry_delay_ms")); g.J(this,this.u)}; IXa=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.va.Mi.D&&d&&"22"===d.itag)return a.va.Mi.D=!0,a.Rd("qoe.restart",{reason:"fmt.unplayable.22"}),FY(a.va),!0;var f=!1,h=a.uC+3E4<(0,g.gB)()||a.u.isActive();if(a.j.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Rd("auth",c),!0;var l;if(l=!h)l=a.va.Js(),l=!!(l.Rf()||l.isInline()||l.isBackground()|| l.Py()||l.Ny());l&&(c.nonfg="paused",h=!0,a.va.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:TF(e)||SF(e))&&(zva(a.j.D,e.Qb),c.acfallexp=e.Qb,f=h=!0);!h&&0=a.j.qc)return!1;b.exiled=""+a.j.qc;a.Rd("qoe.start15s",b);a.va.oa("playbackstalledatstart");return!0}; GXa=function(a){return a.B?!0:"yt"===a.j.Da?a.videoData.fb?25>a.videoData.qc:!a.videoData.qc:!1}; HXa=function(a){if(!a.B){a.B=!0;var b=a.va.getPlayerState();b=g.wP(b)||b.isSuspended();a.va.Gn();b&&!EN(a.videoData)||a.va.oa("signatureexpired")}}; JXa=function(a,b){if((a=a.va.Fe())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.hf();b.details.merr=c?c.toString():"0";b.details.mmsg=a.Cf()}}; KXa=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)}; LXa=function(a,b){return a.j.N("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1}; NXa=function(a,b){if(!LXa(a,b)&&!a.B)return!1;b.details.sts="19501";if(GXa(a))return yL(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new xL("qoe.restart",b)),a.Rd(b.errorCode,b.details),HXa(a),!0;6048E5<(0,g.gB)()-a.j.Zf&&MXa(a,"signature");return!1}; MXa=function(a,b){try{window.location.reload(),a.Rd("qoe.restart",{detail:"pr."+b})}catch(c){}}; OXa=function(a,b){var c=a.j.D;c.D=!1;c.j=!0;a.Rd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});DY(a.va,!0)}; PXa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d}; QXa=function(a,b,c){this.Z=a;this.PD=b;this.va=c;this.ea=this.J=this.K=this.u=this.j=this.C=this.V=this.B=0;this.D=!1;this.ma=g.PJ(this.Z.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45}; SXa=function(a,b,c){!a.Z.N("html5_tv_ignore_capable_constraint")&&g.bL(a.Z)&&(c=c.compose(RXa(a,b)));return c}; UXa=function(a,b){var c,d=TXa(a,null==(c=b.j)?void 0:c.videoInfos);c=a.va.getPlaybackRate();return 1(0,g.gB)()-a.C?0:f||0h?a.u+1:0;if((n-m)/l>a.ma||!e||g.bL(a.Z))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;XXa(a,b.videoData.B);a.va.ya("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},ZXa()));return!0}; aYa=function(a,b){return 0>=g.PJ(a.Z.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32=e){d=e;break}return new BF(0,d,!1,"b")}; cYa=function(a){a=a.va.Js();return a.isInline()?new BF(0,480,!1,"v"):a.isBackground()&&60e?(c&&(d=dYa(a,c,d)),new BF(0,d,!1,"e")):IM}; dYa=function(a,b,c){if(a.N("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;ba.u)){var b=g.pW(a.provider),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.yP(a.playerState)&&!g.BO(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; jYa=function(a,b){b?iYa.test(a):(a=g.Oy(a),Object.keys(a).includes("cpn"))}; lYa=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Ry(a)&&Sy()){if(h){var n;2!==(null==(n=kYa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=kYa.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.zy("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]= d:g.zy("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.zy("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);d=b.qa;b.N("move_vss_away_from_login_info_cookie")&&d&&!mL(b)&&(m["X-Goog-AuthUser"]=d,m["X-Yt-Auth-Test"]="test");e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c||b.N("move_vss_away_from_login_info_cookie")&&d?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&iYa.test(a)&&(l.withCredentials=!0)}0a.B.KV+100&&a.B){var d=a.B,e=d.isAd;c=1E3*c-d.KV;a.Aa=1E3*b-d.B8-c-d.q8;c=(0,g.gB)()-c;b=a.Aa;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.K&&(h.cttAuthInfo={token:d.K,videoId:d.videoId});h.startTime=c-b;vF(f,h);g.uF({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);xF("pbs",c,f)}else c=a.provider.va.Qh(),c.J!== d.clientPlaybackNonce?(c.D=d.clientPlaybackNonce,c.u=b):g.yN(d)||g.ZD(new g.yA("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ya("gllat",{l:a.Aa.toFixed(),prev_ad:+e});delete a.B}}; rYa=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.pW(a.provider);var c=a.provider.va.RB(),d=c.xr-(a.Ba||0);0a.j)&&2=e&&(a.va.ya("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.Z.N("html5_validate_yt_now")),c=b(); a.j=function(){return Math.round(b()-c)/1E3}; a.va.RN()}return a.j}; SYa=function(a){var b=a.va.gq()||{};b.fs=a.va.jC();b.volume=a.va.getVolume();b.muted=a.va.isMuted()?1:0;b.mos=b.muted;b.inview=a.va.HB();b.size=a.va.vB();b.clipid=a.va.uy();var c=Object,d=c.assign;a=a.videoData;var e={};a.B&&(e.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(e.afmt=a.D.itag));e.ei=a.eventId;e.list=a.playlistId;e.cpn=a.clientPlaybackNonce;a.videoId&&(e.v=a.videoId);a.Uk&&(e.infringe=1);BN(a)&&(e.splay=1);var f=kN(a);f&&(e.live=f);a.qp&&(e.sautoplay=1);a.fm&&(e.autoplay=1);a.sx&&(e.sdetail= a.sx);a.Da&&(e.partnerid=a.Da);a.osid&&(e.osid=a.osid);a.Jw&&(e.cc=a.Jw.vssId);return d.call(c,b,e)}; pYa=function(a){if(navigator.connection&&navigator.connection.type)return YYa[navigator.connection.type]||YYa.other;if(g.bL(a.Z)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; LY=function(a){var b=new WYa,c;b.D=(null==(c=SYa(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.va.getPlaybackRate();c=a.va.getVisibilityState();0!==c&&(b.visibilityState=c);a.Z.xe&&(b.u=1);b.B=a.videoData.Aq;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.va.getAudioTrack();c.Kc&&c.Kc.id&&"und"!==c.Kc.id&&(b.C=c.Kc.id);b.connectionType=pYa(a);b.volume=a.va.getVolume();b.muted=a.va.isMuted();b.clipId=a.va.uy()||"-";b.j=a.videoData.sQ||"-";return b}; g.VY=function(a){g.D.call(this);this.provider=a;this.qoe=this.j=null;this.Fi=void 0;this.u=new Map;this.provider.videoData.Oe()&&!this.provider.videoData.wl&&(this.j=new OY(this.provider),g.J(this,this.j),this.qoe=new g.IY(this.provider),g.J(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Fi=this.provider.videoData.clientPlaybackNonce)&&this.u.set(this.Fi,this.j));this.B=new GY(this.provider);g.J(this,this.B)}; ZYa=function(a){gYa(a.B);a.qoe&&AYa(a.qoe)}; $Ya=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Fi){var b;null!=(b=a.u.get(a.Fi))&&MY(b.j)}else a.j&&MY(a.j.j)}; aZa=function(a){a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.bf&&(b.bf="N");var c=g.pW(b.provider);g.HY(b,c,"vps",[b.bf]);b.J||(0<=b.u&&(b.j.user_intent=[b.u.toString()]),b.J=!0);b.provider.Z.pe()&&b.ya("finalized",{});b.qa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.v(a.u.values()),c=b.next();!c.done;c=b.next())UYa(c.value);else a.j&&UYa(a.j);a.dispose()}; bZa=function(a,b){a.j&&VYa(a.j,b)}; cZa=function(a){if(!a.j)return null;var b=PY(a.j,"atr");return function(c){a.j&&VYa(a.j,c,b)}}; dZa=function(a,b,c,d){c.adFormat=c.Ae;var e=b.va;b=new OY(new UY(c,b.Z,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, zk:function(){return e.zk()}, RB:function(){return e.RB()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, VB:function(){return e.VB()}, getVisibilityState:function(){return e.getVisibilityState()}, Qh:function(){return e.Qh()}, gq:function(){return e.gq()}, getVolume:function(){return e.getVolume()}, isMuted:function(){return e.isMuted()}, jC:function(){return e.jC()}, uy:function(){return e.uy()}, HB:function(){return e.HB()}, vB:function(){return e.vB()}, RN:function(){e.RN()}, OC:function(){e.OC()}, ya:function(f,h){e.ya(f,h)}})); b.B=d;g.J(a,b);return b}; eZa=function(){this.Cu=0;this.B=this.Rt=this.xr=this.u=NaN;this.j={};this.bandwidthEstimate=NaN}; WY=function(a,b,c){g.D.call(this);var d=this;this.Z=a;this.va=b;this.u=c;this.j=new Map;this.gT="";this.ke={Ko:function(){return Array.from(d.j.keys())}}}; fZa=function(){this.j=g.tE;this.array=[]}; hZa=function(a,b,c){var d=[];for(b=gZa(a,b);bc)break}return d}; iZa=function(a,b){var c=[];a=g.v(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; jZa=function(a){return a.array.slice(gZa(a,0x7ffffffffffff),a.array.length)}; gZa=function(a,b){a=Sb(a.array,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; kZa=function(a,b){var c=NaN;a=g.v(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1}; oZa=function(a,b){this.videoData=a;this.j=b}; pZa=function(a,b,c){return mya(b,c).then(function(){return iz(new oZa(b,b.C))},function(d){d instanceof Error&&g.ZD(d); var e=nI('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=pI('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.dK(a.D,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Yu(),d:!!b.ib,drm:b.Hk(),f18:0<=b.yf.indexOf("itag=18"),c18:e};b.j&&(b.Hk()?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=pI('video/mp4; codecs="avc1.42001E"'), e.cVP9=pI('video/webm; codecs="vp9"'));b.J&&(e.drmsys=b.J.keySystem,f=0,b.J.j&&(f=Object.keys(b.J.j).length),e.drmst=f);return new xL(d,e,h)})}; qZa=function(a){this.D=a;this.B=this.u=0;this.C=new hS(50)}; $Y=function(a,b,c){g.yE.call(this);this.videoData=a;this.experiments=b;this.V=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new rZa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.ub?c.u=3:g.oN(a)&&(c.u=2);"NORMAL"===a.latencyClass&&(c.K=!0);c.D=!b.ob("html5_live_streaming_impedance_mismatch_applied_in_loader")&&Hsa(Gsa({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Ro:a.Ro,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:TM(a),tP:FN}));c.D&&(c.ea++,gN(a)&&(c.J=g.PJ(b,"html5_jumbo_ull_nonstreaming_mffa_ms")|| NaN));if(rz("trident/")||rz("edge/"))c.B=Math.max(c.B,g.PJ(b,"html5_platform_minimum_readahead_seconds")||3);g.PJ(b,"html5_minimum_readahead_seconds")&&(c.B=g.PJ(b,"html5_minimum_readahead_seconds"));g.PJ(b,"html5_maximum_readahead_seconds")&&(c.V=g.PJ(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.C=!0);gN(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.ub&&b--;this.experiments.ob("html5_disable_extra_readahead_normal_latency_live_stream")|| a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;gN(a)&&(b=1);this.policy.D&&b++;this.j=sZa(this,b)}; bZ=function(a,b){var c=a.bq(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*aZ(a);return b>=c-a}; tZa=function(a,b,c){b=bZ(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B}; uZa=function(a,b){b=bZ(a,b);a.D!==b&&a.oa("livestatusshift",b);a.D=b}; aZ=function(a){return a.videoData.j?vJ(a.videoData.j)||5:5}; sZa=function(a,b){b=Math.max(Math.max(a.policy.ea,Math.ceil(a.policy.B/aZ(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.V/aZ(a))),b)}; rZa=function(){this.ea=1;this.B=0;this.V=Infinity;this.C=!0;this.j=2;this.u=1;this.D=!1;this.J=NaN;this.K=!1}; eZ=function(a){g.D.call(this);this.va=a;this.Z=this.va.W();this.C=this.j=0;this.B=new g.Qp(this.nf,1E3,this);this.Da=new cZ({delayMs:g.PJ(this.Z.experiments,"html5_seek_timeout_delay_ms")});this.V=new cZ({delayMs:g.PJ(this.Z.experiments,"html5_long_rebuffer_threshold_ms")});this.Ba=dZ(this,"html5_seek_set_cmt");this.ma=dZ(this,"html5_seek_jiggle_cmt");this.Aa=dZ(this,"html5_seek_new_elem");this.Ua=dZ(this,"html5_unreported_seek_reseek");this.J=dZ(this,"html5_long_rebuffer_jiggle_cmt");this.K=new cZ({delayMs:2E4}); this.qa=dZ(this,"html5_seek_new_elem_shorts");this.D=dZ(this,"html5_ads_preroll_lock_timeout");this.Ja=new cZ({delayMs:g.PJ(this.Z.experiments,"html5_skip_slow_ad_delay_ms")||5E3,by:!this.Z.N("html5_report_slow_ads_as_error")});this.Ma=new cZ({delayMs:g.PJ(this.Z.experiments,"html5_skip_slow_ad_delay_ms")||5E3,by:!this.Z.N("html5_skip_slow_buffering_ad")});this.Oa=new cZ({delayMs:g.PJ(this.Z.experiments,"html5_slow_start_timeout_delay_ms")});this.ea=dZ(this,"html5_slow_start_no_media_source");this.u= {};g.J(this,this.B)}; dZ=function(a,b){var c=g.PJ(a.Z.experiments,b+"_delay_ms");a=a.Z.N(b+"_cfl");return new cZ({delayMs:c,by:a})}; fZ=function(a,b,c,d,e,f,h,l){vZa(b,c)?(a.Rd(e,b,h),b.by||f()):(b.IH&&b.u&&!b.C?(c=(0,g.gB)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.u>b.IH,c=b.j&&c-b.j>b.EO||f?b.C=!0:!1):c=!1,c&&(l=Object.assign({},a.lc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.va.ya("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))}; cZ=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.EO?1E3:b.EO,d=void 0===b.IH?3E4:b.IH;b=void 0===b.by?!1:b.by;this.j=this.u=this.B=this.startTimestamp=0;this.C=!1;this.D=Math.ceil(a/1E3);this.EO=c;this.IH=d;this.by=b}; vZa=function(a,b){if(!a.D||a.u)return!1;if(!b)return a.reset(),!1;b=(0,g.gB)();if(!a.startTimestamp)a.startTimestamp=b,a.B=0;else if(a.B>=a.D)return a.u=b,!0;a.B+=1;return!1}; zZa=function(a){g.D.call(this);var b=this;this.va=a;this.Z=this.va.W();this.videoData=this.va.getVideoData();this.policy=new wZa;this.ma=new eZ(this.va);this.playbackData=null;this.Za=new g.lI;this.J=this.u=this.Ga=this.mediaElement=null;this.j=NaN;this.C=0;this.Da=NaN;this.B=null;this.Ba=NaN;this.D=this.K=null;this.V=!1;this.Ua=g.PJ(this.Z.experiments,"html5_qoe_lh_max_report_count");this.fb=g.PJ(this.Z.experiments,"html5_qoe_lh_min_duration_ms");this.ub=NaN;this.Ab=0;this.ea=!1;this.Aa=new g.Qp(function(){xZa(b, !1)},2E3); this.Pb=new g.Qp(function(){gZ(b)}); this.Oa=new g.Qp(function(){b.V=!0;yZa(b,{})}); this.timestampOffset=0;this.ib=!0;this.Ma=0;this.Hb=NaN;this.qa=new g.Qp(function(){var c=b.Z.If;c.j+=1E4/36E5;c.j-c.B>1/6&&(Uva(c),c.B=c.j);b.qa.start()},1E4); this.qb=this.Ja=!1;g.J(this,this.ma);g.J(this,this.Za);g.J(this,this.Aa);g.J(this,this.Oa);g.J(this,this.Pb);g.J(this,this.qa)}; BZa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new qZa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(TM(a.videoData)&&a.Ga){var c=a.Ga.bF.bj()||0;break a}if(a.videoData.j){c=a.videoData.j.ma;break a}}c=0}return c}),a.u=new $Y(a.videoData,a.Z.experiments,function(){return a.Ee(!0)})); AZa(a)||(a.C=a.C||a.videoData.startSeconds||0)}; DZa=function(a,b){(a.Ga=b)?CZa(a,!0):hZ(a)}; EZa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.J&&d){var e=a.J;if(e.j&&!(c>=e.u&&ce.C||3E3>g.Ya()-e.J||(e.J=g.Ya(),e.u.push(f),50=a.Ua,0!==a.fb&&b<=a.fb||c||(b=a.va.Jc(),b.qoe&&sYa(b.qoe,d),a.Ja=d,a.Ab++,a.ub=a.getCurrentTime())))}; xZa=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!bZ(c,d)&&c.xq()?(c.policy.K&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d=a.Ee()-.1){a.j=a.Ee();a.B.resolve(a.Ee());qW(a.va);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.ma.j=c;a.Ba=c;a.C=a.j}catch(d){}}}}; KZa=function(a){if(!a.mediaElement||0===a.mediaElement.wj()||0a.Ee()||dMath.random())try{g.ZD(new g.yA("b/152131571",btoa(f)))}catch(da){}return y.return(Promise.reject(new xL(t,{backend:"gvi"},u)))}})}; XZa=function(a,b){function c(G){if(!a.isDisposed()){G=G?G.status:-1;var M=0,N=((0,g.gB)()-p).toFixed();N=e.N("html5_use_network_error_code_enums")?{backend:"gvi",rc:G,rt:N}:{backend:"gvi",rc:""+G,rt:N};var H="manifest.net.connect";429===G?(H="auth",M=2):200t.j&&3!==t.provider.va.getVisibilityState()&& gYa(t);q.qoe&&(q=q.qoe,q.Ja&&0>q.u&&q.provider.Z.Xf&&AYa(q));p.Ga&&kZ(p);p.Z.ao&&!p.videoData.backgroundable&&p.mediaElement&&!p.Ch()&&(p.isBackground()&&p.mediaElement.HE()?(p.ya("bgmobile",{suspend:1}),p.Gn(!0,!0)):p.isBackground()||lZ(p)&&p.ya("bgmobile",{resume:1}));p.N("html5_log_tv_visibility_playerstate")&&g.bL(p.Z)&&p.ya("vischg",{vis:p.getVisibilityState(),ps:p.playerState.state.toString(16)})}; this.ke={hp:function(q){p.hp(q)}, t9a:function(q){p.De=q}, l8a:function(){return p.Xs}, JL:function(){return p.yC}}; this.Xi=new XY(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.uE("endcr")||g.BO(p.playerState,32)||qW(p); e(q,t,p.playerType)}); g.J(this,this.Xi);g.J(this,this.Cd);b_a(this,m);this.videoData.subscribe("dataupdated",this.J7,this);this.videoData.subscribe("dataloaded",this.FK,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ya,this);this.videoData.subscribe("ctmpstr",this.CO,this);this.SK();HQa(this.Dg);this.visibility.subscribe("visibilitystatechange",this.Dg)}; fJ=function(a){return a.N("html5_not_reset_media_source")&&!a.Hk()&&!a.videoData.isLivePlayback&&g.yN(a.videoData)}; b_a=function(a,b){if(2===a.playerType||a.Z.oo)b.DU=!0;var c=Fwa(b.Ae,b.zx,a.Z.C,a.Z.J);c&&(b.adFormat=c);2===a.playerType&&(b.fm=!0);if(a.isFullscreen()||a.Z.C)c=g.mA("yt-player-autonavstate"),b.autonavState=c||(a.Z.C?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&c_a(a,b.endSeconds)}; e_a=function(a){if(a.videoData.Ma){var b=a.Lf.qd();a.videoData.Az=a.videoData.Az||(null==b?void 0:b.yL());a.videoData.aA=a.videoData.aA||(null==b?void 0:b.BL())}if(vya(a.videoData)||!JN(a.videoData))b=a.videoData.errorDetail,a.Pg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Mm||void 0);1===a.playerType&&nZ.isActive()&&a.vH.start();a.videoData.Zi=a.getUserAudio51Preference();a.N("html5_generate_content_po_token")&&d_a(a)}; f_a=function(a){aZa(a.Xs);g.kb(a.Xs);if(a.N("html5_enable_logging_manager")){for(var b=a.yC,c=g.v(b.j.values()),d=c.next();!d.done;d=c.next())aZa(d.value);b.j.clear();g.kb(a.yC)}}; EO=function(a){return a.mediaElement&&a.mediaElement.mu()?a.mediaElement.wb():null}; oZ=function(a){if(a.videoData.Oe())return!0;a.Pg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.oW=function(a,b){(b=void 0===b?!1:b)||ZYa(a.Jc());a.Ss=b;!oZ(a)||a.ip.Ts()?g.bL(a.Z)&&a.videoData.isLivePlayback&&a.ip.Ts()&&!a.ip.finished&&!a.Ss&&a.FK():(a.ip.start(),b=a.Jc(),g.pW(b.provider),b.qoe&&vYa(b.qoe),a.FK())}; g_a=function(a){var b=a.videoData;$Za(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=zL(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Pg(c.errorCode,2,unescape(a.videoData.errorReason),wL(c.details),a.videoData.errorDetail,a.videoData.Mm||void 0):a.handleError(c))})}; QQa=function(a,b){a.rd=b;a.Ga&&IWa(a.Ga,new g.tY(b))}; i_a=function(a){if(!g.BO(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Bn=g.Gb(a.videoData.Ba)),mN(a.videoData)){a.xb.tick("bpd_s");pZ(a).then(function(){a.xb.tick("bpd_c");if(!a.isDisposed()){a.Ss&&(a.wc(tP(tP(a.playerState,512),1)),lZ(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&c_a(a,c.endSeconds);a.ip.finished=!0;qZ(a,"dataloaded");a.Pq.Ts()&&h_a(a);fYa(a.Mi,a.Ff)}}); a.N("html5_log_media_perf_info")&&a.ya("loudness",{v:a.videoData.Ci.toFixed(3)},!0);var b=Fya(a.videoData);b&&a.ya("playerResponseExperiment",{id:b},!0);a.mK()}else qZ(a,"dataloaded")}; pZ=function(a){rZ(a);a.Ff=null;var b=pZa(a.Z,a.videoData,a.Ch());a.dD=b;a.dD.then(function(c){j_a(a,c)},function(c){a.isDisposed()||(c=zL(c),a.visibility.isBackground()?(sZ(a,"vp_none_avail"),a.dD=null,a.ip.reset()):(a.ip.finished=!0,a.Pg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",wL(c.details))))}); return b}; FY=function(a){pZ(a).then(function(){return lZ(a)}); g.xP(a.playerState)&&a.playVideo()}; j_a=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Ff=b;BZa(a.Cd,a.Ff);if(a.videoData.isLivePlayback){var c=KRa(a.Lf.gt,a.videoData.videoId)||a.Ga&&!isNaN(a.Ga.ma);c=a.N("html5_onesie_live")&&c;0IK(b.Z.If,"sticky-lifetime")?"auto":FF[AJ()]:d=FF[AJ()],d=g.DF("auto",d,!1,"s");if(EF(d)){d=RXa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.v(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.j)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Ema()&&!g.bL(b.Z)&&UF(c.j.videoInfos[0])&& (f=Math.min(f,g.CF.large));d=e.call(d,new BF(0,f,!1,"o"));e=d.compose;f=4320;!b.Z.u||g.UK(b.Z)||b.Z.N("hls_for_vod")||b.Z.N("mweb_remove_360p_cap")||(f=g.CF.medium);(h=g.PJ(b.Z.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Ni&&!c.videoData.Td&&(f=Math.min(f,h));h=g.PJ(b.Z.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.PJ(b.Z.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.v(l.videoInfos),m=l.next();!m.done;m= l.next())if(32h&&0!==h&&b.j===h)){var l;f=TXa(c,null==(l=e.j)?void 0:l.videoInfos);l=c.va.getPlaybackRate();1b.j&&"b"===b.reason;d=a.He.ib&&!$I();c||e||b||d?qY(a.va, {reattachOnConstraint:c?"u":e?"drm":d?"codec":"perf"}):rY(a)}}}; q_a=function(a){var b;return!!(a.N("html5_native_audio_track_switching")&&g.YA&&(null==(b=a.videoData.B)?0:eI(b)))}; r_a=function(a){if(!q_a(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1n&&(n+=l.j);for(var p=0;pa.Ya.getDuration()&&a.Ya.Xk(d)):a.Ya.Xk(e);var f=a.Ga,h=a.Ya;f.policy.Aa&&(f.policy.Ba&&f.ya("loader",{setsmb:0}),f.yk(),f.policy.Aa=!1);yWa(f);if(!gJ(h)){var l=aX(f.videoTrack),m=aX(f.audioTrack),n=(l?l.info.j:f.videoTrack.j).info,p=(m?m.info.j:f.audioTrack.j).info,q=f.policy.wl,t=n.mimeType+(void 0===q?"":q),u=p.mimeType,y=n.Qb,B=p.Qb,G,M=null==(G=h.Ya)?void 0:G.addSourceBuffer(u), N,H="fakesb"===t.split(";")[0]?void 0:null==(N=h.Ya)?void 0:N.addSourceBuffer(t);h.Fg&&(h.Fg.webkitSourceAddId("0",u),h.Fg.webkitSourceAddId("1",t));var U=new ZI(M,h.Fg,"0",$H(u),B,!1),aa=new ZI(H,h.Fg,"1",$H(t),y,!0);oua(h,U,aa)}KX(f.videoTrack,h.u||null);KX(f.audioTrack,h.j||null);f.Ya=h;f.Ya.C=!0;f.resume();g.zE(h.j,f.Ba,f);g.zE(h.u,f.Ba,f);try{f.nf()}catch(da){g.YD(da)}a.oa("mediasourceattached")}}catch(da){g.ZD(da),a.handleError(new xL("fmt.unplayable",{msi:"1",ename:da.name},1))}} x_a(a);a.Ya=b;fJ(a)&&"open"===hJ(a.Ya)?c(a.Ya):nua(a.Ya,c)}; x_a=function(a){if(a.Ga){var b=a.getCurrentTime()-a.Kd();a.N("html5_skip_loader_media_source_seek")&&a.Ga.getCurrentTime()===b||a.Ga.seek(b,{}).bk(function(){})}else k_a(a)}; DY=function(a,b){b=void 0===b?!1:b;var c,d,e;return g.A(function(f){if(1==f.j){a.Ga&&a.Ga.Xu();a.Ga&&a.Ga.isDisposed()&&rZ(a);if(a.N("html5_enable_vp9_fairplay")&&a.Hk()&&null!=(c=a.videoData.j)){var h=c,l;for(l in h.j)h.j.hasOwnProperty(l)&&(h.j[l].j=null,h.j[l].C=!1)}a.wc(tP(a.playerState,2048));a.oa("newelementrequired");return b?g.z(f,pZ(a),2):f.La(2)}a.videoData.Tc()&&(null==(d=a.Ga)?0:d.ma)&&((e=a.isAtLiveHead())&&RM(a.videoData)?a.seekTo(Infinity,{ue:"videoPlayer_getNewElement"}):a.videoData.Ne&& a.Ga&&(h=a.Ga,h.Ta.Tc&&(h.Ta.Ne||h.Ta.B||h.Ta.isPremiere?(h.seek(0,{ue:"loader_resetSqless"}),h.videoTrack.K=!0,h.audioTrack.K=!0,h.videoTrack.D=!0,h.audioTrack.D=!0):xJ(h.Ta)&&sY(h))));g.BO(a.playerState,8)&&a.playVideo();g.wa(f)})}; CQa=function(a,b){a.ya("newelem",{r:b});DY(a)}; y_a=function(a){a.xb.C.tN();g.BO(a.playerState,32)||(a.wc(tP(a.playerState,32)),g.BO(a.playerState,8)&&a.pauseVideo(!0),a.oa("beginseeking",a));a.zc()}; $Qa=function(a){g.BO(a.playerState,32)?(a.wc(vP(a.playerState,16,32)),a.oa("endseeking",a)):g.BO(a.playerState,2)||a.wc(tP(a.playerState,16));a.xb.C.xN(a.videoData,g.wP(a.playerState))}; kKa=function(a){var b=0;if(a.rd){if(a.rd.Pp)return"D,";b=a.rd.xL()}else a.rf&&(b=a.rf.xL());return 0b.j&&(b.j=c,b.delay.start());b.u=c;b.C=c;g.Rp(a.oK);a.oa("playbackstarted");g.GA()&&((a=g.Na("yt.scheduler.instance.clearPriorityThreshold"))?a():HA(0))}; C_a=function(a){var b=a.getCurrentTime(),c=a.Lf.Pd();!tF("pbs",a.xb.timerName)&&SE.measure&&SE.getEntriesByName&&(SE.getEntriesByName("mark_nr")[0]?nsa("mark_nr"):nsa());c.videoId&&a.xb.info("docid",c.videoId);c.eventId&&a.xb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.N("web_player_early_cpn")&&a.xb.info("cpn",c.clientPlaybackNonce);0a.cV+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&sJ(a.videoData.j))){var b=a.Jc();if(b.qoe){b=b.qoe;var c=b.provider.va.RB(),d=g.pW(b.provider);qYa(b,d,c);c=c.B;isNaN(c)||g.HY(b,d,"e2el",[c.toFixed(3)])}}g.nL(a.Z)&&a.ya("rawlat",{l:kS(a.pP,"rawlivelatency").toFixed(3)});a.cV=Date.now()}a.videoData.B&&eI(a.videoData.B)&&(b=EO(a))&&b.videoHeight!==a.KM&&(a.KM=b.videoHeight,n_a(a,"a",p_a(a,a.videoData.Za)))}; p_a=function(a,b){if("auto"===b.j.video.quality&&eI(b.Bh())&&a.videoData.od)for(var c=g.v(a.videoData.od),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.KM&&"auto"!==d.j.video.quality)return d.Bh();return b.Bh()}; a_a=function(a){if(!RM(a.videoData))return NaN;var b=0;a.Ga&&a.videoData.j&&(b=TM(a.videoData)?a.Ga.bF.bj()||0:a.videoData.j.ma);return Date.now()/1E3-a.Pf()-b}; H_a=function(a){a.mediaElement&&a.mediaElement.Ch()&&(a.tG=(0,g.gB)());a.Z.So?g.Xy(function(){G_a(a)},0):G_a(a)}; G_a=function(a){var b;if(null==(b=a.Ya)||!b.Ul()){if(a.mediaElement)try{a.mH=a.mediaElement.playVideo()}catch(d){sZ(a,"err."+d)}if(a.mH){var c=a.mH;c.then(void 0,function(d){if(!(g.BO(a.playerState,4)||g.BO(a.playerState,256)||a.mH!==c||d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))){var e="promise";d&&d.name&&(e+=";m."+d.name);sZ(a,e);a.BS=!0;a.videoData.JI=!0}})}}}; sZ=function(a,b){g.BO(a.playerState,128)||(a.wc(vP(a.playerState,1028,9)),a.ya("dompaused",{r:b}),a.oa("onAutoplayBlocked"))}; lZ=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=w_a(a);var d;null==(d=a.Ga)||d.resume()}else rZ(a),a.videoData.Za&&(c=a.videoData.Za.JA());b=c;d=a.mediaElement.HE();c=!1;d&&d.equals(b)||(I_a(a,b),c=!0);g.BO(a.playerState,2)||(b=a.Cd,b.D||!(0=c&&b<=d}; m0a=function(a){if(!(g.BO(a.Cb.getPlayerState(),64)&&a.Pd().isLivePlayback&&5E3>a.Eb.startTimeMs)){if("repeatChapter"===a.Eb.type){var b,c=null==(b=cJa(a.yb()))?void 0:b.AB(),d;b=null==(d=a.getVideoData())?void 0:d.Jj;c instanceof g.UT&&b&&(d=b[yU(b,a.Eb.startTimeMs)],c.vD(0,d.title));isNaN(Number(a.Eb.loopCount))?a.Eb.loopCount=0:a.Eb.loopCount++;1===a.Eb.loopCount&&a.G.Pa("innertubeCommand",a.getVideoData().w1)}a.Cb.seekTo(.001*a.Eb.startTimeMs,{ue:"application_loopRangeStart"})}}; V_a=function(a,b){var c=a.Wa.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b}; NZ=function(a,b,c){if(a.tf(c)){c=c.getVideoData();if(MZ(a))c=b;else{a=a.rd;for(var d=g.v(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Oc===e.Oc){b+=e.Fc/1E3;break}d=b;a=g.v(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Oc===e.Oc)break;var f=e.Fc/1E3;if(fd?e=!0:1=b?b:0;this.j=a=l?function(){return new WC("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=W2a(m,c,d,function(q){var t=n(q),u=q.slotId; q=O2a(h);u=iE(e.gb.get(),"LAYOUT_TYPE_SURVEY",u);var y={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",eb:"core"},B=new z0(e.j,d),G=new F0(e.j,u),M=new G0(e.j,u),N=new X2a(e.j);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",Ub:new Map,layoutExitNormalTriggers:[B,N],layoutExitSkipTriggers:[G],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[M],Uc:[],eb:"core",Ca:new VZ([new c1a(h),new o_(b),new R_(l/1E3),new U_(q)]),Ac:t(y),adLayoutLoggingData:h.adLayoutLoggingData}}); m=U2a(a,c,p.slotId,d,e,m,n);return m instanceof WC?m:[p].concat(g.oa(m))}}; g3a=function(a,b,c,d,e,f){var h=[];try{var l=[];if(c.renderer.linearAdSequenceRenderer)var m=function(y){y=Z2a(y.slotId,c,b,e(y),d,f);l=y.e9;return y.A2}; else if(c.renderer.instreamVideoAdRenderer)m=function(y){var B=y.slotId;y=e(y);var G=c.config.adPlacementConfig,M=$2a(G),N=M.tT;M=M.wT;var H=c.renderer.instreamVideoAdRenderer,U;if(null==H?0:null==(U=H.playerOverlay)?0:U.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var aa=a3a(H);U=Math.min(N+1E3*aa.videoLengthSeconds,M);M=new VN(0,[aa.videoLengthSeconds],U);var da=aa.videoLengthSeconds,ua=aa.playerVars,la=aa.instreamAdPlayerOverlayRenderer,X=aa.adVideoId, ma=b3a(c),Y=aa.Ub;aa=aa.qS;var Ca=null==H?void 0:H.adLayoutLoggingData;H=null==H?void 0:H.sodarExtensionData;B=iE(b.gb.get(),"LAYOUT_TYPE_MEDIA",B);var W={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",eb:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",Ub:Y,layoutExitNormalTriggers:[new c3a(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"core",Ca:new VZ([new u_(d),new E_(da),new F_(ua),new I_(N),new J_(U),la&&new v_(la),new o_(G),new t_(X), new p_(M),new N_(ma),H&&new H_(H),new B_({current:null}),new L_({}),new W_(aa)].filter(d3a)),Ac:y(W),adLayoutLoggingData:Ca}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var n=e3a(a,d,c.adSlotLoggingData,m);h.push(n);for(var p=g.v(l),q=p.next();!q.done;q=p.next()){var t=q.value,u=t(a,e);if(u instanceof WC)return u;h.push.apply(h,g.oa(u))}}catch(y){return new WC(y,{errorMessage:y.message,AdPlacementRenderer:c,numberOfSurveyRenderers:f3a(c)})}return h}; f3a=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.Q(b,aQ))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0}; Z2a=function(a,b,c,d,e,f){var h=b.config.adPlacementConfig,l=$2a(h),m=l.tT,n=l.wT;l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==l||!l.length)throw new TypeError("Expected linear ads");var p=[],q={XX:m,YX:0,b9:p};l=l.map(function(u){return h3a(a,u,q,c,d,h,e,n)}).map(function(u,y){y=new VN(y,p,n); return u(y)}); var t=l.map(function(u){return u.B2}); return{A2:i3a(c,a,m,t,h,b3a(b),d,n,f),e9:l.map(function(u){return u.d9})}}; h3a=function(a,b,c,d,e,f,h,l){var m=a3a(g.Q(b,aQ)),n=c.XX,p=c.YX,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.XX=q;c.YX++;c.b9.push(m.videoLengthSeconds);var t,u,y=null==(t=g.Q(b,aQ))?void 0:null==(u=t.playerOverlay)?void 0:u.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==y)throw new TypeError("Survey slate media has no survey overlay");return function(B){var G=m.playerVars;2<=B.u&&(G.slot_pos=B.j);G.autoplay="1";var M,N;G=m.videoLengthSeconds;var H=m.playerVars,U=m.Ub,aa=m.qS,da=m.instreamAdPlayerOverlayRenderer, ua=m.adVideoId,la=null==(M=g.Q(b,aQ))?void 0:M.adLayoutLoggingData;M=null==(N=g.Q(b,aQ))?void 0:N.sodarExtensionData;N=iE(d.gb.get(),"LAYOUT_TYPE_MEDIA",a);var X={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};B={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",Ub:U,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"adapter",Ca:new VZ([new u_(h),new E_(G),new F_(H),new I_(n),new J_(q),new K_(p),new B_({current:null}), da&&new v_(da),new o_(f),new t_(ua),new p_(B),M&&new H_(M),y&&new k1a(y),new L_({}),new W_(aa)].filter(d3a)),Ac:e(X),adLayoutLoggingData:la};G=Y2a(g.Q(b,aQ),f,h,B.layoutId,d);return{B2:B,d9:G}}}; a3a=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=My(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e|| (e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,Ub:a.pings?YN(a.pings):new Map,qS:XN(a.pings)}}; b3a=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; $2a=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{tT:b,wT:a}}; k3a=function(a,b,c,d,e,f,h){var l=c.pings;return l?[j3a(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=iE(b.gb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",eb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ub:YN(l),layoutExitNormalTriggers:[new x0(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"core",Ca:new VZ([new o_(d)]), Ac:m(q),adLayoutLoggingData:p}})]:new WC("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})}; m3a=function(a,b,c,d,e,f,h,l){a=l3a(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=iE(b.gb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",eb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ub:q,layoutExitNormalTriggers:[new E0(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"core",Ca:new VZ([new h1a(e),new o_(c)]),Ac:m(p)}}); return a instanceof WC?a:[a]}; r3a=function(a,b,c,d,e,f,h,l){a=n3a(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=iE(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=o3a(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,p3a(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=iE(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=o3a(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,p3a(b,n,p))):q.imageOverlayAdContentRenderer?(q=iE(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=p3a(b,n,p),n.push(new q3a(b.j,q)),n=o3a(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new Y_("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new Y_("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof WC?a:[a]}; u3a=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new WC("Expected valid duration for AdActionInterstitialRenderer."):function(p){return s3a(b,p.slotId,c,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return t3a(a,q,e,function(t,u){var y=t.slotId;t=h(t);y=iE(b.gb.get(),"LAYOUT_TYPE_ENDCAP", y);return Q2a(b,y,u,c,t,"LAYOUT_TYPE_ENDCAP",[new x_(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}}; v3a=function(a,b,c,d){if(!c.playerVars)return new WC("No playerVars available in AdIntroRenderer.");var e=My(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=iE(a.gb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",eb:"adapter"};return{Xj:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ub:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"adapter",Ca:new VZ([new M_({}), new o_(b),new B_({current:null}),new F_(e)]),Ac:f(l)},Gl:[new D0(a.j,h,["error"])],Aj:[],Wx:[],Vx:[]}}}; x3a=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=N2a(e);if(!K2a(e,n))return new WC("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new WC("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=R2a(a,b,e,f,c,d,h);return q instanceof WC?q:function(t){return w3a(b,t.slotId,c,p,O2a(e),h(t),q,l,m)}}; y3a=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.Q(a.ctaButton,g.WM)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.Q(a.backgroundImage,S0)&&(null==(b=g.Q(a.backgroundImage,S0))?0:b.landscape)?!0:!1}; A3a=function(a,b,c,d,e,f,h,l){function m(q){return t3a(a,q,d,n)} function n(q,t){var u=q.slotId;q=h(q);u=iE(b.gb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",u);return Q2a(b,u,t,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new b1a(e),f],e.adLayoutLoggingData)} if(!y3a(e))return new WC("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},u=h(q);q=z3a(b,q.slotId,c,p,t,new Map,u,m);t=new z_(q.gH);u=new q_(l);return{Xj:{layoutId:q.layoutId,layoutType:q.layoutType,Ub:q.Ub,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], Uc:[],eb:q.eb,Ca:new VZ([].concat(g.oa(q.Tx),[t,u])),Ac:q.Ac,adLayoutLoggingData:q.adLayoutLoggingData},Gl:[],Aj:q.layoutExitMuteTriggers,Wx:q.layoutExitUserInputSubmittedTriggers,Vx:q.Uc,Eg:q.Eg}}}; C3a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,y,B){a=hE(a,"SLOT_TYPE_PLAYER_BYTES");d=n2a(b,h,d,e,a,n,p);if(d instanceof WC)return d;var G;h=null==(G=WZ(d.Ca,"metadata_type_fulfilled_layout"))?void 0:G.layoutId;if(!h)return new WC("Invalid adNotify layout");b=B3a(h,b,c,e,f,m,l,n,q,t,u,y,B);return b instanceof WC?b:[d].concat(g.oa(b))}; B3a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){c=D3a(b,c,d,f,h,l,m,n,p,q,t);E3a(f)?(d=F3a(b,a),a=hE(b.gb.get(),"SLOT_TYPE_IN_PLAYER"),f=iE(b.gb.get(),"LAYOUT_TYPE_SURVEY",a),l=G3a(b,d,l),b=[].concat(g.oa(l.slotExpirationTriggers),[new C0(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,eb:l.eb},{slotId:a,layoutId:f}),e=a instanceof WC?a:{Rv:Object.assign({}, l,{slotExpirationTriggers:b,Ca:new VZ([new O_(a.layout)]),adSlotLoggingData:e}),pg:a.pg}):e=r2a(b,a,l,e,c);return e instanceof WC?e:[].concat(g.oa(e.pg),[e.Rv])}; J3a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){b=D3a(a,b,c,e,f,h,m,n,p,q,t);E3a(e)?(e=H3a(a,c,h,l),e instanceof WC?a=e:(l=hE(a.gb.get(),"SLOT_TYPE_IN_PLAYER"),m=iE(a.gb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.oa(e.slotExpirationTriggers),[new C0(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,eb:e.eb,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof WC?l:{Rv:{slotId:e.slotId, slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:I3a(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h,eb:e.eb,Ca:new VZ([new X_(T0(c)),new O_(l.layout)]),adSlotLoggingData:d},pg:l.pg})):a=s2a(a,c,h,l,d,m.Tc,b);return a instanceof WC?a:a.pg.concat(a.Rv)}; E3a=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(g.Q(b.value,s0))return!0;return!1}; D3a=function(a,b,c,d,e,f,h,l,m,n,p){return function(q,t){if(N0(p)&&O0(p))a:{var u=K3a(d);if(u instanceof WC)t=u;else{for(var y=0,B=[],G=[],M=[],N=[],H=[],U=[],aa=new C_({current:null}),da=new s_({current:null}),ua=!1,la=[],X=0,ma=[],Y=0;Y=m)return new WC("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new C_({current:null}),p=R2a(a,b,c,n,d,f,h);return M3a(a,d,f,m,e,function(q,t){var u=q.slotId,y=O2a(c);q=h(q);u=iE(b.gb.get(),"LAYOUT_TYPE_MEDIA_BREAK",u);var B={layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", eb:"core"},G=p(u,t);WZ(G.Ca,"metadata_type_fulfilled_layout")||bE("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");y=[new o_(d),new S_(m),new U_(y),n];return{H4:{layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ub:new Map,layoutExitNormalTriggers:[new E0(b.j,u)],layoutExitSkipTriggers:[new F0(b.j,t.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new G0(b.j,t.layoutId)],Uc:[],eb:"core",Ca:new VZ(y),Ac:q(B)}, a4:G}})}; O3a=function(a){if(!X1a(a))return!1;var b=g.Q(a.adVideoStart,$P);return b?g.Q(a.linearAd,aQ)&&SO(b)?!0:(bE("Invalid Sandwich with notify"),!1):!1}; P3a=function(a){if(null==a.linearAds)return!1;a=g.Q(a.adStart,$P);return a?SO(a)?!0:(bE("Invalid LASR with notify"),!1):!1}; Q3a=function(a){if(!W1a(a))return!1;a=g.Q(a.adStart,$P);return a?SO(a)?!0:(bE("Invalid LASR with notify"),!1):!1}; V0=function(a,b,c,d,e,f,h,l){this.gb=a;this.Nb=b;this.Db=c;this.Ea=d;this.Ob=e;this.j=f;this.Cj=h;this.loadPolicy=void 0===l?1:l}; Kpa=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length&&0===c.length)return n;b=b.filter(M1a);var p=c.filter(V1a),q=d.filter(M1a),t=new Map,u=z2a(b),y=c.some(function(Y){var Ca;return"SLOT_TYPE_PLAYER_BYTES"===(null==Y?void 0:null==(Ca=Y.adSlotMetadata)?void 0:Ca.slotType)}); c=c.some(function(Y){var Ca;return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==Y?void 0:null==(Ca=Y.adSlotMetadata)?void 0:Ca.slotType)}); if(y||c)c=C2a(p,b,l,e,u,a.Ob.get(),a.loadPolicy,t,a.Ea.get(),a.gb.get()),c instanceof WC?bE(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.oa(c));c=g.v(b);for(p=c.next();!p.done;p=c.next()){p=p.value;var B=R3a(a,t,p,e,f,h,y,l,u,m);B instanceof WC?bE(B,void 0,void 0,{renderer:p.renderer,config:p.config.adPlacementConfig,kind:p.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.oa(B))}S3a(a.Ea.get())||(f=T3a(a,q,e,l,u,t),n.push.apply(n,g.oa(f)));if(null===a.j||h&&!l.iT){var G, M,N;a=l.Tc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(G=b[0].config)?void 0:null==(M=G.adPlacementConfig)?void 0:M.kind)&&(null==(N=b[0].renderer)?void 0:N.adBreakServiceRenderer);if(!n.length&&!a){var H,U,aa,da;bE("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(H=b[0])?void 0:null==(U=H.config)?void 0:null==(aa=U.adPlacementConfig)?void 0:aa.kind,renderer:null==(da=b[0])?void 0: da.renderer})}return n}G=d.filter(M1a);n.push.apply(n,g.oa(j2a(t,G,a.Nb.get(),a.j,e,y)));if(!n.length){var ua,la,X,ma;bE("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(ua=b[0])?void 0:null==(la=ua.config)?void 0:null==(X=la.adPlacementConfig)?void 0:X.kind,renderer:null==(ma=b[0])?void 0:ma.renderer})}return n}; T3a=function(a,b,c,d,e,f){function h(t){return $Z(a.Ob.get(),t)} var l=[];b=g.v(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&O3a(p)?(bE("Found AdNotify with SandwichedLinearAdRenderer"),q=g.Q(p.adVideoStart,$P),p=g.Q(p.linearAd,aQ),I0(f,n,m.config.adPlacementConfig.kind),n=void 0,q=o2a(null==(n=q)?void 0:n.layout.layoutId,a.Nb.get(),a.Db.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ea.get(),a.Ob.get()),q instanceof WC?bE(q):l.push.apply(l,g.oa(q))): q&&(!q.adLayoutMetadata&&P3a(q)||q.adLayoutMetadata&&Q3a(q))&&(bE("Found AdNotify with LinearAdSequenceRenderer"),I0(f,n,m.config.adPlacementConfig.kind),n=void 0,p=B3a(null==(n=g.Q(q.adStart,$P))?void 0:n.layout.layoutId,a.Nb.get(),a.Db.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,q0(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ea.get()),p instanceof WC?bE(p):l.push.apply(l,g.oa(p)))}return l}; R3a=function(a,b,c,d,e,f,h,l,m,n){function p(G){return $Z(a.Ob.get(),G)} var q=c.renderer,t=c.config.adPlacementConfig,u=t.kind,y=c.adSlotLoggingData,B=l.iT&&"AD_PLACEMENT_KIND_START"===u;B=f&&!B;if(null!=q.adsEngagementPanelRenderer)return J0(b,c.elementId,u,q.adsEngagementPanelRenderer.isContentVideoEngagementPanel,q.adsEngagementPanelRenderer.adVideoId,q.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(G,M,N,H){var U=a.Db.get(),aa=q.adsEngagementPanelRenderer,da=$Z(a.Ob.get(),G);return W0(U,G.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new V0a(aa),M,N,aa.impressionPings,da,q.adsEngagementPanelRenderer.adLayoutLoggingData,H)}),[]; if(null!=q.actionCompanionAdRenderer){if(q.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return f2a(a.Nb.get(),a.j,a.Db.get(),q.actionCompanionAdRenderer,t,y,d,p);J0(b,c.elementId,u,q.actionCompanionAdRenderer.isContentVideoCompanion,q.actionCompanionAdRenderer.adVideoId,q.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(G,M,N,H){var U=a.Db.get(),aa=q.actionCompanionAdRenderer,da=$Z(a.Ob.get(),G);return W0(U,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new j_(aa),M,N,aa.impressionPings,da,q.actionCompanionAdRenderer.adLayoutLoggingData,H)})}else if(q.imageCompanionAdRenderer)J0(b,c.elementId,u,q.imageCompanionAdRenderer.isContentVideoCompanion,q.imageCompanionAdRenderer.adVideoId,q.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(G,M,N,H){var U=a.Db.get(),aa=q.imageCompanionAdRenderer,da=$Z(a.Ob.get(),G); return W0(U,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new X0a(aa),M,N,aa.impressionPings,da,q.imageCompanionAdRenderer.adLayoutLoggingData,H)}); else if(q.shoppingCompanionCarouselRenderer)J0(b,c.elementId,u,q.shoppingCompanionCarouselRenderer.isContentVideoCompanion,q.shoppingCompanionCarouselRenderer.adVideoId,q.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(G,M,N,H){var U=a.Db.get(),aa=q.shoppingCompanionCarouselRenderer,da=$Z(a.Ob.get(),G);return W0(U,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Y0a(aa),M,N,aa.impressionPings,da,q.shoppingCompanionCarouselRenderer.adLayoutLoggingData,H)}); else if(q.adBreakServiceRenderer){if(!b2a(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===u)return a2a(a.Nb.get(),t,y,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==u)return Z1a(a.Nb.get(),t,y,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Cj)return new WC("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Tc||bE("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:u,adPlacementConfig:t, daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Tc),clientPlaybackNonce:l.clientPlaybackNonce});U3a(a.Cj,{adPlacementRenderer:c,contentCpn:d,YS:e})}else{if(q.clientForecastingAdRenderer)return m3a(a.Nb.get(),a.Db.get(),t,y,q.clientForecastingAdRenderer,d,e,p);if(q.invideoOverlayAdRenderer)return r3a(a.Nb.get(),a.Db.get(),t,y,q.invideoOverlayAdRenderer,d,e,p);if((q.linearAdSequenceRenderer||q.instreamVideoAdRenderer)&&B)return g3a(a.Nb.get(),a.Db.get(),c,d,p,n);if(q.linearAdSequenceRenderer&& !B){if(h)return[];I0(b,q,u);if(q.linearAdSequenceRenderer.adLayoutMetadata){if(!W1a(q.linearAdSequenceRenderer))return new WC("Received invalid LinearAdSequenceRenderer.")}else if(null==q.linearAdSequenceRenderer.linearAds)return new WC("Received invalid LinearAdSequenceRenderer.");if(g.Q(q.linearAdSequenceRenderer.adStart,$P)){bE("Found AdNotify in LinearAdSequenceRenderer");b=g.Q(q.linearAdSequenceRenderer.adStart,$P);if(!mza(b))return new WC("Invalid AdMessageRenderer.");c=q.linearAdSequenceRenderer.linearAds; return C3a(a.gb.get(),a.Nb.get(),a.Db.get(),a.Ob.get(),t,y,b,q0(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,p,m,a.loadPolicy,a.Ea.get())}return J3a(a.Nb.get(),a.Db.get(),t,y,q.linearAdSequenceRenderer.linearAds,q0(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,p,m,a.loadPolicy,a.Ea.get())}if(!q.remoteSlotsRenderer||f){if(q.instreamVideoAdRenderer&&!B){if(h)return[];I0(b,q,u);return t2a(a.Nb.get(), a.Db.get(),t,y,q.instreamVideoAdRenderer,d,e,l,p,m,a.loadPolicy,a.Ea.get(),a.Ob.get())}if(q.instreamSurveyAdRenderer)return N3a(a.Nb.get(),a.Db.get(),q.instreamSurveyAdRenderer,t,y,d,p,U0(a.Ea.get(),"supports_multi_step_on_desktop"));if(null!=q.sandwichedLinearAdRenderer)return X1a(q.sandwichedLinearAdRenderer)?g.Q(q.sandwichedLinearAdRenderer.adVideoStart,$P)?(bE("Found AdNotify in SandwichedLinearAdRenderer"),b=g.Q(q.sandwichedLinearAdRenderer.adVideoStart,$P),mza(b)?(c=g.Q(q.sandwichedLinearAdRenderer.linearAd, aQ))?p2a(b,c,t,a.gb.get(),a.Nb.get(),a.Db.get(),a.Ob.get(),y,d,e,l,p,m,a.loadPolicy,a.Ea.get()):new WC("Missing IVAR from Sandwich"):new WC("Invalid AdMessageRenderer.")):J3a(a.Nb.get(),a.Db.get(),t,y,[q.sandwichedLinearAdRenderer.adVideoStart,q.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,p,m,a.loadPolicy,a.Ea.get()):new WC("Received invalid SandwichedLinearAdRenderer.");if(null!=q.videoAdTrackingRenderer)return k3a(a.Nb.get(),a.Db.get(),q.videoAdTrackingRenderer,t,y,d,p)}}return[]}; X0=function(a){g.D.call(this);this.j=a}; SC=function(a,b,c,d){a.j().ij(b,d);c=c();a=a.j();a.Vb.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.v(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;$O(d.Vb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);$O(d.Vb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.cc(c.slotId))throw new WC("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(b0(e,c))throw new WC("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.wf.Wp.has(c.slotType))throw new WC("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.wf.ir.has(c.slotType))throw new WC("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");H1a(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);H1a(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", c.slotFulfillmentTriggers);H1a(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=i0(f,h);if(b0(f,c))throw new WC("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new C1a(c));f.j.set(h,l)}catch(la){la instanceof WC&&la.qk?(Z_(d.Vb,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",la.qk,c),bE(la,c,void 0,void 0,la.wu)):(Z_(d.Vb,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", c),bE(la,c));break a}b0(d.j,c).J=!0;try{var m=d.j,n=b0(m,c),p=c.slotEntryTrigger,q=m.wf.jl.get(p.triggerType);q&&(q.Vk("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Aa.set(p.triggerId,q));for(var t=g.v(c.slotFulfillmentTriggers),u=t.next();!u.done;u=t.next()){var y=u.value,B=m.wf.jl.get(y.triggerType);B&&(B.Vk("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,c,null),n.ma.set(y.triggerId,B))}for(var G=g.v(c.slotExpirationTriggers),M=G.next();!M.done;M=G.next()){var N=M.value,H=m.wf.jl.get(N.triggerType);H&&(H.Vk("TRIGGER_CATEGORY_SLOT_EXPIRATION", N,c,null),n.ea.set(N.triggerId,H))}var U=m.wf.Wp.get(c.slotType).get().zf(m.B,c);n.K=U;var aa=m.wf.ir.get(c.slotType).get().zf(m.D,c);aa.init();n.u=aa}catch(la){la instanceof WC&&la.qk?(Z_(d.Vb,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",la.qk,c),bE(la,c,void 0,void 0,la.wu)):(Z_(d.Vb,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),bE(la,c));$_(d,c,!0);break a}$O(d.Vb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Li(c);for(var da=g.v(d.Nd),ua=da.next();!ua.done;ua= da.next())ua.value.Li(c);o1a(d,c)}}; Y0=function(a,b,c,d){this.yr=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; Z0=function(a,b,c,d){g.D.call(this);var e=this;this.jc=a;this.Nb=b;this.vc=c;this.j=new Map;d.get().addListener(this);g.ob(this,function(){d.isDisposed()||d.get().removeListener(e)})}; Ipa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.v(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof Y0?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):bE("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new qq(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.vc.get().addCueRange(d,c.start,c.end,!1,a)}; $0=function(){g.D.apply(this,arguments);this.Ij=!0;this.al=new Map;this.j=new Map}; V3a=function(a,b){a=g.v(a.al.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; W3a=function(a,b){a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}bE("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.cc(b)),layoutId:b})}; c3a=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; X3a=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; Y3a=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; Z3a=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)}; X2a=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; $3a=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; a1=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)}; a4a=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; q3a=function(a,b){this.durationMs=45E3;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; b4a=function(a){var b=[new y_(a.xp),new v_(a.instreamAdPlayerOverlayRenderer),new f1a(a.kO),new o_(a.adPlacementConfig),new E_(a.videoLengthSeconds),new R_(a.FG)];a.gK&&b.push(new s_(a.gK));return b}; c4a=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:iE(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",eb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ub:new Map,layoutExitNormalTriggers:[new z0(function(l){return jE(f,l)},c.xp)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:b,Ca:d,Ac:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; b1=function(a){var b=this;this.gb=a;this.j=function(c){return jE(b.gb.get(),c)}}; y2a=function(a,b,c,d,e,f){c=new VZ([new w_(c),new o_(d)]);b=iE(a.gb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",eb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ub:new Map,layoutExitNormalTriggers:[new z0(function(h){return jE(a.gb.get(),h)},e)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"core",Ca:c,Ac:f(d),adLayoutLoggingData:void 0}}; M0=function(a,b,c,d,e){var f=b4a(d);return c4a(b,c,d,new VZ(f),e,a.gb.get())}; d4a=function(a,b,c,d,e){var f=b4a(d);f.push(new m_(d.G1));f.push(new n_(d.H1));return c4a(b,c,d,new VZ(f),e,a.gb.get())}; W0=function(a,b,c,d,e,f,h,l,m,n){b=iE(a.gb.get(),c,b);var p={layoutId:b,layoutType:c,eb:"core"},q=new Map;h&&q.set("impression",h);h=[new X3a(a.j,e)];n&&h.push(new D0(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Ub:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"core",Ca:new VZ([d,new o_(f),new y_(e)]),Ac:l(p),adLayoutLoggingData:m}}; p3a=function(a,b,c){var d=[];d.push(new Y3a(a.j,c));b&&d.push(b);return d}; o3a=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,eb:"core"};return{layoutId:b,layoutType:c,Ub:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new C0(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"core",Ca:new VZ([new W0a(d),new o_(e)]),Ac:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; Q2a=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,eb:"core"};return{layoutId:b,layoutType:f,Ub:new Map,layoutExitNormalTriggers:[new z0(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"core",Ca:new VZ([new o_(d)].concat(g.oa(h))),Ac:e(m),adLayoutLoggingData:l}}; s3a=function(a,b,c,d,e,f,h,l,m,n,p,q){a=z3a(a,b,c,d,e,f,h,l,p,q);b=a.Tx;c=new z_(a.gH);d=a.layoutExitSkipTriggers;0=.25*d||c)&&a.td("first_quartile"),(b>=.5*d||c)&&a.td("midpoint"),(b>=.75*d||c)&&a.td("third_quartile"),a=a.h8,b*=1E3,c=a.D())){for(;a.C=u?new qq(1E3*q,1E3*t):new qq(1E3*Math.floor(d+Math.random()*Math.min(u,p)),1E3*t)}p=m}else p={En:wra(c),qD:!1},t=c.startSecs+c.Ug,c.startSecs<=d?m=new qq(1E3*(c.startSecs-4),1E3*t):(q=Math.max(0,c.startSecs-d-10),m=new qq(1E3*Math.floor(d+ Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*t)),p.Go=m;f=Y1a(e,f,h,p,l,[new g1a(c)]);e.Ea.get().G.W().experiments.ob("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Go.start/1E3-d,n=c.startSecs-d,null!=(h=h.G.qd())&&(h=h.Jc(),h.qoe&&(h=h.qoe,h.provider.Z.N("html5_add_dai_smearing_to_qoe")&&(e="t."+g.pW(h.provider).toFixed(3)+";smw."+e.toFixed(0)+";smo."+n.toFixed(0),n=h.j.daism||[],n.push(e),h.j.daism=n)))):n.get().Uh("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Go.start/1E3-d)+";tw."+(c.startSecs- d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})}; e2=function(a,b,c,d,e,f,h,l,m){g.D.call(this);this.j=a;this.B=b;this.u=c;this.jc=d;this.Nb=e;this.Db=f;this.Ob=h;this.Ea=l;this.Va=m;this.Ij=!0}; I5a=function(a,b,c){return x2a(a.Nb.get(),b.contentCpn,b.xp,function(d){return y2a(a.Db.get(),d.slotId,c,b.adPlacementConfig,b.xp,$Z(a.Ob.get(),d))})}; f2=function(a){var b,c=null==(b=WZ(a.Ca,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=WZ(a.Ca,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=WZ(a.Ca,"metadata_type_content_cpn"),f=WZ(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),h=WZ(a.Ca,"metadata_type_player_underlay_renderer"),l=WZ(a.Ca,"metadata_type_ad_placement_config"),m=WZ(a.Ca,"metadata_type_video_length_seconds");var n=TC(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")? WZ(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):TC(a.Ca,"metadata_type_layout_enter_ms")&&TC(a.Ca,"metadata_type_layout_exit_ms")?(WZ(a.Ca,"metadata_type_layout_exit_ms")-WZ(a.Ca,"metadata_type_layout_enter_ms"))/1E3:void 0;return{xp:d,contentCpn:e,kO:c,gK:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,FG:n,inPlayerLayoutId:WZ(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:WZ(a.Ca,"metadata_type_linked_in_player_slot_id")}}; K5a=function(a,b){return J5a(a,b)}; L5a=function(a,b){b=J5a(a,b);if(!b)return null;var c;b.FG=null==(c=WZ(a.Ca,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b}; J5a=function(a,b){var c,d=null==(c=WZ(a.Ca,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;TC(a.Ca,"metadata_ad_video_is_listed")?c=WZ(a.Ca,"metadata_ad_video_is_listed"):b?c=b.isListed:(bE("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);TC(a.Ca,"metadata_type_ad_info_ad_metadata")?b=WZ(a.Ca,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.dk,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(bE("No layout metadata nor AdPlayback specified for AdMetaData"), b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{G1:b,adPlacementConfig:WZ(a.Ca,"metadata_type_ad_placement_config"),H1:c,contentCpn:WZ(a.Ca,"metadata_type_content_cpn"),inPlayerLayoutId:WZ(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:WZ(a.Ca,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:WZ(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,FG:void 0,kO:d,xp:a.layoutId,videoLengthSeconds:WZ(a.Ca, "metadata_type_video_length_seconds")}}; M5a=function(a,b){this.callback=a;this.slot=b}; g2=function(){}; N5a=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c}; O5a=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c;this.u=!1;this.j=0}; P5a=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c}; h2=function(a){this.Ia=a}; i2=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d}; j2=function(a){g.D.call(this);this.UI=a;this.Wb=new Map}; Q5a=function(a,b){for(var c=[],d=g.v(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof G0&&f.triggeringLayoutId===b&&c.push(e)}c.length?g0(a.UI(),c):bE("Survey is submitted but no registered triggers can be activated.")}; k2=function(a,b,c){j2.call(this,a);var d=this;this.Ea=c;b.get().addListener(this);g.ob(this,function(){b.isDisposed()||b.get().removeListener(d)})}; l2=function(a){g.D.call(this);this.j=a;this.Ij=!0;this.Wb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.J=new Set;this.u=new Set}; m2=function(a,b){g.D.call(this);var c=this;this.j=a;this.Wb=new Map;b.get().addListener(this);g.ob(this,function(){b.isDisposed()||b.get().removeListener(c)})}; R5a=function(a,b,c,d){var e=[];a=g.v(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof x0){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(bE("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e}; S5a=function(a){return a instanceof $3a||a instanceof a4a||a instanceof a1}; n2=function(a,b,c,d){g.D.call(this);var e=this;this.u=a;this.vc=b;this.Ia=c;this.Va=d;this.Ij=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);g.ob(this,function(){c.isDisposed()||c.get().removeListener(e)})}; T5a=function(a,b,c,d,e,f,h,l,m,n){if(a.Va.get().fg(1).clientPlaybackNonce!==m)throw new WC("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{Du:new i2(b,c,d,e),Lu:f});a.vc.get().addCueRange(f,h,l,n,a)}; U5a=function(a,b){a=g.v(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;if(b===d.Lu)return c}return""}; o2=function(a){g.D.call(this);this.j=a;this.Ij=!0;this.Wb=new Map}; X1=function(a,b){b=b.layoutId;for(var c=[],d=g.v(a.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof E0){var f;if(f=e.trigger.layoutId===b)f=(f=u1a.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&g0(a.j(),c)}; p2=function(a){g.D.call(this);this.j=a;this.Ij=!0;this.Wb=new Map}; q2=function(a,b,c){g.D.call(this);this.j=a;this.pn=b;this.gb=c;this.pn.get().addListener(this)}; r2=function(a,b,c,d,e,f){g.D.call(this);this.B=a;this.lf=b;this.Ob=c;this.Va=d;this.gb=e;this.Ea=f;this.j=this.u=null;this.C=!1;this.lf.get().addListener(this)}; uza=function(a,b,c,d,e){var f=hE(a.gb.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],eb:"surface",Ca:new VZ([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Ub:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uc:[],eb:"surface",Ca:new VZ(c),Ac:P0a(ZZ(a.Ob.get()),f,"SLOT_TYPE_PLAYER_BYTES", 1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};r1a(a.B(),a.u,a.j);d&&(s1a(a.B(),a.u,a.j),a.C=!0,f0(a.B(),a.u,a.j))}; s2=function(a){this.nu=a}; V5a=function(a,b){if(!a)return{vu:[],adSlots:[],Yz:!0,ssdaiAdsConfig:void 0};a.trackingParams&&RP(a.trackingParams);if(a.adThrottled)return{vu:[],adSlots:[],Yz:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[];c=a.playerAds;if(!c||!c.length)return{vu:[],adSlots:d,Yz:!1,ssdaiAdsConfig:void 0};c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)}); if(!c.length)return{vu:[],adSlots:d,Yz:!1,ssdaiAdsConfig:void 0};if(0e&&h.dA(p,e-d);return p}; h6a=function(a,b){var c=WZ(b.Ca,"metadata_type_sodar_extension_data");if(c)try{P4a(0,c)}catch(d){bE("Unexpected error when loading Sodar",a,b,{error:d})}}; j6a=function(a,b,c,d,e,f){i6a(a,b,new g.HO(c,new g.rP),d,e,!1,f)}; i6a=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;u5a(c)&&Y1(e,0,null)&&(!M1(a,"impression")&&h&&h(),a.td("impression"));M1(a,"impression")&&(g.JO(c,4)&&!g.JO(c,2)&&a.ph("pause"),0>IO(c,4)&&!(0>IO(c,2))&&a.ph("resume"),g.JO(c,16)&&.5<=e&&a.ph("seek"),f&&g.JO(c,2)&&k6a(a,c.state,b,d,e))}; k6a=function(a,b,c,d,e,f,h){if(M1(a,"impression")){var l=1>=Math.abs(d-e);l6a(a,b,l?d:e,c,d,f,h&&l);l&&a.td("complete")}}; l6a=function(a,b,c,d,e,f,h){L1(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.BO(b,16))||(null==b?0:g.BO(b,32))||(Y1(c,.25*e,d)&&(f&&!M1(a,"first_quartile")&&f("first"),a.td("first_quartile")),Y1(c,.5*e,d)&&(f&&!M1(a,"midpoint")&&f("second"),a.td("midpoint")),Y1(c,.75*e,d)&&(f&&!M1(a,"third_quartile")&&f("third"),a.td("third_quartile")))}; m6a=function(a,b){M1(a,"impression")&&a.ph(b?"fullscreen":"end_fullscreen")}; n6a=function(a){M1(a,"impression")&&a.ph("clickthrough")}; o6a=function(a){a.ph("active_view_measurable")}; p6a=function(a){M1(a,"impression")&&!M1(a,"seek")&&a.ph("active_view_fully_viewable_audible_half_duration")}; q6a=function(a){M1(a,"impression")&&!M1(a,"seek")&&a.ph("active_view_viewable")}; r6a=function(a){M1(a,"impression")&&!M1(a,"seek")&&a.ph("audio_audible")}; s6a=function(a){M1(a,"impression")&&!M1(a,"seek")&&a.ph("audio_measurable")}; t6a=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.vf=d;this.bb=e;this.Ia=f;this.ge=h;this.Rb=l;this.qf=m;this.Ea=n;this.Qa=p;this.Va=q;this.mG=!0;this.Oc=this.Gc=null;this.adCpn=void 0}; u6a=function(a,b,c){var d;a.Qa.get().Uh("ads_qua","cpn."+WZ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Va.get().fg(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; v6a=function(a,b){var c,d;a.Qa.get().Uh("ads_imp","cpn."+WZ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Va.get().fg(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.Q(null==(d=WZ(a.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,P0))}; w6a=function(a){return{enterMs:WZ(a.Ca,"metadata_type_layout_enter_ms"),exitMs:WZ(a.Ca,"metadata_type_layout_exit_ms")}}; x6a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){z2.call(this,a,b,c,d,e,h,l,m,n,q);this.ge=f;this.qf=p;this.Rb=t;this.Ea=u;this.Oc=this.Gc=null}; y6a=function(a,b){var c;a.Qa.get().Uh("ads_imp","acpn."+(null==(c=a.Va.get().fg(2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; z6a=function(a,b,c){var d;a.Qa.get().Uh("ads_qua","cpn."+WZ(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Va.get().fg(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; A6a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,y,B,G,M,N){this.df=a;this.u=b;this.Va=c;this.vf=d;this.Ia=e;this.Qa=f;this.ge=h;this.Af=l;this.Rb=m;this.qf=n;this.Ce=p;this.vc=q;this.Nc=t;this.Fd=u;this.dg=y;this.Sb=B;this.jg=G;this.Ea=M;this.j=N}; A2=function(a){g.D.call(this);this.j=a;this.Wb=new Map}; B2=function(a,b){for(var c=[],d=g.v(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&g0(a.j(),c)}; C2=function(a,b){g.D.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.ob(this,function(){b.isDisposed()||b.get().removeListener(c)}); var d;this.j=(null==(d=b.get().Nu)?void 0:d.slotId)||null}; B6a=function(a,b){var c=[];a=g.v(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; C6a=function(a){this.G=a}; D6a=function(a,b,c,d,e){QN.call(this,"image-companion",a,b,c,d,e)}; E6a=function(a,b,c,d,e,f,h,l){O1.call(this,a,b,c,d);this.Qa=e;this.df=f;this.J=l;this.Ij=!0;this.C=null;this.D=WZ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.df().Nd.add(this);a=WZ(c.Ca,"metadata_type_ad_placement_config");this.bb=new I1(c.Ub,this.Qa,a,c.layoutId)}; F6a=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];J1().forEach(function(b){a.push(b)}); return{Ke:a,Sf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; G6a=function(a,b,c,d,e){QN.call(this,"shopping-companion",a,b,c,d,e)}; H6a=function(a,b,c,d,e,f,h,l){O1.call(this,a,b,c,d);this.Qa=e;this.df=f;this.J=l;this.Ij=!0;this.C=null;this.D=WZ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.df().Nd.add(this);a=WZ(c.Ca,"metadata_type_ad_placement_config");this.bb=new I1(c.Ub,this.Qa,a,c.layoutId)}; I6a=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];J1().forEach(function(b){a.push(b)}); return{Ke:a,Sf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; J6a=function(a,b,c,d,e,f){O1.call(this,a,b,c,d);this.Qa=e;this.df=f;this.Ij=!0;this.df().Nd.add(this);a=WZ(c.Ca,"metadata_type_ad_placement_config");this.bb=new I1(c.Ub,this.Qa,a,c.layoutId)}; K6a=function(){var a=["metadata_type_action_companion_ad_renderer"];J1().forEach(function(b){a.push(b)}); return{Ke:a,Sf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; L6a=function(a,b,c,d,e){QN.call(this,"ads-engagement-panel",a,b,c,d,e)}; M6a=function(a,b,c,d,e,f,h,l){O1.call(this,a,b,c,d);this.Qa=e;this.df=f;this.J=l;this.Ij=!0;this.C=null;this.D=WZ(c.Ca,"metadata_type_linked_player_bytes_layout_id");this.df().Nd.add(this);a=WZ(c.Ca,"metadata_type_ad_placement_config");this.bb=new I1(c.Ub,this.Qa,a,c.layoutId)}; N6a=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];J1().forEach(function(b){a.push(b)}); return{Ke:a,Sf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; O6a=function(a,b,c,d,e){this.uc=a;this.Qa=b;this.df=c;this.j=d;this.Rb=e}; P6a=function(a,b,c){QN.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c}; D2=function(a,b,c,d){O1.call(this,a,b,c,d)}; Q6a=function(a){this.uc=a}; R6a=function(a,b,c,d){QN.call(this,"survey-interstitial",a,b,c,d)}; E2=function(a,b,c,d,e){O1.call(this,c,a,b,d);this.Qa=e;a=WZ(b.Ca,"metadata_type_ad_placement_config");this.bb=new I1(b.Ub,e,a,b.layoutId)}; F2=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; T6a=function(a,b,c){c=void 0===c?S6a:c;c.widtha.width*a.height*.2)return{qI:3,dE:501,errorMessage:"ad("+F2(c)+") to container("+F2(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{qI:3,dE:501,errorMessage:"ad("+F2(c)+") covers container("+F2(a)+") center."}}; U6a=function(a,b){var c=WZ(a.Ca,"metadata_type_ad_placement_config");return new I1(a.Ub,b,c,a.layoutId)}; G2=function(a){return WZ(a.Ca,"metadata_type_invideo_overlay_ad_renderer")}; V6a=function(a,b,c,d){QN.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d}; H2=function(a,b,c,d,e,f,h,l,m,n,p,q){O1.call(this,f,a,b,e);this.Qa=c;this.C=h;this.Ia=l;this.Sb=m;this.Ea=n;this.J=p;this.D=q;this.bb=U6a(b,c)}; W6a=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];J1().forEach(function(b){a.push(b)}); return{Ke:a,Sf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; I2=function(a,b,c,d,e,f,h,l,m,n,p,q,t){O1.call(this,f,a,b,e);this.Qa=c;this.C=h;this.K=l;this.Ia=m;this.Sb=n;this.Ea=p;this.J=q;this.D=t;this.bb=U6a(b,c)}; X6a=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.v(J1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ke:a,Sf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; J2=function(a){this.Ia=a;this.j=!1}; Y6a=function(a,b,c){QN.call(this,"survey",a,{},b,c)}; Z6a=function(a,b,c,d,e,f,h){O1.call(this,c,a,b,d);this.C=e;this.Ia=f;this.Ea=h}; $6a=function(a,b,c,d,e,f,h,l,m,n){this.uc=a;this.Ia=b;this.Qa=c;this.C=d;this.Rb=e;this.u=f;this.B=h;this.Sb=l;this.Ea=m;this.j=n}; K2=function(a){g.D.call(this);this.B=a;this.Ij=!0;this.Wb=new Map;this.j=new Map;this.u=new Map}; a7a=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c}; L2=function(){g.D.call(this);this.Wb=new Map}; b7a=function(a,b,c,d,e){g.D.call(this);var f=this;this.gb=n0(function(){return new gE}); g.J(this,this.gb);this.Db=n0(function(){return new b1(f.gb)}); g.J(this,this.Db);this.Pc=n0(function(){return new $0}); g.J(this,this.Pc);this.jc=n0(function(){return new X0(a)}); g.J(this,this.jc);this.Nb=n0(function(){return new h1(f.gb,f.Db,f.Ea)}); g.J(this,this.Nb);this.ge=n0(function(){return new l1}); g.J(this,this.ge);this.dg=n0(function(){return new RN(b.W())}); g.J(this,this.dg);this.uc=n0(function(){return new t2(b)}); g.J(this,this.uc);this.Sb=n0(function(){return new o0(e)}); g.J(this,this.Sb);this.Nc=n0(function(){return new hP(b)}); g.J(this,this.Nc);this.vc=n0(function(){return new n1(b)}); g.J(this,this.vc);this.Ce=n0(function(){return new w2(b)}); g.J(this,this.Ce);this.Fd=n0(function(){return new o1(b)}); g.J(this,this.Fd);this.Ea=n0(function(){return new p1(b)}); g.J(this,this.Ea);this.Jf=n0(function(){return new s2(d)}); g.J(this,this.Jf);this.Ob=n0(function(){return new a_(f.Ea)}); g.J(this,this.Ob);this.le=n0(function(){return new V0(f.gb,f.Nb,f.Db,f.Ea,f.Ob,"SLOT_TYPE_ABOVE_FEED",f.Cj)}); g.J(this,this.le);this.jg=n0(function(){return new x2(b)}); g.J(this,this.jg);this.lf=n0(function(){return new y2}); g.J(this,this.lf);this.pn=n0(function(){return new C1}); g.J(this,this.pn);this.Va=n0(function(){return new y1(b,f.ge,f.Ea)}); g.J(this,this.Va);this.Vb=new k1(this.Ea,this.Ob,this.Va);g.J(this,this.Vb);this.Af=n0(function(){return new v2(b,f.Ea,f.Qa)}); g.J(this,this.Af);this.vf=n0(function(){return new C6a(b)}); g.J(this,this.vf);this.Ia=n0(function(){return new z1(b,f.Va,f.Ea)}); g.J(this,this.Ia);this.qf=n0(function(){return new D1}); this.Rb=n0(function(){return new s1(f.Ia,b)}); g.J(this,this.Rb);this.Qa=n0(function(){return new v1(b,f.Pc,f.Rb,f.Va)}); g.J(this,this.Qa);this.Zh=new e2(f2,M2,function(l,m,n,p){return M0(f.Db.get(),l,m,n,p)},this.jc,this.Nb,this.Db,this.Ob,this.Ea,this.Va); g.J(this,this.Zh);this.Wc=new cE(this.jc,this.le,c,this.Ea,a,this.Va,this.Ia,this.Nc);g.J(this,this.Wc);var h=new m1(b,this.Wc,this.Ia,this.Va,this.Af);this.wg=n0(function(){return h}); this.qt=h;this.Cj=new d2(this.jc,this.Nb,this.wg,this.Af,this.Ia,this.Ea,this.Qa,this.vf);g.J(this,this.Cj);this.xf=new Z0(this.jc,this.Nb,this.vc,this.wg);g.J(this,this.xf);this.Zc=new RC(this.Ea,this.jc,this.Nb,this.le,this.Va,this.xf,c);g.J(this,this.Zc);this.Lh=n0(function(){return new E1(f.Jf,f.Db,f.Ob,f.Ea,f.Qa,f.Ia,f.vf)}); g.J(this,this.Lh);this.Ud=n0(function(){return new F1}); g.J(this,this.Ud);this.Kf=new k2(a,this.uc,this.Ea);g.J(this,this.Kf);this.Lb=new l2(a);g.J(this,this.Lb);this.Hu=new A2(a);g.J(this,this.Hu);this.eg=new m2(a,this.wg);g.J(this,this.eg);this.Xe=new n2(a,this.vc,this.Ia,this.Va);g.J(this,this.Xe);this.zv=new C2(a,this.Va);g.J(this,this.zv);this.Se=new o2(a);g.J(this,this.Se);this.Xh=new p2(a);g.J(this,this.Xh);this.pw=new K2(a);g.J(this,this.pw);this.QY=new L2(a);g.J(this,this.QY);this.Od=n0(function(){return new g2}); g.J(this,this.Od);this.ai=n0(function(){return new h2(f.Ia)}); g.J(this,this.ai);this.pS=n0(function(){return new O6a(f.uc,f.Qa,a,f.Pc,f.Rb)}); g.J(this,this.pS);this.Kh=n0(function(){return new H1(f.Zc)}); g.J(this,this.Kh);this.Ph=n0(function(){return new N1(f.Ea,f.Qa,f.Se,f.Rb)}); g.J(this,this.Ph);this.Yh=n0(function(){return new A6a(a,f.Se,f.Va,f.vf,f.Ia,f.Qa,f.ge,f.Af,f.Rb,f.qf,f.Ce,f.vc,f.Nc,f.Fd,f.dg,f.Sb,f.jg,f.Ea,f.Pc)}); g.J(this,this.Yh);this.MW=n0(function(){return new a6a(f.Ia,f.Qa,f.Ea)}); g.J(this,this.MW);this.Xm=n0(function(){return new $6a(f.uc,f.Ia,f.Qa,f.Pc,f.Rb,f.Hu,f.pw,f.Sb,f.Ea,c)}); g.J(this,this.Xm);this.yY=n0(function(){return new Q6a(f.uc)}); g.J(this,this.yY);this.dK=new q2(a,this.pn,this.gb);g.J(this,this.dK);this.Dn=new r2(a,this.lf,this.Ob,this.Va,this.gb,this.Ea);g.J(this,this.Dn);this.wf={Mv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Cj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Wp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Lh],["SLOT_TYPE_ABOVE_FEED",this.Ud],["SLOT_TYPE_FORECASTING",this.Ud],["SLOT_TYPE_IN_PLAYER",this.Ud],["SLOT_TYPE_PLAYER_BYTES",this.Ud],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ud],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ud]]),jl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kf],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Kf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lb], ["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Lb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Lb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Hu],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.eg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Xe],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Xe],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Xe],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Xe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Xe],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Xe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Xe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.zv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED", this.Se],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.eg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Xh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.pw],["TRIGGER_TYPE_AD_BREAK_STARTED",this.QY]]),ir:new Map([["SLOT_TYPE_ABOVE_FEED",this.Od],["SLOT_TYPE_AD_BREAK_REQUEST",this.Od],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.ai],["SLOT_TYPE_PLAYER_UNDERLAY",this.Od],["SLOT_TYPE_PLAYBACK_TRACKING",this.Od]]),Cq:new Map([["SLOT_TYPE_ABOVE_FEED", this.pS],["SLOT_TYPE_AD_BREAK_REQUEST",this.Kh],["SLOT_TYPE_FORECASTING",this.Ph],["SLOT_TYPE_PLAYER_BYTES",this.Yh],["SLOT_TYPE_PLAYBACK_TRACKING",this.MW],["SLOT_TYPE_IN_PLAYER",this.Xm],["SLOT_TYPE_PLAYER_UNDERLAY",this.yY]])};this.listeners=[this.Pc.get()];this.xv={Zc:this.Zc,Fq:this.lf.get(),Gi:this.Ea.get(),sb:this.Sb.get(),At:this.Ia.get(),Wc:this.Wc,Wm:this.gb.get(),Eq:this.pn.get(),Mk:this.Kf,hj:this.Pc.get(),Cn:this.Va.get()}}; c7a=function(a,b,c,d,e,f,h,l,m,n){this.uc=a;this.Ia=b;this.Qa=c;this.C=d;this.Rb=e;this.u=f;this.B=h;this.Sb=l;this.Ea=m;this.j=n}; d7a=function(a,b,c,d,e){g.D.call(this);var f=this;this.gb=n0(function(){return new gE}); g.J(this,this.gb);this.Db=n0(function(){return new b1(f.gb)}); g.J(this,this.Db);this.Pc=n0(function(){return new $0}); g.J(this,this.Pc);this.jc=n0(function(){return new X0(a)}); g.J(this,this.jc);this.Nb=n0(function(){return new h1(f.gb,f.Db,f.Ea)}); g.J(this,this.Nb);this.ge=n0(function(){return new l1}); g.J(this,this.ge);this.dg=n0(function(){return new RN(b.W())}); g.J(this,this.dg);this.uc=n0(function(){return new t2(b)}); g.J(this,this.uc);this.Sb=n0(function(){return new o0(e)}); g.J(this,this.Sb);this.Nc=n0(function(){return new hP(b)}); g.J(this,this.Nc);this.vc=n0(function(){return new n1(b)}); g.J(this,this.vc);this.Ce=n0(function(){return new w2(b)}); g.J(this,this.Ce);this.Fd=n0(function(){return new o1(b)}); g.J(this,this.Fd);this.Ea=n0(function(){return new p1(b)}); g.J(this,this.Ea);this.Jf=n0(function(){return new s2(d)}); g.J(this,this.Jf);this.Ob=n0(function(){return new a_(f.Ea)}); g.J(this,this.Ob);this.le=n0(function(){return new V0(f.gb,f.Nb,f.Db,f.Ea,f.Ob,null,f.Cj)}); g.J(this,this.le);this.jg=n0(function(){return new x2(b)}); g.J(this,this.jg);this.lf=n0(function(){return new y2}); g.J(this,this.lf);this.pn=n0(function(){return new C1}); g.J(this,this.pn);this.Va=n0(function(){return new y1(b,f.ge,f.Ea)}); g.J(this,this.Va);this.Vb=new k1(this.Ea,this.Ob,this.Va);g.J(this,this.Vb);this.Af=n0(function(){return new v2(b,f.Ea,f.Qa)}); this.Ia=n0(function(){return new z1(b,f.Va,f.Ea)}); g.J(this,this.Ia);this.Rb=n0(function(){return new s1(f.Ia,b)}); g.J(this,this.Rb);this.Qa=n0(function(){return new v1(b,f.Pc,f.Rb,f.Va)}); g.J(this,this.Qa);this.qf=n0(function(){return new D1}); g.J(this,this.qf);this.Zh=new e2(f2,M2,function(l,m,n,p){return M0(f.Db.get(),l,m,n,p)},this.jc,this.Nb,this.Db,this.Ob,this.Ea,this.Va); g.J(this,this.Zh);this.Wc=new cE(this.jc,this.le,c,this.Ea,a,this.Va,this.Ia,this.Nc);g.J(this,this.Wc);var h=new m1(b,this.Wc,this.Ia,this.Va,this.Af);this.wg=n0(function(){return h}); this.qt=h;this.Cj=new d2(this.jc,this.Nb,this.wg,this.Af,this.Ia,this.Ea,this.Qa);g.J(this,this.Cj);this.xf=new Z0(this.jc,this.Nb,this.vc,this.wg);g.J(this,this.xf);this.Zc=new RC(this.Ea,this.jc,this.Nb,this.le,this.Va,this.xf,c);g.J(this,this.Zc);this.Lh=n0(function(){return new E1(f.Jf,f.Db,f.Ob,f.Ea,f.Qa,f.Ia)}); g.J(this,this.Lh);this.Ud=n0(function(){return new F1}); g.J(this,this.Ud);this.Kf=new k2(a,this.uc,this.Ea);g.J(this,this.Kf);this.Lb=new l2(a);g.J(this,this.Lb);this.Hu=new A2(a);g.J(this,this.Hu);this.eg=new m2(a,this.wg);g.J(this,this.eg);this.Xe=new n2(a,this.vc,this.Ia,this.Va);g.J(this,this.Xe);this.Se=new o2(a);g.J(this,this.Se);this.Xh=new p2(a);g.J(this,this.Xh);this.pw=new K2(a);g.J(this,this.pw);this.Od=n0(function(){return new g2}); g.J(this,this.Od);this.ai=n0(function(){return new h2(f.Ia)}); g.J(this,this.ai);this.Kh=n0(function(){return new H1(f.Zc)}); g.J(this,this.Kh);this.Ph=n0(function(){return new N1(f.Ea,f.Qa,f.Se,f.Rb)}); g.J(this,this.Ph);this.Xm=n0(function(){return new c7a(f.uc,f.Ia,f.Qa,f.Pc,f.Rb,f.Hu,f.pw,f.Sb,f.Ea,c)}); g.J(this,this.Xm);this.Yh=n0(function(){return new c2(a,f.Se,f.Qa,f.Rb,f.qf,f.Ce,f.Va,f.Ia,f.vc,f.Nc,f.Fd,f.dg,f.Sb,f.jg,f.Ea)}); g.J(this,this.Yh);this.dK=new q2(a,this.pn,this.gb);g.J(this,this.dK);this.Dn=new r2(a,this.lf,this.Ob,this.Va,this.gb,this.Ea);g.J(this,this.Dn);this.wf={Mv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Cj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Wp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Lh],["SLOT_TYPE_FORECASTING",this.Ud],["SLOT_TYPE_IN_PLAYER",this.Ud],["SLOT_TYPE_PLAYER_BYTES",this.Ud]]),jl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY", this.Lb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Lb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Hu],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.eg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Xe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Xe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Xe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Se],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.eg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED", this.Xh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.pw]]),ir:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Od],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.ai]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kh],["SLOT_TYPE_FORECASTING",this.Ph],["SLOT_TYPE_IN_PLAYER",this.Xm],["SLOT_TYPE_PLAYER_BYTES",this.Yh]])};this.listeners=[this.Pc.get()];this.xv={Zc:this.Zc,Fq:this.lf.get(),Gi:this.Ea.get(),sb:this.Sb.get(),At:this.Ia.get(),Wc:this.Wc, Wm:this.gb.get(),Eq:this.pn.get(),Mk:this.Kf,hj:this.Pc.get(),Cn:this.Va.get()}}; e7a=function(a,b,c,d,e){g.D.call(this);var f=this;this.gb=n0(function(){return new gE}); g.J(this,this.gb);this.Db=n0(function(){return new b1(f.gb)}); g.J(this,this.Db);this.Pc=n0(function(){return new $0}); g.J(this,this.Pc);this.jc=n0(function(){return new X0(a)}); g.J(this,this.jc);this.Nb=n0(function(){return new h1(f.gb,f.Db,f.Ea)}); g.J(this,this.Nb);this.ge=n0(function(){return new l1}); g.J(this,this.ge);this.dg=n0(function(){return new RN(b.W())}); g.J(this,this.dg);this.uc=n0(function(){return new t2(b)}); g.J(this,this.uc);this.Sb=n0(function(){return new o0(e)}); g.J(this,this.Sb);this.Nc=n0(function(){return new hP(b)}); g.J(this,this.Nc);this.vc=n0(function(){return new n1(b)}); g.J(this,this.vc);this.Ce=n0(function(){return new w2(b)}); g.J(this,this.Ce);this.Fd=n0(function(){return new o1(b)}); g.J(this,this.Fd);this.Ea=n0(function(){return new p1(b)}); g.J(this,this.Ea);this.Jf=n0(function(){return new s2(d)}); g.J(this,this.Jf);this.Ob=n0(function(){return new a_(f.Ea)}); g.J(this,this.Ob);this.le=n0(function(){return new V0(f.gb,f.Nb,f.Db,f.Ea,f.Ob,null,null)}); g.J(this,this.le);this.jg=n0(function(){return new x2(b)}); g.J(this,this.jg);this.lf=n0(function(){return new y2}); g.J(this,this.lf);this.Va=n0(function(){return new y1(b,f.ge,f.Ea)}); g.J(this,this.Va);this.Vb=new k1(this.Ea,this.Ob,this.Va);g.J(this,this.Vb);this.Ia=n0(function(){return new z1(b,f.Va,f.Ea)}); g.J(this,this.Ia);this.Rb=n0(function(){return new s1(f.Ia,b)}); g.J(this,this.Rb);this.Qa=n0(function(){return new v1(b,f.Pc,f.Rb,f.Va)}); g.J(this,this.Qa);this.qf=n0(function(){return new D1}); g.J(this,this.qf);this.Zh=new e2(f2,M2,function(l,m,n,p){return M0(f.Db.get(),l,m,n,p)},this.jc,this.Nb,this.Db,this.Ob,this.Ea,this.Va); g.J(this,this.Zh);this.Wc=new cE(this.jc,this.le,c,this.Ea,a,this.Va,this.Ia,this.Nc);g.J(this,this.Wc);var h=new m1(b,this.Wc,this.Ia,this.Va);this.wg=n0(function(){return h}); this.qt=h;this.xf=new Z0(this.jc,this.Nb,this.vc,this.wg);g.J(this,this.xf);this.Zc=new RC(this.Ea,this.jc,this.Nb,this.le,this.Va,this.xf,c);g.J(this,this.Zc);this.Lh=n0(function(){return new E1(f.Jf,f.Db,f.Ob,f.Ea,f.Qa,f.Ia)}); g.J(this,this.Lh);this.Ud=n0(function(){return new F1}); g.J(this,this.Ud);this.Kf=new k2(a,this.uc,this.Ea);g.J(this,this.Kf);this.Lb=new l2(a);g.J(this,this.Lb);this.eg=new m2(a,this.wg);g.J(this,this.eg);this.Xe=new n2(a,this.vc,this.Ia,this.Va);g.J(this,this.Xe);this.Se=new o2(a);g.J(this,this.Se);this.Xh=new p2(a);g.J(this,this.Xh);this.Od=n0(function(){return new g2}); g.J(this,this.Od);this.ai=n0(function(){return new h2(f.Ia)}); g.J(this,this.ai);this.Kh=n0(function(){return new H1(f.Zc)}); g.J(this,this.Kh);this.Ph=n0(function(){return new N1(f.Ea,f.Qa,f.Se,f.Rb)}); g.J(this,this.Ph);this.JW=n0(function(){return new n5a(f.uc,f.Ia,f.Qa,f.Pc,c,f.Ea)}); g.J(this,this.JW);this.Yh=n0(function(){return new c2(a,f.Se,f.Qa,f.Rb,f.qf,f.Ce,f.Va,f.Ia,f.vc,f.Nc,f.Fd,f.dg,f.Sb,f.jg,f.Ea)}); g.J(this,this.Yh);this.Dn=new r2(a,this.lf,this.Ob,this.Va,this.gb,this.Ea);g.J(this,this.Dn);this.wf={Mv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Wp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lh],["SLOT_TYPE_FORECASTING",this.Ud],["SLOT_TYPE_IN_PLAYER",this.Ud],["SLOT_TYPE_PLAYER_BYTES", this.Ud]]),jl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.eg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Xe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Xe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Se],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.eg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Xh]]),ir:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Od],["SLOT_TYPE_ABOVE_FEED",this.Od],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.ai]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", this.Kh],["SLOT_TYPE_FORECASTING",this.Ph],["SLOT_TYPE_IN_PLAYER",this.JW],["SLOT_TYPE_PLAYER_BYTES",this.Yh]])};this.listeners=[this.Pc.get()];this.xv={Zc:this.Zc,Fq:this.lf.get(),Gi:this.Ea.get(),sb:this.Sb.get(),At:this.Ia.get(),Wc:this.Wc,Wm:this.gb.get(),Eq:null,Mk:this.Kf,hj:this.Pc.get(),Cn:this.Va.get()}}; f7a=function(a,b,c,d,e){g.D.call(this);var f=this;this.gb=n0(function(){return new gE}); g.J(this,this.gb);this.Db=n0(function(){return new b1(f.gb)}); g.J(this,this.Db);this.Pc=n0(function(){return new $0}); g.J(this,this.Pc);this.jc=n0(function(){return new X0(a)}); g.J(this,this.jc);this.Nb=n0(function(){return new h1(f.gb,f.Db,f.Ea)}); g.J(this,this.Nb);this.ge=n0(function(){return new l1}); g.J(this,this.ge);this.dg=n0(function(){return new RN(b.W())}); g.J(this,this.dg);this.uc=n0(function(){return new t2(b)}); g.J(this,this.uc);this.Sb=n0(function(){return new o0(e)}); g.J(this,this.Sb);this.Nc=n0(function(){return new hP(b)}); g.J(this,this.Nc);this.vc=n0(function(){return new n1(b)}); g.J(this,this.vc);this.Ce=n0(function(){return new w2(b)}); g.J(this,this.Ce);this.Fd=n0(function(){return new o1(b)}); g.J(this,this.Fd);this.Ea=n0(function(){return new p1(b)}); g.J(this,this.Ea);this.Jf=n0(function(){return new s2(d)}); g.J(this,this.Jf);this.Ob=n0(function(){return new a_(f.Ea)}); g.J(this,this.Ob);this.le=n0(function(){return new V0(f.gb,f.Nb,f.Db,f.Ea,f.Ob,null,null)}); g.J(this,this.le);this.jg=n0(function(){return new x2(b)}); g.J(this,this.jg);this.lf=n0(function(){return new y2}); g.J(this,this.lf);this.Va=n0(function(){return new y1(b,f.ge,f.Ea)}); g.J(this,this.Va);this.Vb=new k1(this.Ea,this.Ob,this.Va);g.J(this,this.Vb);this.Ia=n0(function(){return new z1(b,f.Va,f.Ea)}); g.J(this,this.Ia);this.Rb=n0(function(){return new s1(f.Ia,b)}); g.J(this,this.Rb);this.Qa=n0(function(){return new v1(b,f.Pc,f.Rb,f.Va)}); g.J(this,this.Qa);this.qf=n0(function(){return new D1}); g.J(this,this.qf);this.Zh=new e2(f2,M2,function(l,m,n,p){return M0(f.Db.get(),l,m,n,p)},this.jc,this.Nb,this.Db,this.Ob,this.Ea,this.Va); g.J(this,this.Zh);this.Wc=new cE(this.jc,this.le,c,this.Ea,a,this.Va,this.Ia,this.Nc);g.J(this,this.Wc);var h=new m1(b,this.Wc,this.Ia,this.Va);this.wg=n0(function(){return h}); this.qt=h;this.xf=new Z0(this.jc,this.Nb,this.vc,this.wg);g.J(this,this.xf);this.Zc=new RC(this.Ea,this.jc,this.Nb,this.le,this.Va,this.xf,c);g.J(this,this.Zc);this.Lh=n0(function(){return new E1(f.Jf,f.Db,f.Ob,f.Ea,f.Qa,f.Ia)}); g.J(this,this.Lh);this.Ud=n0(function(){return new F1}); g.J(this,this.Ud);this.Kf=new k2(a,this.uc,this.Ea);g.J(this,this.Kf);this.Lb=new l2(a);g.J(this,this.Lb);this.eg=new m2(a,this.wg);g.J(this,this.eg);this.Xe=new n2(a,this.vc,this.Ia,this.Va);g.J(this,this.Xe);this.Se=new o2(a);g.J(this,this.Se);this.Xh=new p2(a);g.J(this,this.Xh);this.Od=n0(function(){return new g2}); g.J(this,this.Od);this.ai=n0(function(){return new h2(f.Ia)}); g.J(this,this.ai);this.Kh=n0(function(){return new H1(f.Zc)}); g.J(this,this.Kh);this.Ph=n0(function(){return new N1(f.Ea,f.Qa,f.Se,f.Rb)}); g.J(this,this.Ph);this.Xm=n0(function(){return new n5a(f.uc,f.Ia,f.Qa,f.Pc,c,f.Ea)}); g.J(this,this.Xm);this.Yh=n0(function(){return new c2(a,f.Se,f.Qa,f.Rb,f.qf,f.Ce,f.Va,f.Ia,f.vc,f.Nc,f.Fd,f.dg,f.Sb,f.jg,f.Ea)}); g.J(this,this.Yh);this.Dn=new r2(a,this.lf,this.Ob,this.Va,this.gb,this.Ea);g.J(this,this.Dn);this.wf={Mv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Wp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lh],["SLOT_TYPE_FORECASTING",this.Ud],["SLOT_TYPE_IN_PLAYER",this.Ud],["SLOT_TYPE_PLAYER_BYTES", this.Ud]]),jl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.eg],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Xe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Se],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.eg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Xh]]),ir:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Od],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.ai]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kh],["SLOT_TYPE_FORECASTING",this.Ph],["SLOT_TYPE_IN_PLAYER",this.Xm],["SLOT_TYPE_PLAYER_BYTES", this.Yh]])};this.listeners=[this.Pc.get()];this.xv={Zc:this.Zc,Fq:this.lf.get(),Gi:this.Ea.get(),sb:this.Sb.get(),At:this.Ia.get(),Wc:this.Wc,Wm:this.gb.get(),Eq:null,Mk:this.Kf,hj:this.Pc.get(),Cn:this.Va.get()}}; N2=function(a,b,c,d,e,f,h,l,m){S1.call(this,a,b,c,d,e,f,h,m);this.Gm=l}; g7a=function(){var a=l5a();a.Ke.push("metadata_type_ad_info_ad_metadata");return a}; h7a=function(a,b,c,d,e,f){this.uc=a;this.Ia=b;this.Qa=c;this.u=d;this.Gm=e;this.j=f}; i7a=function(a,b,c,d,e){g.D.call(this);var f=this;this.gb=n0(function(){return new gE}); g.J(this,this.gb);this.Db=n0(function(){return new b1(f.gb)}); g.J(this,this.Db);this.Pc=n0(function(){return new $0}); g.J(this,this.Pc);this.jc=n0(function(){return new X0(a)}); g.J(this,this.jc);this.Nb=n0(function(){return new h1(f.gb,f.Db,f.Ea)}); g.J(this,this.Nb);this.ge=n0(function(){return new l1}); g.J(this,this.ge);this.Gm=n0(function(){return new Z5a(b)}); g.J(this,this.Gm);this.dg=n0(function(){return new RN(b.W())}); g.J(this,this.dg);this.uc=n0(function(){return new t2(b)}); g.J(this,this.uc);this.Sb=n0(function(){return new o0(e)}); g.J(this,this.Sb);this.Nc=n0(function(){return new hP(b)}); g.J(this,this.Nc);this.vc=n0(function(){return new n1(b)}); g.J(this,this.vc);this.Ce=n0(function(){return new w2(b)}); g.J(this,this.Ce);this.Fd=n0(function(){return new o1(b)}); g.J(this,this.Fd);this.Ea=n0(function(){return new p1(b)}); g.J(this,this.Ea);this.Jf=n0(function(){return new s2(d)}); g.J(this,this.Jf);this.Ob=n0(function(){return new a_(f.Ea)}); g.J(this,this.Ob);this.le=n0(function(){return new V0(f.gb,f.Nb,f.Db,f.Ea,f.Ob,null,null)}); g.J(this,this.le);this.jg=n0(function(){return new x2(b)}); g.J(this,this.jg);this.lf=n0(function(){return new y2}); g.J(this,this.lf);this.Va=n0(function(){return new y1(b,f.ge,f.Ea)}); g.J(this,this.Va);this.Vb=new k1(this.Ea,this.Ob,this.Va);g.J(this,this.Vb);this.Ia=n0(function(){return new z1(b,f.Va,f.Ea)}); g.J(this,this.Ia);this.Rb=n0(function(){return new s1(f.Ia,b)}); g.J(this,this.Rb);this.Qa=n0(function(){return new v1(b,f.Pc,f.Rb,f.Va)}); g.J(this,this.Qa);this.qf=n0(function(){return new D1}); g.J(this,this.qf);this.Zh=new e2(K5a,M2,function(l,m,n,p){return d4a(f.Db.get(),l,m,n,p)},this.jc,this.Nb,this.Db,this.Ob,this.Ea,this.Va); g.J(this,this.Zh);this.Wc=new cE(this.jc,this.le,c,this.Ea,a,this.Va,this.Ia,this.Nc);g.J(this,this.Wc);var h=new m1(b,this.Wc,this.Ia,this.Va);this.wg=n0(function(){return h}); this.qt=h;this.xf=new Z0(this.jc,this.Nb,this.vc,this.wg);g.J(this,this.xf);this.Zc=new RC(this.Ea,this.jc,this.Nb,this.le,this.Va,this.xf,c);g.J(this,this.Zc);this.Lh=n0(function(){return new E1(f.Jf,f.Db,f.Ob,f.Ea,f.Qa,f.Ia)}); g.J(this,this.Lh);this.Ud=n0(function(){return new F1}); g.J(this,this.Ud);this.Kf=new k2(a,this.uc,this.Ea);g.J(this,this.Kf);this.Lb=new l2(a);g.J(this,this.Lb);this.eg=new m2(a,this.wg);g.J(this,this.eg);this.Xe=new n2(a,this.vc,this.Ia,this.Va);g.J(this,this.Xe);this.Se=new o2(a);g.J(this,this.Se);this.Xh=new p2(a);g.J(this,this.Xh);this.Od=n0(function(){return new g2}); g.J(this,this.Od);this.ai=n0(function(){return new h2(f.Ia)}); g.J(this,this.ai);this.Kh=n0(function(){return new H1(f.Zc)}); g.J(this,this.Kh);this.Ph=n0(function(){return new N1(f.Ea,f.Qa,f.Se,f.Rb)}); g.J(this,this.Ph);this.Yh=n0(function(){return new c2(a,f.Se,f.Qa,f.Rb,f.qf,f.Ce,f.Va,f.Ia,f.vc,f.Nc,f.Fd,f.dg,f.Sb,f.jg,f.Ea)}); g.J(this,this.Yh);this.UY=n0(function(){return new h7a(f.uc,f.Ia,f.Qa,f.Pc,f.Gm,c)}); g.J(this,this.UY);this.Dn=new r2(a,this.lf,this.Ob,this.Va,this.gb,this.Ea);g.J(this,this.Dn);this.wf={Mv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Wp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lh],["SLOT_TYPE_FORECASTING",this.Ud],["SLOT_TYPE_IN_PLAYER",this.Ud],["SLOT_TYPE_PLAYER_BYTES", this.Ud]]),jl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Lb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", this.eg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Xe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Xe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Se],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.eg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Xh]]),ir:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Od],["SLOT_TYPE_FORECASTING",this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.ai]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kh],["SLOT_TYPE_FORECASTING", this.Ph],["SLOT_TYPE_IN_PLAYER",this.UY],["SLOT_TYPE_PLAYER_BYTES",this.Yh]])};this.listeners=[this.Pc.get()];this.xv={Zc:this.Zc,Fq:this.lf.get(),Gi:this.Ea.get(),sb:this.Sb.get(),At:this.Ia.get(),Wc:this.Wc,Wm:this.gb.get(),Eq:null,Mk:this.Kf,hj:this.Pc.get(),Cn:this.Va.get()}}; j7a=function(a,b,c,d,e,f,h){this.uc=a;this.Ia=b;this.Qa=c;this.u=d;this.Gm=e;this.j=f;this.Ea=h}; k7a=function(a,b,c,d,e){g.D.call(this);var f=this;this.gb=n0(function(){return new gE}); g.J(this,this.gb);this.Db=n0(function(){return new b1(f.gb)}); g.J(this,this.Db);this.Pc=n0(function(){return new $0}); g.J(this,this.Pc);this.jc=n0(function(){return new X0(a)}); g.J(this,this.jc);this.Nb=n0(function(){return new h1(f.gb,f.Db,f.Ea)}); g.J(this,this.Nb);this.ge=n0(function(){return new l1}); g.J(this,this.ge);this.Gm=n0(function(){return new Z5a(b)}); g.J(this,this.Gm);this.dg=n0(function(){return new RN(b.W())}); g.J(this,this.dg);this.uc=n0(function(){return new t2(b)}); g.J(this,this.uc);this.Sb=n0(function(){return new o0(e)}); g.J(this,this.Sb);this.Nc=n0(function(){return new hP(b)}); g.J(this,this.Nc);this.vc=n0(function(){return new n1(b)}); g.J(this,this.vc);this.Ce=n0(function(){return new w2(b)}); g.J(this,this.Ce);this.Fd=n0(function(){return new o1(b)}); g.J(this,this.Fd);this.Ea=n0(function(){return new p1(b)}); g.J(this,this.Ea);this.Jf=n0(function(){return new s2(d)}); g.J(this,this.Jf);this.Ob=n0(function(){return new a_(f.Ea)}); g.J(this,this.Ob);this.le=n0(function(){return new V0(f.gb,f.Nb,f.Db,f.Ea,f.Ob,null,f.Cj,3)}); g.J(this,this.le);this.jg=n0(function(){return new x2(b)}); g.J(this,this.jg);this.lf=n0(function(){return new y2}); g.J(this,this.lf);this.Va=n0(function(){return new y1(b,f.ge,f.Ea)}); g.J(this,this.Va);this.Vb=new k1(this.Ea,this.Ob,this.Va);g.J(this,this.Vb);this.Af=n0(function(){return new v2(b,f.Ea,f.Qa)}); g.J(this,this.Af);this.vf=n0(function(){return new C6a(b)}); g.J(this,this.vf);this.Ia=n0(function(){return new z1(b,f.Va,f.Ea)}); g.J(this,this.Ia);this.qf=n0(function(){return new D1}); this.Rb=n0(function(){return new s1(f.Ia,b)}); g.J(this,this.Rb);this.Qa=n0(function(){return new v1(b,f.Pc,f.Rb,f.Va)}); g.J(this,this.Qa);this.Wc=new cE(this.jc,this.le,c,this.Ea,a,this.Va,this.Ia,this.Nc);g.J(this,this.Wc);var h=new m1(b,this.Wc,this.Ia,this.Va,this.Af);this.wg=n0(function(){return h}); this.qt=h;this.Zh=new e2(L5a,M2,function(l,m,n,p){return d4a(f.Db.get(),l,m,n,p)},this.jc,this.Nb,this.Db,this.Ob,this.Ea,this.Va); g.J(this,this.Zh);this.Cj=new d2(this.jc,this.Nb,this.wg,this.Af,this.Ia,this.Ea,this.Qa,this.vf);g.J(this,this.Cj);this.xf=new Z0(this.jc,this.Nb,this.vc,this.wg);g.J(this,this.xf);this.Zc=new RC(this.Ea,this.jc,this.Nb,this.le,this.Va,this.xf,c);g.J(this,this.Zc);this.Lh=n0(function(){return new E1(f.Jf,f.Db,f.Ob,f.Ea,f.Qa,f.Ia,f.vf)}); g.J(this,this.Lh);this.Ud=n0(function(){return new F1}); g.J(this,this.Ud);this.Kf=new k2(a,this.uc,this.Ea);g.J(this,this.Kf);this.Lb=new l2(a);g.J(this,this.Lb);this.eg=new m2(a,this.wg);g.J(this,this.eg);this.Xe=new n2(a,this.vc,this.Ia,this.Va);g.J(this,this.Xe);this.zv=new C2(a,this.Va);g.J(this,this.zv);this.Se=new o2(a);g.J(this,this.Se);this.Xh=new p2(a);g.J(this,this.Xh);this.Od=n0(function(){return new g2}); g.J(this,this.Od);this.ai=n0(function(){return new h2(f.Ia)}); g.J(this,this.ai);this.Kh=n0(function(){return new H1(f.Zc)}); g.J(this,this.Kh);this.Ph=n0(function(){return new N1(f.Ea,f.Qa,f.Se,f.Rb)}); g.J(this,this.Ph);this.Yh=n0(function(){return new A6a(a,f.Se,f.Va,f.vf,f.Ia,f.Qa,f.ge,f.Af,f.Rb,f.qf,f.Ce,f.vc,f.Nc,f.Fd,f.dg,f.Sb,f.jg,f.Ea,f.Pc)}); g.J(this,this.Yh);this.Xm=n0(function(){return new j7a(f.uc,f.Ia,f.Qa,f.Pc,f.Gm,c,f.Ea)}); g.J(this,this.Xm);this.Dn=new r2(a,this.lf,this.Ob,this.Va,this.gb,this.Ea);g.J(this,this.Dn);this.wf={Mv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Cj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Wc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.xf]]),Wp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Lh],["SLOT_TYPE_FORECASTING",this.Ud], ["SLOT_TYPE_IN_PLAYER",this.Ud],["SLOT_TYPE_PLAYER_BYTES",this.Ud]]),jl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Lb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Lb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Lb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Lb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.Lb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.eg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Xe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Xe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.zv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Se],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.eg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Xh]]),ir:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Od],["SLOT_TYPE_FORECASTING", this.Od],["SLOT_TYPE_IN_PLAYER",this.Od],["SLOT_TYPE_PLAYER_BYTES",this.ai]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kh],["SLOT_TYPE_FORECASTING",this.Ph],["SLOT_TYPE_PLAYER_BYTES",this.Yh],["SLOT_TYPE_IN_PLAYER",this.Xm]])};this.listeners=[this.Pc.get()];this.xv={Zc:this.Zc,Fq:this.lf.get(),Gi:this.Ea.get(),sb:this.Sb.get(),At:this.Ia.get(),Wc:this.Wc,Wm:this.gb.get(),Eq:null,Mk:this.Kf,hj:this.Pc.get(),Cn:this.Va.get()}}; m7a=function(a,b,c,d){g.D.call(this);var e=this;this.j=l7a(function(){return e.u},a,b,c,d); g.J(this,this.j);this.u=(new K1a(this.j)).B();g.J(this,this.u)}; O2=function(a){return a.j.xv}; l7a=function(a,b,c,d,e){try{var f=b.W();if(g.lL(f))var h=new b7a(a,b,c,d,e);else if(g.oL(f))h=new d7a(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===g.$J(f))h=new f7a(a,b,c,d,e);else if(cL(f))h=new e7a(a,b,c,d,e);else if(g.WK(f))h=new i7a(a,b,c,d,e);else if(g.VK(f))h=new k7a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.W(),bE("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,H8a:h.j.cver,G8a:h.j.ctheme, F8a:h.j.cplayer,b9a:h.playerStyle}),new O4a(a,b,c,d,e)}}; n7a=function(a){OQ.call(this,a)}; o7a=function(a,b,c,d,e){SQ.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",X:[{I:"svg",S:"ytp-ad-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},X:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",Y:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",Y:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",Y:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.C=this.Fa("ytp-ad-timed-pie-countdown-outer"); this.u=Math.ceil(10*Math.PI);this.hide()}; p7a=function(a,b,c,d,e,f){yQ.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",Y:{tabindex:"0"},X:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",X:[{I:"div",S:"ytp-ad-action-interstitial-card",X:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div",S:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, "ad-action-interstitial",b,c,d);this.hP=e;this.XH=f;this.navigationEndpoint=this.j=this.skipButton=this.u=this.actionButton=null;this.Ba=this.Fa("ytp-ad-action-interstitial-image-container");this.V=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,"ytp-ad-action-interstitial-image");g.J(this,this.V);this.V.Ha(this.Ba);this.Oa=this.Fa("ytp-ad-action-interstitial-headline-container");this.D=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,"ytp-ad-action-interstitial-headline"); g.J(this,this.D);this.D.Ha(this.Oa);this.qa=this.Fa("ytp-ad-action-interstitial-description-container");this.C=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,"ytp-ad-action-interstitial-description");g.J(this,this.C);this.C.Ha(this.qa);this.ib=this.Fa("ytp-ad-action-interstitial-background-container");this.Ja=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,"ytp-ad-action-interstitial-background",!0);g.J(this,this.Ja);this.Ja.Ha(this.ib);this.Ua=this.Fa("ytp-ad-action-interstitial-action-button-container"); this.slot=this.Fa("ytp-ad-action-interstitial-slot");this.B=new fA;g.J(this,this.B);this.hide()}; q7a=function(a){var b=g.Oe("html5-video-player");b&&g.bq(b,"ytp-ad-display-override",a)}; u7a=function(a,b,c,d){yQ.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",X:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.V=[];this.qb=this.Ba=this.C=this.ib=this.Oa=null;this.Ua=!1;this.D=null;this.qa=0;a=this.Fa("ytp-ad-overlay-container");this.Ja=new YQ(a,45E3,6E3,.3,.4);g.J(this,this.Ja);this.B=r7a(this);g.J(this,this.B);this.B.Ha(a);this.u=s7a(this);g.J(this,this.u);this.u.Ha(a);this.j=t7a(this);g.J(this,this.j);this.j.Ha(a);this.hide()}; r7a=function(a){var b=new g.xQ({I:"div",S:"ytp-ad-text-overlay",X:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",X:[{I:"button",S:"ytp-ad-overlay-close-button",X:[EQ(v7a)]}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){P2(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){P2(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.gp);b.hide();return b}; s7a=function(a){var b=new g.xQ({I:"div",Ka:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],X:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",X:[{I:"button",S:"ytp-ad-overlay-close-button",X:[EQ(v7a)]}]},{I:"div",S:"ytp-ad-overlay-text-image",X:[{I:"img",Y:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){P2(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){P2(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.gp);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.x7);b.hide();return b}; t7a=function(a){var b=new g.xQ({I:"div",S:"ytp-ad-image-overlay",X:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",X:[{I:"button",S:"ytp-ad-overlay-close-button",X:[EQ(v7a)]}]},{I:"div",S:"ytp-ad-overlay-image",X:[{I:"img",Y:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){P2(a,b.element,c)}); a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.gp);b.hide();return b}; w7a=function(a,b){if(b){var c=g.Q(b,Q0)||null;if(null==c)g.YD(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Oe("video-ads ytp-ad-module")||null,null==b)g.YD(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ba=new g.xQ({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.Ba),a.Ba.Ha(b),b=new QQ(a.api,a.layoutId,a.interactionLoggingClientData,a.sb,a.Ba.element,!1),g.J(a,b),b.init(PN("ad-info-hover-text-button"), c,a.macros),a.D){b.Ha(a.D,0);b.subscribe("f",a.b5,a);b.subscribe("e",a.LN,a);a.T(a.D,"click",a.c5);var d=g.Oe("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.Q(null==(e=g.Q(c.button,g.WM))?void 0:e.serviceEndpoint,RDa))a.Ua=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.qb=b}else g.YD(Error("Ad info button container within overlay ad was not present."))}else g.ZD(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; y7a=function(a,b){if(x7a(a,Q2)||a.api.Rf())return!1;var c=zQ(b.title),d=zQ(b.description);if(g.cc(c)||g.cc(d))return!1;a.Mf(a.B.element,b.trackingParams||null);a.B.updateValue("title",zQ(b.title));a.B.updateValue("description",zQ(b.description));a.B.updateValue("displayUrl",zQ(b.displayUrl));b.navigationEndpoint&&g.Hb(a.V,b.navigationEndpoint);a.B.show();a.Ja.start();a.Xa(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.qa++}); return!0}; z7a=function(a,b){if(x7a(a,Q2)||a.api.Rf())return!1;var c=zQ(b.title),d=zQ(b.description);if(g.cc(c)||g.cc(d))return!1;a.Mf(a.u.element,b.trackingParams||null);a.u.updateValue("title",zQ(b.title));a.u.updateValue("description",zQ(b.description));a.u.updateValue("displayUrl",zQ(b.displayUrl));a.u.updateValue("imageUrl",ZCa(b.image));b.navigationEndpoint&&g.Hb(a.V,b.navigationEndpoint);a.ib=b.imageNavigationEndpoint||null;a.u.show();a.Ja.start();a.Xa(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.qa++}); return!0}; A7a=function(a,b){if(a.api.Rf())return!1;var c=$Ca(b.image),d=c;c.widthdocument.documentMode)c=he;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Ye("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=bla(d.style)}b=new ee([c,Lba({"background-image":'url("'+b+'")'})].map($fa).join(""),ge);a.style.cssText=fe(b)}}; V7a=function(a){var b=g.Oe("html5-video-player");b&&g.bq(b,"ytp-ad-display-override",a)}; Y2=function(a,b,c){OQ.call(this,a);this.api=a;this.sb=b;this.u={};a=new g.V({I:"div",Ka:["video-ads","ytp-ad-module"]});g.J(this,a);LK&&g.Yp(a.element,"ytp-ads-tiny-mode");this.D=new pQ(a.element);g.J(this,this.D);g.sS(this.api,a.element,4);w2a(c)&&(c=new g.V({I:"div",Ka:["ytp-ad-underlay"]}),g.J(this,c),this.B=new pQ(c.element),g.J(this,this.B),g.sS(this.api,c.element,0));g.J(this,zDa())}; W7a=function(a,b){a=g.fd(a.u,b.id,null);null==a&&g.ZD(Error("Component not found for element id: "+b.id));return a||null}; X7a=function(a){g.uT.call(this,a);var b=this;this.u=this.Sg=null;this.created=!1;this.nu=new WP(this.player);this.B=function(){if(null!=b.u)return b.u;var d=xCa({Hl:a.getVideoData(1)});d=new U0a({uu:d.e3(),Mk:O2(b.j).Mk,cm:d.NL(),Cn:O2(b.j).Cn,G:b.player,Gi:O2(b.j).Gi,Qa:b.j.j.Qa,hj:O2(b.j).hj,Fd:b.j.j.Fd});b.u=d.EZ;return b.u}; this.j=new m7a(this.player,this,this.nu,this.B);g.J(this,this.j);var c=a.W();!aL(c)||g.VK(c)||cL(c)||(g.J(this,new Y2(a,O2(this.j).sb,O2(this.j).Gi)),g.J(this,new n7a(a)))}; Y7a=function(a){a.created!==a.loaded&&bE("Created and loaded are out of sync")}; $7a=function(a){g.uT.prototype.load.call(a);var b=O2(a.j).Gi;dra(b.G.W().N("html5_reduce_ecatcher_errors"));try{a.player.getRootNode().classList.add("ad-created")}catch(m){bE(m instanceof Error?m:String(m))}var c=a.B(),d=a.player.getVideoData(1),e=d&&d.videoId||"",f=d&&d.getPlayerResponse()||{},h=(!a.player.W().experiments.ob("debug_ignore_ad_placements")&&f&&f.adPlacements||[]).map(function(m){return m.adPlacementRenderer}),l=((null==f?void 0:f.adSlots)||[]).map(function(m){return g.Q(m,Gpa)}); f=f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;d&&d.Tc();b=Z7a(h,l,b,O2(a.j).Wm);h=d&&d.clientPlaybackNonce||"";d=d&&d.Eu||!1;l=1E3*a.player.getDuration(1);a.Sg=new CCa(a,a.player,a.nu,c,O2(a.j));JCa(a.Sg);a.j.j.qt.Nj(h,l,d,b.jH,b.tS,b.jH,f,e);DCa(a.Sg)}; a8a=function(a,b){b===a.Bx&&(a.Bx=void 0)}; b8a=function(a){if(a.Sg){var b=O2(a.j).Wc,c=b.j().PL("SLOT_TYPE_PLAYER_BYTES",1);b=b.Va.get().fg(1).clientPlaybackNonce;var d=!1;c=g.v(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f="SLOT_TYPE_PLAYER_BYTES"===e.slotType&&e.slotEntryTrigger instanceof XC?e.slotEntryTrigger.yr:void 0;f&&f===b&&(d&&bE("More than 1 preroll playerBytes slot detected",e),d=!0)}(b=d)||(b=a.Sg,b=!KCa(b,MCa(b)));b||nQ(O2(a.j).At)}else bE("AdService is null when calling maybeUnlockPrerollIfReady")}; c8a=function(a){var b="";a=g.v(O2(a.j).hj.al.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.eb)return!0;b+=c.slotType+" "}.01>Math.random()&&bE("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1}; d8a=function(a){a=g.v(O2(a.j).hj.al.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; Hpa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=O2(a.j).Gi,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Tc();c=Z7a(b,c,f,O2(a.j).Wm);Lpa(O2(a.j).Zc,d,c.jH,c.tS,b,e)}; Z7a=function(a,b,c,d){b={jH:[],tS:b};a=g.v(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.G.W().N("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.Q(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,$P)?(h=g.Q(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,$P),p=R0a(h,p),g.WO(f.sandwichedLinearAdRenderer.adVideoStart,$P,p)):g.Q(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,$P)&& (m=g.Q(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,$P),p=R0a(m,p),g.WO(f.linearAdSequenceRenderer.adStart,$P,p))}b.jH.push(e)}return b}; e8a=function(){if(!g.Ue)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}}; g.g8a=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=g.ke(a);return b.parseFromString(g.je(a),"application/xml")}if(f8a){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}; g.Z2=function(a){g.D.call(this);this.callback=a;this.j=new oq(0,0,.4,0,.2,1,1,1);this.delay=new g.Op(this.next,window,this);g.J(this,this.delay)}; g.h8a=function(a){var b=a.W();if(!b.yd||b.B||!g.OK(b))return!1;var c=g.cS(a);return(a=b.N("shorts_mode_to_player_api")?a.Yb():c.Yb())?(c=c.Bk(),315<=Math.min(c.width,c.height)):a?!1:!c.ah()}; g.$2=function(a,b){g.V.call(this,{I:"div",S:"ytp-more-videos-view",Y:{tabIndex:"-1"}});var c=this;this.api=a;this.J=b;this.B=!0;this.C=new g.lI(this);this.u=[];this.suggestionData=[];this.columns=this.containerWidth=this.ma=this.D=this.j=0;this.title=new g.V({I:"h2",S:"ytp-related-title",xa:"{{title}}"});this.previous=new g.V({I:"button",Ka:["ytp-button","ytp-previous"],Y:{"aria-label":"Show previous suggested videos"},X:[g.AQ()]});this.V=new g.Z2(function(d){c.suggestions.element.scrollLeft=-d}); this.next=new g.V({I:"button",Ka:["ytp-button","ytp-next"],Y:{"aria-label":"Show more suggested videos"},X:[g.BQ()]});g.J(this,this.C);this.K=a.W().C;g.J(this,this.title);this.title.Ha(this.element);this.suggestions=new g.V({I:"div",S:"ytp-suggestions"});g.J(this,this.suggestions);this.suggestions.Ha(this.element);g.J(this,this.previous);this.previous.Ha(this.element);this.previous.Sa("click",this.GZ,this);g.J(this,this.V);i8a(this);g.J(this,this.next);this.next.Ha(this.element);this.next.Sa("click", this.FZ,this);this.C.T(this.api,"appresize",this.Gb);this.C.T(this.api,"fullscreentoggled",this.Lq);this.C.T(this.api,"videodatachange",this.onVideoDataChange);this.Gb(this.api.kb().getPlayerSize());this.onVideoDataChange()}; i8a=function(a){for(var b={Aw:0};16>b.Aw;b={Aw:b.Aw},++b.Aw){var c=new g.V({I:"a",S:"ytp-suggestion-link",Y:{href:"{{link}}",target:a.api.W().ea,"aria-label":"{{aria_label}}"},X:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",Y:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},X:[{I:"div",S:"ytp-suggestion-title",xa:"{{title}}"},{I:"div",S:"ytp-suggestion-author",xa:"{{author_and_views}}"},{I:"div",Y:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration", xa:"{{duration}}"}]}]});g.J(a,c);var d=c.Fa("ytp-suggestion-link");g.$m(d,"transitionDelay",b.Aw/20+"s");a.C.T(d,"click",function(e){return function(f){var h=e.Aw;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.N("web_player_log_click_before_generating_ve_conversion_params")?(a.api.rb(a.u[h].element),h=l.Ck(),l={},g.tJa(a.api,l,"emb_rel_pause"),h=g.jj(h,l),g.JS(h,a.api,f)):g.IS(f,a.api,a.K,m||void 0)&&a.api.Nn(l.videoId,m,l.playlistId)}else g.nP(f),document.activeElement.blur()}}(b)); c.Ha(a.suggestions.element);a.u.push(c);a.api.Mf(c.element,c)}}; j8a=function(a){if(a.api.W().N("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.D+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.Xa(a.u[b].element,!0)}; g.a3=function(a){var b=a.J.Bg()?32:16;b=a.ma/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.D+8);g.bq(a.element,"ytp-scroll-min",0<=b);g.bq(a.element,"ytp-scroll-max",b<=c)}; l8a=function(a){for(var b=a.suggestionData.length,c=0;cb)for(;16>b;++b)c=a.u[b].Fa("ytp-suggestion-link"),g.$m(c,"display","none");g.a3(a)}; aaa=[];ia="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; g.ea=caa(this);na("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)} function c(f,h){this.j=f;ia(this,"description",{configurable:!0,writable:!0,value:h})} if(a)return a;c.prototype.toString=function(){return this.j}; var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b}); na("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}}); na("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ga(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h=f}}); na("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); na("String.prototype.repeat",function(a){return a?a:function(b){var c=Ga(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); na("Set",function(a){function b(c){this.j=new Map;if(c){c=g.v(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.v([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a; b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this}; b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; b.prototype.clear=function(){this.j.clear();this.size=0}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.entries=function(){return this.j.entries()}; b.prototype.values=function(){return this.j.values()}; b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; return b}); na("Array.prototype.values",function(a){return a?a:function(){return Fa(this,function(b,c){return c})}}); na("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); na("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));cc&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);cb?-c:c}}); na("Array.prototype.findIndex",function(a){return a?a:function(b,c){return naa(this,b,c).i}}); na("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}}); na("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(0===b)return 32;var c=0;0===(b&4294901760)&&(b<<=16,c+=16);0===(b&4278190080)&&(b<<=8,c+=8);0===(b&4026531840)&&(b<<=4,c+=4);0===(b&3221225472)&&(b<<=2,c+=2);0===(b&2147483648)&&c++;return c}}); na("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0} return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(cd;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); na("Int8Array.prototype.copyWithin",Ja);na("Uint8Array.prototype.copyWithin",Ja);na("Uint8ClampedArray.prototype.copyWithin",Ja);na("Int16Array.prototype.copyWithin",Ja);na("Uint16Array.prototype.copyWithin",Ja);na("Int32Array.prototype.copyWithin",Ja);na("Uint32Array.prototype.copyWithin",Ja);na("Float32Array.prototype.copyWithin",Ja);na("Float64Array.prototype.copyWithin",Ja); na("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#>>0);paa=0;g.k=fb.prototype;g.k.I1=function(a){var b=g.Ea.apply(1,arguments),c=this.vL(b);c?c.push(new saa(a)):this.CX(a,b)}; g.k.CX=function(a){this.Ox.set(this.ST(g.Ea.apply(1,arguments)),[new saa(a)])}; g.k.vL=function(){var a=this.ST(g.Ea.apply(0,arguments));return this.Ox.has(a)?this.Ox.get(a):void 0}; g.k.h3=function(){var a=this.vL(g.Ea.apply(0,arguments));return a&&a.length?a[0]:void 0}; g.k.clear=function(){this.Ox.clear()}; g.k.ST=function(){var a=g.Ea.apply(0,arguments);return a?a.join(","):"key"};g.x(ib,fb);ib.prototype.B=function(a){var b=g.Ea.apply(1,arguments),c=0,d=this.h3(b);d&&(c=d.NS);this.CX(c+a,b)};g.x(jb,fb);jb.prototype.Tf=function(a){this.I1(a,g.Ea.apply(1,arguments))};g.D.prototype.Zo=!1;g.D.prototype.isDisposed=function(){return this.Zo}; g.D.prototype.dispose=function(){this.Zo||(this.Zo=!0,this.ra())}; g.D.prototype.ra=function(){if(this.lk)for(;this.lk.length;)this.lk.shift()()};g.ab(qb,Error);qb.prototype.name="CustomError";var gca;g.ab(sb,qb);sb.prototype.name="AssertionError";g.tb.prototype.stopPropagation=function(){this.u=!0}; g.tb.prototype.preventDefault=function(){this.defaultPrevented=!0};var vaa,sm,pn;vaa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0); for(var c=0;cc&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; g.Wb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f/g,Maa=/"/g,Naa=/'/g,Oaa=/\x00/g,Iaa=/[\x00&<>"']/;var oc,u8a=g.La.navigator;oc=u8a?u8a.userAgentData||null:null;Ec[" "]=function(){};var an,TW,D0a,v8a,w8a,x8a,KK,LK,y8a;g.MK=sc();g.Ue=tc();g.KB=qc("Edge");g.pL=g.KB||g.Ue;an=qc("Gecko")&&!(gc(g.kc(),"WebKit")&&!qc("Edge"))&&!(qc("Trident")||qc("MSIE"))&&!qc("Edge");g.Jc=gc(g.kc(),"WebKit")&&!qc("Edge");TW=Dc();D0a=Uaa();g.Bz=Taa();v8a=Ac();w8a=qc("iPad");x8a=qc("iPod");KK=Cc();LK=gc(g.kc(),"KaiOS"); a:{var z8a="",A8a=function(){var a=g.kc();if(an)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.KB)return/Edge\/([\d\.]+)/.exec(a);if(g.Ue)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Jc)return/WebKit\/(\S+)/.exec(a);if(g.MK)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); A8a&&(z8a=A8a?A8a[1]:"");if(g.Ue){var B8a=Yaa();if(null!=B8a&&B8a>parseFloat(z8a)){y8a=String(B8a);break a}}y8a=z8a}var Gc=y8a,Waa={},C8a;if(g.La.document&&g.Ue){var D8a=Yaa();C8a=D8a?D8a:parseInt(Gc,10)||void 0}else C8a=void 0;var Zaa=C8a;var nMa=$aa("AnimationEnd"),NJa=$aa("TransitionEnd");g.ab(Mc,g.tb);var E8a={2:"touch",3:"pen",4:"mouse"}; Mc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?an&&(Fc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX? a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:E8a[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&Mc.Hf.preventDefault.call(this)}; Mc.prototype.stopPropagation=function(){Mc.Hf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0}; Mc.prototype.preventDefault=function(){Mc.Hf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var aba="closure_listenable_"+(1E6*Math.random()|0);var bba=0;var hba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=ld.prototype;g.k.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=nd(a,b,d,e);-1>>0);g.ab(g.Cd,g.D);g.Cd.prototype[aba]=!0;g.k=g.Cd.prototype;g.k.addEventListener=function(a,b,c,d){g.pd(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){pba(this,a,b,c,d)}; g.k.dispatchEvent=function(a){var b=this.eO;if(b){var c=[];for(var d=1;b;b=b.eO)c.push(b),++d}b=this.C1;d=a.type||a;if("string"===typeof a)a=new g.tb(a,b);else if(a instanceof g.tb)a.target=a.target||b;else{var e=a;a=new g.tb(d,b);g.kd(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Dd(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Dd(h,d,!0,a)&&e,a.u||(e=Dd(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&fCg.length&&Cg.push(this)}; g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.OE=!1}; g.k.reset=function(){this.j=this.C}; g.k.advance=function(a){mg(this,this.j+a)}; g.k.kJ=function(){var a=zg(this);return 4294967296*zg(this)+(a>>>0)}; var Cg=[];Dg.prototype.free=function(){this.j.clear();this.u=this.C=-1;100>b3.length&&b3.push(this)}; Dg.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1}; Dg.prototype.advance=function(a){this.j.advance(a)}; var b3=[];var Gda,Jda;Jg.prototype.length=function(){return this.j.length}; Jg.prototype.end=function(){var a=this.j;this.j=[];return a};var Pg="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;var mh={},L8a,sh=Object.freeze(Sg([],23));var dea="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():"di";var ai;g.k=O.prototype;g.k.toJSON=function(){if(L8a)var a=ii(this,this.Xd,!1);else a=bi(this.Xd,wea,void 0,void 0,!1,!1),a=ii(this,a,!0);return a}; g.k.hm=function(){L8a=!0;try{return JSON.stringify(this.toJSON(),tea)}finally{L8a=!1}}; g.k.clone=function(){return hi(this,!1)}; g.k.uq=function(){return eh(this.Xd)}; g.k.eN=mh;g.k.toString=function(){return ii(this,this.Xd,!1).toString()};var yea=Symbol(),Dea=Symbol(),mi=Symbol(),li=Symbol(),M8a=oi(function(a,b,c){if(1!==a.u)return!1;ph(b,c,Ag(a.j));return!0},pi),N8a=oi(function(a,b,c){if(1!==a.u)return!1; a=Ag(a.j);ph(b,c,0===a?void 0:a);return!0},pi),b9a=oi(function(a,b,c,d){if(1!==a.u)return!1; Jh(b,c,d,Ag(a.j));return!0},pi),c9a=oi(function(a,b,c){if(0!==a.u)return!1; ph(b,c,xg(a.j));return!0},qi),d9a=oi(function(a,b,c){if(0!==a.u)return!1; a=xg(a.j);ph(b,c,0===a?void 0:a);return!0},qi),e9a=oi(function(a,b,c,d){if(0!==a.u)return!1; Jh(b,c,d,xg(a.j));return!0},qi),f9a=oi(function(a,b,c){if(0!==a.u)return!1; ph(b,c,yg(a.j));return!0},ri),g9a=oi(function(a,b,c){if(0!==a.u)return!1; a=yg(a.j);ph(b,c,0===a?void 0:a);return!0},ri),h9a=oi(function(a,b,c,d){if(0!==a.u)return!1; Jh(b,c,d,yg(a.j));return!0},ri),i9a=oi(function(a,b,c){if(1!==a.u)return!1; ph(b,c,a.j.kJ());return!0},function(a,b,c){Qda(a,c,oh(b,c))}),j9a=oi(function(a,b,c){if(1!==a.u&&2!==a.u)return!1; b=th(b,c,0,!1,eh(b.Xd));if(2==a.u){c=lg.prototype.kJ;var d=yg(a.j)>>>0;for(d=a.j.j+d;a.j.j>>0);return!0},function(a,b,c){b=Th(b,c); null!=b&&null!=b&&(Ng(a,c,0),Kg(a.j,b))}),r9a=oi(function(a,b,c){if(0!==a.u)return!1; ph(b,c,yg(a.j));return!0},function(a,b,c){b=oh(b,c); null!=b&&(b=parseInt(b,10),Ng(a,c,0),Mda(a.j,b))});g.x(ti,O);ti.vb=[1,2,3,4];g.x(ui,O);var Bi=[1,2,3],s9a=[ui,1,n9a,Bi,2,h9a,Bi,3,l9a,Bi];g.x(Pea,O);var t9a=[Pea,1,M8a,2,c9a];g.x(vi,O);vi.vb=[1];var u9a=[vi,1,d3,t9a];g.x(wi,O);var Ai=[1,2,3],v9a=[wi,1,e9a,Ai,2,b9a,Ai,3,p9a,u9a,Ai];g.x(xi,O);xi.vb=[1];var w9a=[xi,1,d3,s9a,2,o9a,v9a];g.x(Qea,O);var x9a=[Qea,1,c3,2,c3,3,k9a];g.x(Rea,O);var y9a=[Rea,1,c3,2,c3,3,f9a,4,k9a];g.x(Sea,O);var z9a=[1,2],A9a=[Sea,1,p9a,x9a,z9a,2,p9a,y9a,z9a];g.x(yi,O);yi.prototype.aq=function(){var a=Vh(this,3,void 0,2);Wda(a);return a[void 0]}; yi.vb=[3,6,4];yi.prototype.j=Oea([yi,1,c3,5,i9a,2,o9a,A9a,3,m9a,6,j9a,4,d3,w9a]);g.x(zi,O);zi.vb=[1];var Zea={};g.k=Pi.prototype;g.k.isEnabled=function(){if(!g.La.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{AG:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.m9a;d=c.F8||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.AG}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+ e:"")}; g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;ed&&this.Dau||401===u||0===u);y&&(c.u=B.concat(c.u),c.qa||c.j.enabled||c.j.start());b&&b("net-send-failed",u);++c.J},t=function(){c.network?c.network.send(n,p,q):c.Za(n,p,q)}; m?m.then(function(u){n.Yv["Content-Encoding"]="gzip";n.Yv["Content-Type"]="application/binary";n.body=u;n.V1=2;t()},function(){t()}):t()}}}}; g.k.mL=function(){Ifa(this.C,!0);this.flush();Ifa(this.C,!1)}; g.x(Gfa,g.tb);Afa.prototype.zf=function(a,b,c){b=void 0===b?0:b;c=void 0===c?0:c;if(rh(Lh(this.j,Wh,1),Hj,11)){var d=Pj(this);K(d,3,c)}c=this.j.clone();d=Date.now().toString();c=K(c,4,d);a=Qh(c,Jj,3,a);b&&K(a,14,b);return a};g.ab(Qj,g.D); Qj.prototype.zf=function(){var a=new Nj(this.J,this.ea?this.ea:afa,this.Ba,this.qa,this.C,this.D,!1,this.Ma,void 0,void 0,this.Aa?this.Aa:void 0);g.J(this,a);this.K&&Mj(a.C,this.K);if(this.u){var b=this.u,c=Oj(a.C);K(c,7,b)}this.ma&&(a.V=this.ma);this.j&&(a.componentId=this.j);this.B&&((b=this.B)?(a.B||(a.B=new Ti),b=b.hm(),K(a.B,4,b)):a.B&&K(a.B,4,void 0,!1));this.Da&&(c=this.Da,a.B||(a.B=new Ti),b=a.B,jh(b),null==c?c=void 0:c=Tg(c),ph(b,2,c));this.V&&(b=this.V,a.Ja=!0,Dfa(a,b));this.Ja&&Kfa(a.C, this.Ja);return a};g.x(Rj,g.D);Rj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new zi,c=[],d=0;d>>3;1!=f.B&&2!=f.B&&15!=f.B&&pl(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0} function c(m){f.C++;5==f.C&&m&240&&pl(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.V=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())} function d(m){f.D[f.V++]=m;f.V==f.u&&e()} function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.j=0} for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;lb||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?wl(this,7):7==c?wl(this,8):d||wl(this,3)),this.u||(this.u=Iga(this.j),null==this.u&&wl(this,5)),2this.B){var h=a.length;c=[];try{if(this.u.ME())for(var l=0;lthis.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){wl(this,5);xl(this);break a}}4==b?(0!=e.length|| this.ea?wl(this,2):wl(this,4),xl(this)):wl(this,1)}}}catch(p){wl(this,6),xl(this)}};g.k=Jga.prototype;g.k.on=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this}; g.k.addListener=function(a,b){this.on(a,b);return this}; g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Db(c,b);(a=this.j[a])&&g.Db(a,b);return this}; g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this}; g.k.K5=function(a){var b=this.u.data;b&&Kga(a,b);(b=this.j.data)&&Kga(a,b);this.j.data=[]}; g.k.r7=function(){switch(this.B.getStatus()){case 1:yl(this,"readable");break;case 5:case 6:case 4:case 7:case 3:yl(this,"error");break;case 8:yl(this,"close");break;case 2:yl(this,"end")}};Lga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Mga(function(h){var l=h.MF(),m=h.getMetadata(),n=Qga(e,!1);m=Rga(e,m,n,f+l.getName());var p=Sga(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,pga(d,b,c))};Tga.prototype.create=function(a,b){return Pga(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},G9a)};var Uga=globalThis.TextEncoder?new TextEncoder:void 0;g.x(zl,Error);g.x(Al,g.D);Al.prototype.C=function(a){var b=this.j(a);a=new dk(this.logger,this.u);b=g.Rf(b,2);a.done();return b}; g.x(Dl,Al);Dl.prototype.j=function(a){++this.K>=this.V&&this.D.resolve();var b=new dk(this.logger,"C");a=this.J(a.Yx);b.done();if(void 0===a)throw new zl(17,Error("YNJ:Undefined"));if(!(a instanceof Uint8Array))throw new zl(18,Error("ODM:Invalid"));return a}; g.x(El,Al);El.prototype.j=function(){return this.J}; g.x(Fl,Al);Fl.prototype.j=function(){return Tf(this.J)}; Fl.prototype.C=function(){return this.J}; g.x(Gl,Al);Gl.prototype.j=function(){if(this.J)return this.J;this.J=Xga(this,function(a){return"_"+Wfa(a)}); return Xga(this,function(a){return a})}; g.x(Hl,Al);Hl.prototype.j=function(a){var b;a=Vga(null!=(b=a.Yx)?b:"");if(118>24&255,c>>16&255,c>>8&255,c&255],a);for(c=b=b.length;cd)return"";this.j.sort(function(n,p){return n-p}); c=null;b="";for(var e=0;e=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};um.prototype.setInterval=function(a,b){return em.setInterval(a,b)}; um.prototype.clearInterval=function(a){em.clearInterval(a)}; um.prototype.setTimeout=function(a,b){return em.setTimeout(a,b)}; um.prototype.clearTimeout=function(a){em.clearTimeout(a)};g.x(wm,O);wm.prototype.j=Oea([wm,1,N8a,2,d9a,3,d9a,4,d9a,5,g9a]);var Mha={QQa:1,s1:2,iKa:3};Oha.prototype.tO=function(a){if("string"===typeof a&&0!=a.length){var b=this.Dc;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Um.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Sm(this.j,a.j)&&!0};Vm.prototype.wb=function(){return this.K}; Vm.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.K==a.K&&Sm(this.B,a.B)&&Sm(this.J,a.J)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.V==a.V};var P9a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},xo={e1:"start",xZ:"firstquartile",P0:"midpoint",h1:"thirdquartile",lZ:"complete",ERROR:"error",O0:"metric",PAUSE:"pause",Y0:"resume",b1:"skip",q1:"viewable_impression",R0:"mute",n1:"unmute",yZ:"fullscreen",wZ:"exitfullscreen",jZ:"bufferstart",iZ:"bufferfinish",zZ:"fully_viewable_audible_half_duration_impression",N0:"measurable_impression",bZ:"abandon",vZ:"engagedview",CZ:"impression",nZ:"creativeview",M0:"loaded",aSa:"progress", CLOSE:"close",Tla:"collapse",WOa:"overlay_resize",XOa:"overlay_unmeasurable_impression",YOa:"overlay_unviewable_impression",aPa:"overlay_viewable_immediate_impression",ZOa:"overlay_viewable_end_of_session_impression",pZ:"custom_metric_viewable",aOa:"verification_debug",eZ:"audio_audible",gZ:"audio_measurable",fZ:"audio_impression"},zka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Aka=["start","firstquartile","midpoint","thirdquartile"],pja=["abandon"],Ro={UNKNOWN:-1,e1:0, xZ:1,P0:2,h1:3,lZ:4,O0:5,PAUSE:6,Y0:7,b1:8,q1:9,R0:10,n1:11,yZ:12,wZ:13,zZ:14,N0:15,bZ:16,vZ:17,CZ:18,nZ:19,M0:20,pZ:21,jZ:22,iZ:23,fZ:27,gZ:28,eZ:29};var bia={L$:"addEventListener",Cwa:"getMaxSize",Dwa:"getScreenSize",Ewa:"getState",Fwa:"getVersion",wSa:"removeEventListener",dAa:"isViewable"};g.k=g.Xm.prototype;g.k.clone=function(){return new g.Xm(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.se?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; g.k.distance=function(a){var b=a.x=this.V?a:this;b!==this.j?(this.J=this.j.J,Gn(this)):this.J!==this.j.J&&(this.J=this.j.J,Gn(this))}; g.k.Ms=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.ea);this.C=a;b&&tia(this)}}; g.k.mp=function(){return this.ea}; g.k.dispose=function(){this.Da=!0}; g.k.isDisposed=function(){return this.Da};g.k=Hn.prototype;g.k.lJ=function(){return!0}; g.k.FA=function(){}; g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Db(a.D,this);a.ea&&this.mp()&&sia(a);this.FA();this.ma=!0}}; g.k.isDisposed=function(){return this.ma}; g.k.Bs=function(){return this.u.Bs()}; g.k.hq=function(){return this.u.hq()}; g.k.vy=function(){return this.u.vy()}; g.k.aC=function(){return this.u.aC()}; g.k.Fy=function(){}; g.k.Ms=function(){this.Qr()}; g.k.mp=function(){return this.qa};g.k=In.prototype;g.k.hq=function(){return this.j.hq()}; g.k.vy=function(){return this.j.vy()}; g.k.aC=function(){return this.j.aC()}; g.k.create=function(a,b,c){var d=null;this.j&&(d=this.DE(a,b,c),Fn(this.j,d));return d}; g.k.lR=function(){return this.GA()}; g.k.GA=function(){return!1}; g.k.init=function(a){return this.j.initialize()?(Fn(this.j,this),this.C=a,!0):!1}; g.k.Fy=function(a){0==a.hq()&&this.C(a.vy(),this)}; g.k.Ms=function(){}; g.k.mp=function(){return!1}; g.k.dispose=function(){this.D=!0}; g.k.isDisposed=function(){return this.D}; g.k.Bs=function(){return{}};Jn.prototype.add=function(a,b,c){++this.B;a=new uia(a,b,c);this.j.push(new uia(a.u,a.j,a.B+this.B/4096));this.u=!0;return this};zia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Ln(this.j);0=h;h=!(0=h)||c;this.j[e].update(f&&l,d,!f||h)}};Tn.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.me):b.me;this.qa=Math.max(this.qa,b.me);this.Aa=-1!=this.Aa?Math.min(this.Aa,b.Uj):b.Uj;this.Ba=Math.max(this.Ba,b.Uj);this.ib.update(b.Uj,c.Uj,b.j,a,d);this.u.update(b.me,c.me,b.j,a,d);c=d||c.fv!=b.fv?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Oa.update(c,a,b)}; Tn.prototype.zq=function(){return this.Oa.B>=this.fb};if(rn&&rn.URL){var Q9a=rn.URL,R9a;if(R9a=!!Q9a){var S9a;a:{if(Q9a){var T9a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var i3=T9a.exec(decodeURIComponent(Q9a));if(i3){S9a=i3[1]&&1=(this.fv()?.3:.5),this.SP(f,a,d),this.ep=b,0=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0=a.bottom||a.left>=a.right?new Qm(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.UU(c)?c=new Qm(0,0,0,0):(d=qn().C,b=new Qm(0,d.height,d.width,0),d=Xn(c,this.j),e=Xn(c,qn().j),b=Xn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Qm(0,0,0, 0):Tm(c,-this.j.left,-this.j.top);sn()||(e=d=0);this.K=new Vm(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.u.getName()};var Y9a=new Qm(0,0,0,0);g.x(qo,po);g.k=qo.prototype;g.k.lJ=function(){this.B();return!0}; g.k.Ms=function(){po.prototype.Qr.call(this)}; g.k.HS=function(){}; g.k.xK=function(){}; g.k.Qr=function(){this.B();po.prototype.Qr.call(this)}; g.k.Fy=function(a){a=a.isActive();a!==this.J&&(a?this.B():(qn().j=new Qm(0,0,0,0),this.j=new Qm(0,0,0,0),this.C=new Qm(0,0,0,0),this.timestamp=-1));this.J=a};var m3={},nja=(m3.firstquartile=0,m3.midpoint=1,m3.thirdquartile=2,m3.complete=3,m3);g.x(so,Yn);g.k=so.prototype;g.k.mp=function(){return!0}; g.k.yq=function(){return 2==this.Ji}; g.k.XT=function(a){return Qia(this,a,Math.max(1E4,this.B/3))}; g.k.Ra=function(a,b,c,d,e,f,h){var l=this,m=this.K(this)||{};g.kd(m,e);this.B=m.duration||this.B;this.ea=m.isVpaid||this.ea;this.Ma=m.isYouTube||this.Ma;e=fja(this,b);1===eja(this)&&(f=e);Yn.prototype.Ra.call(this,a,b,c,d,m,f,h);this.Gq&&this.Gq.B&&g.Wb(this.J,function(n){n.u(l)})}; g.k.SP=function(a,b,c){Yn.prototype.SP.call(this,a,b,c);vo(this).update(a,b,this.Eh,c);this.ib=bo(this.Eh)&&bo(b);-1==this.Ba&&this.fb&&(this.Ba=this.cj().B.j);this.Tg.B=0;a=this.zq();b.isVisible()&&io(this.Tg,"vs");a&&io(this.Tg,"vw");on(b.volume)&&io(this.Tg,"am");bo(b)?io(this.Tg,"a"):io(this.Tg,"mut");this.Ky&&io(this.Tg,"f");-1!=b.u&&(io(this.Tg,"bm"),1==b.u&&(io(this.Tg,"b"),bo(b)&&io(this.Tg,"umutb")));bo(b)&&b.isVisible()&&io(this.Tg,"avs");this.ib&&a&&io(this.Tg,"avw");0this.j.V&&(this.j=this,Gn(this)),this.V=a);return 2==a};Lo.prototype.sample=function(){Oo(this,Do(),!1)}; Lo.prototype.C=function(){var a=sn(),b=Lm();a?(Nm||(Om=b,g.Wb(Co.j,function(c){var d=c.cj();d.Ma=lo(d,b,1!=c.Ji)})),Nm=!0):(this.K=Oja(this,b),Nm=!1,oja=b,g.Wb(Co.j,function(c){c.jB&&(c.cj().V=b)})); Oo(this,Do(),!a)}; var Mo=tm(Lo);var Qja=null,sp="",rp=!1;var Tja=Sja().Co,Qo=Sja().Eo;var Wja={qua:"visible",jia:"audible",e_a:"time",h_a:"timetype"},Xja={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, audible:function(a){return"0"==a||"1"==a}, timetype:function(a){return"mtos"==a||"tos"==a}, time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}}; Vja.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.x(Uo,mo);Uo.prototype.getId=function(){return this.K}; Uo.prototype.J=function(){return!0}; Uo.prototype.j=function(a){var b=a.cj(),c=a.getDuration();return pn(this.V,function(d){if(void 0!=d.j)var e=Zja(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0=d);return d})};g.x(Vo,Zia);Vo.prototype.j=function(a){var b=new go;b.j=ho(a,V9a);b.u=ho(a,X9a);return b};g.x(Wo,mo);Wo.prototype.j=function(a){return hja(a)};g.x(ep,dja);g.x(fp,mo);fp.prototype.j=function(a){return a.cj().zq()};g.x(gp,no);gp.prototype.j=function(a){var b=g.Bb(this.K,Rl(ym().Dc,"ovms"));return!a.Rs&&(0!=a.Ji||b)};g.x(hp,ep);hp.prototype.u=function(){return new gp(this.j)}; hp.prototype.B=function(){return[new fp("viewable_impression",this.j),new Wo(this.j)]};g.x(ip,qo);ip.prototype.B=function(){var a=g.Na("ima.admob.getViewability"),b=Rl(this.Dc,"queryid");"function"===typeof a&&b&&a(b)}; ip.prototype.getName=function(){return"gsv"};g.x(jp,In);jp.prototype.getName=function(){return"gsv"}; jp.prototype.GA=function(){var a=qn();ym();return a.u&&!1}; jp.prototype.DE=function(a,b,c){return new ip(this.j,b,c)};g.x(kp,qo);kp.prototype.B=function(){var a=this,b=g.Na("ima.bridge.getNativeViewability"),c=Rl(this.Dc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.cd(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=mia(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?Y9a.clone():mia(e);a.timestamp=d.opt_nativeTime||-1;qn().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; kp.prototype.getName=function(){return"nis"};g.x(lp,In);lp.prototype.getName=function(){return"nis"}; lp.prototype.GA=function(){var a=qn();ym();return a.u&&!1}; lp.prototype.DE=function(a,b,c){return new kp(this.j,b,c)};g.x(mp,En);g.k=mp.prototype;g.k.EA=function(){return null!=this.u.qn}; g.k.QT=function(){var a={};this.Ja&&(a.mraid=this.Ja);this.Aa&&(a.mlc=1);a.mtop=this.u.V8;this.K&&(a.mse=this.K);this.Ma&&(a.msc=1);a.mcp=this.u.compatibility;return a}; g.k.Ft=function(a){var b=g.Ea.apply(1,arguments);try{return this.u.qn[a].apply(this.u.qn,b)}catch(c){Km(538,c,.01,function(d){d.method=a})}}; g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.aC();this.isInitialized=!0;if(2===this.u.compatibility)return this.K="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.K="mm",this.fail("w"),!1;qn().V=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?cka(this):Vn(this.B,"load",function(){vm().setTimeout(Jm(292,function(){return cka(a)}),100)},292); return!0}; g.k.jR=function(){var a=qn(),b=hka(this,"getMaxSize");a.j=new Qm(0,b.width,b.height,0)}; g.k.kR=function(){qn().C=hka(this,"getScreenSize")}; g.k.dispose=function(){eka(this);En.prototype.dispose.call(this)};var Jha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=op.prototype;g.k.dB=function(a){Zn(a,!1);Bja(a)}; g.k.WF=function(){}; g.k.uD=function(a,b,c,d){var e=this;a=new so(em,a,c?b:-1,7,this.TK(),this.bT());a.di=d;eha(a.Dc);Ql(a.Dc,"queryid",a.di);a.tO("");Tia(a,function(){return e.nU.apply(e,g.oa(g.Ea.apply(0,arguments)))},function(){return e.K3.apply(e,g.oa(g.Ea.apply(0,arguments)))}); (d=tm(Eo).j)&&Pia(a,d);a.Bj.Ys&&tm(Kja);return a}; g.k.Fy=function(a){switch(a.hq()){case 0:if(a=tm(Eo).j)a=a.j,g.Db(a.D,this),a.ea&&this.mp()&&sia(a);qp();break;case 2:No()}}; g.k.Ms=function(){}; g.k.mp=function(){return!1}; g.k.K3=function(a,b){a.Rs=!0;switch(a.Lo()){case 1:nka(a,b);break;case 2:this.FO(a)}}; g.k.T3=function(a){var b=a.K(a);b&&(b=b.volume,a.qb=on(b)&&0a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)}; Jp.prototype.get=function(a){return!!this.data_[a]};var Lp;g.ab(g.Op,g.D);g.k=g.Op.prototype;g.k.start=function(){this.stop();this.C=!1;var a=Mka(this),b=Nka(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.pd(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(rba(this.B),20)}; g.k.stop=function(){if(this.isActive()){var a=Mka(this),b=Nka(this);a&&!b&&this.u.mozRequestAnimationFrame?td(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null}; g.k.isActive=function(){return null!=this.j}; g.k.J_=function(){this.C&&this.j&&td(this.j);this.j=null;this.J.call(this.D,g.Ya())}; g.k.ra=function(){this.stop();g.Op.Hf.ra.call(this)};g.ab(g.Qp,g.D);g.k=g.Qp.prototype;g.k.HA=0;g.k.ra=function(){g.Qp.Hf.ra.call(this);this.stop();delete this.j;delete this.u}; g.k.start=function(a){this.stop();this.HA=g.Lf(this.B,void 0!==a?a:this.Ii)}; g.k.stop=function(){this.isActive()&&g.La.clearTimeout(this.HA);this.HA=0}; g.k.isActive=function(){return 0!=this.HA}; g.k.nR=function(){this.HA=0;this.j&&this.j.call(this.u)};Up.prototype[Symbol.iterator]=function(){return this}; Up.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};cq.prototype.nk=function(){return new dq(this.u())}; cq.prototype[Symbol.iterator]=function(){return new eq(this.u())}; cq.prototype.j=function(){return new eq(this.u())}; g.x(dq,g.$n);dq.prototype.next=function(){return this.u.next()}; dq.prototype[Symbol.iterator]=function(){return new eq(this.u)}; dq.prototype.j=function(){return new eq(this.u)}; g.x(eq,cq);eq.prototype.next=function(){return this.B.next()};g.k=g.gq.prototype;g.k.Sl=function(){iq(this);for(var a=[],b=0;b2*this.size&&iq(this),!0):!1}; g.k.get=function(a,b){return hq(this.u,a)?this.u[a]:b}; g.k.set=function(a,b){hq(this.u,a)||(this.size+=1,this.j.push(a),this.St++);this.u[a]=b}; g.k.forEach=function(a,b){for(var c=this.Ko(),d=0;d=d.j.length)return g.j3;var f=d.j[b++];return g.ao(a?f:d.u[f])}; return e};g.ab(g.jq,g.Cd);g.k=g.jq.prototype;g.k.hd=function(){return 1==this.j}; g.k.SG=function(){this.Il("begin")}; g.k.Kq=function(){this.Il("end")}; g.k.onFinish=function(){this.Il("finish")}; g.k.Il=function(a){this.dispatchEvent(a)};var f$a=Hd(function(){if(g.Ue)return!0;var a=g.Ye("DIV"),b=g.Jc?"-webkit":an?"-moz":g.Ue?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!H8a.test("div"))throw Error("");if("DIV"in J8a)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!H8a.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof Md)e=Rd(e);else if("style"==f.toLowerCase()){if(!g.Ra(e))throw Error("");e instanceof ee||(e=Lba(e));e=fe(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in I8a)if(e instanceof Ud)e=yba(e).toString();else if(e instanceof Wd)e=g.Xd(e);else if("string"===typeof e)e=g.de(e).Rl();else throw Error("");}e.Uo&&(e=e.Rl());f=f+'="'+ec(String(e))+'"';d+=" "+f}}var h="":(b=Vba(b),h+=">"+g.je(b).toString()+"");h=g.ke(h);g.Zba(a,h);return""!=g.bn(a.firstChild,"transition")});g.ab(kq,g.jq);g.k=kq.prototype;g.k.play=function(){if(this.hd())return!1;this.SG();this.Il("play");this.startTime=g.Ya();this.j=1;if(f$a())return g.$m(this.u,this.J),this.B=g.Lf(this.V7,void 0,this),!0;this.mJ(!1);return!1}; g.k.V7=function(){g.ln(this.u);Ska(this.u,this.K);g.$m(this.u,this.C);this.B=g.Lf((0,g.Wa)(this.mJ,this,!1),1E3*this.D)}; g.k.stop=function(){this.hd()&&this.mJ(!0)}; g.k.mJ=function(a){g.$m(this.u,"transition","");g.La.clearTimeout(this.B);g.$m(this.u,this.C);this.endTime=g.Ya();this.j=0;if(a)this.Il("stop");else this.onFinish();this.Kq()}; g.k.ra=function(){this.stop();kq.Hf.ra.call(this)}; g.k.pause=function(){};var Uka={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};lq("Element","attributes")||lq("Node","attributes");lq("Element","innerHTML")||lq("HTMLElement","innerHTML");lq("Node","nodeName");lq("Node","nodeType");lq("Node","parentNode");lq("Node","childNodes");lq("HTMLElement","style")||lq("Element","style");lq("HTMLStyleElement","sheet");var $ka=Wka("getPropertyValue"),ala=Wka("setProperty");lq("Element","namespaceURI")||lq("Node","namespaceURI");var Zka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var fla,k8a,ela,dla,gla;fla=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");k8a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.g$a=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); g.mq=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");ela=/^http:\/\/.*/;g.h$a=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");dla=/\s+/;gla=/[\d\u06f0-\u06f9]/;oq.prototype.clone=function(){return new oq(this.j,this.K,this.B,this.D,this.C,this.J,this.u,this.V)}; oq.prototype.equals=function(a){return this.j==a.j&&this.K==a.K&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.J==a.J&&this.u==a.u&&this.V==a.V};qq.prototype.clone=function(){return new qq(this.start,this.end)};(function(){if(D0a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.kc()))?a[1]:"0"}return TW?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.kc()))?a[0].replace(/_/g,"."):"10"):g.Bz?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.kc()))?a[1]:""):v8a||w8a||x8a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.kc()))?a[1].replace(/_/g,"."):""):""})();var ila=function(){if(g.OJ)return rq(/Firefox\/([0-9.]+)/);if(g.Ue||g.KB||g.MK)return Gc;if(g.oI){if(Cc()||Dc()){var a=rq(/CriOS\/([0-9.]+)/);if(a)return a}return rq(/Chrome\/([0-9.]+)/)}if(g.YA&&!Cc())return rq(/Version\/([0-9.]+)/);if(yz||zz){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.kc()))return a[1]+"."+a[2]}else if(g.NK)return(a=rq(/Android\s+([0-9.]+)/))?a:rq(/Version\/([0-9.]+)/);return""}();g.ab(g.tq,g.D);g.k=g.tq.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.J=e+3;d.push(e);return e}; g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Jh(a)}return!1}; g.k.Jh=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.Db(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; g.k.oa=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)return g.j3;var e=c.key(b++);if(a)return g.ao(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.ao(e)}; return d}; g.k.clear=function(){this.j.clear()}; g.k.key=function(a){return this.j.key(a)};g.ab(Aq,zq);g.ab(ola,zq);g.ab(Cq,yq);var pla={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Bq=null;g.k=Cq.prototype;g.k.isAvailable=function(){return!!this.j}; g.k.set=function(a,b){this.j.setAttribute(Dq(a),b);Eq(this)}; g.k.get=function(a){a=this.j.getAttribute(Dq(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.k.remove=function(a){this.j.removeAttribute(Dq(a));Eq(this)}; g.k.nk=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.$n;d.next=function(){if(b>=c.length)return g.j3;var e=c[b++];if(a)return g.ao(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.ao(e)}; return d}; g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0>1;if(b[d].getKey()>c.getKey())b[a]=b[d],a=d;else break}b[a]=c}; g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,h=2*a+2;f=he.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.Sl=function(){for(var a=this.j,b=[],c=a.length,d=0;d>>16&65535|0;for(var f;0!==c;){f=2E3o3;o3++){n3=o3;for(var n$a=0;8>n$a;n$a++)n3=n3&1?3988292384^n3>>>1:n3>>>1;m$a[o3]=n3}xr=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^m$a[(a^b[d])&255];return a^-1};var nr={};nr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var gr=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],jr=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Nla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Cla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rr=Array(576);Zq(rr);var sr=Array(60);Zq(sr);var ir=Array(512);Zq(ir);var fr=Array(256);Zq(fr);var hr=Array(29);Zq(hr);var kr=Array(30);Zq(kr);var Kla,Lla,Mla,Jla=!1;var Cr;Cr=[new Br(0,0,0,0,function(a,b){var c=65535;for(c>a.Zl-5&&(c=a.Zl-5);;){if(1>=a.ac){yr(a);if(0===a.ac&&0===b)return 1;if(0===a.ac)break}a.zb+=a.ac;a.ac=0;var d=a.wk+c;if(0===a.zb||a.zb>=d)if(a.ac=a.zb-d,a.zb=d,tr(a,!1),0===a.Zd.Be)return 1;if(a.zb-a.wk>=a.Qi-262&&(tr(a,!1),0===a.Zd.Be))return 1}a.Rh=0;if(4===b)return tr(a,!0),0===a.Zd.Be?3:4;a.zb>a.wk&&tr(a,!1);return 1}), new Br(4,4,8,4,zr),new Br(4,5,16,8,zr),new Br(4,6,32,32,zr),new Br(4,4,16,16,Ar),new Br(8,16,32,32,Ar),new Br(8,16,128,128,Ar),new Br(8,32,128,256,Ar),new Br(32,128,258,1024,Ar),new Br(32,258,258,4096,Ar)];var Ila={};Ila=function(){this.input=null;this.qw=this.Ui=this.Fv=0;this.Sj=null;this.FP=this.Be=this.jz=0;this.msg="";this.state=null;this.WK=2;this.Id=0};var Ola=Object.prototype.toString; Dr.prototype.push=function(a,b){var c=this.Zd,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=rla(a):"[object ArrayBuffer]"===Ola.call(a)?c.input=new Uint8Array(a):c.input=a;c.Fv=0;c.Ui=c.input.length;do{0===c.Be&&(c.Sj=new Yq.Iw(d),c.jz=0,c.Be=d);a=Hla(c,e);if(1!==a&&0!==a)return this.Kq(a),this.ended=!0,!1;if(0===c.Be||0===c.Ui&&(4===e||2===e))if("string"===this.options.to){var f=Yq.iP(c.Sj,c.jz);b=f;f=f.length;if(65537>f&&(b.subarray&&l$a|| !b.subarray))b=String.fromCharCode.apply(null,Yq.iP(b,f));else{for(var h="",l=0;lc;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.j;this.B=(this.B+1)%4}}; eA.prototype.ra=function(){window.clearInterval(this.V);g.aA(this.qa)};g.x(fA,g.D);fA.prototype.T=function(a,b,c,d,e){c=g.Iy((0,g.Wa)(c,d||this.Hb));c={target:a,name:b,callback:c};var f;e&&ina()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.V.push(c);return c}; fA.prototype.Ic=function(a){for(var b=0;b=U.Hm)||l.j.version>=aa||l.j.objectStoreNames.contains(H)||M.push(H)}m=M;if(0===m.length){B.La(5);break}n=Object.keys(c.options.Jq);p= l.objectStoreNames();if(c.Dc.options.version+1)throw t.close(),c.B=!1,Una(c,u);return B.return(t);case 8:throw b(), q instanceof Error&&!g.Cy("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),ZA(q,c.name,"",null!=(y=c.options.version)?y:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.B)throw Una(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,g9:b,upgrade:this.options.upgrade};return this.j=d=a()};var HB=new FB("YtIdbMeta",{Jq:{databases:{Hm:1}},upgrade:function(a,b){b(1)&&g.iB(a,"databases",{keyPath:"actualName"})}});var MB,LB=new function(){}(new function(){});new g.jk;g.x(PB,FB);PB.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?coa:boa)(a,b,Object.assign({},c))}; PB.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?goa:doa)(this.name,a)};var rbb={},ioa=g.QB("ytGcfConfig",{Jq:(rbb.coldConfigStore={Hm:1},rbb.hotConfigStore={Hm:1},rbb),shared:!1,upgrade:function(a,b){b(1)&&(g.oB(g.iB(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.oB(g.iB(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.x(SB,g.D);SB.prototype.ra=function(){this.j.length=0;g.D.prototype.ra.call(this)};YB.prototype.Wq=function(a){this.hotHashData=a;g.Ma("yt.gcf.config.hotHashData",this.hotHashData||null)};bC.prototype.hm=function(){return{version:this.version,args:this.args}};cC.prototype.toString=function(){return this.topic};var sbb=g.Na("ytPubsub2Pubsub2Instance")||new g.tq;g.tq.prototype.subscribe=g.tq.prototype.subscribe;g.tq.prototype.unsubscribeByKey=g.tq.prototype.Jh;g.tq.prototype.publish=g.tq.prototype.oa;g.tq.prototype.clear=g.tq.prototype.clear;g.Ma("ytPubsub2Pubsub2Instance",sbb);var fC=g.Na("ytPubsub2Pubsub2SubscribedKeys")||{};g.Ma("ytPubsub2Pubsub2SubscribedKeys",fC);var gC=g.Na("ytPubsub2Pubsub2TopicToKeys")||{};g.Ma("ytPubsub2Pubsub2TopicToKeys",gC);var Loa=g.Na("ytPubsub2Pubsub2IsAsync")||{}; g.Ma("ytPubsub2Pubsub2IsAsync",Loa);g.Ma("ytPubsub2Pubsub2SkipSubKey",null);var Poa=g.Dy("max_body_size_to_compress",5E5),Qoa=g.Dy("min_body_size_to_compress",500),jC=!0,lC=0,kC=0,Soa=g.Dy("compression_performance_threshold",250),Toa=g.Dy("slow_compressions_before_abandon_count",10);g.k=oC.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(nC(this)&&this.hg){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.lh.set(d,this.Bf).then(function(e){d.id=e;c.fh.Th()&&c.dC(d)}).catch(function(e){c.dC(d); pC(c,e)})}else this.Vq(a,b)}; g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(nC(this)&&this.hg){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.fh.Th()||this.ob&&this.ob("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; b.onError=function(h,l){return g.A(function(m){if(1==m.j)return g.z(m,d.lh.set(e,d.Bf).catch(function(n){pC(d,n)}),2); f(h,l);g.wa(m)})}}this.Vq(a,b,e.skipRetry)}else this.lh.set(e,this.Bf).catch(function(h){d.Vq(a,b,e.skipRetry); pC(d,h)})}else this.Vq(a,b,this.ob&&this.ob("nwl_skip_retry")&&c)}; g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(nC(this)&&this.hg){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; d.options.onSuccess=function(h,l){void 0!==d.id?c.lh.iy(d.id,c.Bf):e=!0;c.fh.Ev&&c.ob&&c.ob("vss_network_hint")&&c.fh.Ev(!0);f(h,l)}; this.Vq(d.url,d.options);this.lh.set(d,this.Bf).then(function(h){d.id=h;e&&c.lh.iy(d.id,c.Bf)}).catch(function(h){pC(c,h)})}else this.Vq(a,b)}; g.k.Zz=function(){var a=this;if(!nC(this))throw g.$A("throttleSend");this.j||(this.j=this.hn.Ai(function(){var b;return g.A(function(c){if(1==c.j)return g.z(c,a.lh.ZT("NEW",a.Bf),2);if(3!=c.j)return b=c.u,b?g.z(c,a.dC(b),3):(a.zK(),c.return());a.j&&(a.j=0,a.Zz());g.wa(c)})},this.eY))}; g.k.zK=function(){this.hn.Jm(this.j);this.j=0}; g.k.dC=function(a){var b=this,c,d;return g.A(function(e){switch(e.j){case 1:if(!nC(b))throw c=g.$A("immediateSend"),c;if(void 0===a.id){e.La(2);break}return g.z(e,b.lh.z4(a.id,b.Bf),3);case 3:(d=e.u)||b.Gy(Error("The request cannot be found in the database."));case 2:if(b.KH(a,b.kX)){e.La(4);break}b.Gy(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.La(5);break}return g.z(e,b.lh.iy(a.id,b.Bf),5);case 5:return e.return();case 4:a.skipRetry||(a=Zoa(b,a));if(!a){e.La(0); break}if(!a.skipRetry||void 0===a.id){e.La(8);break}return g.z(e,b.lh.iy(a.id,b.Bf),8);case 8:b.Vq(a.url,a.options,!!a.skipRetry),g.wa(e)}})}; g.k.KH=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0}; g.k.NH=function(){var a=this;if(!nC(this))throw g.$A("retryQueuedRequests");this.lh.ZT("QUEUED",this.Bf).then(function(b){b&&!a.KH(b,a.fX)?a.hn.Ai(function(){return g.A(function(c){if(1==c.j)return void 0===b.id?c.La(2):g.z(c,a.lh.MO(b.id,a.Bf),2);a.NH();g.wa(c)})}):a.fh.Th()&&a.Zz()})};var qC;var Wpa={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139, mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437, kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460, transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190, ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259, ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226, userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246, embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,tvhtml5ApiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272, liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300, delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322, tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344, postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364, proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384, accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410, sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,genericClientExperimentEvent:423, homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145, dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451, producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477};var tbb={},ipa=g.QB("ServiceWorkerLogsDatabase",{Jq:(tbb.SWHealthLog={Hm:1},tbb),shared:!0,upgrade:function(a,b){b(1)&&g.oB(g.iB(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var tC={},opa=0;uC.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; uC.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null}; uC.prototype.removeParams=function(a){return a.split("?")[0]}; uC.prototype.removeParams=uC.prototype.removeParams;uC.prototype.isEndpointCFR=uC.prototype.isEndpointCFR;uC.prototype.requestComplete=uC.prototype.requestComplete;uC.getInstance=vC;var wC;g.x(yC,g.Cd);g.k=yC.prototype;g.k.Th=function(){return this.j.Th()}; g.k.Ev=function(a){this.j.j=a}; g.k.s3=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.k.L2=function(){this.u=!0}; g.k.Sa=function(a,b){return this.j.Sa(a,b)}; g.k.SH=function(a){a=Gp(this.j,a);a.then(function(b){g.Cy("use_cfr_monitor")&&vC().requestComplete("generate_204",b)}); return a}; yC.prototype.sendNetworkCheckRequest=yC.prototype.SH;yC.prototype.listen=yC.prototype.Sa;yC.prototype.enableErrorFlushing=yC.prototype.L2;yC.prototype.getWindowStatus=yC.prototype.s3;yC.prototype.networkStatusHint=yC.prototype.Ev;yC.prototype.isNetworkAvailable=yC.prototype.Th;yC.getInstance=qpa;g.x(g.zC,g.Cd);g.zC.prototype.Th=function(){var a=g.Na("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0}; g.zC.prototype.Ev=function(a){var b=g.Na("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)}; g.zC.prototype.SH=function(a){var b=this,c;return g.A(function(d){c=g.Na("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.Cy("skip_network_check_if_cfr")&&vC().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Ev((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Th())})):c?d.return(c(a)):d.return(!0)})};var AC;g.x(BC,oC);BC.prototype.writeThenSend=function(a,b){b||(b={});g.AA()||(this.hg=!1);oC.prototype.writeThenSend.call(this,a,b)}; BC.prototype.sendThenWrite=function(a,b,c){b||(b={});g.AA()||(this.hg=!1);oC.prototype.sendThenWrite.call(this,a,b,c)}; BC.prototype.sendAndWrite=function(a,b){b||(b={});g.AA()||(this.hg=!1);oC.prototype.sendAndWrite.call(this,a,b)}; BC.prototype.awaitInitialization=function(){return this.u.promise};var vpa=g.La.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ma("ytNetworklessLoggingInitializationOptions",vpa);g.DC.prototype.isReady=function(){!this.config_&&yoa()&&(this.config_=g.ZB());return!!this.config_};var ubb,GC,IC;ubb=g.La.ytPubsubPubsubInstance||new g.tq;GC=g.La.ytPubsubPubsubSubscribedKeys||{};IC=g.La.ytPubsubPubsubTopicToKeys||{};g.HC=g.La.ytPubsubPubsubIsSynchronous||{};g.tq.prototype.subscribe=g.tq.prototype.subscribe;g.tq.prototype.unsubscribeByKey=g.tq.prototype.Jh;g.tq.prototype.publish=g.tq.prototype.oa;g.tq.prototype.clear=g.tq.prototype.clear;g.Ma("ytPubsubPubsubInstance",ubb);g.Ma("ytPubsubPubsubTopicToKeys",IC);g.Ma("ytPubsubPubsubIsSynchronous",g.HC); g.Ma("ytPubsubPubsubSubscribedKeys",GC);var zpa=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Apa=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Dpa={};g.x(RC,g.D);var F1a=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED", "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.x(WC,qb);var Kqa=[{dN:function(a){return"Cannot read property '"+a.key+"'"}, kH:{Error:[{mj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{mj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{mj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{mj:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./, groups:["value","key"]},{mj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{mj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{mj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{dN:function(a){return"Cannot call '"+a.key+"'"}, kH:{TypeError:[{mj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{mj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{mj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{mj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{mj:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]}, {mj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{dN:function(a){return a.key+" is not defined"}, kH:{ReferenceError:[{mj:/(.*) is not defined/,groups:["key"]},{mj:/Can't find variable: (.*)/,groups:["key"]}]}}];var Qpa={Iq:[],Rr:[{callback:Npa,weight:500}]};var YC;var $D=new g.tq;var Tpa=new Set([174,173,175]),fD={};var kD=Symbol("injectionDeps");hD.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Upa.prototype.resolve=function(a){return a instanceof iD?lD(this,a.key,[],!0):lD(this,a,[])};var mD;oD.prototype.storePayload=function(a,b){a=pD(a);this.store[a]?this.store[a].push(b):(this.u={},this.store[a]=[b]);this.j++;return a}; oD.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=rD(this,a.keys.splice(0,1)[0]),c=[],d=0;d=this.start&&(azbb.length)xbb=void 0;else{var Abb=ybb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);xbb=Abb&&6===Abb.length?Number(Abb[5].replace("_",".")):0}var NM=xbb,KT=0<=NM;var Exa={Koa:1,Npa:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var FN=psa()?!0:"function"!==typeof window.fetch||!window.ReadableStream||!window.AbortController||g.KB||g.OJ?!1:!0;var I3={},oJ=(I3.FAIRPLAY="fairplay",I3.PLAYREADY="playready",I3.WIDEVINE="widevine",I3.CLEARKEY=null,I3.FLASHACCESS=null,I3.UNKNOWN=null,I3.WIDEVINE_CLASSIC=null,I3);var Bbb=["h","H"],Cbb=["9","("],Dbb=["9h","(h"],Ebb=["8","*"],Fbb=["a","A"],Gbb=["o","O"],Hbb=["m","M"],Ibb=["mac3","MAC3"],Jbb=["meac3","MEAC3"],J3={},$ua=(J3.h=Bbb,J3.H=Bbb,J3["9"]=Cbb,J3["("]=Cbb,J3["9h"]=Dbb,J3["(h"]=Dbb,J3["8"]=Ebb,J3["*"]=Ebb,J3.a=Fbb,J3.A=Fbb,J3.o=Gbb,J3.O=Gbb,J3.m=Hbb,J3.M=Hbb,J3.mac3=Ibb,J3.MAC3=Ibb,J3.meac3=Jbb,J3.MEAC3=Jbb,J3);g.AF.prototype.getLanguageInfo=function(){return this.Kc}; g.AF.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{cC:b,bl:c}}; dG.prototype.isFocused=function(a){return a>=this.B&&aa.Na&&this.index.Om()<=a.Na+1}; g.k.update=function(a,b,c){this.index.append(a);Psa(this.index,c);this.index.u=b}; g.k.Kg=function(){return this.Ry()?!0:jH.prototype.Kg.call(this)}; g.k.Jr=function(a,b){var c=this.index.TF(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0c&&(this.segments=this.segments.slice(b))}}; g.k.JF=function(){return this.To}; g.k.sy=function(a){if(!this.Im)return g.cG.prototype.sy.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Na+Math.floor((a-b.endTime)/this.rj+1);else{b=Sb(this.segments,function(d){return a=d.endTime?1:0}); if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Na-b.Na-1))+1)+b.Na}return this.Ho(b)}; g.k.Ho=function(a){if(!this.Im)return g.cG.prototype.Ho.call(this,a);if(!this.segments.length)return null;var b=IH(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.rj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Na-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Na-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Na-d.Na-1),d=d.endTime+(a-d.Na-1)*b);return new bG(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.x(KH,DH);g.k=KH.prototype;g.k.mC=function(){return!0}; g.k.Kg=function(){return!0}; g.k.Ir=function(a){return this.hv()&&a.u&&!a.kf||!a.j.index.BM(a.Na)}; g.k.Tu=function(){}; g.k.eq=function(a,b){return"number"!==typeof a||isFinite(a)?DH.prototype.eq.call(this,a,void 0===b?!1:b):new zH([new qH(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Yj,void 0,this.Yj*this.info.dc)],"")}; g.k.Jr=function(a,b){var c=void 0===c?!1:c;if(JH(this.index,a))return DH.prototype.Jr.call(this,a,b);var d=this.index.getStartTime(a);return new zH([new qH(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.Yj*this.info.dc,!b)],0<=a?"sq/"+a:"")};g.x(LH,jH);g.k=LH.prototype;g.k.dn=function(){return!1}; g.k.hv=function(){return!1}; g.k.mC=function(){return!1}; g.k.Tu=function(){return new zH([new qH(1,this,void 0,"otfInit")],this.J)}; g.k.Zw=function(){return null}; g.k.IA=function(a){this.Ir(a);return Uta(this,vH(a),!1)}; g.k.eq=function(a,b){b=void 0===b?!1:b;a=this.index.Vg(a);b&&(a=Math.min(this.index.zd(),a+1));return Uta(this,a,!0)}; g.k.aM=function(a){1===a.info.type&&(this.j||(this.j=Tsa(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&Vta(this,a.u))}; g.k.Ir=function(a){return 0===a.u?!0:this.index.zd()>a.Na&&this.index.Om()<=a.Na+1}; g.k.LL=function(){return 0}; g.k.jO=function(){return!1};MH.prototype.verify=function(a){if(this.info.u!==this.j.totalLength)return a.slength=this.info.u.toString(),a.range=this.j.totalLength.toString(),!1;if(1===this.info.j.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=NH(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.Tb)return 1836019558===b||1936286840=== b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=NH(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Tb)return 524531317===c||440786851===c}return!0};g.k=g.TH.prototype;g.k.cq=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.gi[a]/this.j}; g.k.EL=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.k.VF=ba(1);g.k.Pf=function(){return NaN}; g.k.getDuration=function(a){a=this.LT(a);return 0<=a?a/this.j:-1}; g.k.LT=function(a){return a+1=this.zd())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,dua(this,a)/this.getDuration(a));return c}; g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.gi;this.gi=new Float64Array(a+1);for(a=0;a=b+c)break}e.length||g.YD(new g.yA("b189619593",""+a,""+b,""+c));return new zH(e)}; g.k.oR=function(a){for(var b=this.Fz(a.info),c=a.info.range.start+a.info.Tb,d=a.B,e=[],f=0;f=this.index.cq(c+1);)c++;return this.PB(c,b,a.u).jb}; g.k.Ir=function(a){rH(a);return this.Kg()?!0:a.range.end+1this.info.contentLength&&(b=new mH(b.start,this.info.contentLength-1)),new zH([new qH(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.Fz(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Tb+a.u;3===a.type&&(rH(a),c=a.Na,d===a.range.end+1&&(c+=1));return this.PB(c,d,b)}; g.k.IA=function(){return null}; g.k.eq=function(a,b,c){b=void 0===b?!1:b;a=this.index.Vg(a);b&&(a=Math.min(this.index.zd(),a+1));return this.PB(a,this.index.cq(a),0,c)}; g.k.dn=function(){return!0}; g.k.hv=function(){return!0}; g.k.mC=function(){return!1}; g.k.LL=function(){return this.indexRange.length+this.initRange.length}; g.k.jO=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};WH.prototype.isMultiChannelAudio=function(){return 2this.wB()?(this.Xb.appendWindowEnd=b,this.Xb.appendWindowStart=a):(this.Xb.appendWindowStart=a,this.Xb.appendWindowEnd=b))}; g.k.SL=function(){return this.timestampOffset}; g.k.gr=function(a){wX?this.timestampOffset=a:this.supports(1)&&(this.Xb.timestampOffset=a)}; g.k.Kd=function(){return wX?this.timestampOffset:this.supports(1)?this.Xb.timestampOffset:0}; g.k.yg=function(a){if(void 0===a?0:a)return this.YA||this.gj()||(this.wK=this.yg(!1),this.YA=!0),this.wK;try{return this.Xb?this.Xb.buffered:this.Fg?this.Fg.webkitSourceBuffered(this.id):sI([0],[Infinity])}catch(b){return sI([],[])}}; g.k.gj=function(){var a;return(null==(a=this.Xb)?void 0:a.updating)||!1}; g.k.Ul=function(){return this.aF}; g.k.wM=function(){return!this.aF&&this.gj()}; g.k.Qx=function(){this.aF=!1}; g.k.Sy=function(a){var b=null==a?void 0:a.Qb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.Qb&&a===this.containerType}; g.k.zs=function(){return this.sC}; g.k.KF=function(){return this.LM}; g.k.QP=function(a,b){this.containerType!==a&&(this.supports(4),$I()&&this.Xb.changeType(b));this.containerType=a}; g.k.LF=function(){return this.Ef}; g.k.isView=function(){return!1}; g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Xb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Xb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Xb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Xb)?0:e.addEventListener)&&(null==(f=this.Xb)?0:f.removeEventListener));case 4:return!(!this.Xb||!this.Xb.changeType);default:return!1}}; g.k.VE=function(){return!this.gj()}; g.k.isLocked=function(){return!1}; g.k.lc=function(a){a.to=this.Kd();a.up=this.gj();var b,c=(null==(b=this.Xb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Xb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=tI(this.yg())}catch(e){}return a}; g.k.ra=function(){this.supports(3)&&(this.Xb.removeEventListener("updateend",this.Ad),this.Xb.removeEventListener("error",this.Ad));g.yE.prototype.ra.call(this)}; g.k.kI=function(a,b,c){if(!this.supports(2)||this.gj())return!1;var d=this.yg(),e=uI(d,a);if(0>e)return!1;try{if(b&&e+1$bb){V3=$bb;break a}}var acb=W3.match("("+Object.keys(Ybb).join("|")+")");V3=acb?Ybb[acb[0]]:0}else V3=void 0}var SK=V3,RK=0<=SK;var bwa={RED:"red",B6a:"white"};var $va={Qda:"adunit",yoa:"detailpage",jpa:"editpage",rpa:"embedded",tpa:"embedded_unbranded",sDa:"leanback",jRa:"previewpage",ZRa:"profilepage",gS:"unplugged",uQa:"playlistoverview",pXa:"sponsorshipsoffer",AUa:"shortspage",Pwa:"handlesclaiming",nya:"immersivelivepage",Rma:"creatormusic",oya:"immersivelivepreviewpage"};rva.prototype.ob=function(a){return"true"===this.flags[a]};var sva=Promise.resolve(),vva=window.queueMicrotask?window.queueMicrotask.bind(window):tva;bK.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;JB?a=a||bcb[b]:2.2===SK?a=a||ccb[b]:sz()&&(a=a||dcb[b]);return!!a}; bK.prototype.isTypeSupported=function(a){return this.K?window.cast.receiver.platform.canDisplayType(a):pI(a)}; var ccb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},dcb={"application/x-mpegURL":"maybe"},bcb={"application/x-mpegURL":"maybe"};eK.prototype.nf=function(){this.j=!1;if(this.queue.length&&!(this.u&&5>=this.queue.length&&15E3>(0,g.gB)()-this.C)){var a=this.queue.shift(),b=a.url;a=a.options;a.timeout=1E4;g.fz(b,a,3,1E3).then(this.B,this.B);this.u=!0;this.C=(0,g.gB)();5this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;db;b++)this.counter[b]=a[4*b]<<24|a[4*b+1]<<16|a[4*b+2]<<8|a[4*b+3];this.j=16};var nK=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f=this.j&&(this.B=!0);for(;a--;)this.values[this.u]=b,this.u=(this.u+1)%this.j;this.D=!0}; BK.prototype.bj=function(){return this.K?(CK(this,this.C-this.K)+CK(this,this.C)+CK(this,this.C+this.K))/3:CK(this,this.C)};g.x(Vva,g.D);JK.prototype.then=function(a,b){return this.promise.then(a,b)}; JK.prototype.resolve=function(a){this.u(a)}; JK.prototype.reject=function(a){this.j(a)};var awa="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),gwa={hja:"cbrand",qja:"cbr",rja:"cbrver",Yya:"c",bza:"cver",aza:"ctheme",Zya:"cplayer",hKa:"cmodel",TKa:"cnetwork",UOa:"cos",VOa:"cosver",JPa:"cplatform"};g.x(dL,g.D);g.k=dL.prototype;g.k.N=function(a){return this.experiments.ob(a)}; g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.hL(this);e="www.youtube.com"===c;h&&this.N("fill_live_watch_url_in_watch_endpoint")&&e?f="https://"+c+"/live/"+a:!f&&d&&e?f="https://youtu.be/"+a:g.VK(this)?(f="https://"+c+"/fire",b.v=a):(f&&e?(f=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(f=this.protocol+"://"+c+"/watch",b.v=a),JB&&(a=bma())&&(b.ebc=a));return g.jj(f,b)}; g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.hL(this)+"/embed/"+b;d&&(b=g.jj(b,{list:d}));d=c.width;c=c.height;b=g.De(b);a=g.De(null!=a?a:"YouTube video player");return'')}; g.k.supportsGaplessAudio=function(){return g.oI&&!JB&&74<=Dma()||g.OJ&&g.Hc(68)?!0:!1}; g.k.supportsGaplessShorts=function(){return this.N("html5_enable_short_gapless")?!0:!1}; g.k.getPlayerType=function(){return this.j.cplayer}; g.k.pe=function(){return this.Yf}; var iwa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],fwa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"];g.k=AL.prototype;g.k.Bh=function(){return this.j}; g.k.JA=function(){return null}; g.k.pR=function(){var a=this.JA();return a?(a=g.Oy(a.j),Number(a.expire)):NaN}; g.k.SO=function(){}; g.k.getHeight=function(){return this.j.video.height};jwa.prototype.zf=function(){mwa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.v(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Kc){if(e.Kc.getIsDefault()){c=e.Kc.getId();break a}c||(c=e.Kc.getId())}}d=g.v(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Kc||e.Kc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.v(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.v(e),f=e.next();!f.done;f= e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Kc){p=f.Kc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=CL(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(lwa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.v(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=gcb,d=(h=d.Kc)?'#EXT-X-MEDIA:URI="'+CL(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0f.getHeight())&&c.push(f)}return c}; FM.prototype.D=function(a,b,c,d){return new g.EM(a,b,c,d)};g.x(GM,g.EM);g.k=GM.prototype;g.k.EE=function(){return this.u.Cy()}; g.k.FE=function(a){var b=this.rows*this.columns*this.J,c=this.u,d=c.zd();a=c.Vg(a);return a>d-b?-1:a}; g.k.ax=function(){return this.u.zd()}; g.k.oJ=function(){return this.u.Om()}; g.k.qR=function(a){this.u=a};g.x(HM,FM);HM.prototype.u=function(a,b){return FM.prototype.u.call(this,"$N|"+a,b)}; HM.prototype.D=function(a,b,c){return new GM(a,b,c,this.isLive)};g.x(g.JM,g.yE);g.k=g.JM.prototype;g.k.W=function(){return this.u}; g.k.N=function(a){return this.u.N(a)}; g.k.Dh=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.ll)||!a.Ab)}; g.k.dW=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.dW,this),this.QS(-1))}; g.k.QS=function(a){if(!this.isLivePlayback||!this.J||"fairplay"!=this.J.flavor){var b=Fua(this.j,this.OJ);if(0=this.V&&(g.YD(Error("durationMs was specified incorrectly with a value of: "+this.V)),this.Hi());this.Um();this.G.addEventListener("progresssync",this.ma)}; g.k.No=function(){KO.prototype.No.call(this);this.oh("adabandonedreset",!0)}; g.k.Um=function(){var a=this.G.W();yF("apbs",void 0,"video_to_ad");KO.prototype.Um.call(this);this.C=a.N("disable_rounding_ad_notify")?this.G.getCurrentTime():Math.floor(this.G.getCurrentTime());this.D=this.C+this.V/1E3;g.bL(a)?this.G.Pa("onAdMessageChange",{renderer:this.u.j,startTimeSecs:this.C}):jza(this,[new TO(this.u.j)]);a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.ZE(),c=this.u.j.videoAdBreakOffsetMsInt64;b&&g.OA("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3* this.D),timeToAdBreakSec:Math.ceil(this.D-this.C),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J){this.ea=!0;b=this.u.j;if(!SO(b)){g.ZD(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.v(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;xza(d.j(),e);f0(d.j(),e,f)}}g.BO(this.G.Ib(1),512)&&(g.ZD(Error("player stuck during adNotify")),a=(a=this.G.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.ZE(),c=this.u.j.videoAdBreakOffsetMsInt64, b&&g.OA("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.D),timeToAdBreakSec:Math.ceil(this.D-this.C),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Hi())}; g.k.Hi=function(){KO.prototype.Hi.call(this);this.oh("adended",!0)}; g.k.Oo=function(a){g.ZD(new g.yA("Player error during adNotify.",{errorCode:a}));KO.prototype.Oo.call(this,a);this.oh("aderror",!0)}; g.k.oh=function(a,b){(void 0===b?0:b)||g.ZD(Error("TerminateAd directly called from other class during adNotify."));this.G.removeEventListener("progresssync",this.ma);this.Fu();pza(this,a);"adended"===a||"aderror"===a?this.oa("adnotifyexitednormalorerror"):this.oa(a)}; g.k.dispose=function(){this.G.removeEventListener("progresssync",this.ma);pza(this);KO.prototype.dispose.call(this)}; g.k.Fu=function(){g.bL(this.G.W())?this.G.Pa("onAdMessageChange",{renderer:null,startTimeSecs:this.C}):KO.prototype.Fu.call(this)};YO.prototype.sendAdsPing=function(a){this.B.send(a,qza(this),{})}; YO.prototype.Jg=function(a){var b=this;if(a){var c=qza(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.x(ZO,KO);g.k=ZO.prototype;g.k.FB=function(){return{currentTime:this.G.getCurrentTime(2,!1),duration:this.u.u,isPlaying:Hya(this.G),isVpaid:!1,isYouTube:!0,volume:this.G.isMuted()?0:this.G.getVolume()/100}}; g.k.GE=function(){var a=this.u.j.legacyInfoCardVastExtension,b=this.u.ud();a&&b&&this.G.W().Ja.add(b,{ZA:a});try{var c=this.u.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Fka(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Sd("//tpc.googlesyndication.com/sodar/%{path}");g.ZD(new g.yA("Load Sodar Error.",d instanceof Md,d.constructor===Md,{Message:e.message,"Escaped injector basename":g.De(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Md)throw e;}}catch(e){g.YD(e)}ON(this.G,!1); a=Oya(this.u);b=this.G.W();a.iv_load_policy=b.u||g.bL(b)||g.nL(b)?3:1;b=this.G.getVideoData(1);b.Ni&&(a.ctrl=b.Ni);b.nj&&(a.ytr=b.nj);b.Mp&&(a.ytrcc=b.Mp);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.fk&&(a.vss_credentials_token_type=b.fk),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.oa("adunstarted",-1);this.V?this.D.start():(this.G.cueVideoByPlayerVars(a,2),this.D.start(),this.G.playVideo(2))}; g.k.WB=function(){KO.prototype.WB.call(this);this.oa("adpause",2)}; g.k.XB=function(){KO.prototype.XB.call(this);this.oa("adplay",1)}; g.k.Um=function(){KO.prototype.Um.call(this);this.D.stop();this.ea.T(this.G,g.uE("bltplayback"),this.M_);var a=new g.sE(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.G.Je([a],2);a=cP(this);this.C.ea=a;if(this.G.isMuted()){a=this.bb;var b=this.G.isMuted();a.daiEnabled||wO(a,b?"mute":"unmute")}this.oa("adplay",1);if(null!==this.J){a=null!==this.C.j.getVideoData(1)?this.C.j.getVideoData(1).clientPlaybackNonce:"";b=tza(this);for(var c=this.u,d=sza(this), e=g.v(this.J.listeners),f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.ud(),q=l.getVideoUrl();p&&n.push(new t_(p));q&&n.push(new Z0a(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new v_(q)),(q=q.elementId)&&n.push(new z_(q))):bE("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new w_(p));l.j.adNextParams&&n.push(new k_(l.j.adNextParams||""));(p=l.Ba)&&n.push(new l_(p));(p=f.Va.get().fg(2))? (n.push(new m_({channelId:p.dk,channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new n_(p.isListed))):bE("Expected meaningful PlaybackData on ad started.");n.push(new p_(l.B));n.push(new E_(l.u));n.push(new u_(a));n.push(new B_({current:this}));p=l.Oa;null!=p.kind&&n.push(new o_(p));(p=l.Ma)&&n.push(new Q_(p));void 0!==m&&n.push(new R_(m));f.j?bE(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."): uza(f,h,n,!0,l.j.adLayoutLoggingData)}}this.G.Pa("onAdStart",cP(this));a=g.v(this.u.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)}; g.k.M_=function(a){"bltcompletion"==a.getId()&&(this.G.Ge("bltplayback",2),xO(this.bb,this.getDuration()),bP(this,"adended"))}; g.k.Hi=function(){KO.prototype.Hi.call(this);this.oh("adended");for(var a=g.v(this.u.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)}; g.k.No=function(){KO.prototype.No.call(this);this.oh("adabandoned")}; g.k.HH=function(){var a=this.bb;uO(a)||CO(a,"clickthrough");this.B||(a=this.bb,uO(a)||CO(a,"unmuted_clickthrough"))}; g.k.YC=function(){this.XL()}; g.k.XL=function(){KO.prototype.XL.call(this);this.oh("adended")}; g.k.Oo=function(a){KO.prototype.Oo.call(this,a);this.oh("aderror")}; g.k.oh=function(a){this.D.stop();ON(this.G,!0);"adabandoned"!=a&&this.G.Pa("onAdComplete");bP(this,a);this.G.Pa("onAdEnd",cP(this));this.oa(a)}; g.k.Fu=function(){var a=this.G.W();g.bL(a)&&(g.nL(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.bL(a))?this.G.Pa("onAdInfoChange",null):KO.prototype.Fu.call(this)}; g.k.nX=function(){this.o4&&this.G.playVideo()}; g.k.o4=function(){return 2==this.G.getPlayerState(2)}; g.k.sT=function(a,b){if(!Number.isFinite(a))return g.YD(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.YD(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.u,d=Oya(this.u);d=this.G.Hx(d,"",2,c,a,b);a+c>b&&this.G.dA(d,b-a);return d}; g.k.dispose=function(){Hya(this.G)&&!this.V&&this.G.stopVideo(2);bP(this,"adabandoned");KO.prototype.dispose.call(this)};dP.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={bB:null,hV:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(cNM&&(a=Math.max(.1,a)),this.setCurrentTime(a))}; g.k.Gn=function(){if(!this.u&&this.Ya)if(this.Ya.D)try{var a;eJ(this,{l:"mer",sr:null==(a=this.va)?void 0:fJ(a),rs:hJ(this.Ya)});this.Ya.clear();this.u=this.Ya;this.Ya=void 0}catch(b){a=new g.yA("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.YD(a),this.stopVideo()}else this.stopVideo()}; g.k.stopVideo=function(){var a=this,b;null==(b=this.Ya)||qua(b);if(!this.u)if(tcb){if(!this.C){var c=new JK;c.then(void 0,function(){}); this.C=c;ucb&&this.pause();g.Xy(function(){a.C===c&&(Sza(a),c.resolve())},200)}}else Sza(this)}; g.k.Ay=function(){var a=this.Ah();return 0performance.now()?c-Date.now()+performance.now():c;c=this.u||this.Ya;if((null==c?0:c.Ul())||b<=((null==c?void 0:c.J)||0)){var d;eJ(this,{l:"mede",sr:null==(d=this.va)?void 0:fJ(d),et:a.type});return!1}if(this.lM)return eJ(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.J=performance.now(),this.lM=!1),!1}return this.D.dispatchEvent(a)}; g.k.bL=function(){this.K=!1}; g.k.ZK=function(){this.K=!0;this.Mz(!0)}; g.k.SS=function(){this.K&&!this.NF()&&this.Mz(!0)}; g.k.equals=function(a){return!!a&&a.wb()===this.wb()}; g.k.ra=function(){this.V&&this.removeEventListener("volumechange",this.SS);tcb&&Sza(this);g.D.prototype.ra.call(this)}; var tcb=!1,ucb=!1,scb=!1,Rza=!1;g.k=g.rP.prototype;g.k.getData=function(){return this.j}; g.k.hd=function(){return g.BO(this,8)&&!g.BO(this,512)&&!g.BO(this,64)&&!g.BO(this,2)}; g.k.isCued=function(){return g.BO(this,64)&&!g.BO(this,8)&&!g.BO(this,4)}; g.k.isError=function(){return g.BO(this,128)}; g.k.isSuspended=function(){return g.BO(this,512)}; g.k.oC=function(){return g.BO(this,64)&&g.BO(this,4)}; g.k.toString=function(){return"PSt."+this.state.toString(16)}; var b4={},c4=(b4.BUFFERING="buffering-mode",b4.CUED="cued-mode",b4.ENDED="ended-mode",b4.PAUSED="paused-mode",b4.PLAYING="playing-mode",b4.SEEKING="seeking-mode",b4.UNSTARTED="unstarted-mode",b4);g.x(AP,g.yE);g.k=AP.prototype;g.k.jG=function(){var a=this.u;return a.u instanceof ZN||a.u instanceof hO||a.u instanceof $N}; g.k.gR=function(){return this.u.j}; g.k.hR=function(){return iO(this.u)}; g.k.DM=function(){return this.V instanceof ZN}; g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.gm(0);CP(this,b)}; g.k.OV=function(){this.onAdEnd()}; g.k.X4=function(){wO(this.j.bb,"active_view_measurable")}; g.k.a5=function(){var a=this.j.bb;uO(a)||FO(a)||wO(a,"active_view_fully_viewable_audible_half_duration")}; g.k.d5=function(){}; g.k.e5=function(){}; g.k.f5=function(){}; g.k.g5=function(){}; g.k.i5=function(){var a=this.j.bb;uO(a)||FO(a)||wO(a,"active_view_viewable")}; g.k.Y4=function(){var a=this.j.bb;uO(a)||FO(a)||wO(a,"audio_audible")}; g.k.Z4=function(){var a=this.j.bb;uO(a)||FO(a)||wO(a,"audio_measurable")}; g.k.IT=function(){return this.DM()?[this.QF()]:[]}; g.k.Dd=function(a){if(null!==this.j){this.qa||(a=new g.HO(a.state,new g.rP),this.qa=!0);var b=a.state;if(g.JO(a,2))this.j.Hi();else{var c=a;(this.G.W().experiments.ob("html5_bulleit_handle_gained_playing_state")?c.state.hd()&&!c.Gv.hd():c.state.hd())?(this.D.UO(),this.j.XB()):b.isError()?this.j.Oo(b.getData().errorCode):g.JO(a,4)&&(this.ea||this.j.WB())}if(null!==this.j){if(g.JO(a,16)&&(b=this.j.bb,!(uO(b)||.5>b.u.getCurrentTime(2,!1)))){c=b.ad;if(c.D()){var d=b.C.G.W().N("html5_dai_enable_active_view_creating_completed_adblock"); Dka(c.K,d)}b.ad.J.seek=!0}0>IO(a,4)&&!(0>IO(a,2))&&(b=this.j,c=b.bb,uO(c)||GO(c,"resume"),b.B||(b=b.bb,uO(b)||GO(b,"unmuted_resume")));this.daiEnabled&&g.JO(a,512)&&!g.yP(a.state)&&this.D.Uz()}}}; g.k.onVideoDataChange=function(){if(this.daiEnabled)a:{if(MN(this.G)){var a=this.G.getVideoData(2);a=this.u.J[a.Oc]||null;if(!a){this.oF();a=!0;break a}(!this.j||this.j&&this.j.ad!==a)&&this.KE(a)}else if(1===this.G.getPresentingPlayerType()&&this.j){this.oF();a=!0;break a}a=!1}else a=!1;return a}; g.k.resume=function(){this.j&&this.j.nX()}; g.k.eL=function(){this.j&&this.j.oh("adended")}; g.k.oF=function(){this.eL()}; g.k.gm=function(a){this.pk.gm(a)}; g.k.N_=function(a){this.pk.j.Pa("onAdUxUpdate",a)}; g.k.onAdUxClicked=function(a){this.j.kh(a)}; g.k.GT=function(){return 0}; g.k.HT=function(){return 1}; g.k.KP=function(a){this.daiEnabled&&this.u.C&&this.u.j.start<=a&&a=this.B?this.C.j:this.C.j.slice(this.B);return 0Math.pow(5,2))b.C=!0}; g.k.Q_=function(a){if(this.Aa){var b=this.Aa,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&TCa(b,c)&&(b.ma=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}}; g.k.CD=function(a){this.layoutId?this.sb.executeCommand(a,this.layoutId):g.YD(new g.yA("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.k.Mf=function(a,b){this.api.Mf(a,this);this.api.Vf(a,b)}; g.k.Xa=function(a,b){this.api.Fk(a)&&this.api.Xa(a,b,this.interactionLoggingClientData)}; g.k.ra=function(){this.clear(null);this.Ic(this.ub);for(var a=g.v(this.Da),b=a.next();!b.done;b=a.next())this.Ic(b.value);g.xQ.prototype.ra.call(this)};g.x(FQ,yQ); FQ.prototype.init=function(a,b,c){yQ.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.ZD(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.Yp(this.element,a);null!=b.text&&(a=g.BE(b.text),g.cc(a)||(this.element.setAttribute("aria-label",a),this.B=new g.xQ({I:"span",S:"ytp-ad-button-text",xa:a}),g.J(this,this.B),this.B.Ha(this.element)));this.api.W().N("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&& b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.cc(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=EQ(b.icon),null!=b&&(this.u=new g.xQ({I:"span",S:"ytp-ad-button-icon",X:[b]}),g.J(this,this.u)),this.C?g.bf(this.element,this.u.element,0):this.u.Ha(this.element))}}; FQ.prototype.clear=function(){this.hide()}; FQ.prototype.onClick=function(a){yQ.prototype.onClick.call(this,a);a=g.v(yDa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.sb.executeCommand(b,this.layoutId):g.YD(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.x(GQ,g.D);GQ.prototype.ra=function(){this.u&&g.aA(this.u);this.j.clear();HQ=null;g.D.prototype.ra.call(this)}; GQ.prototype.register=function(a,b){b&&this.j.set(a,b)}; var HQ=null;g.x(JQ,yQ); JQ.prototype.init=function(a,b,c){yQ.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.Q(b.button,g.WM)||null;null==b?g.YD(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new FQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb),g.J(this,this.button),this.button.init(PN("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.BE(a)),this.button.Ha(this.element),this.D&&!g.Xp(this.button.element,"ytp-ad-clickable")&&g.Yp(this.button.element, "ytp-ad-clickable"),a&&(this.u=new g.xQ({I:"div",S:"ytp-ad-hover-text-container"}),this.C&&(b=new g.xQ({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ha(this.u.element),g.J(this,b)),g.J(this,this.u),this.u.Ha(this.element),b=IQ(a),g.bf(this.u.element,b,0)),this.show())}; JQ.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();yQ.prototype.hide.call(this)}; JQ.prototype.show=function(){this.button&&this.button.show();yQ.prototype.show.call(this)};g.x(LQ,yQ); LQ.prototype.init=function(a,b,c){yQ.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&KQ(a)||"";g.cc(c)?.01>Math.random()&&g.ZD(Error("Found AdImage without valid image URL")):(this.j?g.$m(this.element,"backgroundImage","url("+c+")"):Pe(this.element,{src:c}),Pe(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; LQ.prototype.clear=function(){this.hide()};g.x(MQ,yQ);g.k=MQ.prototype;g.k.hide=function(){yQ.prototype.hide.call(this);this.B&&this.B.focus()}; g.k.show=function(){this.B=document.activeElement;yQ.prototype.show.call(this);this.C.focus()}; g.k.init=function(a,b,c){yQ.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.YD(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.YD(Error("ConfirmDialogRenderer.cancelLabel was not set.")):CDa(this,b):g.YD(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.hA(this.j);this.hide()}; g.k.uN=function(){this.hide()}; g.k.pJ=function(){var a=this.u.cancelEndpoint;a&&(this.layoutId?this.sb.executeCommand(a,this.layoutId):g.YD(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.k.vN=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&(this.layoutId?this.sb.executeCommand(a,this.layoutId):g.YD(Error("Missing layoutId for confirm dialog.")));this.hide()};g.x(NQ,yQ);g.k=NQ.prototype; g.k.init=function(a,b,c){yQ.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.YD(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.YD(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.Yp(this.B,a)}a={};b.defaultText? (c=g.BE(b.defaultText),g.cc(c)||(a.buttonText=c,this.j.setAttribute("aria-label",c),this.api.W().experiments.ob("fix_h5_toggle_button_a11y")&&this.C.setAttribute("aria-label",c))):g.mn(this.Ba,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.C.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=EQ(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.qa=!0,c=EQ(b.toggledIcon),this.updateValue("toggledIconTemplateSpec", c)):(g.mn(this.V,!0),g.mn(this.D,!1)),g.mn(this.j,!1)):g.mn(this.C,!1);g.cd(a)||this.update(a);b.isToggled&&(g.Yp(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));DDa(this);this.T(this.element,"change",this.rR);this.show()}}; g.k.onClick=function(a){0a&&g.YD(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ib&&g.Yp(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Ba=null==a||0===a?this.j.Ol():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(PN("ad-text"),d,c);(d=this.api.getVideoData(1))&& d.Zn&&b.thumbnail?this.C.init(PN("ad-image"),b.thumbnail,c):this.V.hide()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.u.hide();this.B.hide();this.C.hide();UQ(this);SQ.prototype.hide.call(this)}; g.k.show=function(){TQ(this);this.u.show();this.B.show();this.C.show();SQ.prototype.show.call(this)}; g.k.Tv=function(){this.hide()}; g.k.Bt=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Oa&&a>=this.Ba?(this.qa.hide(),this.Oa=!0,this.oa("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ba-a)/1E3)),a!=this.Ua&&(UDa(this.B,{TIME_REMAINING:String(a)}),this.Ua=a)))}};g.x(WDa,SQ);g.k=WDa.prototype; g.k.init=function(a,b,c){SQ.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.Q(b.actionButton,g.WM))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0=this.Ba&&(UQ(this),g.$p(this.element,"ytp-flyout-cta-inactive"),this.u.element.removeAttribute("tabIndex"))}}; g.k.Tv=function(){this.clear()}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.tR.bind(this))}; g.k.show=function(){this.u&&this.u.show();SQ.prototype.show.call(this)}; g.k.hide=function(){this.u&&this.u.hide();SQ.prototype.hide.call(this)}; g.k.tR=function(a){"hidden"==a?this.show():this.hide()};g.x(XDa,yQ);g.k=XDa.prototype; g.k.init=function(a,b,c){yQ.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.Q(this.j.likeButton,v3),b=this.j.dislikeButton&&g.Q(this.j.dislikeButton,v3),this.B.init(PN("toggle-button"),a,c),this.u.init(PN("toggle-button"),b,c),this.T(this.element,"change",this.uR),this.C.show(100),this.show(),c=g.v(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.sb.executeCommand(a,this.layoutId):g.YD(Error("Missing layoutId for instream user sentiment."))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.B.hide();this.u.hide();yQ.prototype.hide.call(this)}; g.k.show=function(){this.B.show();this.u.show();yQ.prototype.show.call(this)}; g.k.uR=function(){Qka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.Pa("onYtShowToast",this.j.postMessageAction);this.C.hide()}; g.k.onClick=function(a){0=this.V&&$Da(this,!0)};g.x(aEa,FQ);aEa.prototype.init=function(a,b,c){FQ.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.BE(b.text),a=!g.cc(a));a?null==b.navigationEndpoint?g.ZD(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.ZD(Error("Button style was not a link-style type in renderer,")):this.show():g.ZD(Error("No visit advertiser text was present in the renderer."))};g.x(aR,yQ);aR.prototype.init=function(a,b,c){yQ.prototype.init.call(this,a,b,c);a=b.text;g.cc(zQ(a))?g.ZD(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.j&&(b=this.api.W(),b=a.text+" "+(b&&b.u?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb),a.init(PN("simple-ad-badge"),b,c),a.Ha(this.element),g.J(this,a)),this.show())}; aR.prototype.clear=function(){this.hide()};g.x(bEa,QN);g.x(bR,g.yE);g.k=bR.prototype;g.k.Ol=function(){return this.durationMs}; g.k.stop=function(){this.j&&this.Ad.Ic(this.j)}; g.k.zc=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.oa("h")}; g.k.getProgressState=function(){return this.u}; g.k.Dd=function(a){g.JO(a,2)&&this.oa("g")};g.x(cR,g.yE);g.k=cR.prototype;g.k.Ol=function(){return this.durationMs}; g.k.start=function(){this.j||(this.j=!0,this.timer.start())}; g.k.stop=function(){this.j&&(this.j=!1,this.timer.stop())}; g.k.zc=function(){this.Oi+=100;var a=!1;this.Oi>this.durationMs&&(this.Oi=this.durationMs,this.timer.stop(),a=!0);this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Oi/1E3};this.Sg&&this.Sg.zc(this.u.current);this.oa("h");a&&this.oa("g")}; g.k.getProgressState=function(){return this.u};g.x(fR,SQ);g.k=fR.prototype;g.k.init=function(a,b,c){SQ.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.ZD(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new RQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb);this.u.init(PN("ad-text"),a,{});this.u.Ha(this.element);g.J(this,this.u)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){UQ(this);SQ.prototype.hide.call(this)}; g.k.Tv=function(){this.hide()}; g.k.Bt=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.u&&(a=(this.j instanceof bR?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof cR?a.seekableEnd:this.api.getDuration(2,!1))-a.current,UDa(this.u,{FORMATTED_AD_DURATION_REMAINING:String(g.dR(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; g.k.show=function(){TQ(this);SQ.prototype.show.call(this)};g.x(dEa,RQ);dEa.prototype.onClick=function(a){RQ.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.x(iR,g.xQ);iR.prototype.zc=function(){var a=this.u.getProgressState();this.Lc.style.width=100*hR(new gR(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; iR.prototype.onStateChange=function(){g.VK(this.api.W())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.zc,this),this.zc()):-1!==this.j&&(this.hide(),this.u.Jh(this.j),this.j=-1))};g.x(jR,yQ); jR.prototype.init=function(a,b,c,d){yQ.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.Q(c,P0),c=g.Q(c,R0),a?(c=new $Q(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,this.j,this.V),c.Ha(this.D),c.init(PN("skip-button"),a,this.macros),g.J(this,c)):c&&(a=new XQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,this.j,!1),a.Ha(this.D),a.init(PN("ad-preview"),c,this.macros),VDa(a),g.J(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer, c=new XDa(this.api,this.layoutId,this.interactionLoggingClientData,this.sb),c.Ha(this.qa),c.init(PN("instream-user-sentiment"),a,this.macros),g.J(this,c));if(a=g.Q(b,q$a))if(a=g.Q(a,q$a))c=new WDa(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,this.j),g.J(this,c),c.Ha(this.C),c.init(PN("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new aR(this.api,this.layoutId, this.interactionLoggingClientData,this.sb,!0),g.J(this,c),c.Ha(this.u),c.init(PN("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new fR(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,this.j,d),g.J(this,d),d.Ha(this.u),d.init(PN("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer, Q0))&&(a=new QQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,this.element),g.J(this,a),a.Ha(this.u),a.init(PN("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.Q(b.visitAdvertiserRenderer,g.WM))&&(a=fEa(this)&&this.B?this.B:this.u)&&(b=new aEa(this.api,this.layoutId,this.interactionLoggingClientData,this.sb),g.J(this,b),b.Ha(a),b.init(PN("visit-advertiser"),d,this.macros),this.api.W().N("web_enable_instream_ads_link_definition_a11y_bugfix")&&(Kp(b.element), d=Za(),a=Np(b.element),Mp(b.element,a+d)));(b=this.api.W())&&!g.TK(b)&&"3"==b.controlsType&&(b=new iR(this.api,this.j),b.Ha(this.Ba),g.J(this,b));this.api.W().N("enable_updated_html5_player_focus_style")&&g.Yp(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; jR.prototype.clear=function(){this.hide()};var e4={},lEa=(e4.WEB_UNPLUGGED="^unplugged/",e4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",e4.WEB_UNPLUGGED_OPS="^unplugged/",e4.WEB_UNPLUGGED_PUBLIC="^unplugged/",e4.WEB_CREATOR="^creator/",e4.WEB_KIDS="^kids/",e4.WEB_EXPERIMENTS="^experiments/",e4.WEB_MUSIC="^music/",e4.WEB_REMIX="^music/",e4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",e4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",e4);nR.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?aC:c;var d={context:g.UP(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.mR(this.B());(e=null==(f=g.Q(a.commandMetadata,g.r3))?void 0:f.apiUrl)&&(b=e);f=Cma(oz(b));a=Object.assign({},{command:a},void 0);d={input:f,Et:pz(f),Wo:d,config:a};d.config.yu?d.config.yu.identity=c:d.config.yu={identity:c};return d}g.YD(new g.yA("Error: Failed to create Request from Command.",a))}; g.ea.Object.defineProperties(nR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.x(oR,nR);oR.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",Et:pz("/getDatasyncIdsEndpoint","GET"),Wo:{}}}; oR.prototype.B=function(){return[]}; oR.prototype.j=function(){}; oR.prototype.u=function(){};var zcb={},oEa=(zcb.GET_DATASYNC_IDS=lR(oR),zcb);var tEa="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),vEa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var zEa=new hD("INNERTUBE_TRANSPORT_TOKEN");g.x(rR,nR);rR.prototype.B=function(){return pbb}; rR.prototype.j=function(a){return g.Q(a,fbb)||void 0}; rR.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; g.ea.Object.defineProperties(rR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(sR,nR);sR.prototype.B=function(){return qbb}; sR.prototype.j=function(a){return g.Q(a,dbb)||void 0}; sR.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; g.ea.Object.defineProperties(sR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(tR,nR);tR.prototype.B=function(){return mbb}; tR.prototype.j=function(a){return g.Q(a,J$a)||void 0}; tR.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; g.ea.Object.defineProperties(tR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(uR,nR);uR.prototype.B=function(){return nbb}; uR.prototype.j=function(a){return g.Q(a,cbb)||void 0}; uR.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.x(vR,nR);vR.prototype.B=function(){return obb}; vR.prototype.j=function(a){return g.Q(a,abb)||void 0}; vR.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.x(wR,nR);wR.prototype.B=function(){return lbb}; wR.prototype.j=function(a){return g.Q(a,Pab)}; wR.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var Acb=new hD("NETWORK_SLI_TOKEN");xR.prototype.fetch=function(a,b){var c=this,d,e,f;return g.A(function(h){c.j&&(d=aj(g.cj(5,wj(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=b;g.Cy("wug_networking_gzip_request")&&(e=Voa(b));f=new window.Request(a,e);return g.Cy("web_fetch_promise_cleanup_killswitch")?h.return(Promise.resolve(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.ZD(l)}))):h.return(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.ZD(l)}))})}; xR.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}); a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.N7a(),b=b.then(function(c){g.ZD(new g.yA("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})})); return b}; xR[kD]=[new iD(Acb)];var yEa=new hD("NETWORK_MANAGER_TOKEN");var xEa;zR.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))}; f.onload=function(){e(d.handleResponse(a,f.status,f.response))}; if(null==c?0:c.nz)f.onreadystatechange=function(p){c.nz(f,p)}; var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.v(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.v(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})}; zR.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.ZD(new g.yA("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.ZD(new g.yA("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var CEa=[],BEa=!1;var P_a={adNotify:function(a){var b=new Ot,c=0;try{return void 0!==a.adMediaTimeSec&&(K(b,1,a.adMediaTimeSec),c++),void 0!==a.adMediaTimeMs&&(K(b,6,a.adMediaTimeMs),c++),void 0!==a.timeToAdBreakSec&&(K(b,2,a.timeToAdBreakSec),c++),void 0!==a.clientScreenNonce&&(K(b,3,a.clientScreenNonce),c++),void 0!==a.clientPlaybackNonce&&(K(b,4,a.clientPlaybackNonce),c++),void 0!==a.videoAdBreakOffsetSec&&(K(b,5,a.videoAdBreakOffsetSec),c++),void 0!==a.videoAdBreakOffsetMs&&(K(b,7,a.videoAdBreakOffsetMs),c++), [c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, biscottiBasedDetection:function(a){var b=new Lv,c=0;try{return void 0!==a.detected&&(Uh(b,1,a.detected),c++),void 0!==a.source&&(K(b,2,a.source),c++),void 0!==a.contentCpn&&(K(b,3,a.contentCpn),c++),void 0!==a.contentCsn&&(K(b,4,a.contentCsn),c++),void 0!==a.method&&(K(b,5,a.method),c++),void 0!==a.result&&(K(b,6,a.result),c++),void 0!==a.adCpn&&(K(b,7,a.adCpn),c++),void 0!==a.playbackType&&(K(b,8,a.playbackType),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, adNotifyFilled:function(a){var b=new Nt,c=0;try{return void 0!==a.notifyCompositeType&&(K(b,1,Y$a[a.notifyCompositeType]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, idbTransactionEnded:function(a){var b=new Dx,c=0;try{return void 0!==a.objectStoreNames&&(K(b,1,a.objectStoreNames),c++),void 0!==a.duration&&(b.Xk(a.duration),c++),void 0!==a.isSuccessful&&(Uh(b,3,a.isSuccessful),c++),void 0!==a.connectionHasUnknownAbortedTransaction&&(Uh(b,4,a.connectionHasUnknownAbortedTransaction),c++),void 0!==a.tryCount&&(K(b,5,a.tryCount),c++),void 0!==a.tag&&(K(b,6,Aab[a.tag]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, idbUnexpectedlyClosed:function(a){var b=new Ex,c=0;try{return void 0!==a.dbName&&(K(b,1,a.dbName),c++),void 0!==a.dbVersion&&(K(b,2,a.dbVersion),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, flowEvent:function(a){var b=new wx,c=0;try{void 0!==a.flowNonce&&(K(b,1,a.flowNonce),c++);if(a.flowEventType){var d=a.flowEventType,e=new vx,f=0;try{void 0!==d.flowEventNamespace&&(K(e,1,uab[d.flowEventNamespace]),f++);void 0!==d.flowEventType&&(K(e,2,d.flowEventType),f++);var h=[f===Object.keys(d).length,e]}catch(Ka){Z(Ka),h=[!1,void 0]}var l=h;l[0]&&(Nh(b,vx,2,l[1]),c++)}if(a.flowMetadata){var m=a.flowMetadata,n=new ux,p=0;try{if(m.notaireContext){var q=m.notaireContext,t=new Cw,u=0;try{if(q.serverInfo){var y= q.serverInfo,B=new Bw,G=0;try{void 0!==y.id&&(K(B,1,y.id),G++);void 0!==y.forceLog&&(Uh(B,2,y.forceLog),G++);var M=[G===Object.keys(y).length,B]}catch(Ka){Z(Ka),M=[!1,void 0]}var N=M;N[0]&&(Nh(t,Bw,1,N[1]),u++)}if(q.clientInfo){var H=q.clientInfo,U=new Aw,aa=0;try{void 0!==H.timeSinceReceivedMs&&(K(U,1,H.timeSinceReceivedMs),aa++);var da=[aa===Object.keys(H).length,U]}catch(Ka){Z(Ka),da=[!1,void 0]}var ua=da;ua[0]&&(Nh(t,Aw,2,ua[1]),u++)}var la=[u===Object.keys(q).length,t]}catch(Ka){Z(Ka),la=[!1, void 0]}var X=la;X[0]&&(Nh(n,Cw,1,X[1]),p++)}if(m.offlineTransferStatusChangedContext){var ma=m.offlineTransferStatusChangedContext,Y=new Iw,Ca=0;try{if(ma.offlineTransferStatusChanged){var W=DGa(ma.offlineTransferStatusChanged);W[0]&&(Nh(Y,Hw,1,W[1]),Ca++)}var Va=[Ca===Object.keys(ma).length,Y]}catch(Ka){Z(Ka),Va=[!1,void 0]}var r=Va;r[0]&&(Nh(n,Iw,2,r[1]),p++)}if(m.offlineOrchestrationContext){var P=m.offlineOrchestrationContext,pb=new Ew,Ha=0;try{void 0!==P.entityType&&(K(pb,1,P.entityType),Ha++); void 0!==P.entityId&&(K(pb,7,P.entityId),Ha++);void 0!==P.offlineOrchestrationActionType&&(K(pb,6,Sab[P.offlineOrchestrationActionType]),Ha++);void 0!==P.offlineOrchestrationActionResult&&(K(pb,2,Rab[P.offlineOrchestrationActionResult]),Ha++);void 0!==P.offlineOrchestrationFailureReason&&(K(pb,10,Uab[P.offlineOrchestrationFailureReason]),Ha++);void 0!==P.isRetryable&&(Uh(pb,3,P.isRetryable),Ha++);void 0!==P.isRestored&&(Uh(pb,11,P.isRestored),Ha++);if(P.orchestrationAction){var yb=CHa(P.orchestrationAction); yb[0]&&(Nh(pb,Dw,4,yb[1]),Ha++)}P.additionalOrchestrationActions&&(AR(pb.j.bind(pb),P.additionalOrchestrationActions,CHa),Ha++);void 0!==P.intervalSinceEnqueuedMs&&(K(pb,8,P.intervalSinceEnqueuedMs),Ha++);void 0!==P.executionIntervalMs&&(K(pb,9,P.executionIntervalMs),Ha++);var vb=[Ha===Object.keys(P).length,pb]}catch(Ka){Z(Ka),vb=[!1,void 0]}var gb=vb;gb[0]&&(Nh(n,Ew,3,gb[1]),p++)}if(m.shortsCreationContext){var zb=m.shortsCreationContext,eb=new cx,nb=0;try{void 0!==zb.shortsCreationSurfaces&&(BR(eb.j.bind(eb), zb.shortsCreationSurfaces,ebb),nb++);var w=[nb===Object.keys(zb).length,eb]}catch(Ka){Z(Ka),w=[!1,void 0]}var C=w;C[0]&&(Nh(n,cx,4,C[1]),p++)}if(m.mdxConnectionContext){var F=m.mdxConnectionContext,E=new ww,L=0;try{void 0!==F.isReconnection&&(Uh(E,1,F.isReconnection),L++);void 0!==F.disconnectReason&&(K(E,2,Dab[F.disconnectReason]),L++);void 0!==F.isRetry&&(Uh(E,3,F.isRetry),L++);var I=[L===Object.keys(F).length,E]}catch(Ka){Z(Ka),I=[!1,void 0]}var R=I;R[0]&&(Nh(n,ww,5,R[1]),p++)}if(m.premiumMultiStepPurchaseContext){var T= m.premiumMultiStepPurchaseContext,ka=new Vw,ha=0;try{if(T.selectedOption){var fa=T.selectedOption,ra=new Uw,Aa=0;try{void 0!==fa.offerType&&(K(ra,1,E$a[fa.offerType]),Aa++);void 0!==fa.itemType&&(K(ra,2,NR[fa.itemType]),Aa++);void 0!==fa.itemExternalId&&(K(ra,3,fa.itemExternalId),Aa++);var rb=[Aa===Object.keys(fa).length,ra]}catch(Ka){Z(Ka),rb=[!1,void 0]}var Mb=rb;Mb[0]&&(Nh(ka,Uw,1,Mb[1]),ha++)}void 0!==T.itemType&&(K(ka,2,NR[T.itemType]),ha++);void 0!==T.productType&&(K(ka,3,OR[T.productType]), ha++);void 0!==T.landingPageVariantId&&(K(ka,4,T.landingPageVariantId),ha++);void 0!==T.experimentStatus&&(K(ka,5,Fab[T.experimentStatus]),ha++);void 0!==T.themeKey&&(K(ka,6,T.themeKey),ha++);void 0!==T.signupType&&(K(ka,7,Gab[T.signupType]),ha++);var $a=[ha===Object.keys(T).length,ka]}catch(Ka){Z(Ka),$a=[!1,void 0]}var cb=$a;cb[0]&&(Nh(n,Vw,6,cb[1]),p++)}if(m.mdxReceiverConnectionContext){var Sa=m.mdxReceiverConnectionContext,Nb=new xw,$b=0;try{void 0!==Sa.isFromAppLaunch&&(Uh(Nb,1,Sa.isFromAppLaunch), $b++);void 0!==Sa.dialServerType&&(K(Nb,2,Cab[Sa.dialServerType]),$b++);void 0!==Sa.supportsSmoothPairing&&(Uh(Nb,3,Sa.supportsSmoothPairing),$b++);void 0!==Sa.hasManuallyPairedRemotesOnAppStartup&&(Uh(Nb,4,Sa.hasManuallyPairedRemotesOnAppStartup),$b++);void 0!==Sa.mismatchedTheme&&(K(Nb,5,A$a[Sa.mismatchedTheme]),$b++);void 0!==Sa.mdxSenderConnectedCounter&&(K(Nb,6,Sa.mdxSenderConnectedCounter),$b++);void 0!==Sa.externalRouteSource&&(K(Nb,7,Bab[Sa.externalRouteSource]),$b++);void 0!==Sa.appReloadCount&& (K(Nb,8,Sa.appReloadCount),$b++);var Nd=[$b===Object.keys(Sa).length,Nb]}catch(Ka){Z(Ka),Nd=[!1,void 0]}var wd=Nd;wd[0]&&(Nh(n,xw,7,wd[1]),p++)}if(m.parentToolsOnboardingContext){var dc=m.parentToolsOnboardingContext,ac=new Kw,xd=0;try{void 0!==dc.triggerPoint&&(K(ac,1,Q$a[dc.triggerPoint]),xd++);if(dc.kidsFlowInfo){var Bc=dc.kidsFlowInfo,Oc=new Jw,Id=0;try{void 0!==Bc.kidsFlowVersion&&(K(Oc,1,N$a[Bc.kidsFlowVersion]),Id++);void 0!==Bc.flowLabel&&(K(Oc,2,Bc.flowLabel),Id++);void 0!==Bc.hostClientName&& (K(Oc,3,O$a[Bc.hostClientName]),Id++);void 0!==Bc.hostClientVersion&&(K(Oc,4,Bc.hostClientVersion),Id++);void 0!==Bc.kidsFlowType&&(K(Oc,5,M$a[Bc.kidsFlowType]),Id++);var Pc=[Id===Object.keys(Bc).length,Oc]}catch(Ka){Z(Ka),Pc=[!1,void 0]}var Od=Pc;Od[0]&&(Nh(ac,Jw,2,Od[1]),xd++)}void 0!==dc.kidsCorpusPreferenceNew&&(K(ac,3,L$a[dc.kidsCorpusPreferenceNew]),xd++);void 0!==dc.appChoice&&(K(ac,4,P$a[dc.appChoice]),xd++);void 0!==dc.isKidSignedIn&&(Uh(ac,5,dc.isKidSignedIn),xd++);void 0!==dc.alreadyOnboardedYtk&& (Uh(ac,6,dc.alreadyOnboardedYtk),xd++);void 0!==dc.alreadyOnboardedSupex&&(Uh(ac,7,dc.alreadyOnboardedSupex),xd++);var Ob=[xd===Object.keys(dc).length,ac]}catch(Ka){Z(Ka),Ob=[!1,void 0]}var ue=Ob;ue[0]&&(Nh(n,Kw,8,ue[1]),p++)}if(m.hashtagAutoCompleteContext){var Qb=m.hashtagAutoCompleteContext,Pb=new jw,ng=0;try{void 0!==Qb.suggestionSelected&&(K(Pb,1,Qb.suggestionSelected),ng++);var ne=[ng===Object.keys(Qb).length,Pb]}catch(Ka){Z(Ka),ne=[!1,void 0]}var Qc=ne;Qc[0]&&(Nh(n,jw,9,Qc[1]),p++)}if(m.liveStreamingContext){var Kc= m.liveStreamingContext,yd=new vw,Zd=0;try{void 0!==Kc.broadcastSource&&(K(yd,1,W$a[Kc.broadcastSource]),Zd++);void 0!==Kc.isAutoDashboard&&(Uh(yd,2,Kc.isAutoDashboard),Zd++);void 0!==Kc.externalVideoId&&(K(yd,3,Kc.externalVideoId),Zd++);void 0!==Kc.broadcastConferenceType&&(K(yd,4,U$a[Kc.broadcastConferenceType]),Zd++);if(Kc.eventData){var jd=Kc.eventData,qf=new uw,zd=0;try{if(jd.webrtcHandshakeOffer){var $d=jd.webrtcHandshakeOffer,cf=new tw,Uf=0;try{void 0!==$d.localVideoSsrc&&(K(cf,1,$d.localVideoSsrc), Uf++);void 0!==$d.localAudioSsrc&&(K(cf,2,$d.localAudioSsrc),Uf++);void 0!==$d.participantId&&(K(cf,3,$d.participantId),Uf++);var ae=[Uf===Object.keys($d).length,cf]}catch(Ka){Z(Ka),ae=[!1,void 0]}var Pd=ae;Pd[0]&&(Nh(qf,tw,1,Pd[1]),zd++)}if(jd.webrtcHandshakeAnswer){var Ib=jd.webrtcHandshakeAnswer,Ug=new qw,xh=0;try{void 0!==Ib.remoteVideoSsrc&&(K(Ug,1,Ib.remoteVideoSsrc),xh++);void 0!==Ib.remoteAudioSsrc&&(K(Ug,2,Ib.remoteAudioSsrc),xh++);var Vg=[xh===Object.keys(Ib).length,Ug]}catch(Ka){Z(Ka), Vg=[!1,void 0]}var Ci=Vg;Ci[0]&&(Nh(qf,qw,2,Ci[1]),zd++)}if(jd.webrtcHandshakeError){var ve=jd.webrtcHandshakeError,lj=new rw,mj=0;try{void 0!==ve.description&&(K(lj,1,ve.description),mj++);var nj=[mj===Object.keys(ve).length,lj]}catch(Ka){Z(Ka),nj=[!1,void 0]}var og=nj;og[0]&&(Nh(qf,rw,3,og[1]),zd++)}if(jd.costreamStartNotification){var Di=jd.costreamStartNotification,Uj=new mw,Vj=0;try{void 0!==Di.broadcastStartTimeMs&&(K(Uj,1,Di.broadcastStartTimeMs),Vj++);var Wj=[Vj===Object.keys(Di).length,Uj]}catch(Ka){Z(Ka), Wj=[!1,void 0]}var pg=Wj;pg[0]&&(Nh(qf,mw,4,pg[1]),zd++)}if(jd.remoteParticipant){var qg=jd.remoteParticipant,Qe=new ow,Wg=0;try{void 0!==qg.videoSsrc&&(K(Qe,1,qg.videoSsrc),Wg++);void 0!==qg.audioSsrc&&(K(Qe,2,qg.audioSsrc),Wg++);var Xg=[Wg===Object.keys(qg).length,Qe]}catch(Ka){Z(Ka),Xg=[!1,void 0]}var Yg=Xg;Yg[0]&&(Nh(qf,ow,5,Yg[1]),zd++)}if(jd.webcamEventData){var be=jd.webcamEventData,Be=new pw,Lc=0;try{void 0!==be.videoFrameRate&&(Ph(Be,1,be.videoFrameRate),Lc++);void 0!==be.videoAspectRatio&& (Ph(Be,2,be.videoAspectRatio),Lc++);void 0!==be.videoHeight&&(K(Be,3,be.videoHeight),Lc++);void 0!==be.videoWidth&&(K(Be,4,be.videoWidth),Lc++);void 0!==be.videoCaptureCursor&&(K(Be,5,be.videoCaptureCursor),Lc++);void 0!==be.videoCaptureSurface&&(K(Be,6,be.videoCaptureSurface),Lc++);void 0!==be.videoCaptureAudioEnabled&&(Uh(Be,7,be.videoCaptureAudioEnabled),Lc++);var yh=[Lc===Object.keys(be).length,Be]}catch(Ka){Z(Ka),yh=[!1,void 0]}var Xj=yh;Xj[0]&&(Nh(qf,pw,6,Xj[1]),zd++)}if(jd.errorEventData){var df= jd.errorEventData,zh=new nw,Zg=0;try{void 0!==df.liveClientErrorType&&(K(zh,1,S$a[df.liveClientErrorType]),Zg++);void 0!==df.liveServerErrorType&&(K(zh,2,T$a[df.liveServerErrorType]),Zg++);void 0!==df.kioskClientApiErrorType&&(K(zh,3,R$a[df.kioskClientApiErrorType]),Zg++);var Yj=[Zg===Object.keys(df).length,zh]}catch(Ka){Z(Ka),Yj=[!1,void 0]}var Ah=Yj;Ah[0]&&(Nh(qf,nw,7,Ah[1]),zd++)}var Zj=[zd===Object.keys(jd).length,qf]}catch(Ka){Z(Ka),Zj=[!1,void 0]}var ak=Zj;ak[0]&&(Nh(yd,uw,5,ak[1]),Zd++)}void 0!== Kc.isMonetizationOn&&(Uh(yd,6,Kc.isMonetizationOn),Zd++);void 0!==Kc.sharedmdeEnabled&&(Uh(yd,7,Kc.sharedmdeEnabled),Zd++);void 0!==Kc.isScreencast&&(Uh(yd,8,Kc.isScreencast),Zd++);void 0!==Kc.broadcastLifecycleStatus&&(K(yd,9,V$a[Kc.broadcastLifecycleStatus]),Zd++);var Ff=[Zd===Object.keys(Kc).length,yd]}catch(Ka){Z(Ka),Ff=[!1,void 0]}var rg=Ff;rg[0]&&(Nh(n,vw,10,rg[1]),p++)}if(m.touAppealContext){var Ad=m.touAppealContext,Gf=new lx,Vf=0;try{void 0!==Ad.scope&&(K(Gf,1,Ad.scope),Vf++);if(Ad.videoId){var oj= Ad.videoId,Bh=new jx,nc=0;try{void 0!==oj.externalVideoId&&(K(Bh,1,oj.externalVideoId),nc++);var ce=[nc===Object.keys(oj).length,Bh]}catch(Ka){Z(Ka),ce=[!1,void 0]}var Bd=ce;Bd[0]&&(Gf.setVideoId(Bd[1]),Vf++)}if(Ad.videoThumbnailId){var ef=Ad.videoThumbnailId,Ch=new kx,sg=0;try{void 0!==ef.externalVideoId&&(K(Ch,1,ef.externalVideoId),sg++);void 0!==ef.thumbnailVersion&&(K(Ch,3,ef.thumbnailVersion),sg++);void 0!==ef.checksum&&(K(Ch,4,ef.checksum),sg++);var Dh=[sg===Object.keys(ef).length,Ch]}catch(Ka){Z(Ka), Dh=[!1,void 0]}var Hf=Dh;Hf[0]&&(Oh(Gf,kx,3,u3,Hf[1]),Vf++)}if(Ad.playlistId){var ci=Ad.playlistId,Ce=new fx,Wf=0;try{void 0!==ci.externalPlaylistId&&(K(Ce,1,ci.externalPlaylistId),Wf++);var $g=[Wf===Object.keys(ci).length,Ce]}catch(Ka){Z(Ka),$g=[!1,void 0]}var di=$g;di[0]&&(Oh(Gf,fx,4,u3,di[1]),Vf++)}void 0!==Ad.urlHostname&&(Jh(Gf,5,u3,Ad.urlHostname),Vf++);void 0!==Ad.encodedTouViolativeContentId&&(K(Gf,6,Ad.encodedTouViolativeContentId),Vf++);void 0!==Ad.encodedChannelTouViolativeContentId&&(K(Gf, 7,Ad.encodedChannelTouViolativeContentId),Vf++);if(Ad.trainingData){var If=Ad.trainingData,ah=new ix,tg=0;try{if(If.question){var Ei=If.question,Vc=new hx,Re=0;try{void 0!==Ei.questionId&&(K(Vc,1,Ei.questionId),Re++);void 0!==Ei.supplementaryInfoId&&(K(Vc,2,Ei.supplementaryInfoId),Re++);var ff=[Re===Object.keys(Ei).length,Vc]}catch(Ka){Z(Ka),ff=[!1,void 0]}var Jf=ff;Jf[0]&&(Nh(ah,hx,1,Jf[1]),tg++)}If.answers&&(AR(ah.j.bind(ah),If.answers,DHa),tg++);If.correctAnswers&&(AR(ah.D.bind(ah),If.correctAnswers, DHa),tg++);void 0!==If.strikeId&&(K(ah,4,If.strikeId),tg++);void 0!==If.preTrainingMaterialId&&(K(ah,5,If.preTrainingMaterialId),tg++);var pj=[tg===Object.keys(If).length,ah]}catch(Ka){Z(Ka),pj=[!1,void 0]}var qj=pj;qj[0]&&(Nh(Gf,ix,8,qj[1]),Vf++)}var Qk=[Vf===Object.keys(Ad).length,Gf]}catch(Ka){Z(Ka),Qk=[!1,void 0]}var tn=Qk;tn[0]&&(Nh(n,lx,11,tn[1]),p++)}if(m.dragAndDropContext){var Fi=m.dragAndDropContext,Rk=new hw,Xf=0;try{if(Fi.rootVe){var ei=CR(Fi.rootVe);ei[0]&&(Nh(Rk,gw,1,ei[1]),Xf++)}if(Fi.ve){var rj= CR(Fi.ve);rj[0]&&(Nh(Rk,gw,2,rj[1]),Xf++)}var ug=[Xf===Object.keys(Fi).length,Rk]}catch(Ka){Z(Ka),ug=[!1,void 0]}var un=ug;un[0]&&(Nh(n,hw,12,un[1]),p++)}if(m.socialSuggestionsContext){var rf=m.socialSuggestionsContext,Gi=new dx,Se=0;try{void 0!==rf.socialSuggestionsType&&(K(Gi,1,Iab[rf.socialSuggestionsType]),Se++);void 0!==rf.suggestionSelected&&(K(Gi,2,rf.suggestionSelected),Se++);void 0!==rf.source&&(K(Gi,3,Jab[rf.source]),Se++);var Sk=[Se===Object.keys(rf).length,Gi]}catch(Ka){Z(Ka),Sk=[!1,void 0]}var Vl= Sk;Vl[0]&&(Nh(n,dx,13,Vl[1]),p++)}if(m.featureEnablementContext){var Te=m.featureEnablementContext,Hi=new iw,Ii=0;try{void 0!==Te.feature&&(K(Hi,1,lFa[Te.feature]),Ii++);var Wl=[Ii===Object.keys(Te).length,Hi]}catch(Ka){Z(Ka),Wl=[!1,void 0]}var sj=Wl;sj[0]&&(Nh(n,iw,14,sj[1]),p++)}if(m.iapContext){var Qd=m.iapContext,Eh=new lw,vg=0;try{if(Qd.playIapProduct){var Tk=Qd.playIapProduct,vn=new kw,gf=0;try{void 0!==Tk.packageId&&(K(vn,1,Tk.packageId),gf++);void 0!==Tk.productId&&(K(vn,2,Tk.productId),gf++); var Fh=[gf===Object.keys(Tk).length,vn]}catch(Ka){Z(Ka),Fh=[!1,void 0]}var wg=Fh;wg[0]&&(Oh(Eh,kw,1,sab,wg[1]),vg++)}void 0!==Qd.source&&(K(Eh,2,wab[Qd.source]),vg++);void 0!==Qd.attributionId&&(K(Eh,3,Qd.attributionId),vg++);void 0!==Qd.externalVideoId&&(K(Eh,4,Qd.externalVideoId),vg++);void 0!==Qd.externalChannelId&&(K(Eh,5,Qd.externalChannelId),vg++);var bh=[vg===Object.keys(Qd).length,Eh]}catch(Ka){Z(Ka),bh=[!1,void 0]}var tj=bh;tj[0]&&(Nh(n,lw,15,tj[1]),p++)}if(m.shoppingCheckoutContext){var Ji= m.shoppingCheckoutContext,Uk=new bx,db=0;try{if(Ji.shoppingFlowParams){var Hq=GHa(Ji.shoppingFlowParams);Hq[0]&&(Nh(Uk,$w,1,Hq[1]),db++)}void 0!==Ji.shoppingCheckoutErrorReason&&(K(Uk,2,Hab[Ji.shoppingCheckoutErrorReason]),db++);var nt=[db===Object.keys(Ji).length,Uk]}catch(Ka){Z(Ka),nt=[!1,void 0]}var wn=nt;wn[0]&&(Nh(n,bx,16,wn[1]),p++)}if(m.ypcCancellationContext){var fi=m.ypcCancellationContext,Xo=new sx,Iq=0;try{void 0!==fi.itemType&&(K(Xo,1,NR[fi.itemType]),Iq++);void 0!==fi.productType&&(K(Xo, 2,OR[fi.productType]),Iq++);var ot=[Iq===Object.keys(fi).length,Xo]}catch(Ka){Z(Ka),ot=[!1,void 0]}var Yf=ot;Yf[0]&&(Nh(n,sx,17,Yf[1]),p++)}if(m.ypcBrowseOffersContext){var Zf=m.ypcBrowseOffersContext,Xl=new rx,Yo=0;try{if(Zf.commerceFlowLoggingParams){var pt=KHa(Zf.commerceFlowLoggingParams);pt[0]&&(Nh(Xl,qx,1,pt[1]),Yo++)}void 0!==Zf.offerType&&(K(Xl,2,F$a[Zf.offerType]),Yo++);void 0!==Zf.entityType&&(K(Xl,3,oab[Zf.entityType]),Yo++);var Jq=[Yo===Object.keys(Zf).length,Xl]}catch(Ka){Z(Ka),Jq=[!1, void 0]}var Kq=Jq;Kq[0]&&(Nh(n,rx,18,Kq[1]),p++)}if(m.mdxStreamTransferContext){var xn=m.mdxStreamTransferContext,qt=new yw,rt=0;try{void 0!==xn.completedReason&&(K(qt,1,Eab[xn.completedReason]),rt++);var Zo=[rt===Object.keys(xn).length,qt]}catch(Ka){Z(Ka),Zo=[!1,void 0]}var tt=Zo;tt[0]&&(Nh(n,yw,19,tt[1]),p++)}if(m.pdgBuyFlowContext){var Vk=m.pdgBuyFlowContext,yn=new Ow,$o=0;try{void 0!==Vk.productType&&(K(yn,1,OR[Vk.productType]),$o++);if(Vk.entryPointClickedContext){var Gh=Vk.entryPointClickedContext, Wk=new Lw,Yl=0;try{void 0!==Gh.superVodBuyFlowEntryPoint&&(Jh(Wk,1,t3,Yab[Gh.superVodBuyFlowEntryPoint]),Yl++);void 0!==Gh.superChatBuyFlowEntryPoint&&(Jh(Wk,2,t3,Wab[Gh.superChatBuyFlowEntryPoint]),Yl++);void 0!==Gh.sharedPdgBuyFlowEntryPoint&&(Jh(Wk,3,t3,Vab[Gh.sharedPdgBuyFlowEntryPoint]),Yl++);void 0!==Gh.superStickerBuyFlowEntryPoint&&(Jh(Wk,4,t3,Xab[Gh.superStickerBuyFlowEntryPoint]),Yl++);var ut=[Yl===Object.keys(Gh).length,Wk]}catch(Ka){Z(Ka),ut=[!1,void 0]}var vt=ut;vt[0]&&(Nh(yn,Lw,2,vt[1]), $o++)}if(Vk.itemSelectionPageDisplayedContext){var Ki=Vk.itemSelectionPageDisplayedContext,Zl=new Mw,zn=0;try{void 0!==Ki.superStickerBuyFlowType&&(K(Zl,1,Zab[Ki.superStickerBuyFlowType]),zn++);var dd=[zn===Object.keys(Ki).length,Zl]}catch(Ka){Z(Ka),dd=[!1,void 0]}var Li=dd;Li[0]&&(Nh(yn,Mw,3,Li[1]),$o++)}var Lq=[$o===Object.keys(Vk).length,yn]}catch(Ka){Z(Ka),Lq=[!1,void 0]}var wt=Lq;wt[0]&&(Nh(n,Ow,20,wt[1]),p++)}if(m.ypcPurchaseContext){var Mi=m.ypcPurchaseContext,$f=new tx,uj=0;try{if(Mi.commerceFlowLoggingParams){var Xk= KHa(Mi.commerceFlowLoggingParams);Xk[0]&&(Nh($f,qx,1,Xk[1]),uj++)}void 0!==Mi.offerType&&(K($f,2,F$a[Mi.offerType]),uj++);void 0!==Mi.transactionType&&(K($f,3,Mab[Mi.transactionType]),uj++);void 0!==Mi.paymentProcessor&&(K($f,4,G$a[Mi.paymentProcessor]),uj++);var Nw=[uj===Object.keys(Mi).length,$f]}catch(Ka){Z(Ka),Nw=[!1,void 0]}var xt=Nw;xt[0]&&(Nh(n,tx,21,xt[1]),p++)}if(m.webViewContext){var gi=m.webViewContext,$l=new nx,Yk=0;try{void 0!==gi.hostname&&(K($l,1,gi.hostname),Yk++);void 0!==gi.webViewUseCase&& (K($l,2,gbb[gi.webViewUseCase]),Yk++);void 0!==gi.isFirstPartyHost&&(Uh($l,5,gi.isFirstPartyHost),Yk++);void 0!==gi.isLoaded&&(Uh($l,3,gi.isLoaded),Yk++);void 0!==gi.webViewEngagementSec&&(K($l,4,gi.webViewEngagementSec),Yk++);var Mq=[Yk===Object.keys(gi).length,$l]}catch(Ka){Z(Ka),Mq=[!1,void 0]}var zt=Mq;zt[0]&&(Nh(n,nx,22,zt[1]),p++)}if(m.videoSuggestionsContext){var Zk=m.videoSuggestionsContext,An=new mx,Bn=0;try{void 0!==Zk.type&&(K(An,1,B$a[Zk.type]),Bn++);void 0!==Zk.serializedSuggestionData&& (Rh(An,2,Zk.serializedSuggestionData),Bn++);void 0!==Zk.videoId&&(An.setVideoId(Zk.videoId),Bn++);var Nq=[Bn===Object.keys(Zk).length,An]}catch(Ka){Z(Ka),Nq=[!1,void 0]}var Oq=Nq;Oq[0]&&(Nh(n,mx,23,Oq[1]),p++)}if(m.actionSheetContext){var Pq=m.actionSheetContext,At=new ew,am=0;try{void 0!==Pq.parentScreenUiType&&(K(At,1,Pq.parentScreenUiType),am++);var Bt=[am===Object.keys(Pq).length,At]}catch(Ka){Z(Ka),Bt=[!1,void 0]}var Qq=Bt;Qq[0]&&(Nh(n,ew,24,Qq[1]),p++)}if(m.producerExportContext){var Rq=m.producerExportContext, Ct=new Zw,$k=0;try{if(Rq.exportDetails){var ch=Rq.exportDetails,al=new Yw,Sq=0;try{if(ch.project){var bm=ch.project,ap=new Ww,Tq=0;try{void 0!==bm.projectId&&(wh(ap,1,bm.projectId,""),Tq++);void 0!==bm.durationMs&&(wh(ap,2,bm.durationMs,0),Tq++);var Dt=[Tq===Object.keys(bm).length,ap]}catch(Ka){Z(Ka),Dt=[!1,void 0]}var Et=Dt;Et[0]&&(Nh(al,Ww,1,Et[1]),Sq++)}if(ch.renderDetails){var bk=ch.renderDetails,bp=new Xw,Qa=0;try{void 0!==bk.sizeBytes&&(wh(bp,1,bk.sizeBytes,0),Qa++);void 0!==bk.pixelWidth&& (wh(bp,2,bk.pixelWidth,0),Qa++);void 0!==bk.pixelHeight&&(wh(bp,3,bk.pixelHeight,0),Qa++);var xI=[Qa===Object.keys(bk).length,bp]}catch(Ka){Z(Ka),xI=[!1,void 0]}var Pw=xI;Pw[0]&&(Nh(al,Xw,2,Pw[1]),Sq++)}var yI=[Sq===Object.keys(ch).length,al]}catch(Ka){Z(Ka),yI=[!1,void 0]}var Qw=yI;Qw[0]&&(Nh(Ct,Yw,1,Qw[1]),$k++)}var Rw=[$k===Object.keys(Rq).length,Ct]}catch(Ka){Z(Ka),Rw=[!1,void 0]}var zI=Rw;zI[0]&&(Nh(n,Zw,25,zI[1]),p++)}if(m.downloadMyVideoContext){var Ni=m.downloadMyVideoContext,cp=new fw,dp= 0;try{void 0!==Ni.videoId&&(cp.setVideoId(Ni.videoId),dp++);void 0!==Ni.videoSid&&(K(cp,2,Ni.videoSid),dp++);void 0!==Ni.downloadError&&(K(cp,3,tab[Ni.downloadError]),dp++);void 0!==Ni.totalAssetSize&&(K(cp,4,Ni.totalAssetSize),dp++);void 0!==Ni.totalDownloadedPercent&&(K(cp,5,Ni.totalDownloadedPercent),dp++);void 0!==Ni.mddDownloadErrorCode&&(K(cp,6,Ni.mddDownloadErrorCode),dp++);var rB=[dp===Object.keys(Ni).length,cp]}catch(Ka){Z(Ka),rB=[!1,void 0]}var AI=rB;AI[0]&&(Nh(n,fw,26,AI[1]),p++)}if(m.miniAppContext){var Cn= m.miniAppContext,Uq=new zw,Sw=0;try{void 0!==Cn.externalPostId&&(K(Uq,1,Cn.externalPostId),Sw++);void 0!==Cn.localReleaseId&&(K(Uq,2,Cn.localReleaseId),Sw++);void 0!==Cn.miniAppReleaseId&&(K(Uq,3,Cn.miniAppReleaseId),Sw++);var BI=[Sw===Object.keys(Cn).length,Uq]}catch(Ka){Z(Ka),BI=[!1,void 0]}var CI=BI;CI[0]&&(Nh(n,zw,27,CI[1]),p++)}if(m.shoppingCartContext){var sB=m.shoppingCartContext,DI=new ax,tB=0;try{if(sB.shoppingFlowParams){var EI=GHa(sB.shoppingFlowParams);EI[0]&&(Nh(DI,$w,1,EI[1]),tB++)}var FI= [tB===Object.keys(sB).length,DI]}catch(Ka){Z(Ka),FI=[!1,void 0]}var GI=FI;GI[0]&&(Nh(n,ax,28,GI[1]),p++)}if(m.sponsorshipsPurchaseContext){var uB=m.sponsorshipsPurchaseContext,HI=new ex,II=0;try{void 0!==uB.joinMethod&&(K(HI,1,H$a[uB.joinMethod]),II++);var JI=[II===Object.keys(uB).length,HI]}catch(Ka){Z(Ka),JI=[!1,void 0]}var KI=JI;KI[0]&&(Nh(n,ex,29,KI[1]),p++)}if(m.ypcAcquisitionContext){var WS=m.ypcAcquisitionContext,XS=new ox;try{var LI=[0===Object.keys(WS).length,XS]}catch(Ka){Z(Ka),LI=[!1,void 0]}var MI= LI;MI[0]&&(Nh(n,ox,30,MI[1]),p++)}var NI=[p===Object.keys(m).length,n]}catch(Ka){Z(Ka),NI=[!1,void 0]}var OI=NI;OI[0]&&(Nh(b,ux,3,OI[1]),c++)}void 0!==a.flowType&&(K(b,4,vab[a.flowType]),c++);void 0!==a.flowEventStatus&&(K(b,5,a.flowEventStatus),c++);void 0!==a.csn&&(K(b,6,a.csn),c++);void 0!==a.can&&(K(b,7,a.can),c++);if(a.cuiAssociations){var vB=a.cuiAssociations,wB=new Mt,PI=0;try{vB.association&&(AR(wB.j.bind(wB),vB.association,zHa),PI++);var QI=[PI===Object.keys(vB).length,wB]}catch(Ka){Z(Ka), QI=[!1,void 0]}var RI=QI;RI[0]&&(Nh(b,Mt,8,RI[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ka){return Z(Ka),[!1,void 0]}}, idbQuotaExceeded:function(a){var b=new Bx,c=0;try{return void 0!==a.deviceStorageUsageMbytes&&(K(b,1,a.deviceStorageUsageMbytes),c++),void 0!==a.deviceStorageQuotaMbytes&&(K(b,2,a.deviceStorageQuotaMbytes),c++),void 0!==a.isIframe&&(Uh(b,3,a.isIframe),c++),void 0!==a.isSw&&(Uh(b,4,a.isSw),c++),void 0!==a.dbName&&(K(b,5,a.dbName),c++),void 0!==a.objectStoreNames&&(K(b,6,a.objectStoreNames),c++),void 0!==a.transactionCount&&(K(b,7,a.transactionCount),c++),void 0!==a.transactionMode&&(K(b,8,a.transactionMode), c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, idbTransactionAborted:function(a){var b=new Cx,c=0;try{return void 0!==a.objectStoreNames&&(K(b,1,a.objectStoreNames),c++),void 0!==a.hasWindowUnloaded&&(Uh(b,2,a.hasWindowUnloaded),c++),void 0!==a.transactionCount&&(K(b,3,a.transactionCount),c++),void 0!==a.transactionDuration&&(K(b,4,a.transactionDuration),c++),void 0!==a.dbDuration&&(K(b,5,a.dbDuration),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, streamzIncremented:function(a){var b=new oy,c=0;try{return void 0!==a.serializedIncrementBatch&&(Rh(b,1,a.serializedIncrementBatch),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, sliEventBatch:function(a){var b=new Yv,c=0;try{a.loggedEvents&&(AR(b.j.bind(b),a.loggedEvents,mIa),c++);a.unloggedEvents&&(AR(b.D.bind(b),a.unloggedEvents,mIa),c++);void 0!==a.playerClientVersion&&(K(b,3,a.playerClientVersion),c++);void 0!==a.playerCanaryState&&(K(b,4,nab[a.playerCanaryState]),c++);if(a.dimensions){var d=a.dimensions,e=new Xv,f=0;try{void 0!==d.playerClientVersion&&(K(e,1,d.playerClientVersion),f++);void 0!==d.playerCanaryState&&(K(e,2,nab[d.playerCanaryState]),f++);var h=[f===Object.keys(d).length, e]}catch(l){Z(l),h=[!1,void 0]}h[0]&&(Nh(b,Xv,5,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}}, playbackAssociated:function(a){var b=new Gx,c=0;try{void 0!==a.cpn&&(K(b,1,a.cpn),c++);if(a.playbackVe){var d=CR(a.playbackVe);d[0]&&(Nh(b,gw,2,d[1]),c++)}void 0!==a.csn&&(K(b,3,a.csn),c++);if(a.queueInfo){var e=a.queueInfo,f=new Fx;d=0;try{if(e.enqueueingVe){var h=CR(e.enqueueingVe);h[0]&&(Nh(f,gw,1,h[1]),d++)}void 0!==e.enqueueingCsn&&(K(f,2,e.enqueueingCsn),d++);void 0!==e.clientEnqueueingTimeMs&&(K(f,3,e.clientEnqueueingTimeMs),d++);var l=[d===Object.keys(e).length,f]}catch(m){Z(m),l=[!1,void 0]}l[0]&& (Nh(b,Fx,4,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(m){return Z(m),[!1,void 0]}}, autoplayTriggered:function(a){var b=new $v,c=0;try{return void 0!==a.intentional&&(Uh(b,1,a.intentional),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, webPlayerApiCalled:function(a){var b=new py,c=0;try{return void 0!==a.callerUrl&&(K(b,1,a.callerUrl),c++),void 0!==a.methodName&&(K(b,2,a.methodName),c++),void 0!==a.origin&&(K(b,3,a.origin),c++),void 0!==a.playerStyle&&(K(b,4,a.playerStyle),c++),void 0!==a.embeddedPlayerMode&&(K(b,5,I$a[a.embeddedPlayerMode]),c++),void 0!==a.errorCode&&(K(b,6,a.errorCode),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, embedsAdEvent:function(a){var b=new Zv,c=0;try{return void 0!==a.eventType&&(K(b,1,qab[a.eventType]),c++),void 0!==a.breakType&&(K(b,2,pab[a.breakType]),c++),void 0!==a.packageName&&(K(b,3,a.packageName),c++),void 0!==a.embedUrl&&(K(b,4,a.embedUrl),c++),void 0!==a.adSource&&(K(b,5,rab[a.adSource]),c++),void 0!==a.youtubeHost&&(K(b,6,a.youtubeHost),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, embedsShouldRequestStorageAccessResult:function(a){var b=new cw,c=0;try{return void 0!==a.result&&(Uh(b,1,a.result),c++),void 0!==a.returnsUndefined&&(Uh(b,2,a.returnsUndefined),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, embedsRequestStorageAccessState:function(a){var b=new bw,c=0;try{return void 0!==a.isCued&&(Uh(b,1,a.isCued),c++),void 0!==a.isAutoplayBlocked&&(Uh(b,2,a.isAutoplayBlocked),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, embedsRequestStorageAccessFailedState:function(a){var b=new aw,c=0;try{return void 0!==a.state&&(b.xc(a.state),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, heartbeatActionPlayerHalted:function(a){var b=new yx,c=0;try{return void 0!==a.serializedServerContext&&(Rh(b,1,a.serializedServerContext),c++),void 0!==a.enforcedPolicyToHaltOnNetworkFailure&&(Uh(b,2,a.enforcedPolicyToHaltOnNetworkFailure),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, heartbeatActionPlayerTransitioned:function(a){var b=new zx,c=0;try{return void 0!==a.reason&&(K(b,1,xab[a.reason]),c++),void 0!==a.trigger&&(K(b,2,yab[a.trigger]),c++),void 0!==a.serializedServerContext&&(Rh(b,3,a.serializedServerContext),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, embedsItpWatchLaterResult:function(a){var b=new dw,c=0;try{return void 0!==a.accepted&&(Uh(b,1,a.accepted),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, html5PlayerHealthEvent:function(a){var b=new Ax,c=0;try{return void 0!==a.started&&(Uh(b,1,a.started),c++),void 0!==a.stateAtSend&&(K(b,2,Lab[a.stateAtSend]),c++),void 0!==a.joinLatencySecs&&(Ph(b,4,a.joinLatencySecs),c++),void 0!==a.playTimeSecs&&(Ph(b,5,a.playTimeSecs),c++),void 0!==a.rebufferTimeSecs&&(Ph(b,6,a.rebufferTimeSecs),c++),void 0!==a.playerCanaryType&&(K(b,7,zab[a.playerCanaryType]),c++),void 0!==a.isAd&&(Uh(b,8,a.isAd),c++),void 0!==a.liveMode&&(K(b,9,Kab[a.liveMode]),c++),void 0!== a.isGapless&&(Uh(b,10,a.isGapless),c++),void 0!==a.hasDrm&&(Uh(b,11,a.hasDrm),c++),void 0!==a.seekCount&&(K(b,12,a.seekCount),c++),void 0!==a.networkErrorCount&&(K(b,13,a.networkErrorCount),c++),void 0!==a.nonNetworkErrorCount&&(K(b,14,a.nonNetworkErrorCount),c++),void 0!==a.isServerStitchedDai&&(Uh(b,15,a.isServerStitchedDai),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}}, adsClientStateChange:function(a){var b=new yu,c=0;try{if(a.cuepointTrigger){var d=a.cuepointTrigger,e=new lu,f=0;try{void 0!==d.type&&(K(e,1,cab[d.type]),f++);void 0!==d.event&&(K(e,2,bab[d.event]),f++);void 0!==d.cuepointId&&(K(e,3,d.cuepointId),f++);void 0!==d.totalCueDurationMs&&(Ph(e,4,d.totalCueDurationMs),f++);void 0!==d.playheadTimeMs&&(Ph(e,5,d.playheadTimeMs),f++);void 0!==d.cueStartTimeMs&&(Ph(e,6,d.cueStartTimeMs),f++);void 0!==d.cuepointReceivedTimeMs&&(Ph(e,7,d.cuepointReceivedTimeMs), f++);void 0!==d.contentCpn&&(K(e,8,d.contentCpn),f++);void 0!==d.externalChannelId&&(K(e,9,d.externalChannelId),f++);var h=[f===Object.keys(d).length,e]}catch(Ib){Z(Ib),h=[!1,void 0]}var l=h;l[0]&&(Oh(b,lu,1,s3,l[1]),c++)}if(a.daiStateTrigger){var m=a.daiStateTrigger,n=new qu,p=0;try{void 0!==m.contentCpn&&(K(n,1,m.contentCpn),p++);void 0!==m.totalCueDurationMs&&(Ph(n,2,m.totalCueDurationMs),p++);void 0!==m.filledAdsDurationMs&&(Ph(n,3,m.filledAdsDurationMs),p++);void 0!==m.cueStartChange&&(K(n,4, iab[m.cueStartChange]),p++);void 0!==m.cueDurationChange&&(K(n,5,gab[m.cueDurationChange]),p++);void 0!==m.cueDurationChangeReason&&(K(n,6,hab[m.cueDurationChangeReason]),p++);void 0!==m.errorType&&(K(n,7,jab[m.errorType]),p++);void 0!==m.externalChannelId&&(K(n,8,m.externalChannelId),p++);if(m.adClientData){var q=tHa(m.adClientData);q[0]&&(Nh(n,eu,9,q[1]),p++)}var t=[p===Object.keys(m).length,n]}catch(Ib){Z(Ib),t=[!1,void 0]}var u=t;u[0]&&(Oh(b,qu,2,s3,u[1]),c++)}if(a.daiAdBreakCriticalError){var y= a.daiAdBreakCriticalError,B=new mu,G=0;try{void 0!==y.contentCpn&&(K(B,1,y.contentCpn),G++);void 0!==y.errorType&&(K(B,2,jab[y.errorType]),G++);void 0!==y.externalChannelId&&(K(B,3,y.externalChannelId),G++);void 0!==y.msg&&(K(B,4,y.msg),G++);void 0!==y.cueIdentifier&&(K(B,5,y.cueIdentifier),G++);var M=[G===Object.keys(y).length,B]}catch(Ib){Z(Ib),M=[!1,void 0]}var N=M;N[0]&&(Oh(b,mu,3,s3,N[1]),c++)}if(a.daiAdBreakWarning){var H=a.daiAdBreakWarning,U=new ou,aa=0;try{void 0!==H.contentCpn&&(K(U,1,H.contentCpn), aa++);void 0!==H.errorType&&(K(U,2,jab[H.errorType]),aa++);void 0!==H.externalChannelId&&(K(U,3,H.externalChannelId),aa++);void 0!==H.msg&&(K(U,4,H.msg),aa++);void 0!==H.cueIdentifier&&(K(U,5,H.cueIdentifier),aa++);var da=[aa===Object.keys(H).length,U]}catch(Ib){Z(Ib),da=[!1,void 0]}var ua=da;ua[0]&&(Oh(b,ou,4,s3,ua[1]),c++)}if(a.daiAdBreakInfo){var la=a.daiAdBreakInfo,X=new nu,ma=0;try{void 0!==la.contentCpn&&(K(X,1,la.contentCpn),ma++);void 0!==la.totalCueDurationMs&&(K(X,2,la.totalCueDurationMs), ma++);void 0!==la.filledAdsDurationMs&&(K(X,3,la.filledAdsDurationMs),ma++);void 0!==la.cueStartChange&&(K(X,4,iab[la.cueStartChange]),ma++);void 0!==la.cueDurationChange&&(K(X,5,gab[la.cueDurationChange]),ma++);void 0!==la.cueDurationChangeReason&&(K(X,6,hab[la.cueDurationChangeReason]),ma++);void 0!==la.externalChannelId&&(K(X,7,la.externalChannelId),ma++);void 0!==la.cueIdentifier&&(K(X,8,la.cueIdentifier),ma++);void 0!==la.infoType&&(K(X,9,kab[la.infoType]),ma++);void 0!==la.msg&&(K(X,10,la.msg), ma++);void 0!==la.filledAdCount&&(K(X,11,la.filledAdCount),ma++);var Y=[ma===Object.keys(la).length,X]}catch(Ib){Z(Ib),Y=[!1,void 0]}var Ca=Y;Ca[0]&&(Oh(b,nu,5,s3,Ca[1]),c++)}if(a.visibilityErrorDebugInfo){var W=a.visibilityErrorDebugInfo,Va=new xu,r=0;try{void 0!==W.elementName&&(K(Va,1,W.elementName),r++);void 0!==W.contentVideoPlaybackEventId&&(K(Va,2,W.contentVideoPlaybackEventId),r++);void 0!==W.errorList&&(K(Va,3,W.errorList),r++);void 0!==W.htmlDump&&(K(Va,4,W.htmlDump),r++);var P=[r===Object.keys(W).length, Va]}catch(Ib){Z(Ib),P=[!1,void 0]}var pb=P;pb[0]&&(Oh(b,xu,6,s3,pb[1]),c++)}if(a.playbackTimelineAdBreakStateTrigger){var Ha=a.playbackTimelineAdBreakStateTrigger,yb=new vu,vb=0;try{void 0!==Ha.cueIdentifier&&(K(yb,1,Ha.cueIdentifier),vb++);void 0!==Ha.timestampUnixEpochSec&&(K(yb,2,Ha.timestampUnixEpochSec),vb++);void 0!==Ha.adRequestState&&(K(yb,3,dab[Ha.adRequestState]),vb++);void 0!==Ha.segmentState&&(K(yb,4,eab[Ha.segmentState]),vb++);void 0!==Ha.timestampUnixEpochMs&&(K(yb,5,Ha.timestampUnixEpochMs), vb++);var gb=[vb===Object.keys(Ha).length,yb]}catch(Ib){Z(Ib),gb=[!1,void 0]}var zb=gb;zb[0]&&(Oh(b,vu,7,s3,zb[1]),c++)}if(a.extraLongAdBreakDebugInfo){var eb=a.extraLongAdBreakDebugInfo,nb=new uu,w=0;try{void 0!==eb.contentVideoPlaybackEventId&&(K(nb,1,eb.contentVideoPlaybackEventId),w++);if(eb.adPlacementKindCuepointInitiatedCueRange){var C=AHa(eb.adPlacementKindCuepointInitiatedCueRange);C[0]&&(Nh(nb,tu,2,C[1]),w++)}if(eb.adPlacementConfigImpliedCueRange){var F=AHa(eb.adPlacementConfigImpliedCueRange); F[0]&&(Nh(nb,tu,3,F[1]),w++)}if(eb.adPlacementKindMillisecondsInitiatedCueRange){var E=AHa(eb.adPlacementKindMillisecondsInitiatedCueRange);E[0]&&(Nh(nb,tu,4,E[1]),w++)}void 0!==eb.cueIdentifier&&(K(nb,5,eb.cueIdentifier),w++);var L=[w===Object.keys(eb).length,nb]}catch(Ib){Z(Ib),L=[!1,void 0]}var I=L;I[0]&&(Oh(b,uu,8,s3,I[1]),c++)}if(a.comparePyvAdTagInfo){var R=a.comparePyvAdTagInfo,T=new ku,ka=0;try{void 0!==R.pyvAdTagUrlFromPlayer&&(K(T,1,R.pyvAdTagUrlFromPlayer),ka++);void 0!==R.pyvAdTagUrlFromWatchNext&& (K(T,2,R.pyvAdTagUrlFromWatchNext),ka++);var ha=[ka===Object.keys(R).length,T]}catch(Ib){Z(Ib),ha=[!1,void 0]}var fa=ha;fa[0]&&(Oh(b,ku,9,s3,fa[1]),c++)}if(a.driftRecoveryInfo){var ra=a.driftRecoveryInfo,Aa=new ru,rb=0;try{void 0!==ra.contentCpn&&(K(Aa,1,ra.contentCpn),rb++);void 0!==ra.cueIdentifier&&(K(Aa,2,ra.cueIdentifier),rb++);void 0!==ra.driftRecoveryMs&&(K(Aa,3,ra.driftRecoveryMs),rb++);void 0!==ra.breakDurationMs&&(K(Aa,4,ra.breakDurationMs),rb++);void 0!==ra.driftFromHeadMs&&(K(Aa,5,ra.driftFromHeadMs), rb++);void 0!==ra.appliedDriftRecoveryMs&&(K(Aa,6,ra.appliedDriftRecoveryMs),rb++);void 0!==ra.destinationMs&&(K(Aa,7,ra.destinationMs),rb++);if(ra.adClientData){var Mb=tHa(ra.adClientData);Mb[0]&&(Nh(Aa,eu,8,Mb[1]),rb++)}var $a=[rb===Object.keys(ra).length,Aa]}catch(Ib){Z(Ib),$a=[!1,void 0]}var cb=$a;cb[0]&&(Oh(b,ru,10,s3,cb[1]),c++)}if(a.adsClientEvent){var Sa=a.adsClientEvent,Nb=new ju,$b=0;try{void 0!==Sa.eventType&&(K(Nb,1,aab[Sa.eventType]),$b++);if(Sa.adClientData){var Nd=tHa(Sa.adClientData); Nd[0]&&(Nh(Nb,eu,3,Nd[1]),$b++)}void 0!==Sa.serializedAdServingData&&(Rh(Nb,4,Sa.serializedAdServingData),$b++);void 0!==Sa.eventOrder&&(K(Nb,5,Sa.eventOrder),$b++);void 0!==Sa.serializedSlotAdServingData&&(Rh(Nb,6,Sa.serializedSlotAdServingData),$b++);if(Sa.errorInfo){var wd=Sa.errorInfo,dc=new iu,ac=0;try{void 0!==wd.errorType&&(K(dc,1,$$a[wd.errorType]),ac++);void 0!==wd.errorMessage&&(K(dc,2,Z$a[wd.errorMessage]),ac++);var xd=[ac===Object.keys(wd).length,dc]}catch(Ib){Z(Ib),xd=[!1,void 0]}var Bc= xd;Bc[0]&&(Nh(Nb,iu,7,Bc[1]),$b++)}var Oc=[$b===Object.keys(Sa).length,Nb]}catch(Ib){Z(Ib),Oc=[!1,void 0]}var Id=Oc;Id[0]&&(Oh(b,ju,11,s3,Id[1]),c++)}if(a.daiAdStateTracking){var Pc=a.daiAdStateTracking,Od=new pu,Ob=0;try{void 0!==Pc.eventType&&(K(Od,1,fab[Pc.eventType]),Ob++);void 0!==Pc.contentCpn&&(K(Od,2,Pc.contentCpn),Ob++);void 0!==Pc.externalChannelId&&(K(Od,3,Pc.externalChannelId),Ob++);void 0!==Pc.adCpn&&(K(Od,4,Pc.adCpn),Ob++);void 0!==Pc.adCount&&(K(Od,5,Pc.adCount),Ob++);void 0!==Pc.msg&& (K(Od,6,Pc.msg),Ob++);var ue=[Ob===Object.keys(Pc).length,Od]}catch(Ib){Z(Ib),ue=[!1,void 0]}var Qb=ue;Qb[0]&&(Oh(b,pu,12,s3,Qb[1]),c++)}if(a.adTrimmingInfo){var Pb=a.adTrimmingInfo,ng=new gu,ne=0;try{void 0!==Pb.contentCpn&&(K(ng,1,Pb.contentCpn),ne++);void 0!==Pb.cueIdentifier&&(K(ng,2,Pb.cueIdentifier),ne++);Pb.adMediaInfo&&(AR(ng.j.bind(ng),Pb.adMediaInfo,BHa),ne++);var Qc=[ne===Object.keys(Pb).length,ng]}catch(Ib){Z(Ib),Qc=[!1,void 0]}var Kc=Qc;Kc[0]&&(Oh(b,gu,13,s3,Kc[1]),c++)}if(a.adsAttributionEvent){var yd= a.adsAttributionEvent,Zd=new hu,jd=0;try{void 0!==yd.errorCode&&(K(Zd,1,lab[yd.errorCode]),jd++);void 0!==yd.attributionStep&&(K(Zd,2,mab[yd.attributionStep]),jd++);void 0!==yd.innerErrorDomain&&(K(Zd,3,yd.innerErrorDomain),jd++);void 0!==yd.innerErrorCode&&(K(Zd,4,yd.innerErrorCode),jd++);var qf=[jd===Object.keys(yd).length,Zd]}catch(Ib){Z(Ib),qf=[!1,void 0]}var zd=qf;zd[0]&&(Oh(b,hu,14,s3,zd[1]),c++)}if(a.playerDebugData){var $d=a.playerDebugData,cf=new wu,Uf=0;try{void 0!==$d.pmlSignal&&(Uh(cf, 1,$d.pmlSignal),Uf++);void 0!==$d.contentCpn&&(K(cf,2,$d.contentCpn),Uf++);var ae=[Uf===Object.keys($d).length,cf]}catch(Ib){Z(Ib),ae=[!1,void 0]}var Pd=ae;Pd[0]&&(Oh(b,wu,15,s3,Pd[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ib){return Z(Ib),[!1,void 0]}}, offlineTransferStatusChanged:DGa,offlineStateSnapshot:function(a){var b=new ny,c=0;try{a.offlineVideos&&(AR(b.D.bind(b),a.offlineVideos,eHa),c++);a.offlinePlaylists&&(AR(b.j.bind(b),a.offlinePlaylists,gHa),c++);void 0!==a.freeDiskSpaceBytes&&(K(b,3,a.freeDiskSpaceBytes),c++);void 0!==a.lastOfflineUsageTimeMs&&(K(b,4,a.lastOfflineUsageTimeMs),c++);void 0!==a.lastOfflinePlaybackTimeMs&&(K(b,5,a.lastOfflinePlaybackTimeMs),c++);void 0!==a.lastOfflineSaveTimeMs&&(K(b,6,a.lastOfflineSaveTimeMs),c++);void 0!== a.lastOfflineDownloadSuccessTimeMs&&(K(b,7,a.lastOfflineDownloadSuccessTimeMs),c++);void 0!==a.isBatteryCharging&&(Uh(b,8,a.isBatteryCharging),c++);void 0!==a.detailedNetworkType&&(K(b,9,JR[a.detailedNetworkType]),c++);void 0!==a.batteryLevelPercentage&&(K(b,10,a.batteryLevelPercentage),c++);void 0!==a.isPostMigrationState&&(Uh(b,11,a.isPostMigrationState),c++);if(a.offlineCacheVerificationFailure){var d=a.offlineCacheVerificationFailure,e=new by,f=0;try{void 0!==d.numUncachedVideos&&(K(e,1,d.numUncachedVideos), f++);void 0!==d.numTotalCompletedVideos&&(K(e,2,d.numTotalCompletedVideos),f++);d.uncachedVideos&&(AR(e.j.bind(e),d.uncachedVideos,jHa),f++);var h=[f===Object.keys(d).length,e]}catch(u){Z(u),h=[!1,void 0]}h[0]&&(Nh(b,by,12,h[1]),c++)}if(a.additionalOfflineClientState){var l=a.additionalOfflineClientState,m=new fy;h=0;try{if(l.mainAppAdditionalOfflineClientState){var n=l.mainAppAdditionalOfflineClientState,p=new ey;d=0;try{n.downloadRecsVideos&&(AR(p.j.bind(p),n.downloadRecsVideos,kHa),d++);n.smartDownloadVideos&& (AR(p.D.bind(p),n.smartDownloadVideos,lHa),d++);var q=[d===Object.keys(n).length,p]}catch(u){Z(u),q=[!1,void 0]}q[0]&&(Nh(m,ey,1,q[1]),h++)}var t=[h===Object.keys(l).length,m]}catch(u){Z(u),t=[!1,void 0]}t[0]&&(Nh(b,fy,13,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(u){return Z(u),[!1,void 0]}}},Q_a={adNotify:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy; Oh(d,Ot,184,WD,a);c?UD("adNotify",d,c,b):VD("adNotify",d,b)}, biscottiBasedDetection:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Lv,439,WD,a);c?UD("biscottiBasedDetection",d,c,b):VD("biscottiBasedDetection",d,b)}, adNotifyFilled:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Nt,300,WD,a);c?UD("adNotifyFilled",d,c,b):VD("adNotifyFilled",d,b)}, idbTransactionEnded:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Dx,352,WD,a);c?UD("idbTransactionEnded",d,c,b):VD("idbTransactionEnded",d,b)}, idbUnexpectedlyClosed:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Ex,348,WD,a);c?UD("idbUnexpectedlyClosed",d,c,b):VD("idbUnexpectedlyClosed",d,b)}, flowEvent:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,wx,304,WD,a);c?UD("flowEvent",d,c,b):VD("flowEvent",d,b)}, idbQuotaExceeded:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Bx,351,WD,a);c?UD("idbQuotaExceeded",d,c,b):VD("idbQuotaExceeded",d,b)}, idbTransactionAborted:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Cx,353,WD,a);c?UD("idbTransactionAborted",d,c,b):VD("idbTransactionAborted",d,b)}, streamzIncremented:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,oy,126,WD,a);c?UD("streamzIncremented",d,c,b):VD("streamzIncremented",d,b)}, sliEventBatch:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Yv,344,WD,a);c?UD("sliEventBatch",d,c,b):VD("sliEventBatch",d,b)}, playbackAssociated:Gqa,autoplayTriggered:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,$v,209,WD,a);c?UD("autoplayTriggered",d,c,b):VD("autoplayTriggered",d,b)}, webPlayerApiCalled:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,py,76,WD,a);c?UD("webPlayerApiCalled",d,c,b):VD("webPlayerApiCalled",d,b)}, embedsAdEvent:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Zv,327,WD,a);c?UD("embedsAdEvent",d,c,b):VD("embedsAdEvent",d,b)}, embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,cw,251,WD,a);c?UD("embedsShouldRequestStorageAccessResult",d,c,b):VD("embedsShouldRequestStorageAccessResult",d,b)}, embedsRequestStorageAccessState:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,bw,256,WD,a);c?UD("embedsRequestStorageAccessState",d,c,b):VD("embedsRequestStorageAccessState",d,b)}, embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,aw,257,WD,a);c?UD("embedsRequestStorageAccessFailedState",d,c,b):VD("embedsRequestStorageAccessFailedState",d,b)}, heartbeatActionPlayerHalted:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,yx,332,WD,a);c?UD("heartbeatActionPlayerHalted",d,c,b):VD("heartbeatActionPlayerHalted",d,b)}, heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,zx,330,WD,a);c?UD("heartbeatActionPlayerTransitioned",d,c,b):VD("heartbeatActionPlayerTransitioned",d,b)}, embedsItpWatchLaterResult:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,dw,266,WD,a);c?UD("embedsItpWatchLaterResult",d,c,b):VD("embedsItpWatchLaterResult",d,b)}, html5PlayerHealthEvent:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Ax,293,WD,a);c?UD("html5PlayerHealthEvent",d,c,b):VD("html5PlayerHealthEvent",d,b)}, adsClientStateChange:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,yu,197,WD,a);c?UD("adsClientStateChange",d,c,b):VD("adsClientStateChange",d,b)}, offlineTransferStatusChanged:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,Hw,2,WD,a);c?UD("offlineTransferStatusChanged",d,c,b):VD("offlineTransferStatusChanged",d,b)}, offlineStateSnapshot:function(a,b,c){var d=g.Cy("jspb_sparse_encoded_pivot")?new sy([{}]):new sy;Oh(d,ny,22,WD,a);c?UD("offlineStateSnapshot",d,c,b):VD("offlineStateSnapshot",d,b)}};PR.getInstance=function(){var a=g.Na("ytglobal.storage_");a||(a=new PR,g.Ma("ytglobal.storage_",a));return a}; PR.prototype.estimate=function(){var a,b,c;return g.A(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(qIa()):d.return()})}; g.Ma("ytglobal.storageClass_",PR);MA.prototype.xC=function(a){this.handleError(a)}; MA.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Cy("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Cy("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":sIa(this,b);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=g.Dy("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded", b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.k=tIa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=xba(a.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"");else{var f;d=null!=(f=a.interpreterScript)?f:null}a.interpreterSafeUrl&&(e=a.interpreterSafeUrl,g.Sd("From proto message. b/166824318"),e=Vd(e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());vIa(this,d,e,a.program,b,c)}else g.ZD(Error("Cannot initialize botguard without program"))}; g.k.isInitialized=function(){return this.hE()}; g.k.getState=function(){return this.state}; g.k.isLoading=function(){return 2===this.state}; g.k.invoke=function(a){a=void 0===a?{}:a;return this.hE()?this.TY({Yx:a}):null}; g.k.dispose=function(){this.ra()}; g.k.ra=function(){this.cP(null);this.xc(8)}; g.k.hE=function(){return!!this.j}; g.k.SY=function(a){return this.j.snapshot(a)}; g.k.TY=function(a){return this.j.PX(a)}; g.k.cP=function(a){g.kb(this.j);this.j=a}; g.k.xc=function(a){this.state=a};g.x(xIa,tIa);g.k=xIa.prototype;g.k.ra=function(){this.xc(8)}; g.k.cP=function(a){var b;null==(b=RR())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.PX.bind(a)},g.Ma("yt.abuse.playerAttLoader",b),g.Ma("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Ma("yt.abuse.playerAttLoader",null),g.Ma("yt.abuse.playerAttLoaderRun",null))}; g.k.hE=function(){return!!RR()}; g.k.SY=function(a){return RR().bgvmb(a)}; g.k.TY=function(a){return RR().bgvmc(a)};var yIa,BIa;g.QR=new xIa;yIa=0;BIa=[];var WZa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var PIa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},QIa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},RIa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},OIa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},MIa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF", 2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},NIa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.x(XIa,g.D);XIa.prototype.ra=function(){this.V=this.u=this.B=this.J=this.j=this.K=this.D=this.C=void 0};var f4={},YIa=(f4["api.invalidparam"]=2,f4.auth=150,f4["drm.auth"]=150,f4["heartbeat.net"]=150,f4["heartbeat.servererror"]=150,f4["heartbeat.stop"]=150,f4["html5.unsupportedads"]=5,f4["fmt.noneavailable"]=5,f4["fmt.decode"]=5,f4["fmt.unplayable"]=5,f4["html5.missingapi"]=5,f4["html5.unsupportedlive"]=5,f4["drm.unavailable"]=5,f4["mrm.blocked"]=151,f4);g.x(WR,g.D);g.k=WR.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.K[a],f=d;if(e)if(c&&mE(c,vbb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.v(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.ZD(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');}; g.k.isExternalMethodAvailable=function(a,b){return this.state.D[a]?!0:!!(this.state.K[a]&&b&&mE(b,vbb))}; g.k.getBandwidthEstimate=function(){return FK(this.app.W().schedule)}; g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.bS(this.app);b&&(a={gpu:(0,g.KY)(),d:a},b.handleError(new xL("feedback",a)))}; g.k.getInternalApiInterface=function(){return g.Zc(this.state.j)}; g.k.logApiCall=function(a,b,c){var d=this.app.W();d.Un&&!this.state.V.has(a)&&(this.state.V.add(a),g.OA("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Za,errorCode:c}))}; g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)}; g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)}; g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)}; g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)}; g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.k.startSeekCsiAction=function(){this.app.Qh().C.j=(0,g.gB)()}; g.k.seekToStreamTime=function(a,b,c){this.j&&QZ(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.bS(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Kd()&&(l=h.getStreamTimeOffset());SZ(d,a-l,b,c,e,f)}; g.k.getStreamTimeOffset=function(){var a=g.bS(this.app,1);return a?a.getStreamTimeOffset():0}; g.k.seekToLiveHead=function(a,b){var c=g.bS(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&SZ(this.app,Infinity,a,b,this.playerType)}; g.k.requestSeekToWallTimeSeconds=function(a){var b=g.bS(this.app,this.playerType);b&&b.JO(a)}; g.k.syncVolume=function(){var a=S_a(this.app);eS(this.app,{volume:a.volume,muted:a.muted},!1)}; g.k.getAvailableQualityLabels=function(){var a=g.bS(this.app,this.playerType);return a?g.qm(a.ws(),function(b){return b.qualityLabel}):[]}; g.k.channelSubscribed=function(){this.Pa("SUBSCRIBE",this.app.Pd().dk)}; g.k.channelUnsubscribed=function(){this.Pa("UNSUBSCRIBE",this.app.Pd().dk)}; g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)}; g.k.getCurrentPlaylistSequence=function(){return g.bS(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.k.getPlaylistSequenceForTime=function(a){return g.bS(this.app).getPlaylistSequenceForTime(a)}; g.k.shouldSendVisibilityState=function(){return!0}; g.k.confirmYpcRental=function(){var a=g.bS(this.app,this.playerType);a&&a.rg("ypc_clickwrap")}; g.k.setHomeGroupInfo=function(a){this.app.W().homeGroupInfo=a}; g.k.setConnectedRemoteApps=function(a){this.app.W().Vn=a}; g.k.setLivingRoomAppMode=function(a){this.app.W().livingRoomAppMode=Gz("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,ewa)}; g.k.setEnablePrivacyFilter=function(a){this.app.W().enablePrivacyFilter=void 0===a?!1:a}; g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.k.addUtcCueRange=function(a,b,c,d,e){return y0a(this.app,a,b,c,d,e)}; g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null}; g.k.r3=function(a){a=void 0===a?this.playerType:a;var b=this.fU(a);if(a=g.bS(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Aa;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?Ge(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Ge(a.progressBarEndPosition.utcTimeMillis): null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.B1;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=pya(a);b.paidContentOverlayDurationMs=jN(a);a.j&&JF(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b}; g.k.fU=function(a){a=void 0===a?this.playerType:a;var b=bJa(this,a);if(a=g.bS(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.Qc;b.isManifestless=TM(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Hk()&&(b.isEncrypted=!0);if(a.C)for(var c=g.v(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null== (e=d.value.video)?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b}; g.k.getAdState=function(){return this.app.getAdState()}; g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.bS(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.BO(a,128)&&5===ZIa(b.errorCode))}; g.k.supportsGaplessAudio=function(){return this.app.W().supportsGaplessAudio()}; g.k.supportsGaplessShorts=function(){return this.app.W().supportsGaplessShorts()}; g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)}; g.k.clearQueue=function(){this.app.clearQueue()}; g.k.sendAbandonmentPing=function(){var a=g.bS(this.app);a&&a.sendAbandonmentPing()}; g.k.updateDownloadState=function(a,b){return this.app.updateDownloadState(a,b)}; g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.A(function(l){return 1==l.j?(f=HT(e.app.yb()))?g.z(l,f.k8([a],b,c,d),3):l.La(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})}; g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)}; g.k.resumeVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.resumeVideoDownload(a))})}; g.k.refreshAllStaleEntities=function(a){return this.app.refreshAllStaleEntities(a)}; g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.N("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Pd(),null==b?0:UM(b))){if(this.N("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.eQ=b.autonavState);else if(void 0!==b.eQ)a=b.eQ,b.eQ=void 0;else return}F0a(this.app,a)}; g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,void 0===b?!1:b)}; g.k.setLoopRange=function(a){this.app.setLoopRange(a)}; g.k.getLoopRange=function(){return this.app.getLoopRange()}; g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.bS(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())}; g.k.setUserAudio51Preference=function(a){var b=g.bS(this.app,this.playerType);b&&b.setUserAudio51Preference(a)}; g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.bS(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1}; g.k.getAppState=function(){return this.app.getAppState()}; g.k.updateLastActiveTime=function(){cD()}; g.k.setBlackout=function(a){this.app.setBlackout(a)}; g.k.setUserEngagement=function(a){this.app.W().yl!==a&&(this.app.W().yl=a,(a=g.bS(this.app,this.playerType))&&tZ(a))}; g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.CT(this.app.yb()).FY(a,b)}; g.k.getCaptionWindowContainerId=function(){var a=g.CT(this.app.yb());return a?a.getCaptionWindowContainerId():""}; g.k.toggleSubtitlesOn=function(){var a=g.CT(this.app.yb());a&&a.kY()}; g.k.isSubtitlesOn=function(){var a=g.CT(this.app.yb());return a?a.isSubtitlesOn():!1}; g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.tf()&&(a=1);return a}; g.k.getPlayerResponse=function(){var a=g.bS(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null}; g.k.getHeartbeatResponse=function(){var a=g.bS(this.app,this.playerType);return a?a.getVideoData().getHeartbeatResponse():null}; g.k.getStoryboardFrame=function(a,b){var c=this.app.Gj();if(!c)return null;b=c.levels[b];return b?(a=g.DM(b,a))?{column:a.column,columns:a.columns,height:a.Cv,row:a.row,rows:a.rows,url:a.url,width:a.CC}:null:null}; g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Gj();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Kd();return b.FE(a)}; g.k.getStoryboardLevel=function(a){var b=this.app.Gj();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.ax(),minFrameIndex:b.oJ()}:null:null}; g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Gj();return a?a.levels.length:0}; g.k.S2=function(){return this.getAudioTrack()}; g.k.getAudioTrack=function(){var a=g.bS(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().ym}; g.k.setAudioTrack=function(a,b){3===this.getPresentingPlayerType()&&oS(this.app.yb()).PC("control_set_audio_track",a);var c=g.bS(this.app,this.playerType);if(c)if(c.isDisposed()||g.BO(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j)b=b?c.getCurrentTime()-c.Kd():NaN,c.Ga.setAudioTrack(a,b);else if(r_a(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d=b.od.length)b=!1;else{d=g.v(b.od);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof DL)){b=!1;break b}var f=a.Kc.getId();e.B&&(kwa(e.B,f),e.u=null)}b.Xn=a;b=!0}b&&lZ(c)&&(c.oa("internalaudioformatchange",c.videoData,!0),c.ya("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a}; g.k.T2=function(){return this.getAvailableAudioTracks()}; g.k.getAvailableAudioTracks=function(){return g.bS(this.app,this.playerType).getAvailableAudioTracks()}; g.k.getMaxPlaybackQuality=function(){var a=g.bS(this.app,this.playerType);return a&&a.getVideoData().B?GF(a.Ff?SXa(a.Mi,a.Ff,a.Ru()):IM):"unknown"}; g.k.getUserPlaybackQualityPreference=function(){var a=g.bS(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; g.k.getSubtitlesUserSettings=function(){var a=g.CT(this.app.yb());return a?a.q3():null}; g.k.resetSubtitlesUserSettings=function(){g.CT(this.app.yb()).y8()}; g.k.setMinimized=function(a){this.app.setMinimized(a)}; g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)}; g.k.setGlobalCrop=function(a){this.app.kb().setGlobalCrop(a)}; g.k.getVisibilityState=function(){var a=this.Rf();return this.app.getVisibilityState(this.Ch(),this.isFullscreen()||g.TK(this.app.W()),a,this.isInline(),this.app.Py(),this.app.Ny())}; g.k.isMutedByMutedAutoplay=function(){return this.app.iz}; g.k.isInline=function(){return this.app.isInline()}; g.k.setInternalSize=function(a,b){this.app.kb().setInternalSize(new g.we(a,b))}; g.k.Kd=function(){var a=g.bS(this.app);return a?a.Kd():0}; g.k.Rf=function(){return this.app.Rf()}; g.k.Ch=function(){var a=g.bS(this.app,this.playerType);return!!a&&a.Ch()}; g.k.isFullscreen=function(){return this.app.isFullscreen()}; g.k.setSafetyMode=function(a){this.app.W().enableSafetyMode=a}; g.k.canPlayType=function(a){return this.app.canPlayType(a)}; g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&(this.app.Oh=Fz(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.rT(b).videoId||(a.index=b.index)):GZ(this.app,{list:a.list,index:a.index,playlist_length:d.length});FKa(this.app.getPlaylist(),a);this.Pa("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.k.updateVideoData=function(a,b){var c=g.bS(this.app,this.playerType||1);c&&g.MM(c.getVideoData(),a,b)}; g.k.updateEnvironmentData=function(a){$K(this.app.W(),a,!1)}; g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; g.k.productsInVideoVisibilityUpdated=function(a){this.oa("changeProductsInVideoVisibility",a)}; g.k.setInline=function(a){this.app.setInline(a)}; g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.k.getVideoAspectRatio=function(){return this.app.kb().getVideoAspectRatio()}; g.k.getPreferredQuality=function(){var a=g.bS(this.app);return a?a.getPreferredQuality():"unknown"}; g.k.getPlaybackQualityLabel=function(a){if(a=g.bS(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().B)?void 0:b.video)?void 0:c.qualityLabel)||""}return""}; g.k.setPlaybackQualityRange=function(a,b,c){var d=g.bS(this.app,this.playerType);d&&g.o_a(d,g.DF(a,b||a,!0,"m"),!0,c)}; g.k.onAdUxClicked=function(a,b){this.oa("aduxclicked",a,b)}; g.k.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.k.dispatchReduxAction=function(a){g.bN.dispatch(a)}; g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.xe.includes(e)||(c.xe.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Db(c.xe,e)&&(d=!0)}); d&&this.oa("updatemarkervisibility")}; g.k.highlightSettingsMenuItem=function(a){this.oa("highlightSettingsMenu",a)}; g.k.openSettingsMenuItem=function(a){this.oa("openSettingsMenuItem",a)}; g.k.oa=function(a){var b=g.Ea.apply(1,arguments);this.app.W().J&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Up.oa.apply(this.app.Up,[a].concat(g.oa(b)));this.app.Qq.oa.apply(this.app.Qq,[a].concat(g.oa(b)))}; g.k.Pa=function(a){var b=g.Ea.apply(1,arguments);this.app.Up.oa.apply(this.app.Up,[a].concat(g.oa(b)));this.app.Qq.oa.apply(this.app.Qq,[a].concat(g.oa(b)))}; g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.k.N=function(a){return this.app.W().N(a)}; g.k.ra=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.D.prototype.ra.call(this)};var fJa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.x(dS,WR);g.k=dS.prototype;g.k.getApiInterface=function(){return Array.from(this.state.C)}; g.k.K1=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ea.apply(0,arguments);g.Na(b).apply(window,d)}; this.state.J[b]=c}else c=b;this.app.Up.subscribe(a,c)}; g.k.r8=function(a,b){if("string"===typeof b){var c=this.state.J[b];g.ed(this.state.J,b);b=c}this.app.Up.unsubscribe(a,b)}; g.k.getPlayerState=function(){return n0a(this.app)}; g.k.seekTo=function(a,b,c){var d=g.eL(this.app.W()),e=this.app.getVideoData().Wk;if(!g.Mz(d)||e)this.j&&QZ(this.app,!0,this.playerType),SZ(this.app,a,b,c,this.playerType)}; g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)}; g.k.getMediaReferenceTime=function(){var a=this.app.Pf(this.playerType);return isNaN(a)?this.getCurrentTime():a}; g.k.getDuration=function(){return this.app.getDuration(this.playerType)}; g.k.getVolume=function(){return this.app.wi.volume}; g.k.setVolume=function(a){iJa(this,a)}; g.k.isMuted=function(){return this.app.wi.muted}; g.k.mute=function(){jJa(this)}; g.k.unMute=function(){kJa(this)}; g.k.getPlayerMode=function(){var a={};this.app.getVideoData().wd&&(a.pfp={enableIma:this.app.W().ma&&this.app.Pd().allowImaMonetization,autoplay:AN(this.app.Pd()),mutedAutoplay:this.app.Pd().mutedAutoplay});return a}; g.k.playVideo=function(){this.j&&QZ(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.tf()){var b=FT(this.app.yb());if(!c8a(b)||d8a(b))return}3===a?oS(this.app.yb()).PC("control_play"):this.app.playVideo(a)}; g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2!==a||this.app.tf()||c8a(FT(this.app.yb())))3===a?oS(this.app.yb()).PC("control_pause"):this.app.pauseVideo(a)}; g.k.stopVideo=function(){var a=this.app;a.Z.Mc&&a.Wa.oa("pageTransition");a.stopVideo()}; g.k.clearVideo=function(){}; g.k.getAvailablePlaybackRates=function(){var a=this.app.W();return a.yf?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.C?a.ancestorOrigins[0]:window.location.origin)||a.Wn?xcb:wcb:[1]}; g.k.getPlaybackQuality=function(a){return(a=g.bS(this.app,a))?a.getPlaybackQuality():"unknown"}; g.k.setPlaybackQuality=function(){}; g.k.getAvailableQualityLevels=function(){var a=g.bS(this.app,this.playerType);return a?(a=g.qm(a.ws(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]}; g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()}; g.k.getVideoBytesTotal=function(){return 1}; g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()}; g.k.getVideoStartBytes=function(){return 0}; g.k.getSize=function(){var a=this.app.kb().getPlayerSize();return{width:a.width,height:a.height}}; g.k.setSize=function(){this.app.kb().resize()}; g.k.loadModule=function(a){"captions"===a&&(a=g.CT(this.app.yb()))&&!a.loaded&&a.load()}; g.k.unloadModule=function(a){"captions"===a&&(a=g.CT(this.app.yb()))&&a.loaded&&a.y9()}; g.k.loadVideoById=function(a,b,c){a&&(a=dJa(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&QZ(this.app,a,this.playerType))}; g.k.cueVideoById=function(a,b,c){a=dJa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)}; g.k.loadVideoByUrl=function(a,b,c){a=eJa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&QZ(this.app,a,this.playerType)}; g.k.cueVideoByUrl=function(a,b,c){a=eJa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)}; g.k.getVideoUrl=function(){var a=this.app.W();if(a.Aa)return"";var b=this.app.Pd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)}; g.k.getDebugText=function(){return this.app.getDebugText()}; g.k.getVideoEmbedCode=function(){var a=this.app.W();if(a.Aa)return"";var b=this.app.Pd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Pd().videoId,this.app.kb().getPlayerSize(),this.getPlaylistId()||void 0)}; g.k.addCueRange=function(a,b,c){return x0a(this.app,a,b,c)}; g.k.removeCueRange=function(a){return z0a(this.app,a)}; g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&QZ(this.app,!0,this.playerType)}; g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)}; g.k.nextVideo=function(){this.app.nextVideo();this.j&&QZ(this.app,!0,this.playerType)}; g.k.previousVideo=function(){this.app.previousVideo();this.j&&QZ(this.app,!0,this.playerType)}; g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&QZ(this.app,!0,this.playerType)}; g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)}; g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)}; g.k.n3=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;ca)){var d=this.api.getVideoData(),e=d.Jj;if(e&&aqz())throw Error("Unsupported");l=Tf(sda(h));return n.return(oga(l))}m=Lh(f,ik,1);if(!m)throw Error("Missing field");return n.return(m)})}; lT.prototype.yT=function(a){var b=this,c,d;return g.A(function(e){if(1==e.j){var f=new wk;f=wh(f,1,b.Ue,"");c=wh(f,2,a,"");return g.z(e,b.send(b.B,Object.assign({},{postBody:c.hm()},b.j)),2)}d=e.u;return e.return(H9a(d.xhr.responseText))})};g.x(mT,CS);mT.prototype.ra=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);CS.prototype.ra.call(this)}; mT.prototype.sL=function(a){var b=this;return g.A(function(c){return b.j?c.return(b.j.ready().then(function(){b.xb.oi("pot_if");return uKa(b,a)})):c.return(Promise.reject("web po not ready"))})}; mT.prototype.TP=function(){this.j&&!this.j.isReady()&&nT(this)};g.x(vKa,CS);g.x(wKa,g.D);oT.prototype.tN=function(){this.u=(0,g.gB)()}; oT.prototype.reset=function(){this.j=this.u=NaN}; oT.prototype.xN=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.K&&(c.cttAuthInfo={token:a.K,videoId:a.videoId});vF("seek",c);wF("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||xF("pl_ss",this.u,"seek");xF(b,(0,g.gB)(),"seek")}this.reset()}};g.k=xKa.prototype;g.k.reset=function(){sF(this.timerName)}; g.k.tick=function(a,b){xF(a,b,this.timerName)}; g.k.oi=function(a){return osa(a,this.timerName)}; g.k.Qt=function(a){pT(a,void 0,this.timerName)}; g.k.info=function(a,b){wF(a,b,this.timerName)};g.x(AKa,g.yE);g.k=AKa.prototype;g.k.Ek=function(a){return this.loop||!!a||this.index+1([^<>]+)<\/a>/;g.x(QT,g.lI);QT.prototype.Ki=function(){PLa(this)}; QT.prototype.onVideoDataChange=function(){var a=this,b=this.G.getVideoData();if(b.Oe()){var c=this.G.W(),d=[],e="";if(!c.Aa){var f=NLa(this);c.N("enable_web_media_session_metadata_fix")&&g.WK(c)&&f?(d=OLa(f.thumbnailDetails),f.album&&(e=g.BE(f.album))):d=[{src:b.zg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}PLa(this);MLa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.pS(this.G)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"), b=function(){a.G.nextVideo()},c=function(){a.G.previousVideo()}); RT(this,"nexttrack",b);RT(this,"previoustrack",c)}}; QT.prototype.ra=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.v(this.j),b=a.next();!b.done;b=a.next())RT(this,b.value,null);g.lI.prototype.ra.call(this)};g.x(QLa,g.V);g.k=QLa.prototype;g.k.onClick=function(a){g.IS(a,this.G,!0);this.G.rb(this.element)}; g.k.onVideoDataChange=function(a,b){SLa(this,b);this.bf&&TLa(this,this.bf)}; g.k.Dd=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&SLa(this,b);this.j&&TLa(this,a.state);this.bf=a.state}; g.k.pd=function(){this.C.show();this.G.oa("paidcontentoverlayvisibilitychange",!0);this.G.Xa(this.element,!0)}; g.k.Kb=function(){this.C.hide();this.G.oa("paidcontentoverlayvisibilitychange",!1);this.G.Xa(this.element,!1)};g.x(ST,g.V);ST.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.V.prototype.hide.call(this)}; ST.prototype.onStateChange=function(a){this.xc(a.state)}; ST.prototype.xc=function(a){if(g.BO(a,128))var b=!1;else{var c;b=(null==(c=this.api.qd())?0:c.Ss)?!1:g.BO(a,16)||g.BO(a,1)?!0:!1}b?this.j.start():this.hide()}; ST.prototype.u=function(){this.message.style.display="block"};g.x(TT,g.uS);TT.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(ULa(this),this.pd()):(this.j&&this.rb(),this.Kb()))}; TT.prototype.Ki=function(a){this.api.isMutedByMutedAutoplay()&&g.JO(a,2)&&this.Kb()}; TT.prototype.onClick=function(){this.api.unMute();this.rb()}; TT.prototype.rb=function(){this.clicked||(this.clicked=!0,this.api.rb(this.element))};g.x(g.UT,g.lI);g.k=g.UT.prototype;g.k.init=function(){var a=this.api,b=a.Ib();this.eC=a.getPlayerSize();this.wc(b);this.yp();this.Gb();this.api.oa("basechromeinitialized",this)}; g.k.onVideoDataChange=function(a,b){var c=this.tC!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.eC=a.getPlayerSize());c&&(this.tC=b.videoId,c=this.gf,c.Da=b&&0=b){this.hB=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.EC-1);02*b&&d<3*b&&(this.wD(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.nP(a)}else KT&&this.api.N("embeds_web_enable_mobile_dtts")&& this.api.W().V&&VT(this,a)&&g.nP(a);this.eV=Date.now();this.lX.start()}}; g.k.Z6=function(){this.jN.kM=!1;this.api.oa("rootnodemousedown",this.jN)}; g.k.V6=function(a){this.jN.kM||ZLa(this,a)||(YLa(this)||!VT(this,a)||this.mF.isActive()||(g.oL(this.api.W())&&this.api.Ib().isCued()&&qT(this.api.Qh()),WLa(this),g.nP(a)),this.hB&&(this.hB=!1))}; g.k.fG=function(){}; g.k.jw=function(){}; g.k.wD=function(){}; g.k.vD=function(){}; g.k.wr=function(){var a=this.api.Ib();g.BO(a,2)&&g.mS(this.api)||(g.xP(a)?this.api.pauseVideo():(this.Lm&&(a=this.Lm.B,document.activeElement===a.element&&this.api.oa("largeplaybuttonclicked",a.element)),this.api.zG(),this.api.playVideo(),this.Lm&&document.activeElement===this.Lm.B.element&&this.api.getRootNode().focus()))}; g.k.W6=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!XLa(this,bA(a)))if(a=this.api.W(),(this.api.W().N("player_doubletap_to_seek")||this.api.N("embeds_web_enable_mobile_dtts")&&this.api.W().V)&&this.hB)this.hB=!1;else if(a.Pb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.ZB(d)})}catch(d){this.ZB(d)}}; g.k.ZB=function(a){String(a).includes("fullscreen error")?g.ZD(a):g.YD(a)}; g.k.X6=function(a){$La(this,.3,a.scale);g.nP(a)}; g.k.Y6=function(a){$La(this,.1,a.scale)}; g.k.Gb=function(){var a=this.api.kb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.gf.resize();g.bq(b,"ytp-fullscreen",this.api.isFullscreen());g.bq(b,"ytp-large-width-mode",c);g.bq(b,"ytp-small-mode",this.ah());g.bq(b,"ytp-tiny-mode",this.qG());g.bq(b,"ytp-big-mode",this.Bg());this.xg&&this.xg.resize(a)}; g.k.Ki=function(a){this.wc(a.state);this.yp()}; g.k.LD=ba(31);g.k.GL=function(){var a=!!this.tC&&!this.api.Df()&&!this.dO,b=2===this.api.getPresentingPlayerType(),c=this.api.W();if(b){if(w8a&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=FT(this.api.yb());return a&&b.KX()}return a&&(c.zm||this.api.isFullscreen()||c.Uk)}; g.k.yp=function(){var a=this.GL();this.Yo!==a&&(this.Yo=a,g.bq(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.k.wc=function(a){var b=a.isCued()||this.api.Po()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.IP&&this.Ic(this.IP),this.IP=this.T(this.api.kb(),"touchstart",this.a7,void 0,b));var c=a.hd()&&!g.BO(a,32)||this.api.nC();JT(this.gf,128,!c);c=3===this.api.getPresentingPlayerType();JT(this.gf,256,c);c=this.api.getRootNode();if(g.BO(a,2))var d=[c4.ENDED];else d=[],g.BO(a,8)?d.push(c4.PLAYING):g.BO(a,4)&&d.push(c4.PAUSED),g.BO(a,1)&&!g.BO(a,32)&&d.push(c4.BUFFERING),g.BO(a, 32)&&d.push(c4.SEEKING),g.BO(a,64)&&d.push(c4.UNSTARTED);g.Ub(this.ZJ,d)||(g.aq(c,this.ZJ),this.ZJ=d,g.Zp(c,d));d=this.api.W();var e=g.BO(a,2);a:{var f=this.api.W();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.BO(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:d8a(FT(this.api.yb())))||g.OK(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.bq(c,"ytp-hide-controls",!f);g.bq(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.iM);g.BO(a,128)&&!g.OK(d)? (this.xg||(this.xg=new g.NT(this.api),g.J(this,this.xg),g.sS(this.api,this.xg.element,4)),this.xg.u(a.getData()),this.xg.show()):this.xg&&(this.xg.dispose(),this.xg=null)}; g.k.Ml=function(){return this.api.rk()&&this.api.zo()?(this.api.Lz(!1,!1),!0):this.api.Df()?(g.nS(this.api,!0),!0):!1}; g.k.onMutedAutoplayChange=function(a){this.iM=a;this.ql()}; g.k.Bg=function(){return!1}; g.k.ah=function(){return!this.Bg()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; g.k.qG=function(){return this.ah()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.k.Yb=function(){var a=this.api.W();if(!g.OK(a)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.Za||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.eC;var b,c;return a.width<=a.height&&!!(null==(b=this.api.getVideoData())?0:null==(c=b.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)}; g.k.Vl=function(){return this.hI}; g.k.Qm=function(){return null}; g.k.GF=function(){return null}; g.k.Bk=function(){var a=this.api.kb().getPlayerSize();return new g.Xm(0,0,a.width,a.height)}; g.k.handleGlobalKeyDown=function(){return!1}; g.k.handleGlobalKeyUp=function(){return!1}; g.k.Sv=function(){}; g.k.showControls=function(a){void 0!==a&&this.api.kb().KD(a)}; g.k.wp=function(){}; g.k.HL=function(){return this.eC};g.x(WT,g.yE);g.k=WT.prototype;g.k.Ol=function(){return 1E3*this.api.getDuration(this.Ln,!1)}; g.k.stop=function(){this.j&&this.Ad.Ic(this.j)}; g.k.zc=function(){var a=this.api.getProgressState(this.Ln);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Ln,!1)};this.oa("h")}; g.k.getProgressState=function(){return this.u}; g.k.Dd=function(a){g.JO(a,2)&&this.oa("g")};g.x(aMa,g.V);aMa.prototype.onClick=function(){this.G.Pa("BACK_CLICKED")};g.x(g.XT,g.V);g.XT.prototype.show=function(){g.V.prototype.show.call(this);g.Rp(this.j)}; g.XT.prototype.hide=function(){this.u.stop();g.V.prototype.hide.call(this)}; g.XT.prototype.jw=function(a){a?g.BO(this.G.Ib(),64)||ZT(this,rDa(),"Play"):(a=this.G.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?ZT(this,wDa(),"Stop live playback"):ZT(this,oDa(),"Pause"))};g.x(eMa,g.V);g.k=eMa.prototype;g.k.pd=function(){this.G.W().N("player_new_info_card_format")&&g.Xp(this.G.getRootNode(),"ytp-cards-teaser-shown")&&!g.OK(this.G.W())||(this.u.show(),g.LC("iv-button-shown"))}; g.k.Kb=function(){g.LC("iv-button-hidden");this.u.hide()}; g.k.ej=function(){return this.Bb&&4!==this.u.state}; g.k.ra=function(){this.j&&this.j();g.V.prototype.ra.call(this)}; g.k.X5=function(){g.LC("iv-button-mouseover")}; g.k.D5=function(a){this.G.rk();var b=g.Xp(this.G.getRootNode(),"ytp-cards-teaser-shown");g.LC("iv-teaser-clicked",b);var c;if(null==(c=this.G.getVideoData())?0:g.uN(c)){var d;a=null==(d=this.G.getVideoData())?void 0:g.vN(d);(null==a?0:a.onIconTapCommand)&&this.G.Pa("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.G.Lz(!this.G.zo(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.x(fMa,g.V);g.k=fMa.prototype;g.k.AY=function(){this.G.rk()&&this.G.zo()&&this.ej()&&this.Kb()}; g.k.wP=function(){this.Kb();!this.G.rk()&&this.G.W().N("enable_error_corrections_infocards_icon_web")&&this.jh.Kb();g.LC("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.G.Pa("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.G.getVideoData())?0:g.uN(a))||this.G.Lz(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}}; g.k.b0=function(){g.LC("iv-teaser-mouseover");this.j&&this.j.stop()}; g.k.w7=function(a){this.G.W().N("player_new_info_card_format")&&!g.OK(this.G.W())?this.jh.Kb():this.G.W().N("enable_error_corrections_infocards_icon_web")&&this.jh.pd();this.j||!a||this.G.zo()||this.u&&this.u.isActive()||(this.pd(a),g.LC("iv-teaser-shown"))}; g.k.pd=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.nq(a.teaserText));this.C.show();this.u=new g.Qp(function(){g.Yp(this.G.getRootNode(),"ytp-cards-teaser-shown");this.G.N("player_new_info_card_format")&&!g.OK(this.G.W())&&this.jh.Kb();this.UP()},0,this); this.u.start();dMa(this.jh,!1);this.j=new g.Qp(this.Kb,580+a.durationMs,this);this.j.start();this.D.push(this.Sa("mouseover",this.BR,this));this.D.push(this.Sa("mouseout",this.AR,this))}; g.k.UP=function(){if(!this.G.W().N("player_new_info_card_format")&&g.OK(this.G.W())&&this.Bb){var a=this.jh.element.offsetLeft,b=g.Oe("ytp-cards-button-icon"),c=this.G.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.jh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.k.g2=function(){g.OK(this.G.W())&&this.ma.ah()&&this.Bb&&this.V.start()}; g.k.BR=function(){this.J.stop();this.j&&this.j.isActive()&&this.K.start()}; g.k.AR=function(){this.K.stop();this.j&&!this.j.isActive()&&this.J.start()}; g.k.k6=function(){this.j&&this.j.stop()}; g.k.j6=function(){this.Kb()}; g.k.gp=function(){this.Kb()}; g.k.Kb=function(){!this.j||this.B&&this.B.isActive()||(g.LC("iv-teaser-hidden"),this.C.hide(),g.$p(this.G.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Qp(function(){for(var a=g.v(this.D),b=a.next();!b.done;b=a.next())this.Ic(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);dMa(this.jh,!0);!this.G.rk()&&this.G.W().N("enable_error_corrections_infocards_icon_web")&&this.jh.Kb()},330,this),this.B.start())}; g.k.ej=function(){return this.Bb&&4!==this.C.state}; g.k.ra=function(){var a=this.G.getRootNode();a&&g.$p(a,"ytp-cards-teaser-shown");g.lb(this.u,this.B,this.j);g.V.prototype.ra.call(this)};var h4={},aU=(h4.BUTTON="ytp-button",h4.TITLE_NOTIFICATIONS="ytp-title-notifications",h4.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",h4.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",h4.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",h4);g.x(gMa,g.V);gMa.prototype.onClick=function(){this.api.rb(this.element);var a=!this.j;this.updateValue("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",a);hMa(this,a)};g.Ma("yt.pubsub.publish",g.LC);g.x(g.dU,g.V);g.dU.prototype.C=function(){window.location.reload()}; g.dU.prototype.j=function(){g.Yp(this.element,"ytp-sb-subscribed")}; g.dU.prototype.u=function(){g.$p(this.element,"ytp-sb-subscribed")};g.x(kMa,g.V);g.k=kMa.prototype;g.k.A5=function(a){this.api.rb(this.j);var b=this.api.W();b.u||b.Hb?mMa(this)&&(this.isExpanded()?this.eF():this.uF()):g.tk(eU(this));a.preventDefault()}; g.k.LO=function(){oMa(this);this.channel.classList.remove("ytp-title-expanded")}; g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.k.Yb=function(){return this.api.W().N("shorts_mode_to_player_api")?!!this.api.Yb():!!this.D.Yb()}; g.k.uF=function(){if(mMa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.B&&this.B.stop();this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&this.api.Xa(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.Xa(this.subscribeButton.element,!0));var a=this.api.getVideoData(); this.u&&a.qm&&a.subscribed&&(this.u.show(),this.api.Xa(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.k.eF=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.B&&this.B.start()}; g.k.Ra=function(){var a=this.api.W();g.wQ(this,!this.Yb());var b=this.api.getVideoData(),c=this.api.W(),d=this.api.getVideoData();this.C=!1;var e=!!d.videoId&&!!d.Mc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.C=e&&!!d.isListed&&!!d.author:g.OK(c)&&(this.C=e&&!(d.wd&&c.ma)&&!c.B&&!(c.V&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.OK(a)?b.ag:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.C?(this.K!==c&&(this.j.style.backgroundImage="url("+c+")",this.K=c),this.api.N("web_player_ve_conversion_fixes_for_channel_info")|| this.updateValue("channelLink",eU(this)),this.updateValue("channelLogoLabel",g.XO("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Yp(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.$p(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Xa(this.j,this.C&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=b.dk);this.updateValue("expandedTitle",b.ag);this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",eU(this));this.updateValue("expandedSubtitle", b.expandedSubtitle)}; g.k.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Xa(this.j,this.C&&a)};g.x(fU,g.xQ);fU.prototype.ZV=function(){this.oa("size-change")}; fU.prototype.focus=function(){this.content.focus()}; fU.prototype.UV=function(){this.oa("back")};g.x(g.gU,fU);g.k=g.gU.prototype;g.k.bd=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Rb(this.items,a,qMa);if(0<=b)return;b=~b;g.Kb(this.items,b,0,a);g.bf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.KN,this);this.menuItems.oa("size-change")}; g.k.nh=function(a){a.unsubscribe("size-change",this.KN,this);this.isDisposed()||(g.Db(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.oa("size-change"))}; g.k.KN=function(){this.menuItems.oa("size-change")}; g.k.focus=function(){for(var a=0,b=0;bb.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x=d.right)&&(e&=-2),132==(e&132)&&(a.y< d.top||a.y>=d.bottom)&&(e&=-5),a.xd.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.yd.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top))); d=new g.Xm(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.fn(this.element,new g.se(d.left,d.top));g.hA(this.C);this.C.T(document,"contextmenu",this.O5);this.C.T(this.G,"fullscreentoggled",this.onFullscreenToggled);this.C.T(this.G,"pageTransition",this.g0)}; g.k.O5=function(a){if(!g.mP(a)){var b=bA(a);g.kf(this.element,b)||this.Kb();this.G.W().disableNativeContextMenu&&g.nP(a)}}; g.k.onFullscreenToggled=function(){this.Kb();AMa(this)}; g.k.g0=function(){this.Kb()};g.x(g.oU,g.V);g.oU.prototype.onClick=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.j)return b=a.api.W(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,DMa(a,e),2);f.u&&CMa(a);a.api.rb(a.element);g.wa(f)})}; g.oU.prototype.Ra=function(){this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=BMa(this);g.bq(this.element,"ytp-copylink-button-visible", this.visible);g.wQ(this,this.visible);FS(this.tooltip);this.api.Xa(this.element,this.visible&&this.ea)}; g.oU.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Xa(this.element,this.visible&&a)}; g.oU.prototype.ra=function(){g.V.prototype.ra.call(this);g.$p(this.element,"ytp-copylink-button-visible")};g.x(qU,g.V);qU.prototype.show=function(){g.V.prototype.show.call(this);g.Rp(this.u)}; qU.prototype.hide=function(){this.C.stop();this.B=0;g.$p(this.element,"ytp-chapter-seek");g.$p(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)}; qU.prototype.wD=function(a,b,c,d){this.B=a===this.J?this.B+d:d;this.J=a;var e=-1===a?this.V:this.K;e&&this.G.rb(e);this.D?this.u.stop():g.Tp(this.u);this.C.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.G.kb().getPlayerSize().height;e=this.G.kb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*f;f= h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.G.kb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");EMa(this,this.D?this.B:d)};var wU=window.i7a||"en";g.x(uU,g.V);g.k=uU.prototype;g.k.QG=function(){}; g.k.MC=function(){}; g.k.Sz=function(){return!0}; g.k.W8=function(){if(this.expanded){this.Oa.show();var a=this.B.element.scrollWidth}else a=this.B.element.scrollWidth,this.Oa.hide();this.Ab=34+a;g.bq(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Ab)+"px";this.Ma.start()}; g.k.O2=function(){this.badge.element.style.width=(this.expanded?this.Ab:34)+"px";this.fb.start()}; g.k.UG=function(a){this.V=a;tU(this);sU(this);this.mm()}; g.k.A9=function(){g.bq(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.k.YH=function(){return this.ma||this.V||!this.J}; g.k.mm=function(){this.Sz()?this.K.show():this.K.hide();GMa(this)}; g.k.j0=function(){this.enabled=!1;this.mm()}; g.k.z9=function(){this.mm()}; g.k.x5=function(a){this.qb=1===a;this.mm();g.bq(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.k.R5=function(){g.bq(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.G.isFullscreen());this.mm()};g.x(IMa,uU);g.k=IMa.prototype;g.k.Sz=function(){return!!this.C}; g.k.YH=function(){return!!this.C}; g.k.QG=function(a){a.target===this.dismissButton.element?a.preventDefault():vU(this,!1)}; g.k.MC=function(){vU(this,!0);this.FH()}; g.k.J8=function(a){var b=this,c;if(a.id!==(null==(c=this.C)?void 0:c.identifier)){this.FH();c=g.v(this.D);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.itemData)&&e.identifier===a.id){this.C=e;YCa(this.banner,d.accessibilityLabel||"");e=void 0;this.banner.update({url:JMa(d.onTapCommand),thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,vendor:d.vendorName,price:d.price});d.trackingParams&& (this.j=!0,this.G.Vf(this.badge.element,d.trackingParams));this.K.show();tU(this);g.wQ(this.qa,!d.stayInApp);NMa(this);var l=h=f=e=void 0;(null==(e=d)?0:null==(f=e.hiddenProductOptions)?0:f.showDropCountdown)&&(null==(h=d)?0:null==(l=h.hiddenProductOptions)?0:l.dropTimestampMs)&&(this.Da=new g.Qp(function(){MMa(b)},1E3),this.qa.hide(),this.countdownTimer.show(),MMa(this))}}}}; g.k.FH=function(){this.C&&(this.C=void 0,this.mm())}; g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&KMa(this);var d,e;if(null==b?0:null==(d=b.getPlayerResponse())?0:null==(e=d.videoDetails)?0:e.isLiveContent){a=b.shoppingOverlayRenderer;var f=null==a?void 0:a.featuredProductsEntityKey,h;if(b=null==a?void 0:null==(h=a.dismissButton)?void 0:h.trackingParams)this.G.Vf(this.dismissButton.element,b),this.u=!0;var l;(h=null==a?void 0:null==(l=a.dismissButton)?void 0:l.a11yLabel)&&YCa(this.dismissButton,g.BE(h));this.D.length||LMa(this,f); var m;null==(m=this.Ua)||m.call(this);this.Ua=g.bN.subscribe(function(){LMa(c,f)})}else this.FH()}; g.k.ra=function(){KMa(this);NMa(this);uU.prototype.ra.call(this)};g.x(QMa,g.V);QMa.prototype.onClick=function(){this.G.rb(this.element,this.u)};g.x(RMa,g.uS);g.k=RMa.prototype;g.k.show=function(){g.uS.prototype.show.call(this);this.G.oa("infopaneldetailvisibilitychange",!0);this.G.Xa(this.element,!0);SMa(this,!0)}; g.k.hide=function(){g.uS.prototype.hide.call(this);this.G.oa("infopaneldetailvisibilitychange",!1);this.G.Xa(this.element,!1);SMa(this,!1)}; g.k.getId=function(){return this.C}; g.k.Jo=function(){return this.itemData.length}; g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.rl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.rl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.rl)?void 0:h.trackingParams)||null;this.G.Vf(this.element,a);h=g.v(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.rl)?0:l.ctaButtons)for(b=g.v(b.rl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.Q(l.value,K$a))l=new QMa(this.G, l,this.j),l.Oe&&(this.itemData.push(l),l.Ha(this.items))}}; g.k.ra=function(){this.hide();g.uS.prototype.ra.call(this)};g.x(VMa,g.V);g.k=VMa.prototype;g.k.onVideoDataChange=function(a,b){UMa(this,b);this.bf&&XMa(this,this.bf)}; g.k.Dd=function(a){var b=this.G.getVideoData();this.videoId!==b.videoId&&UMa(this,b);XMa(this,a.state);this.bf=a.state}; g.k.aW=function(a){(this.C=a)?this.hide():this.j&&this.show()}; g.k.l0=function(){this.u||this.pd();this.showControls=!0}; g.k.k0=function(){this.u||this.Kb();this.showControls=!1}; g.k.pd=function(){this.j&&!this.C&&(this.B.show(),this.G.oa("infopanelpreviewvisibilitychange",!0),this.G.Xa(this.element,!0))}; g.k.Kb=function(){this.j&&!this.C&&(this.B.hide(),this.G.oa("infopanelpreviewvisibilitychange",!1),this.G.Xa(this.element,!1))}; g.k.M8=function(){this.u=!1;this.showControls||this.Kb()};var Dcb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Dcb).reduce(function(a,b){a[Dcb[b]]=b;return a},{}); var Ecb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Ecb).reduce(function(a,b){a[Ecb[b]]=b;return a},{}); var Fcb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Fcb).reduce(function(a,b){a[Fcb[b]]=b;return a},{});var Gcb,Hcb;Gcb=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];Hcb=[{option:0,text:xU(0)},{option:.25,text:xU(.25)},{option:.5,text:xU(.5)},{option:.75,text:xU(.75)},{option:1,text:xU(1)}]; g.BU=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:Gcb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:xU(.5)},{option:-1,text:xU(.75)},{option:0,text:xU(1)},{option:1,text:xU(1.5)},{option:2, text:xU(2)},{option:3,text:xU(3)},{option:4,text:xU(4)}]},{option:"background",text:"Background color",options:Gcb},{option:"backgroundOpacity",text:"Background opacity",options:Hcb},{option:"windowColor",text:"Window color",options:Gcb},{option:"windowOpacity",text:"Window opacity",options:Hcb},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:xU(.25)},{option:.5,text:xU(.5)},{option:.75,text:xU(.75)},{option:1,text:xU(1)}]}];var Icb=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.x(g.AU,g.lI);g.k=g.AU.prototype; g.k.oU=function(a){a.repeat||(this.B.hG=!1);var b=!1,c=g.jP(a),d=bA(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.fS(this.api.app)||Icb.includes(c)),f=!1,h=!1,l=this.api.W();g.mP(a)?(e=!1,h=!0):l.Jj&&!g.fS(this.api.app)&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b= "slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);$T(this.Sc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0); $T(this.Sc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Dh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0),h=f=!0);break;case 35:this.api.Dh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&zU(this,!0);(b||h)&&this.gf.wp();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&g.nP(a);l.J&&(a={keyCode:g.jP(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.mP(a),fullscreen:this.api.isFullscreen()}, this.api.Pa("onKeyPress",a))}; g.k.pU=function(a){this.handleGlobalKeyUp(g.jP(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&g.nP(a)}; g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.oa("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.B.hG)return b;(c=g.qS(this.api.yb()))&&(c=c.Jt)&&c.Bb&&(c.kU(a),b=!0);switch(a){case 9:zU(this,!0);b=!0;break;case 32:if(this.api.N("web_speedmaster_spacebar_control")&&!this.D){var l,m;a=null==(l=this.Lc)?void 0:null==(m=l.u)?void 0:m.isEnabled;b=this.wr(a)}}return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.B.hG=!1);var m=!1,n=this.api.W();if(n.Jj&&!g.fS(this.api.app))return m;var p=g.qS(this.api.yb());if(p&&(p=p.Jt)&&p.Bb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.jU(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.u+=m,0==="awesome".indexOf(this.u)?(m=!0,7===this.u.length&&Qka(this.api.getRootNode(),"ytp-color-party")):(this.u=m,m=0==="awesome".indexOf(this.u)));if(!m&&(!g.fS(this.api.app)|| Icb.includes(a))){var q=this.api.getVideoData(),t,u;p=null==(t=this.Lc)?void 0:null==(u=t.u)?void 0:u.isEnabled;t=q?q.Jj:[];u=TW?d:c;switch(a){case 80:b&&!n.Ua&&(ZT(this.Sc,sDa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Ua&&(ZT(this.Sc,lDa(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Dh()&&(this.api.startSeekCsiAction(),this.j?rU(this.j,-1,10):ZT(this.Sc,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill", Y:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate()),m=!0);break;case 76:this.api.Dh()&&(this.api.startSeekCsiAction(),this.j?rU(this.j,1,10):ZT(this.Sc,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate()),m=!0);break;case 37:this.api.Dh()&&(this.api.startSeekCsiAction(),u?(u=$Ma(t,1E3*this.api.getCurrentTime()),-1!==u&&null!=this.j&&(FMa(this.j,-1,t[u].title),this.api.seekTo(t[u].startTime/1E3),m=!0)):(this.j?rU(this.j,-1,5):ZT(this.Sc,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate()),m=!0));break;case 39:this.api.Dh()&&(this.api.startSeekCsiAction(),u?(u=ZMa(t,1E3*this.api.getCurrentTime()),-1!==u&&null!=this.j&&(FMa(this.j,1,t[u].title),this.api.seekTo(t[u].startTime/1E3),m=!0)):(null!=this.j?rU(this.j,1,5):ZT(this.Sc,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate()),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),$T(this.Sc,this.api.getVolume(),!1)):(this.api.mute(),$T(this.Sc,0,!0));m=!0;break;case 32:m=this.api.N("web_speedmaster_spacebar_control")?!this.api.W().Ua:this.wr(p);break;case 75:m=this.wr(p);break;case 190:b?n.yf&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),bMa(this.Sc,!1),m=!0):this.api.Dh()&&(this.step(1),m=!0);break;case 188:b?n.yf&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m- .25,!0),bMa(this.Sc,!0),m=!0):this.api.Dh()&&(this.step(-1),m=!0);break;case 70:GJa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0); break;case 27:p?(this.Lc.hs(),m=!0):this.J()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.CT(this.api.yb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),cMa(this.Sc,!n||n&&!n.displayName),m=!0);break;case 79:CU(this,"textOpacity");break;case 87:CU(this,"windowOpacity");break;case 187:case 61:CU(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:CU(this,"fontSizeIncrement",!0,!0)}var y;b||c||d||(48<=a&&57>=a?y=a-48:96<=a&&105>=a&&(y=a-96));null!=y&&this.api.Dh()&& (this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(y/10*(n.seekableEnd-n.seekableStart)+n.seekableStart),m=!0);m&&this.gf.wp()}this.api.oa("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.B);return m}; g.k.step=function(a){this.api.Dh();if(g.wP(this.api.Ib())){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30))}}; g.k.wr=function(a){if(!this.api.W().Ua){var b;var c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(d){var e;b="PLAYBACK_MODE_PAUSED_ONLY"===(null==(e=g.Q(d.miniplayer,$ab))?void 0:e.playbackMode)}else b=!1;b&&this.api.Pa("onExpandMiniplayer");a?this.Lc.nL():(a=!g.xP(this.api.Ib()),this.Sc.jw(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.k.ra=function(){g.Tp(this.C);g.lI.prototype.ra.call(this)};g.x(g.DU,g.V);g.DU.prototype.Yq=ba(33); g.DU.prototype.Ra=function(){var a=this.G.W(),b=a.B||this.G.N("web_player_hide_overflow_button_if_empty_menu")&&this.Fh.isEmpty(),c=g.OK(a)&&g.pS(this.G)&&g.BO(this.G.Ib(),128),d=this.G.getPlayerSize(),e=a.N("shorts_mode_to_player_api")?this.G.Yb():this.j.Yb();this.visible=this.j.ah()&&!c&&240<=d.width&&!(this.G.getVideoData().wd&&a.ma)&&!b&&!this.u&&!e;g.bq(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&FS(this.tooltip);this.G.Xa(this.element,this.visible&&this.ea)}; g.DU.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.G.Xa(this.element,this.visible&&a)}; g.DU.prototype.ra=function(){g.V.prototype.ra.call(this);g.$p(this.element,"ytp-overflow-button-visible")};g.x(cNa,g.uS);g.k=cNa.prototype;g.k.m0=function(a){a=bA(a);g.kf(this.element,a)&&(g.kf(this.j,a)||g.kf(this.closeButton,a)||vS(this))}; g.k.Kb=function(){g.uS.prototype.Kb.call(this);this.tooltip.xk(this.element)}; g.k.show=function(){this.Bb&&this.G.oa("OVERFLOW_PANEL_OPENED");g.uS.prototype.show.call(this);this.element.setAttribute("aria-modal","true");eNa(this,!0)}; g.k.hide=function(){g.uS.prototype.hide.call(this);this.element.removeAttribute("aria-modal");eNa(this,!1)}; g.k.onFullscreenToggled=function(a){!a&&this.ej()&&vS(this)}; g.k.isEmpty=function(){return 0===this.actionButtons.length}; g.k.focus=function(){for(var a=g.v(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Bb){b.focus();break}};g.x(fNa,g.V);fNa.prototype.onClick=function(a){g.IS(a,this.api)&&this.api.playVideoAt(this.index)};g.x(gNa,g.uS);g.k=gNa.prototype;g.k.show=function(){g.uS.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.tJ);this.B.T(this.api,"onPlaylistUpdate",this.tJ);this.tJ()}; g.k.hide=function(){g.uS.prototype.hide.call(this);g.hA(this.B);this.updatePlaylist(null)}; g.k.tJ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.W().B&&(this.Fa("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Ic(this.C),this.C=null))}; g.k.LH=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.XO(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.v(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length; this.j=[];for(d=0;dthis.api.kb().getPlayerSize().width&&!a);(this.api.W().N("shorts_mode_to_player_api")?this.api.Yb():this.u.Yb())?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.XO("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.XO("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}), this.Bb||(this.show(),FS(this.tooltip)),this.visible=!0,this.hc(!0)):this.Bb&&this.hide()}; EU.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Xa(this.element,this.visible&&a)}; EU.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ra,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ra,this);this.Ra()};g.x(hNa,g.V);g.k=hNa.prototype;g.k.o0=function(){this.C?lNa(this):kNa(this)}; g.k.n0=function(){this.C?(FU(this),this.J=!0):kNa(this)}; g.k.W4=function(){this.D=!0;this.ID(1);this.G.oa("promotooltipacceptbuttonclicked",this.acceptButton);FU(this);this.u&&this.G.rb(this.acceptButton)}; g.k.N5=function(){this.D=!0;this.ID(2);FU(this);this.u&&this.G.rb(this.dismissButton)}; g.k.q0=function(a){if(1===this.G.getPresentingPlayerType()||2===this.G.getPresentingPlayerType()&&this.V){var b=!0,c=g.Oe("ytp-ad-overlay-ad-info-dialog-container"),d=bA(a);if(this.B&&d&&g.kf(this.B,d))this.B=null;else{1===this.G.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)}); var e=mNa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.kf(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.kf(this.element,d))}this.j&&this.Bb&&!c&&(!d||b&&g.eR(a))&&(this.D=!0,FU(this))}}}; g.k.ID=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.Q(d,J$a))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.G.Pm(),(null==a?0:jEa(d,a.gL))&&qR(a,d,e))}}; g.k.Gb=function(){this.J||(this.j||(this.j=iNa(this)),lNa(this))}; var jNa={"ytp-settings-button":g.uDa()};g.x(GU,g.V);GU.prototype.onStateChange=function(a){this.xc(a.state)}; GU.prototype.xc=function(a){g.wQ(this,g.BO(a,2))}; GU.prototype.onClick=function(){this.G.Ib();this.G.playVideo()};g.x(g.HU,g.V);g.k=g.HU.prototype;g.k.Zq=ba(35);g.k.onClick=function(){var a=this,b=this.api.W(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){oNa(a,f)})}catch(f){f instanceof Error&&oNa(this,f)}else this.j.Ml(),vS(this.B,this.element,!1); this.api.rb(this.element)}; g.k.showShareButton=function(a){var b=!0;if(this.api.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var c,d,e=null==(c=a.Of)?void 0:null==(d=c.embedPreview)?void 0:d.thumbnailPreviewRenderer;e&&(b=!!e.shareButton);var f,h;(c=null==(f=a.kd)?void 0:null==(h=f.playerOverlays)?void 0:h.playerOverlayRenderer)&&(b=!!c.shareButton);var l,m,n,p;if(null==(p=g.Q(null==(l=a.kd)?void 0:null==(m=l.contents)?void 0:null==(n=m.twoColumnWatchNextResults)?void 0:n.desktopOverlay,XM))?0:p.suppressShareButton)b= !1}else b=a.showShareButton;return b}; g.k.Ra=function(){var a=this.api.W(),b=a.N("shorts_mode_to_player_api")?this.api.Yb():this.j.Yb();g.bq(this.element,"ytp-show-share-title",g.OK(a)&&!g.XK(a)&&!b);this.j.Bg()&&b?(a=(this.api.kb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$m(this.element,"right",a+"px")):b&&g.$m(this.element,"right","0px");this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{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.visible=nNa(this);g.bq(this.element,"ytp-share-button-visible",this.visible);g.wQ(this,this.visible);FS(this.tooltip);this.api.Xa(this.element,nNa(this)&&this.ea)}; g.k.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Xa(this.element,this.visible&&a)}; g.k.ra=function(){g.V.prototype.ra.call(this);g.$p(this.element,"ytp-share-button-visible")};g.x(g.IU,g.uS);g.k=g.IU.prototype;g.k.r0=function(a){a=bA(a);g.kf(this.D,a)||g.kf(this.closeButton,a)||vS(this)}; g.k.Kb=function(){g.uS.prototype.Kb.call(this);this.tooltip.xk(this.element);this.api.Xa(this.j,!1);for(var a=g.v(this.B),b=a.next();!b.done;b=a.next())b=b.value,this.api.Fk(b.element)&&this.api.Xa(b.element,!1)}; g.k.show=function(){var a=this.Bb;g.uS.prototype.show.call(this);this.Ra();a||this.api.Pa("onSharePanelOpened")}; g.k.y4=function(){this.Bb&&this.Ra()}; g.k.Ra=function(){var a=this;g.Yp(this.element,"ytp-share-panel-loading");g.$p(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&qR(this.api.Pm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.$p(a.element,"ytp-share-panel-loading"),rNa(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);g.XK(this.api.W())&&(b=g.jj(b,g.SR({},"emb_share")));this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.XO("Share link $URL",{URL:b}));JJa(this.j);this.api.Xa(this.j,!0)}; g.k.onFullscreenToggled=function(a){!a&&this.ej()&&vS(this)}; g.k.focus=function(){this.j.focus()}; g.k.ra=function(){g.uS.prototype.ra.call(this);qNa(this)};g.x(uNa,uU);g.k=uNa.prototype;g.k.ra=function(){zNa(this);uU.prototype.ra.call(this)}; g.k.QG=function(a){a.target!==this.dismissButton.element&&(vU(this,!1),this.G.Pa("innertubeCommand",this.onClickCommand))}; g.k.MC=function(){this.Ja=!0;vU(this,!0);this.mm()}; g.k.A6=function(a){this.Za=a;this.mm()}; g.k.t6=function(a){var b=this.G.getVideoData();b&&b.videoId===this.videoId&&this.Ua&&((this.qa=a)||this.Je(3))}; g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Ja=!1,this.V=!0,this.qa=this.Ua=this.J=this.ma=!1,zNa(this),yNa(this,!1),this.D=this.C=!1,KU(this),vNa(this);if(a||!b.videoId)this.u=this.j=!1;var c,d;if(this.G.N("web_player_enable_featured_product_banner_on_desktop")&&(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent))this.Dg(!1);else{var e,f,h;c=b.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")? g.Q(null==(e=b.kd)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,Xxa):b.shoppingOverlayRenderer;this.Za=this.enabled=!1;if(c){this.enabled=!0;if(!this.j){var l;e=null==(l=c.badgeInteractionLogging)?void 0:l.trackingParams;(this.j=!!e)&&this.G.Vf(this.badge.element,e||null)}if(!this.u){var m;if(this.u=!(null==(m=c.dismissButton)||!m.trackingParams)){var n;this.G.Vf(this.dismissButton.element,(null==(n=c.dismissButton)?void 0:n.trackingParams)|| null)}}c.isContentForward&&(l=c.productsData,yNa(this,!0),vNa(this),l=xNa(l),m=[],0this.api.getPlayerSize().width));var d=b.profilePicture;a=g.OK(a)?b.ag:b.author; d=void 0===d?"":d;a=void 0===a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",MU(this)),this.updateValue("channelLogoLabel",g.XO("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Yp(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.$p(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Xa(this.j,c&&this.ea);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&& this.api.Xa(this.channelName,c&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=b.dk);this.updateValue("expandedTitle",b.ag);this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",MU(this))};g.x(NU,g.uS);NU.prototype.show=function(){g.uS.prototype.show.call(this);this.j.start()}; NU.prototype.hide=function(){g.uS.prototype.hide.call(this);this.j.stop()}; NU.prototype.Ls=function(a,b){"dataloaded"===a&&((this.cg=b.cg,this.ze=b.ze,isNaN(this.cg)||isNaN(this.ze))?this.B&&(this.G.Ge("intro"),this.G.removeEventListener(g.uE("intro"),this.J),this.G.removeEventListener(g.vE("intro"),this.D),this.G.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.G.addEventListener(g.uE("intro"),this.J),this.G.addEventListener(g.vE("intro"),this.D),this.G.addEventListener("onShowControls",this.C),a=new g.sE(this.cg,this.ze,{priority:9,namespace:"intro"}), this.G.Je([a]),this.B=!0))};g.x(OU,g.V);OU.prototype.onClick=function(){this.G.It()}; OU.prototype.Ra=function(){var a=!0;g.OK(this.G.W())&&(a=a&&480<=this.G.kb().getPlayerSize().width);g.wQ(this,a);this.updateValue("icon",this.G.Ch()?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,Y:{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"}}]}: {I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.x(g.QU,g.V);g.QU.prototype.ra=function(){this.j=null;g.V.prototype.ra.call(this)};g.x(RU,g.V);RU.prototype.onClick=function(){this.G.Pa("innertubeCommand",this.j)}; RU.prototype.K=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()}; RU.prototype.J=function(){this.B.disabled=null==this.j;g.bq(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.zc()};g.x(SU,RU);SU.prototype.onClickCommand=function(a){g.Q(a,aN)&&this.zc()}; SU.prototype.updateVideoData=function(a,b){var c;if(b.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var d,e;a=g.Q(null==(c=b.kd)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,qM);c=g.Q(null==a?void 0:a.playerBarActionButton,g.WM)}else c=b.u1;var f;this.j=null==(f=c)?void 0:f.command;RU.prototype.J.call(this)}; SU.prototype.zc=function(){var a="",b=this.C.j,c,d="clips"===(null==(c=this.G.getLoopRange())?void 0:c.type);if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.BN()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(null!=Sz(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.uS(this.G,{I:"div",Ka:["ytp-popup","ytp-generic-popup"],Y:{role:"alert",tabindex:"0"},X:[b[0],{I:"a",Y:{href:"https://support.google.com/youtube/answer/6276924", target:this.G.W().ea},xa:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.u.oy(a.message,c)}); g.sS(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.k.Ra=function(){var a=GJa(this.G),b=this.G.W().V&&250>this.G.getPlayerSize().width;g.wQ(this,a&&!b);this.G.Xa(this.element,this.Bb)}; g.k.jm=function(a){if(a){var b={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"g",S:"ytp-fullscreen-button-corner-2",X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g", S:"ytp-fullscreen-button-corner-1",X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.KS(this.G,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.G.getRootNode().focus();document.u&&document.j().catch(function(c){g.ZD(c)})}else b={I:"svg", Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"g",S:"ytp-fullscreen-button-corner-0",X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3", X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.KS(this.G,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});FS(this.u.Ec())}; g.k.ra=function(){this.message||((0,this.j)(),this.j=null);g.V.prototype.ra.call(this)};g.x(WU,g.V);WU.prototype.onClick=function(){this.G.rb(this.element);this.G.seekBy(this.j,!0);null!=this.C.Ou&&rU(this.C.Ou,0this.j&&a.push("backwards");this.element.classList.add.apply(this.element.classList,g.oa(a));g.Rp(this.u)}};g.x(XU,RU);XU.prototype.onClickCommand=function(a){g.Q(a,Nab)&&this.zc()}; XU.prototype.updateVideoData=function(){var a,b;this.j=null==(a=GNa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;RU.prototype.J.call(this)}; XU.prototype.zc=function(){var a="",b=this.C.J,c,d=null==(c=GNa(this))?void 0:c.headerTitle;c=d?g.BE(d):"";var e;d="clips"===(null==(e=this.G.getLoopRange())?void 0:e.type);1a&&this.delay.start()}; var Jcb=new oq(0,0,.4,0,.2,1,1,1),NNa=/[0-9.-]+|[^0-9.-]+/g;g.x(g.aV,g.V);g.k=g.aV.prototype;g.k.CR=function(a){this.visible=300<=a.width||this.Ba;g.wQ(this,this.visible);this.G.Xa(this.element,this.visible&&this.ea)}; g.k.l6=function(){this.G.W().fb?this.G.isMuted()?this.G.unMute():this.G.mute():vS(this.message,this.element,!0);this.G.rb(this.element)}; g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.G.W();a=0===d?1:50=dOa(this)?(this.api.seekTo(a,!1),this.api.N("web_fix_fine_scrubbing_drag")?g.$m(this.Aa,"transform","translateX("+(this.u-this.j/2)+"px)"):g.$m(this.B,"transform","translateX("+this.u+"px)"),YNa(this,a)):this.u=this.D))}; g.k.t0=function(){var a=300>(0,g.gB)()-this.Oa;if(5>Math.abs(this.V)&&!a){this.Oa=(0,g.gB)();a=this.qa+this.V;var b=this.j/2-a;this.wJ(a);this.vJ(a+b);$Na(this);this.api.rb(this.B)}$Na(this)}; g.k.oz=function(){dV(this,this.api.getCurrentTime())}; g.k.play=function(a){this.api.seekTo(eOa(this,this.u));this.api.playVideo();a&&this.api.rb(this.playButton)}; g.k.onExit=function(a){this.api.seekTo(this.Ma);this.api.playVideo();a&&this.api.rb(this.dismissButton)}; g.k.Gb=function(a,b){this.Ja=a;this.j=b;dV(this,this.api.getCurrentTime())}; g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ma=this.api.getCurrentTime(),YNa(this,this.Ma),g.bq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ba=this.T(this.element,"wheel",this.u0),this.Xa(this.isEnabled))}; g.k.disable=function(){this.isEnabled=!1;this.hide();g.bq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ba&&this.Ic(this.Ba);this.Xa(this.isEnabled)}; g.k.reset=function(){this.disable();this.J=[];this.Da=!1}; g.k.Xa=function(a){this.api.Xa(this.element,a);this.api.Xa(this.B,a);this.api.Xa(this.dismissButton,a);this.api.Xa(this.playButton,a)}; g.k.ra=function(){for(;this.C.length;){var a=void 0;null==(a=this.C.pop())||a.dispose()}g.V.prototype.ra.call(this)}; g.x(aOa,g.V);g.x(bOa,g.V);g.x(hOa,g.V);g.x(eV,g.V);eV.prototype.wb=function(a){return"PLAY_PROGRESS"===a?this.J:"LOAD_PROGRESS"===a?this.D:"LIVE_BUFFER"===a?this.C:this.u};jOa.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.B=c;this.j=b-c-(void 0===d?0:d);this.position=g.oe(a,c,c+this.j);this.u=this.position-c;this.fraction=this.u/this.j};g.x(kOa,g.V);g.x(g.hV,g.xQ);g.k=g.hV.prototype; g.k.CY=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Ge("timedMarkerCueRange");nOa(this);for(var c=g.v(b.xe),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Cc[d])?void 0:e.markers;if(f){a=g.v(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new kOa;var h=void 0;e.title=(null==(h=f.title)?void 0:h.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=h=void 0;e.onActiveCommand=null!=(l=null==(h=f.onActive)?void 0: h.innertubeCommand)?l:void 0;sOa(this,e)}tOa(this,this.J);a=this.J;e=this.ye;f=[];h=null;for(l=0;lm&&(h.end=m);m=aNa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.Je(f);this.yf=this.Cc[d];a=!0}}b.wQ=this.J;g.bq(this.element,"ytp-timed-markers-enabled",a);return a}; g.k.Gb=function(){g.iV(this);kV(this);tOa(this,this.J);if(this.u){var a=g.hn(this.element).x||0;this.u.Gb(a,this.K)}}; g.k.onClickCommand=function(a){if(a=g.Q(a,aN)){var b=a.key;a.isVisible&&b&&xOa(this,b)}}; g.k.z7=function(a){this.api.Pa("innertubeCommand",this.ye[a.id])}; g.k.zc=function(){kV(this);var a=this.api.getCurrentTime();(athis.clipEnd)&&this.EH()}; g.k.w0=function(a){if(!g.mP(a)){var b=!1;switch(g.jP(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.nP(a)}}; g.k.Ls=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.k.D3=function(){this.Ls("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.Oe();c&&(KN(a)||EOa(this)?this.ze=!1:this.ze=a.allowLiveDvr,g.bq(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!KN(a))));NOa(this,this.api.Dh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;oV(this);for(lV(this,this.ma,this.ib);0m&&(c=m,a.position=hR(this.B,m)*jV(this).j),b=this.B.u;EOa(this)&& (b=this.B.u);m=f||g.dR(this.ze?c-this.B.j:c-b);b=a.position+this.Yf;c-=this.api.Kd();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.Gj()){if(1=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.N("web_key_moments_markers")?this.yf?(n=YMa(this.J,1E3*c),n=null!=n?this.J[n].title:""):(n=yU(this.j,1E3*c),n=this.j[n].title):(n=yU(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=yU(this.j,1E3*c);this.Ua=GOa(this,c,d)?d:GOa(this,c,d+1)?d+1:-1;g.bq(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Ua&&1=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.dR(h.decorationTimeMillis/1E3),d=!0)}this.yd!==d&&(this.yd=d,this.api.Xa(this.od,this.yd));g.bq(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.K-a.position&&(d=2);this.api.W().V&&(l-=10); this.D.length&&this.D[0].Oe&&(l-=14*(this.C?2:1),this.Ba||(this.Ba=!0,this.api.Xa(this.qa,this.Ba)));var q;if(gV(this)&&((null==(q=this.u)?0:q.isEnabled)||0=.5*a?(this.u.enable(),dV(this.u,this.api.getCurrentTime()),MOa(this,a)):uV(this)}if(g.BO(this.api.Ib(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.u)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.rb(this.od)}g.$p(this.element,"ytp-drag");this.Ae&&!g.BO(this.api.Ib(),2)&&this.api.playVideo()}}}; g.k.F6=function(a,b){a=jV(this);a=nV(this,a);TU(this.api)&&g.SV(this.tooltip);this.api.seekTo(a,!1);var c;gV(this)&&(null==(c=this.u)?0:c.Da)&&(dV(this.u,a),this.u.isEnabled||(this.Oa=g.oe(this.Zf-b-10,0,qV(this)),MOa(this,this.Oa)))}; g.k.WV=function(){this.Eb||(this.updateValue("clipstarticon",cDa()),this.updateValue("clipendicon",cDa()),g.Yp(this.element,"ytp-clip-hover"))}; g.k.VV=function(){this.Eb||(this.updateValue("clipstarticon",eDa()),this.updateValue("clipendicon",dDa()),g.$p(this.element,"ytp-clip-hover"))}; g.k.EH=function(){this.clipStart=0;this.clipEnd=Infinity;oV(this);lV(this,this.ma,this.ib)}; g.k.C9=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ja[c]){var d=g.Ye("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ja[c]=b;this.qc[c]=d;g.Wp(d,b.style);HOa(this,c);this.api.W().N("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else LOa(this,b)}; g.k.s8=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())LOa(this,b.value)}; g.k.hs=function(a){this.u&&(this.u.onExit(null!=a),uV(this))}; g.k.nL=function(a){this.u&&(this.u.play(null!=a),uV(this))}; g.k.ra=function(){NOa(this,!1);g.xQ.prototype.ra.call(this)};g.x(vV,g.V);vV.prototype.isActive=function(){return!!this.G.getOption("remote","casting")}; vV.prototype.Ra=function(){var a=!1;this.G.getOptions().includes("remote")&&(a=1=c;g.wQ(this,a);this.G.Xa(this.element,a)}; wV.prototype.B=function(){if(this.Jb.Bb)this.Jb.Kb();else{var a=g.CT(this.G.yb());a&&!a.loaded&&(a.wh("tracklist",{includeAsr:!0}).length||a.load());this.G.rb(this.element);this.Jb.pd(this.element)}}; wV.prototype.updateBadge=function(){var a=this.G.isHdr(),b=this.G.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.rS(this.G),e=c&&!!g.qS(this.G.yb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.G.getPlaybackQuality();g.bq(this.element,"ytp-hdr-quality-badge",a);g.bq(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.bq(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.bq(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.bq(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.bq(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.bq(this.element,"ytp-3d-badge",!a&&e&&d)};g.x(xV,GS);xV.prototype.isLoaded=function(){var a=g.IT(this.G.yb());return void 0!==a&&a.loaded}; xV.prototype.Ra=function(){void 0!==g.IT(this.G.yb())&&3!==this.G.getPresentingPlayerType()?this.j||(this.Jb.bd(this),this.j=!0):this.j&&(this.Jb.nh(this),this.j=!1);HS(this,this.isLoaded())}; xV.prototype.onSelect=function(a){this.isLoaded();a?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.oa("annotationvisibility",a)}; xV.prototype.ra=function(){this.j&&this.Jb.nh(this);GS.prototype.ra.call(this)};g.x(g.yV,g.xS);g.k=g.yV.prototype;g.k.open=function(){g.jU(this.Jb,this.u)}; g.k.xj=function(a){QOa(this);this.options[a].element.setAttribute("aria-checked","true");this.Yd(this.jk(a));this.B=a}; g.k.tK=function(a,b,c){var d=this;b=new g.xS({I:"div",Ka:["ytp-menuitem"],Y:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},X:[{I:"div",Ka:["ytp-menuitem-label"],xa:"{{label}}"}]},b,this.jk(a,!0));b.Sa("click",function(){d.ih(a)}); return b}; g.k.enable=function(a){this.J?a||(this.J=!1,this.bx(!1)):a&&(this.J=!0,this.bx(!0))}; g.k.bx=function(a){a?this.Jb.bd(this):this.Jb.nh(this)}; g.k.ih=function(a){this.oa("select",a)}; g.k.jk=function(a){return a.toString()}; g.k.x0=function(a){g.mP(a)||39!==g.jP(a)||(this.open(),g.nP(a))}; g.k.ra=function(){this.J&&this.Jb.nh(this);g.xS.prototype.ra.call(this);for(var a=g.v(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.x(AV,g.yV);AV.prototype.Ra=function(){var a=this.G.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.K:this.K;this.dw(b);g.nP(a)}; g.k.z0=function(a){a=(a-g.hn(this.B).x)/this.ma*this.range+this.u;this.dw(a)}; g.k.dw=function(a,b){b=void 0===b?"":b;a=g.oe(a,this.u,this.C);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.qa.style.left=(a-this.u)/this.range*(this.ma-this.Da)+"px";this.j=a}; g.k.focus=function(){this.Ba.focus()};g.x(DV,CV);DV.prototype.Aa=function(){this.G.setPlaybackRate(this.j,!0)}; DV.prototype.dw=function(a){CV.prototype.dw.call(this,a,XOa(this,a).toString());this.D&&(WOa(this),this.Ja())}; DV.prototype.updateValues=function(){var a=this.G.getPlaybackRate();XOa(this,this.j)!==a&&(this.dw(a),WOa(this))};g.x(YOa,g.xQ);YOa.prototype.focus=function(){this.j.focus()};g.x(ZOa,fU);g.x($Oa,g.yV);g.k=$Oa.prototype;g.k.jk=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.k.Ra=function(){var a=this.G.getPresentingPlayerType();this.enable(2!==a&&3!==a);dPa(this)}; g.k.bx=function(a){g.yV.prototype.bx.call(this,a);a?(this.K=this.T(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),dPa(this),bPa(this,this.G.getPlaybackRate())):(this.Ic(this.K),this.K=null)}; g.k.onPlaybackRateChange=function(a){var b=this.G.getPlaybackRate();this.D.includes(b)||cPa(this,b);bPa(this,a)}; g.k.ih=function(a){g.yV.prototype.ih.call(this,a);a===this.j?this.G.setPlaybackRate(this.C,!0):this.G.setPlaybackRate(Number(a),!0);this.Jb.lj()};g.x(fPa,g.yV);g.k=fPa.prototype;g.k.xj=function(a){g.yV.prototype.xj.call(this,a)}; g.k.getKey=function(a){return a.option.toString()}; g.k.getOption=function(a){return this.settings[a]}; g.k.jk=function(a){return this.getOption(a).text||""}; g.k.ih=function(a){g.yV.prototype.ih.call(this,a);this.oa("settingChange",this.K,this.settings[a].option)};g.x(EV,g.gU);EV.prototype.gh=function(a){for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.jt[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.xj(e),c.C.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; EV.prototype.Pj=function(a,b){this.oa("settingChange",a,b)};g.x(FV,g.yV);FV.prototype.getKey=function(a){return a.languageCode}; FV.prototype.jk=function(a){return this.languages[a].languageName||""}; FV.prototype.ih=function(a){this.oa("select",a);this.G.rb(this.element);g.mU(this.Jb)};g.x(iPa,g.yV);g.k=iPa.prototype;g.k.getKey=function(a){return g.cd(a)?"__off__":a.displayName}; g.k.jk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":"__correction__"===a?"Suggest caption corrections":("__off__"===a?{}:this.tracks[a]).displayName}; g.k.ih=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var b=g.FIa(this.G.W(),this.G.getVideoData());g.sO(b)}else if("__correction__"===a){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var c=jPa(this);GV(this,c);g.yV.prototype.ih.call(this,this.getKey(c));var d,e;c=null==(b=this.G.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)? void 0:e.openTranscriptCommand;this.G.Pa("innertubeCommand",c);this.Jb.lj();this.C&&this.G.rb(this.C)}else{if("__correction__"===a){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();b=jPa(this);GV(this,b);g.yV.prototype.ih.call(this,this.getKey(b));var f,h;b=null==(c=this.G.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.G.Pa("innertubeCommand",b)}else this.G.rb(this.element), GV(this,"__off__"===a?{}:this.tracks[a]),g.yV.prototype.ih.call(this,a);this.Jb.lj()}}; g.k.Ra=function(){var a=this.G.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.G.getVideoData(),c=b&&b.XE,d,e=!(null==(d=this.G.getVideoData())||!g.IN(d));d={};if(a||c){var f;if(a){var h=this.G.getOption("captions","track");d=this.G.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.Xb(d,this.getKey,this);e=g.qm(d,this.getKey);var m=jPa(this),n,p;b.N("suggest_caption_correction_menu_item")&&m&&(null==(f=b.getPlayerResponse())? 0:null==(n=f.captions)?0:null==(p=n.playerCaptionsTracklistRenderer)?0:p.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.cd(h)){if((f=h.translationLanguage)&&f.languageName){var q=f.languageName;f=l.findIndex(function(t){return t.languageName===q}); Daa(l,f)}gPa(this.j,l);e.push("__translate__")}f=this.getKey(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));g.zV(this,e);this.xj(f);h&&h.translationLanguage?this.j.xj(this.j.getKey(h.translationLanguage)):QOa(this.j);a&&this.D.gh(this.G.getSubtitlesUserSettings());this.V.Yd(d&&d.length?" ("+d.length+")":"");this.oa("size-change");this.G.Xa(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.B0=function(a){var b=this.G.getOption("captions","track");b=g.hd(b);b.translationLanguage=this.j.languages[a];GV(this,b)}; g.k.Pj=function(a,b){if("reset"===a)this.G.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.G.updateSubtitlesUserSettings(c)}hPa(this,!0);this.K.start();this.D.gh(this.G.getSubtitlesUserSettings())}; g.k.i7=function(a){a||g.Tp(this.K)}; g.k.ra=function(){g.Tp(this.K);g.yV.prototype.ra.call(this)}; g.k.open=function(){g.yV.prototype.open.call(this);this.options.__correction__&&!this.C&&(this.C=this.options.__correction__.element,this.G.tb(this.C,this,167341),this.G.Xa(this.C,!0))};g.x(kPa,g.lU);g.k=kPa.prototype; g.k.initialize=function(){if(!this.isInitialized){var a=this.G.W();this.isInitialized=!0;this.yO=new SOa(this.G,this);g.J(this,this.yO);var b=new iPa(this.G,this);g.J(this,b);a.B||(b=new xV(this.G,this),g.J(this,b));a.yf&&(b=new $Oa(this.G,this),g.J(this,b));this.G.N("embeds_web_enable_new_context_menu_triggering")&&(g.OK(a)||a.K)&&(a.u||a.Hb)&&(b=new ROa(this.G,this),g.J(this,b));a.ze&&!a.N("web_player_move_autonav_toggle")&&(a=new BV(this.G,this),g.J(this,a));a=new AV(this.G,this);g.J(this,a);this.G.oa("settingsMenuInitialized"); POa(this.settingsButton,this.Nf.Jo())}}; g.k.bd=function(a){this.initialize();this.Nf.bd(a);POa(this.settingsButton,this.Nf.Jo())}; g.k.nh=function(a){this.Bb&&1>=this.Nf.Jo()&&this.hide();this.Nf.nh(a);POa(this.settingsButton,this.Nf.Jo())}; g.k.pd=function(a){this.initialize();0=b;g.wQ(this,c);this.G.Xa(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.x(g.KV,g.V);g.k=g.KV.prototype; g.k.zc=function(){var a=this.api.kb().getPlayerSize().width,b=this.K;this.api.W().V&&(b=400);b=a>=b&&(!MV(this)||!g.BO(this.api.Ib(),64));g.wQ(this,b);g.bq(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);LV(this)&&(c-=this.Eb.startTimeMs/1E3);c=g.dR(c);this.B!==c&&(this.updateValue("currenttime",c),this.B=c);b=LV(this)?g.dR((this.Eb.endTimeMs-this.Eb.startTimeMs)/ 1E3):g.dR(this.api.getDuration(b,!1));this.C!==b&&(this.updateValue("duration",b),this.C=b)}a=a.isAtLiveHead;!MV(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.zc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Yd(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.ES(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Eb!==a;this.Eb=a;b&&JV(this)}; g.k.onLoopRangeChange=function(a){var b=this.Eb!==a;this.Eb=a;b&&(this.zc(),JV(this))}; g.k.M7=function(){this.api.setLoopRange(null)}; g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.W().N("enable_topsoil_wta_for_halftime")||this.api.W().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.zc();JV(this)}; g.k.updateVideoData=function(a){this.lC=a.isLivePlayback&&!a.ub;this.u=KN(a);this.isPremiere=a.isPremiere;g.bq(this.element,"ytp-live",MV(this))}; g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; g.k.ra=function(){this.j&&this.j();g.V.prototype.ra.call(this)};g.x(oPa,g.V);g.k=oPa.prototype;g.k.Lq=function(){var a=this.j.Bg();this.C!==a&&(this.C=a,nPa(this,this.api.getVolume(),this.api.isMuted()))}; g.k.FR=function(a){g.wQ(this,350<=a.width)}; g.k.E0=function(a){if(!g.mP(a)){var b=g.jP(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.oe(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.nP(a))}}; g.k.C0=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.oe(b/10,-10,10));g.nP(a)}; g.k.n7=function(){NV(this,this.u,!0,this.B,this.j.Vl());this.ma=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.D0=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.hn(this.V).x;this.api.setVolume(100*g.oe((a-c/2)/(b-c),0,1))}; g.k.m7=function(){NV(this,this.u,!1,this.B,this.j.Vl());0===this.volume&&(this.api.mute(),this.api.setVolume(this.ma))}; g.k.onVolumeChange=function(a){nPa(this,a.volume,a.muted)}; g.k.RS=function(){NV(this,this.u,this.isDragging,this.B,this.j.Vl())}; g.k.ra=function(){g.V.prototype.ra.call(this);g.$p(this.K,"ytp-volume-slider-active")};g.x(g.OV,g.V); g.OV.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).wd,b=this.api.W();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.ma);g.wQ(this,this.visible);this.api.Xa(this.element,this.visible&&this.ea);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a));b.B&&(this.j&&(this.Ic(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Yp(this.element,"no-link"));this.Gb()}; g.OV.prototype.onClick=function(a){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.rb(this.element);var b=this.api.W(),c=this.api.getVideoUrl(!g.eR(a),!1,!0,!0);if(g.OK(b)||g.XK(b)){var d={};b.Ba&&g.OK(b)&&g.TR(d,b.loaderUrl);g.OK(b)&&g.aS(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.jj(c,g.SR(d,"emb_logo"))}g.JS(c,this.api,a);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.rb(this.element)}; g.OV.prototype.Gb=function(){var a={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},X:[{I:"path",yc:!0,S:"ytp-svg-fill",Y:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, b=this.api.W(),c=b.N("shorts_mode_to_player_api")?this.api.Yb():this.u.Yb();g.XK(b)?(b=this.Fa("ytp-youtube-music-button"),a=(c=300>this.api.getPlayerSize().width)?{I:"svg",Y:{fill:"none",height:"24",width:"24"},X:[{I:"circle",Y:{cx:"12",cy:"12",fill:"red",r:"12"}},{I:"ellipse",Y:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{I:"path",Y:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{I:"svg",Y:{viewBox:"0 0 80 24"},X:[{I:"ellipse",Y:{cx:"12.18", cy:"12",fill:"red",rx:"12.18",ry:"12"}},{I:"ellipse",Y:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{I:"path",Y:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z", fill:"#fff"}}]},g.bq(b,"ytp-youtube-music-logo-icon-only",c)):c&&(a={I:"svg",Y:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},X:[{I:"path",Y:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]});a.Y=Object.assign({},a.Y,{"aria-hidden":"true"});this.updateValue("logoSvg",a)}; g.OV.prototype.hc=function(a){g.V.prototype.hc.call(this,a);this.api.Xa(this.element,this.visible&&a)};g.x(qPa,g.lI);g.k=qPa.prototype;g.k.Te=function(){g.BO(this.G.Ib(),2)||(this.Lc.zc(),this.sj.zc())}; g.k.vn=function(){this.xJ();if(this.gf.u){this.Te();var a;null==(a=this.ub)||a.show()}else{g.SV(this.Lc.tooltip);var b;null==(b=this.ub)||b.hide()}}; g.k.Hv=function(){this.Te();this.sf.start()}; g.k.xJ=function(){var a=!this.G.W().u&&300>g.OOa(this.Lc)&&this.G.Ib().hd()&&!!window.requestAnimationFrame,b=!a;this.gf.u||(a=b=!1);b?this.ea||(this.ea=this.T(this.G,"progresssync",this.Te)):this.ea&&(this.Ic(this.ea),this.ea=null);a?this.sf.isActive()||this.sf.start():this.sf.stop()}; g.k.Gb=function(){var a=this.u.Bg(),b=this.G.kb().getPlayerSize(),c=sPa(this),d=Math.max(b.width-2*c,100);if(this.ib!==b.width||this.fb!==a){this.ib=b.width;this.fb=a;var e=tPa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.tV(this.Lc,c,e,a);this.u.Ec().yJ=e}c=this.B;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-uPa(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.maxHeight=e;c.fA();this.xJ();this.G.W().N("html5_player_dynamic_bottom_gradient")&&g.PU(this.qb,b.height)}; g.k.onVideoDataChange=function(){var a=this.G.getVideoData();this.Ja.style.background=a.wd?a.Jl:"";g.wQ(this.Aa,a.iO);this.qa&&FNa(this.qa,a.showSeekingControls);this.ma&&FNa(this.ma,a.showSeekingControls)}; g.k.wb=function(){return this.C.element};g.x(vPa,uU);g.k=vPa.prototype;g.k.QG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.Pa("innertubeCommand",this.onClickCommand),this.MC())}; g.k.MC=function(){this.enabled=!1;this.K.hide()}; g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&wPa(this);if(this.G.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){a=[];var c,d,e,f;if(b=null==(f=g.Q(null==(c=b.kd)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,Txa))?void 0:f.suggestedActions)for(c=g.v(b),d=c.next();!d.done;d=c.next())(d=g.Q(d.value,Uxa))&&g.Q(d.trigger,VM)&&a.push(d)}else a=b.suggestedActions;c=a;if(0!==c.length){a=[];c=g.v(c);for(d=c.next();!d.done;d= c.next())if(d=d.value,e=g.Q(d.trigger,VM))f=(f=d.title)?g.BE(f):"View Chapters",b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(a.push(new g.sE(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.G.Je(a)}}; g.k.Sz=function(){return this.enabled}; g.k.Dg=function(){this.enabled?this.Ba.start():sU(this);this.mm()}; g.k.ra=function(){wPa(this);uU.prototype.ra.call(this)};var i4={},PV=(i4.CHANNEL_NAME="ytp-title-channel-name",i4.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",i4.LINK="ytp-title-link",i4.SESSIONLINK="yt-uix-sessionlink",i4.SUBTEXT="ytp-title-subtext",i4.TEXT="ytp-title-text",i4.TITLE="ytp-title",i4);g.x(QV,g.V); QV.prototype.onClick=function(a){this.api.rb(this.element);var b=this.api.W(),c=this.api.getVideoUrl(!g.eR(a),!1,!0);if(g.OK(b)){var d={};b.Ba&&g.TR(d,b.loaderUrl);g.aS(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.jj(c,g.SR(d,"emb_title"))}g.JS(c,this.api,a)}; QV.prototype.Ra=function(){var a=this.api.getVideoData(),b=this.api.W();this.updateValue("title",a.title);var c={I:"a",S:PV.CHANNEL_NAME,Y:{href:"{{channelLink}}",target:"_blank"},xa:"{{channelName}}"};this.api.W().B&&(c={I:"span",S:PV.CHANNEL_NAME,xa:"{{channelName}}",Y:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);xPa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Mc&&c.profilePicture?(this.updateValue("channelLink", c.Mc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):xPa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Uk;g.bq(this.link,PV.FULLERSCREEN_LINK,c);b.Aa||!a.videoId||c||a.wd&&b.ma||b.B?this.j&&(this.updateValue("url",null),this.Ic(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.B&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.OK(b)?a.ag: a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.x(g.RV,g.V);g.k=g.RV.prototype;g.k.YO=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:CPa(this);this.J.show();break;default:this.J.show()}else this.J.hide();this.V=a}; g.k.fW=function(a,b){a<=this.C&&this.C<=b&&(a=this.C,this.C=NaN,zPa(this,a))}; g.k.u4=function(){wxa(this.u,this.C,this.K*this.scale)}; g.k.Sn=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.qa);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.qa);a.addEventListener("focus",this.D);DPa(this);break;case 3:DPa(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.fW,this),this.u=null),this.api.removeEventListener("videoready",this.Da),this.Ba.stop()}this.type=null;this.V&&this.J.hide()}; g.k.xk=function(){if(this.j)for(var a=0;a(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"}; g.k.vn=function(a){a&&(this.tooltip.xk(this.Ih.element),this.hh&&this.tooltip.xk(this.hh.wb()));this.kG&&(g.bq(this.contextMenu.element,"ytp-autohide",a),g.bq(this.contextMenu.element,"ytp-autohide-active",!0));g.UT.prototype.vn.call(this,a)}; g.k.sN=function(){g.UT.prototype.sN.call(this);this.kG&&(g.bq(this.contextMenu.element,"ytp-autohide-active",!1),this.kG&&(this.contextMenu.hide(),this.Fh&&this.Fh.hide()))}; g.k.Bk=function(a,b){var c=this.api.kb().getPlayerSize();c=new g.Xm(0,0,c.width,c.height);if(a||this.gf.u&&!this.Ht()){if(this.api.W().zm||b)a=this.Bg()?this.HK:this.GK,c.top+=a,c.height-=a;this.hh&&(c.height-=uPa(this.hh))}return c}; g.k.Lq=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.W().externalFullscreen||(b.parentElement.insertBefore(this.zF.element,b),b.parentElement.insertBefore(this.yF.element,b.nextSibling))):g.YD(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.zF.detach(),this.yF.detach());this.Gb();this.yp()}; g.k.Bg=function(){var a=this.api.W();return this.api.isFullscreen()&&!a.V||!1}; g.k.showControls=function(a){this.gF=!a;this.ql()}; g.k.Gb=function(){var a=this.Bg();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.bq(this.contextMenu.element,"ytp-big-mode",a);this.ql();this.api.N("web_player_hide_overflow_button_if_empty_menu")||KPa(this);this.yp();var b=this.api.W().N("shorts_mode_to_player_api")?this.api.Yb():this.Yb();b&&a?(a=(this.api.kb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$m(this.Ih.element,"padding-left",a+"px"),g.$m(this.Ih.element,"padding-right",a+"px")):b&&(g.$m(this.Ih.element,"padding-left", ""),g.$m(this.Ih.element,"padding-right",""));g.UT.prototype.Gb.call(this)}; g.k.GL=function(){if(JPa(this)&&!g.pS(this.api))return!1;var a=this.api.getVideoData();return!g.OK(this.api.W())||2===this.api.getPresentingPlayerType()||!this.Of||((a=this.Of||a.Of)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.Q(a.videoDetails,sya)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.UT.prototype.GL.call(this):!1}; g.k.yp=function(){g.UT.prototype.yp.call(this);this.api.Xa(this.title.element,!!this.Yo);this.xz&&this.xz.hc(!!this.Yo);this.channelAvatar.hc(!!this.Yo);this.overflowButton&&this.overflowButton.hc(this.ah()&&!!this.Yo);this.shareButton&&this.shareButton.hc(!this.ah()&&!!this.Yo);this.Mn&&this.Mn.hc(!this.ah()&&!!this.Yo);this.Ei&&this.Ei.hc(!this.ah()&&!!this.Yo);if(!this.Yo){this.tooltip.xk(this.Ih.element);for(var a=0;a=b)return d.return();(c=a.j.get(0))&&RPa(a,c);g.wa(d)})}; var OPa={kRa:0,sTa:1,hSa:2,tTa:3,dna:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};g.$V.prototype.info=function(){}; var ZPa=new Map;aW.prototype.Wj=function(){if(!this.We.length)return[];var a=this.We;this.We=[];this.B=g.ub(a).info;return a}; aW.prototype.Pv=function(){return this.We};g.x(cW,g.D);g.k=cW.prototype;g.k.Xp=function(){return Array.from(this.Yc.keys())}; g.k.gw=function(a){a=this.Yc.get(a);var b=a.We;a.Nx+=b.totalLength;a.We=new dG;return b}; g.k.Yg=function(a){return this.Yc.get(a).Yg}; g.k.Sh=function(a){return this.Yc.get(a).Sh}; g.k.pz=function(a,b,c,d){this.Yc.get(a)||this.Yc.set(a,{We:new dG,Hq:[],Nx:0,bytesReceived:0,JU:0,uO:!1,Yg:!1,Sh:!1,Gk:b,vX:[],jb:[],HG:[]});b=this.Yc.get(a);this.Ta?(c=iQa(this,a,c,d),hQa(this,a,b,c)):(c.cn?b.JU=c.Uq:b.HG.push(c),b.vX.push(c))}; g.k.Rm=function(a){var b;return(null==(b=this.Yc.get(a))?void 0:b.jb)||[]}; g.k.kz=function(){for(var a=g.v(this.Yc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.uO&&(b.Te&&b.Te(),b.uO=!1)}; g.k.Mq=function(a){a=this.Yc.get(a);dW&&a.Hq.push({data:new dG([]),fL:!0});a&&!a.Sh&&(a.Sh=!0)}; g.k.Wj=function(a){var b,c=null==(b=this.Yc.get(a))?void 0:b.qe;if(!c)return[];this.Vm(a,c);return c.Wj()}; g.k.Sk=function(a){var b,c,d;return!!(null==(c=null==(b=this.Yc.get(a))?void 0:b.qe)?0:null==(d=c.Pv())?0:d.length)||fQa(this,a)}; g.k.Vm=function(a,b){for(;fQa(this,a);)if(dW){var c=this.Yc.get(a),d=c.Hq.shift();c.Nx+=(null==d?void 0:d.data.totalLength)||0;c=d;bW(b,c.data,c.fL)}else c=this.gw(a),d=a,d=this.Yc.get(d).Yg&&!eQa(this,d),bW(b,c,d&&gQa(this,a))}; g.k.ra=function(){g.D.prototype.ra.call(this);for(var a=g.v(this.Yc.keys()),b=a.next();!b.done;b=a.next())bQa(this,b.value);this.Yc.clear()}; var dW=!1;var gW=[],R_a=!1;g.KY=Hd(function(){var a="";try{var b=g.Ye("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.x(hW,g.D);hW.prototype.B=function(){null!=this.j&&this.app.getVideoData()!==this.j&&KM(this.j)&&u0a(this.app,this.j,void 0,void 0,this.u)}; hW.prototype.ra=function(){this.j=null;g.D.prototype.ra.call(this)};g.x(g.iW,oP);g.k=g.iW.prototype;g.k.isView=function(){return!0}; g.k.KO=function(){var a=this.mediaElement.getCurrentTime();if(ae?this.Gg("next_player_future"):(this.D=d,this.currentVideoDuration=d-c,this.B=pua(a,c,d,!0),this.C=pua(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.ya("gaplessPrep",{cpn:a}),wQa(this.j,this.B),this.j.setMediaElement(sQa(b, c,d,!this.j.getVideoData().isAd())),kW(this,2),zQa(this))))}else this.Gg("no-elem")}; g.k.ex=function(a){var b=a===yQa(this).GX,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;vI(a.yg(),d-.01)&&(kW(this,4),c.isActive=!1,c.iE=c.iE||c.isActive,this.u.ya("sbh",{}),b.isActive=!0,b.iE=b.iE||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&(kW(this,5),0!==this.V&&(this.j.getVideoData().JR=!0,this.Lf.setLoopRange({startTimeMs:0,endTimeMs:1E3*this.currentVideoDuration})))}}; g.k.kW=function(){4<=this.status.status&&6>this.status.status&&this.Gg("player-reload-after-handoff")}; g.k.Gg=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Rd(new xL("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.lm,msg:a})));a=this.j;a.videoData.Ma=!1;c&&DY(a);a.Ga&&xWa(a.Ga)}this.vp.reject(void 0);this.dispose()}}; g.k.ra=function(){xQa(this);this.j.unsubscribe("newelementrequired",this.kW,this);if(this.B){var a=this.B.u;this.B.j.Md.unsubscribe("updateend",this.ex,this);a.Md.unsubscribe("updateend",this.ex,this)}g.D.prototype.ra.call(this)}; g.k.Dd=function(a){g.JO(a,128)&&this.Gg("player-error-event")};g.x(mW,g.D);mW.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");nW(this)}; mW.prototype.uv=function(){return!this.j}; mW.prototype.ra=function(){nW(this);g.D.prototype.ra.call(this)};g.x(JQa,g.yE);g.k=JQa.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:FQa()?3:b?2:c?1:d?5:e?7:f?8:0}; g.k.jm=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Dg())}; g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Dg())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Dg())}; g.k.Oz=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Dg())}; g.k.Ch=function(){return this.j}; g.k.isFullscreen=function(){return 0!==this.fullscreen}; g.k.wy=function(){return this.fullscreen}; g.k.Rf=function(){return this.u}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return FQa()}; g.k.Py=function(){return this.pictureInPicture}; g.k.Ny=function(){return!1}; g.k.Dg=function(){this.oa("visibilitychange");var a=this.getVisibilityState(this.Ch(),this.isFullscreen(),this.Rf(),this.isInline(),this.Py(),this.Ny());a!==this.C&&this.oa("visibilitystatechange");this.C=a}; g.k.ra=function(){IQa(this.B);g.yE.prototype.ra.call(this)};g.x(sW,g.D);g.k=sW.prototype;g.k.Pl=function(){return this.Fc||0}; g.k.HF=function(){return this.C||0}; g.k.getCpnByClipId=function(a){if(this.B.has(a))return this.B.get(a);for(var b=g.v(this.segments),c=b.next();!c.done;c=b.next()){c=g.v(c.value.j.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value.getCpnByClipId(a))return d}}; g.k.Gf=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear();this.u.clear()}; g.k.ra=function(){this.Gf()}; g.x(LQa,g.D);g.k=LQa.prototype;g.k.Pl=function(){return this.Fc}; g.k.HF=function(){return this.u}; g.k.getType=function(){return this.type}; g.k.CB=function(){var a;return(null==(a=this.videoData)?void 0:a.clientPlaybackNonce)||""}; g.k.getVideoData=function(){return this.videoData}; g.k.Yp=function(){return this.clipId};g.x(g.uW,g.D);g.k=g.uW.prototype; g.k.onCueRangeEnter=function(a){this.Ua.push(a);var b=a.getId(),c=""===b;this.Ab.add(a.u);c||this.va.ya("sdai",{enterAdCueRange:1});if(this.ib&&!this.j){this.ib=!1;if(!c){var d=this.J.get(b);d&&(c=this.va.getCurrentTime(),AW(this,{Le:a,isAd:!0,tq:!0,qh:c,adCpn:b},{isAd:!1,tq:!1,qh:c}),this.api.oa("serverstitchedvideochange",d.Oc,d.Kr),this.va.ya("sdai",xW("midab",d)),this.B=1)}this.K=!1}else if(this.j){if(this.j.tq)this.va.ya("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.qh, cpn:b,currentTime:this.va.getCurrentTime()}),d=this.va.getCurrentTime(),a={Le:a,isAd:!c,tq:!0,qh:d,adCpn:b},b={Le:this.j.Le,isAd:this.j.isAd,tq:!1,qh:d,adCpn:this.j.adCpn},this.j.Le&&this.Ab.delete(this.j.Le.u),AW(this,a,b);else{if(this.j.Le===a){this.va.ya("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.qh,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.ya("sdai",{dchtsc:b}); this.j=void 0;return}a={Le:a,isAd:!c,tq:!0,qh:this.va.getCurrentTime(),adCpn:b};AW(this,a,this.j)}this.j=void 0;this.K=!1}else this.j={Le:a,isAd:!c,tq:!0,qh:this.va.getCurrentTime(),adCpn:b}}; g.k.onCueRangeExit=function(a){if(this.Ab.has(a.u)){this.Ab.delete(a.u);this.Ua=this.Ua.filter(function(d){return d!==a}); this.ib&&(this.K=this.ib=!1,this.va.ya("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.tq){if(this.j.Le===a){this.va.ya("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.qh,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.ya("sdai",{dchtsc:b});this.j=void 0;return}b={Le:a,isAd:!c,tq:!1,qh:this.va.getCurrentTime(),adCpn:b};AW(this,this.j,b)}else this.va.ya("sdai", {a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.qh,upcomingCpn:b,contentCpn:this.va.getVideoData().clientPlaybackNonce,currentTime:this.va.getCurrentTime()});this.j=void 0;this.K=!1}else this.j={Le:a,isAd:!c,tq:!1,qh:this.va.getCurrentTime(),adCpn:b}}else this.va.ya("sdai",{ignore_single_exit:1})}; g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.K=!0;if(void 0===b?0:b)OQa(this,a);else{b=this.api.qd();var d=b===this.Hb?this.qc:null;CW(this,!1);this.md=a;null!=c&&this.Mc.start(c);b&&(this.qc=d||b.getPlayerState(),y_a(b),this.Hb=b)}}; g.k.ra=function(){CW(this,!1);aRa(this);bRa(this);g.D.prototype.ra.call(this)}; g.k.dP=function(a){this.od=a;this.va.ya("sdai",{swebm:a})}; g.k.Dk=function(a,b,c){if(c&&b){var d=this.Aa.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.WF(c);this.Za&&this.va.ya("sdai",{hdlredir:1,itag:b,seg:a,hostport:YF(c)});d.locations.set(e,c)}}}; g.k.Is=function(a,b,c,d,e,f){var h=3===d,l=dRa(this,a,b,d,c,f);if(!l)return FW(this,b,h),l=g.cRa(this,b)?"undec":"ncp",this.va.ya("sdai",{gvprp:l,mt:a,seg:b,tt:d,itag:c,ce:f}),null;this.Z.N("html5_update_dec_records_on_getting_request_proto")&&!h&&this.Aa.set(b,l);a=l.Fm;var m;d=(null==(m=EW(this,b-1,d,e))?void 0:m.Xr)||"";""===d&&this.va.ya("sdai",{eds:1});m=zK(l.ssdaiAdsConfig||"")||void 0;c=this.va.getVideoData();var n;e=(null==(n=c.B)?void 0:n.containerType)||0;n=c.ZR[e];b=l.mw&&b>=l.mw?l.mw: void 0;return{JD:{bK:a?hRa(this,a):[],Q1:m,Xr:d,OX:b,J9:Ge(n.split(";")[0]),K9:n.split(";")[1]||""}}}; g.k.Io=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]),l=3===d;a=dRa(this,a,b,d,c,f);this.Za&&this.va.ya("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return FW(this,b,l),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var m,n;f=null==(m=a.videoData.getPlayerResponse())?void 0:null==(n=m.streamingData)?void 0:n.adaptiveFormats;if(!f)return this.va.ya("sdai",{gdu:"noadpfmts",seg:b,itag:h}),FW(this,b,l),null;m=f.find(function(B){return B.itag===h}); if(!m||!m.url){var p=a.videoData.videoId;a=[];d=g.v(f);for(var q=d.next();!q.done;q=d.next())a.push(q.value.itag);this.va.ya("sdai",{gdu:"nofmt",seg:b,vid:p,itag:h,fullitag:c,itags:a.join(",")});FW(this,b,l);return null}a.locations.set(h,new g.WF(m.url,!0))}f=a.locations.get(h);if(!f)return this.va.ya("sdai",{gdu:"nourl",seg:b,itag:h}),FW(this,b,l),null;f=new aH(f);this.od&&(f.get("dvc")?this.va.ya("sdai",{dvc:f.get("dvc")||""}):f.set("dvc","webm"));var t;(e=null==(t=EW(this,b-1,d,e))?void 0:t.Xr)&& f.set("daistate",e);a.mw&&b>=a.mw&&f.set("skipsq",""+a.mw);(e=this.va.getVideoData().clientPlaybackNonce)&&f.set("cpn",e);t=[];a.Fm&&(t=hRa(this,a.Fm),0d?(this.cI(a,c,!0),this.va.seekTo(d),!0):!1}; g.k.cI=function(a,b,c){c=void 0===c?!1:c;if(a=DW(this,a,b)){var d=a.Fm;if(d){this.va.ya("sdai",{skipadonsq:b,sts:c,abid:d,acpn:a.cpn,avid:a.videoData.videoId});c=this.ma.get(d);if(!c)return;c=g.v(c);for(d=c.next();!d.done;d=c.next())d.value.mw=b}this.u=a.cpn;eRa(this)}}; g.k.NO=function(){for(var a=g.v(this.ea),b=a.next();!b.done;b=a.next())b.value.mw=NaN;eRa(this);this.va.ya("sdai",{rsac:"resetSkipAd",sac:this.u});this.u=""}; g.k.bE=ba(38); g.k.UN=function(a,b,c,d,e,f,h,l,m){m&&(h?this.fb.set(a,{Xr:m,Dx:l}):this.Ja.set(a,{Xr:m,Dx:l}));if(h){if(d.length&&e.length)for(this.u&&this.u===d[0]&&this.va.ya("sdai",{skipfail:1,sq:a,acpn:this.u}),a=b+this.fq(),h=0;h=b+a)b=h.end;else{if(l=!1,h?b=d)return this.va.seekTo(c.Pl()),[a]}}return[]}; g.k.onCueRangeEnter=function(a){a=a.getId();this.va.W().N("html5_enable_logging_manager")&&(this.va.JL().gT=a);a=this.timeline.u.get(a);if(null==a?0:a.length){a=a[0];var b=a.getType();this.api.oa("videodatachange","newdata",a.getVideoData(),b);2===b?this.u++:this.u=0}}; g.k.xL=function(){return this.u}; g.k.ra=function(){this.B.clear();this.va.Ez(this.j);this.j=[];g.D.prototype.ra.call(this)};g.x(tRa,g.D);g.k=tRa.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.qd()){var b=this.J.get(a);b?zRa(this,b.target,b.lm,a):this.Rd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.Zr.Le===a})){var c=b.Zr,d=c.target; c=c.lm;d?zRa(this,d,c,a):yRa(this,b.Ld,c,a)}}; g.k.onQueuedVideoLoaded=function(){var a=this.K;JW(this);if(a){if(!IW(this,a)){var b=this.api.qd();this.Rd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.qd().addCueRange(a.Zr.Le)}}; g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)sRa(this,a);else{b=this.api.qd();var d=b===this.C?this.D:null;KW(this,!1);this.ea=a;null!=c&&this.V.start(c);b&&(this.D=d||b.getPlayerState(),y_a(b),this.C=b)}}; g.k.Ki=function(a){g.JO(a,128)&&ERa(this)}; g.k.isManifestless=function(){return TM(this.j.getVideoData())}; g.k.ra=function(){KW(this,!1);GRa(this);g.D.prototype.ra.call(this)}; g.k.Rd=function(a,b){this.j.Rd(new xL(a,b))}; var uRa=0;var HRa="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.x(MW,g.D);g.k=MW.prototype;g.k.get=function(a){JRa(this);var b=this.data.find(function(c){return c.key===a}); return b?b.value:null}; g.k.set=function(a,b,c){this.remove(a,!0);JRa(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.gB)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&NW(this,c,!0);LW(this)}; g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(NW(this,c,b),g.Eb(this.data,function(d){return d.key===a}),LW(this))}; g.k.Gf=function(){var a;if(a=void 0===a?!1:a)for(var b=g.v(this.data),c=b.next();!c.done;c=b.next())NW(this,c.value,a);this.data=[];LW(this)}; g.k.ra=function(){var a=this;g.D.prototype.ra.call(this);this.data.forEach(function(b){NW(a,b,!0)}); this.data=[]};g.x(OW,g.D);OW.prototype.IF=function(a){if(a)return this.u.get(a)}; OW.prototype.ra=function(){this.j.Gf();this.u.Gf();g.D.prototype.ra.call(this)};g.x(PW,g.tq);PW.prototype.oa=function(a){var b=g.Ea.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.tq.prototype.oa.call.apply(g.tq.prototype.oa,[this,a].concat(g.oa(b.shift())))}finally{this.D.delete(a)}return c};g.x(LRa,g.D);LRa.prototype.ra=function(){g.D.prototype.ra.call(this);this.j=null;this.u&&this.u.disconnect()};g.Kcb=Hd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var j4;j4={};g.QW=(j4.STOP_EVENT_PROPAGATION="html5-stop-propagation",j4.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",j4.IV_DRAWER_OPEN="ytp-iv-drawer-open",j4.MAIN_VIDEO="html5-main-video",j4.VIDEO_CONTAINER="html5-video-container",j4.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",j4.HOUSE_BRAND="house-brand",j4);g.x(ORa,g.V);g.k=ORa.prototype;g.k.Lr=function(){g.Zp(this.element,g.Ea.apply(0,arguments))}; g.k.pj=function(){this.pc&&(this.pc.removeEventListener("focus",this.AN),g.hf(this.pc),this.pc=null)}; g.k.XK=function(){this.isDisposed();var a=this.app.W();a.Cm||this.Lr("tag-pool-enabled");a.K&&this.Lr(g.QW.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Lr("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Mc&&(this.MK=g.JC("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)}; g.k.KD=function(a){g.TK(this.app.W());this.eG=!a;RW(this)}; g.k.resize=function(){if(this.pc){var a=this.Hj();if(!a.isEmpty()){var b=!g.xe(a,this.yz.getSize()),c=TRa(this);b&&(this.yz.width=a.width,this.yz.height=a.height);a=this.app.W();(c||b||a.Mc)&&this.app.Wa.oa("resize",this.getPlayerSize())}}}; g.k.Ls=function(a,b){this.updateVideoData(b)}; g.k.updateVideoData=function(a){if(this.pc){var b=this.app.W();JB&&(this.pc.setAttribute("x-webkit-airplay","allow"),a.title?this.pc.setAttribute("title",a.title):this.pc.removeAttribute("title"));hya(a)?this.pc.setAttribute("disableremoteplayback",""):this.pc.removeAttribute("disableremoteplayback");this.pc.setAttribute("controlslist","nodownload");b.zt&&a.videoId&&(this.pc.poster=a.zg("default.jpg"))}b=g.lN(a,"yt:bgcolor");this.aB.style.backgroundColor=b?b:"";this.fN=Jz(g.lN(a,"yt:stretch"));this.gN= Jz(g.lN(a,"yt:crop"),!0);g.bq(this.element,"ytp-dni",a.wd);this.resize()}; g.k.setGlobalCrop=function(a){this.VL=Jz(a,!0);this.resize()}; g.k.setCenterCrop=function(a){this.OS=a;this.resize()}; g.k.jm=function(){}; g.k.getPlayerSize=function(){var a=this.app.W(),b=this.app.Wa.isFullscreen();if(b&&sz())return new g.we(window.outerWidth,window.outerHeight);if(b||a.Zn){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.zC&&this.zC.media===a||(this.zC=window.matchMedia(a));var c=this.zC&&this.zC.matches}if(c)return new g.we(window.innerWidth,window.innerHeight)}else if(!isNaN(this.uB.width)&&!isNaN(this.uB.height))return this.uB.clone();return new g.we(this.element.clientWidth, this.element.clientHeight)}; g.k.Hj=function(){var a=this.app.W().N("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.PJ(this.app.W().experiments,"player_underlay_min_player_width");return a&&this.mO&&b.width>c?new g.we(b.width*g.PJ(this.app.W().experiments,"player_underlay_video_width_fraction"),b.height):b}; g.k.getVideoAspectRatio=function(){return isNaN(this.fN)?QRa(this):this.fN}; g.k.getVideoContentRect=function(a){var b=this.Hj();a=RRa(this,b,this.getVideoAspectRatio(),a);return new g.Xm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.k.Qz=function(a){this.mO=a;this.resize()}; g.k.nG=function(){return this.qH}; g.k.onMutedAutoplayChange=function(){RW(this)}; g.k.setInternalSize=function(a){g.xe(this.uB,a)||(this.uB=a,this.resize())}; g.k.ra=function(){this.MK&&g.KC(this.MK);this.pj();g.V.prototype.ra.call(this)};g.k=URa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.ZE();c&&a.visualElement&&g.JP(c,a.visualElement,b)}; g.k.tb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Jra(c);a.visualElement=c;var f=g.ZE(),h=g.YE();f&&h&&g.Iy(g.DP)(void 0,f,h,c);g.ob(b,function(){VRa(e,a)}); d&&this.u.add(a)}; g.k.Mf=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.ob(b,function(){VRa(d,a)}); c&&this.u.add(a)}; g.k.cT=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,PP(OP(),a),WRa(this))}; g.k.Vf=function(a,b){this.elements.has(a);b&&(a.visualElement=g.WE(b))}; g.k.Fk=function(a){return this.elements.has(a)};XRa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)}; XRa.prototype.getPlaybackRate=function(){return this.playbackRate};aSa.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.u,d=this.audioTrack.u,e=this.audioTrack.Xb,f=dSa(this,this.videoTrack,a,this.videoTrack.Xb,b);b=dSa(this,this.audioTrack,this.policy.ze?a:f,e,b);a=Math.max(a,f,b);this.C=!0;this.Ta.isManifestless&&(bSa(this,this.videoTrack,c),bSa(this,this.audioTrack,d));return a}; aSa.prototype.Zg=function(){return this.C}; var cSa=2/24;iSa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.gB)()};g.x(kSa,g.yE);g.k=kSa.prototype; g.k.JN=function(a,b,c,d){if(this.C&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.Dx);this.C.UN(a.Na,a.startTime,this.u,d,e,f,c,l,h)}if(c){if(b&&!this.Aa.has(a.Na)){c=a.startTime;d=[];for(e=0;ethis.policy.Da&&(null==(c=this.j)?0:dI(c.info))&&(null==(d=this.nextVideo)||!dI(d.info))&&(this.V=!0)}};ESa.prototype.gr=function(a){this.timestampOffset=a};OSa.prototype.dispose=function(){this.qa=!0}; OSa.prototype.isDisposed=function(){return this.qa}; g.x(rX,Error);cTa.prototype.skip=function(a){this.offset+=a}; cTa.prototype.cq=function(){return this.offset};g.k=gTa.prototype;g.k.cU=function(){return this.u}; g.k.yk=function(){this.u=[];vX(this);fTa(this)}; g.k.gw=function(a){this.Oa=this.u.shift().info;a.info.equals(this.Oa)}; g.k.Rm=function(){return g.qm(this.u,function(a){return a.info})}; g.k.Gk=function(){return!!this.J.info.audio}; g.k.getDuration=function(){return this.J.index.Ds()};var yTa=0;g.k=yX.prototype;g.k.xs=function(){this.Da||(this.Da=this.kc.xs?this.kc.xs():1);return this.Da}; g.k.pG=function(){return this.Lk?1!==this.xs():!1}; g.k.Kv=function(){this.Oa=this.now();this.kc.Kv()}; g.k.xt=function(a,b){CTa(this,a,b);50>a-this.C&&BX(this)||DTa(this,a,b);this.kc.xt(a,b)}; g.k.Nq=function(){this.kc.Nq()}; g.k.ov=function(){return this.u>this.fH&&FTa(this,this.u)}; g.k.now=function(){return(0,g.gB)()};EX.prototype.feed=function(a){eG(this.j,a);this.nf()}; EX.prototype.nf=function(){if(this.C){if(!this.j.totalLength)return;var a=this.j.split(this.B-this.u),b=a.cC;a=a.bl;this.kc.ON(this.C,b,this.u,this.B);this.u+=b.totalLength;this.j=a;this.u===this.B&&(this.C=this.B=this.u=void 0)}for(;;){var c=0;a=g.v(MTa(this.j,c));b=a.next().value;c=a.next().value;c=g.v(MTa(this.j,c));a=c.next().value;c=c.next().value;if(0>b||0>a)break;if(!(c+a<=this.j.totalLength)){if(!(this.kc.ON&&c+1<=this.j.totalLength))break;c=this.j.split(c).bl;this.kc.ON(b,c,0,a)&&(this.C= b,this.u=c.totalLength,this.B=a,this.j=new dG([]));break}a=this.j.split(c).bl.split(a);c=a.bl;this.kc.qz(b,a.cC);this.j=c}}; EX.prototype.dispose=function(){this.j=new dG};g.k=FX.prototype;g.k.wL=function(){return 0}; g.k.JF=function(){return null}; g.k.PT=function(){return null}; g.k.Ts=function(){return 1<=this.state}; g.k.isComplete=function(){return 3<=this.state}; g.k.Zm=function(){return 5===this.state}; g.k.onStateChange=function(){}; g.k.xc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)}; g.k.kz=function(a){a&&this.state=this.xhr.HEADERS_RECEIVED}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; g.k.BB=function(){return+this.getResponseHeader("content-length")}; g.k.Ql=function(){return this.B}; g.k.rD=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.k.qq=function(){return 0this.status&&!!this.u}; g.k.qq=function(){return!!this.j.totalLength}; g.k.ew=function(){var a=this.j;this.j=new dG;return a}; g.k.lH=function(){return this.j}; g.k.isDisposed=function(){return this.K}; g.k.abort=function(){this.B&&this.B.cancel().catch(function(){}); this.C&&this.C.abort();this.K=!0}; g.k.Nt=function(){return!0}; g.k.zH=function(){return this.V}; g.k.Cf=function(){return this.errorMessage};g.k=TTa.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.kc.Nq()}}; g.k.nz=function(){2===this.xhr.readyState&&this.kc.Kv()}; g.k.Te=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.kc.xt((0,g.gB)(),a.loaded))}; g.k.Zu=function(){return 2<=this.xhr.readyState}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.ZD(Error("Could not read XHR header "+a)),""}}; g.k.BB=function(){return+this.getResponseHeader("content-length")}; g.k.Ql=function(){return this.u}; g.k.rD=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u}; g.k.qq=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.k.ew=function(){var a=this.response;this.response=void 0;return new dG([new Uint8Array(a)])}; g.k.lH=function(){return new dG([new Uint8Array(this.response)])}; g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()}; g.k.Nt=function(){return!1}; g.k.zH=function(){return!1}; g.k.Cf=function(){return""};g.x(GX,g.D);g.k=GX.prototype;g.k.v8=function(){if(!this.isDisposed()){var a=(0,g.gB)(),b=!1;if(BX(this.timing)){if(this.D)return;a=this.timing.ma;ATa(this.timing);this.timing.ma-a>=.8*this.policy.yd?(this.u++,b=this.u>=this.policy.Am):this.u=0}else b=this.timing,b.Lk&<a(b,b.now()),a-=b.ea,this.policy.Yi&&01E3*b;0this.state)return!1;if(this.qe&&this.qe.We.length)return!0;var a;return(null==(a=this.xhr)?0:a.qq())?!0:!1}; g.k.Pv=function(){this.Vm(!1);return this.qe?this.qe.Pv():[]}; g.k.Vm=function(a){try{if(a||this.xhr.Zu()&&this.xhr.qq()&&!aUa(this)&&!this.vz){if(!this.qe){var b;this.xhr.Nt()||this.tj?b=this.info.C:b=this.xhr.Ql();this.qe=new aW(this.policy,this.info.jb,b)}this.xhr.qq()&&(this.tj?this.tj.feed(this.xhr.ew()):bW(this.qe,this.xhr.ew(),a&&!this.xhr.qq()))}}catch(c){this.tj?$Ta(this,c):g.ZD(c)}}; g.k.qz=function(a,b){switch(a){case 21:a=b.split(1).bl;bW(this.qe,a,!1);break;case 22:this.vY=!0;bW(this.qe,new dG([]),!0);break;case 43:if(a=WL(new QL(b),1))this.info.Dk(this.cf,a),this.wY=!0;break;case 45:this.policy.dl&&(b=$Ka(new QL(b)),a=b.PH,b=b.QH,a&&b&&(this.vK=a/b))}}; g.k.ON=function(a,b,c){if(21!==a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).bl}bW(this.qe,b,!1);return!0}; g.k.Ql=function(){return this.xhr.Ql()}; g.k.wL=function(){return this.Ux}; g.k.xs=function(){return this.pG()?2:1}; g.k.pG=function(){if(!this.policy.J.ek||!isNaN(this.info.Wg)&&0this.info.jb[0].Na?!1:!0}; g.k.QL=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.k.JF=function(){this.xhr&&(this.To=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.To}; g.k.PT=function(){this.xhr&&(this.lq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.lq}; g.k.hf=function(){return this.Hd.hf()};g.x(WW,FX);g.k=WW.prototype;g.k.onStateChange=function(){this.isDisposed()&&(eW(this.Cg,this.formatId),this.j.dispose())}; g.k.Zp=function(){var a=dQa(this.Cg,this.formatId),b;var c=(null==(b=this.Cg.Yc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Cg.Yc.get(this.formatId))?void 0:d.Nx)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:eQa(this.Cg,this.formatId),isEnded:this.Cg.Sh(this.formatId)}}; g.k.KT=function(){return 0}; g.k.ov=function(){return!0}; g.k.Wj=function(){return this.Cg.Wj(this.formatId)}; g.k.Pv=function(){return[]}; g.k.Sk=function(){return this.Cg.Sk(this.formatId)}; g.k.hf=function(){return this.lastError}; g.k.Fs=function(){return 0};g.k=bUa.prototype;g.k.gw=function(a){this.C.gw(a);var b;null!=(b=this.V)&&(b.j=ISa(b,b.Jd,b.sz,b.j,a),b.B=a);this.dc=Math.max(this.dc,a.info.j.info.dc||0)}; g.k.getDuration=function(){return this.j.index.Ds()}; g.k.yk=function(){YW(this);this.C.yk()}; g.k.KL=function(){return this.C}; g.k.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.jb[0].Na:!1}; g.k.gr=function(a){var b;null==(b=this.V)||b.gr(a)};g.x(UX,g.D); UX.prototype.Ks=function(a){var b=a.info.jb[0].j,c=a.hf();if(ZF(b.u.j)){var d=g.Sf(a.Cf(),3);this.Ga.ya("dldbrerr",{em:d||"none"})}d=a.info.jb[0].Na;var e=mSa(this.j,a.info.jb[0].C,d);"net.badstatus"===c&&(this.J+=1);if(a.canRetry()){if(!(3<=a.info.j.u&&this.u&&a.info.Io()&&"net.badstatus"===a.hf()&&this.u.Ks(e,d))){d=(b.info.video&&1a.KG||0a.iN)){this.HO=(0,g.gB)();var c;null==(c=this.yD)||c.stop();this.Hd.aE(!1)}}}; g.k.WC=function(a){this.kc.WC(a)}; g.k.SN=function(a){this.tX=!0;this.info.j.Dk(this.cf,a.redirectUrl)}; g.k.ZC=function(a,b){this.kc.ZC(a,b)}; g.k.QC=function(a){if(this.policy.D){var b=a.videoId,c=a.formatId,d=MUa({videoId:b,itag:c.itag,Jk:c.Jk,xtags:c.xtags}),e=a.mimeType||"",f,h,l=new mH((null==(f=a.KU)?void 0:f.first)||0,(null==(h=a.KU)?void 0:h.bV)||0),m,n;f=new mH((null==(m=a.indexRange)?void 0:m.first)||0,(null==(n=a.indexRange)?void 0:n.bV)||0);this.Ta.J.get(d)||(a=this.Ta,d=a.j[c.itag],c=qJ({lmt:""+c.Jk,itag:""+c.itag,xtags:c.xtags,type:e},null),kJ(a,new VH(d.V,c,l,f)));this.policy.D&&this.kc.QC(b)}}; g.k.XC=function(a){a.PH&&a.QH&&this.kc.XC(a)}; g.k.VC=function(a,b,c){this.kc.VC(a,b,c)}; g.k.canRetry=function(){this.isDisposed();return this.Hd.canRetry(!1)}; g.k.dispose=function(){if(!this.isDisposed()){g.D.prototype.dispose.call(this);this.Hd.dispose();var a;null==(a=this.yD)||a.dispose();this.xc(-1)}}; g.k.xc=function(a){this.state=a;kY(this.kc,this)}; g.k.tv=function(){return this.info.tv()}; g.k.pz=function(a,b,c,d){d&&(this.clipId=d);this.Cg.pz(a,b,c,d)}; g.k.Mq=function(a){this.Cg.Mq(a);kY(this.kc,this)}; g.k.Wj=function(a){return this.Cg.Wj(a)}; g.k.Rm=function(a){return this.Cg.Rm(a)}; g.k.Sk=function(a){return this.Cg.Sk(a)}; g.k.Xp=function(){return this.Cg.Xp()}; g.k.xs=function(){return 1}; g.k.SF=function(){return this.Gh.requestNumber}; g.k.Yp=function(){return this.clipId}; g.k.SV=function(){this.OA()}; g.k.OA=function(){var a;null==(a=this.xhr)||a.abort();CX(this.Gh)}; g.k.isComplete=function(){return 3<=this.state}; g.k.WU=function(){return 3===this.state}; g.k.Zm=function(){return 5===this.state}; g.k.XU=function(){return 4===this.state}; g.k.Ts=function(){return 1<=this.state}; g.k.Fs=function(){return this.Hd.Fs()}; g.k.JT=function(){return this.info.data.uK}; g.k.rU=function(){}; g.k.hf=function(){return this.Hd.hf()}; g.k.Zp=function(){var a=YTa(this.Hd);Object.assign(a,rVa(this.info));a.req="sabr";a.rn=this.SF();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.Uk?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.Cf())&&(a.msg=b);this.HO&&(c=qVa(this,this.HO-this.Gh.J),a.letm=c.r4,a.mrbps=c.KG,a.mram=c.iN);return a};aY.prototype.tv=function(){return 1===this.requestType}; aY.prototype.AL=function(){var a;return(null==(a=this.kc)?void 0:a.AL())||0};g.x(bY,g.D);bY.prototype.encrypt=function(a){(0,g.gB)();if(this.u)var b=this.u;else this.B?(b=new yK(this.B,this.j.j),g.J(this,b),this.u=b):this.u=new xK(this.j.j),b=this.u;return b.encrypt(a,this.iv)}; bY.prototype.decrypt=function(a,b){(0,g.gB)();return(new xK(this.j.j)).decrypt(a,b)};EVa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.Rk.Xc("omd_s");c=new Uint8Array(16);pK()?d=new wK(a):e=new xK(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.La(3);break}f=b.j.shift();if(!d){h=e.decrypt(iG(f.buffer),c);m.La(4);break}return g.z(m,d.decrypt(iG(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;nc&&d.u.pop();gUa(b);b.u&&cf||f!==h)&&b.ya("sbu_mismatch",{b:tI(e),c:b.currentTime,s:xH(d)})},0))}this.nf()}; g.k.o5=function(a){if(this.Ya){var b=LX(a===this.Ya.j?this.audioTrack:this.videoTrack);if(a=a.OL())for(var c=0;c=c||cthis.B&&(this.B=c,g.cd(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.Rp(this.u))}}; vY.prototype.D=function(){for(var a=g.v(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.oa;for(var d=this.B,e=this.j[c].match(bj),f=[],h=g.v(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.ze(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.oa("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length}); 0>=c?NWa(this,a):(this.j.push({time:b+c,info:a}),g.Rp(this.u,c))}}; wY.prototype.ra=function(){this.j=[];uY.prototype.ra.call(this)};var s4={},VWa=(s4.DRM_TRACK_TYPE_AUDIO="AUDIO",s4.DRM_TRACK_TYPE_SD="SD",s4.DRM_TRACK_TYPE_HD="HD",s4.DRM_TRACK_TYPE_UHD1="UHD1",s4);g.x(RWa,g.D);g.x(XWa,g.yE);g.k=XWa.prototype;g.k.hp=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=JJ(b.u)?d:c;d=new Uint8Array(JJ(b.u)?c:d);JJ(b.u)&&nXa(d);c=g.Rf(d,4);nXa(d);d=g.Rf(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),iXa(this,","),xY(this,{onkeystatuschange:1}),this.status="kc",this.oa("keystatuseschange",this))}; g.k.error=function(a,b,c,d){this.isDisposed()||(this.oa("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.oa("ctmp","provf",{et:a.toFixed(3)})));yL(b)&&this.dispose()}; g.k.shouldRetry=function(a,b){return this.Ba&&this.K?!1:!a&&this.requestNumber===b.requestNumber}; g.k.ra=function(){this.j={};g.yE.prototype.ra.call(this)}; g.k.lc=function(){var a={ctype:this.ea.contentType||"",length:this.ea.initData.length,requestedKeyIds:this.Da,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a}; g.k.Bh=function(){var a=this.C.join();if(yY(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; g.k.jf=function(){return this.url};g.x(zY,g.D);g.k=zY.prototype;g.k.G0=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}}; g.k.hp=function(){this.K&&this.K(this.j.keyStatuses)}; g.k.rW=function(a){this.D&&this.D(a.message,"license-request")}; g.k.qW=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; g.k.pW=function(){this.J&&this.J()}; g.k.update=function(a){var b=this;if(this.j)return(ZJ.isActive()&&ZJ.ow()?ZJ.Rq("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,FJ(function(c){pXa(b,"t.update",c)})); this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.V.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,a,this.initData,this.sessionId);return iz()}; g.k.ra=function(){this.j&&this.j.close();this.element=null;g.D.prototype.ra.call(this)};g.x(AY,g.D);g.k=AY.prototype;g.k.setServerCertificate=function(){return this.u.setServerCertificate?"widevine"===this.j.flavor&&this.j.yl?this.u.setServerCertificate(this.j.yl):MJ(this.j)&&this.j.Ua?this.u.setServerCertificate(this.j.Ua):null:null}; g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();LJ(this.j)?c=sXa(c,this.j.Ua):MJ(this.j)&&(c=MWa(c)||new Uint8Array(0));b&&b("genreq");var e=ZJ.isActive()&&ZJ.ow()?ZJ.Rq("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c); var f=new zY(null,null,null,d,null);e.then(function(){b&&b("genreqsuccess")},FJ(function(h){pXa(f,"t.generateRequest",h)})); return f}if(IJ(this.j))return uXa(this,c);if(KJ(this.j))return tXa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new zY(this.element,this.j,c,null,null)}; g.k.J0=function(a){var b=vXa(this,a);b&&b.rW(a)}; g.k.I0=function(a){var b=vXa(this,a);b&&b.qW(a)}; g.k.H0=function(a){var b=vXa(this,a);b&&b.pW(a)}; g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a}; g.k.ra=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.v(Object.values(this.J));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.J={};g.D.prototype.ra.call(this);delete this.element};g.k=BY.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null}; g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; g.k.Gf=function(){this.keys=[];this.values=[]}; g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; g.k.findIndex=function(a){return g.Ab(this.keys,function(b){return g.Ub(a,b)})};g.x(yXa,g.yE);g.k=yXa.prototype;g.k.Q5=function(a){this.Ti({onecpt:1});a.initData&&BXa(this,new Uint8Array(a.initData),a.initDataType)}; g.k.n6=function(a){this.Ti({onndky:1});BXa(this,a.initData,a.contentType)}; g.k.mz=function(a){this.Ti({onneedkeyinfo:1});this.Z.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));AXa(this,a)}; g.k.uS=function(a){this.B.push(a);CY(this)}; g.k.createSession=function(a){var b=DXa(this)?aTa(a):g.Rf(a.initData);this.u.get(b);this.Aa=!0;a=new XWa(this.videoData,this.Z,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.TG,this);a.subscribe("keystatuseschange",this.hp,this);a.subscribe("licenseerror",this.WG,this);a.subscribe("newlicense",this.mW,this);a.subscribe("newsession",this.nW,this);a.subscribe("sessionready",this.yW,this);a.subscribe("fairplay_next_need_key_info",this.eW,this);this.Z.N("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange", this.VP,this);aXa(a,this.C)}; g.k.mW=function(a){this.isDisposed()||(this.Ti({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.oa("heartbeatparams",a)))}; g.k.nW=function(){this.isDisposed()||(this.Ti({newlcssn:1}),this.B.shift(),this.Aa=!1,CY(this))}; g.k.yW=function(){if(IJ(this.j)&&(this.Ti({onsnrdy:1}),this.Ja--,0===this.Ja)){var a=this.ma;a.element.msSetMediaKeys(a.B)}}; g.k.hp=function(a){if(!this.isDisposed()){!this.Ba&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(EXa(this),this.Ba=!0);this.Ti({onksch:1});var b=this.VP;if(!yY(a)&&g.KB&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(yY(a))for(var e=g.v(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!yY(a)||d)c=a.C;c=hXa(c)}b.call(this,c); this.oa("keystatuseschange",a)}}; g.k.TG=function(a,b){this.isDisposed()||this.oa("ctmp",a,b)}; g.k.eW=function(a,b){this.isDisposed()||this.oa("fairplay_next_need_key_info",a,b)}; g.k.WG=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&EXa(this),this.oa("licenseerror",a,b,c,d))}; g.k.Ru=function(){return this.V}; g.k.VP=function(a){var b=g.DF("auto",a,!1,"l");if(this.videoData.dl){if(this.V.equals(b))return}else if(rsa(this.V,a))return;this.V=b;this.oa("qualitychange");this.Ti({updtlq:a})}; g.k.ra=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.v(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.TG,this),b.unsubscribe("keystatuseschange",this.hp,this),b.unsubscribe("licenseerror",this.WG,this),b.unsubscribe("newlicense",this.mW,this),b.unsubscribe("newsession",this.nW,this),b.unsubscribe("sessionready",this.yW,this),b.unsubscribe("fairplay_next_need_key_info",this.eW,this),this.Z.N("html5_enable_vp9_fairplay")&& b.unsubscribe("qualitychange",this.VP,this),b.dispose();this.u.clear();this.J.Gf();this.K.Gf();this.heartbeatParams=null;g.yE.prototype.ra.call(this)}; g.k.lc=function(){for(var a={systemInfo:this.j.lc(),sessions:[]},b=g.v(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.lc());return a}; g.k.Bh=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.Bh()+(this.D?"/KR":"")}; g.k.Ti=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(wL(a),(this.Z.pe()||b)&&this.oa("ctmp","drmlog",a))};g.x(EY,g.D);EY.prototype.rG=function(){return this.B}; EY.prototype.handleError=function(a){var b=this;JXa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!IXa(this,a.errorCode,a.details))&&!NXa(this,a)){if("yt"!==this.j.Da&&LXa(this,a)&&this.videoData.jo&&(0,g.gB)()/1E3>this.videoData.jo&&"hm"===this.j.Da){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.jo;c.init=this.videoData.FX/1E3;c.now=(0,g.gB)()/1E3;c.systelapsed=((0,g.gB)()-this.videoData.FX)/ 1E3;a=new xL(a.errorCode,c,2);this.va.Pg(a.errorCode,2,"SIGNATURE_EXPIRED",wL(a.details))}if(yL(a.severity)){var d;c=null==(d=this.va.Ga)?void 0:d.He.B;if(this.j.N("html5_use_network_error_code_enums"))if(KXa(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.j.K&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else KXa(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.j.K||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.va.Pg(a.errorCode, a.severity,e,wL(a.details),f)}else this.va.oa("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Rd(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.gB)(),VV(a,"manifest",function(h){b.J=!0;b.ya("pathprobe",h)},function(h){b.Rd(h.errorCode,h.details)}))}}; EY.prototype.ya=function(a,b){this.va.Jc().ya(a,b)}; EY.prototype.Rd=function(a,b){b=wL(b);this.va.Jc().Rd(a,b)};QXa.prototype.N=function(a){return this.Z.N(a)};g.x(GY,g.D);GY.prototype.Dd=function(a){hYa(this);this.playerState=a.state;0<=this.u&&g.JO(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; GY.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.N("html5_exception_to_health"))a.match(Mcb)?this.networkErrorCount++:this.nonNetworkErrorCount++}; GY.prototype.send=function(){if(!(this.B||0>this.j)){hYa(this);var a=g.pW(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.BO(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.BO(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.BO(this.playerState,16)||g.BO(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.BO(this.playerState, 1)&&g.BO(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.BO(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.BO(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.BO(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=D_a[kN(this.provider.videoData)];a:switch(this.provider.Z.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e= 0>this.u?a:this.u-this.j;a=this.provider.Z.Zf+36E5<(0,g.gB)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.iN(this.provider.videoData),isGapless:this.provider.videoData.Ma,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai}; a||g.OA("html5PlayerHealthEvent",b);this.B=!0;this.dispose()}}; GY.prototype.ra=function(){this.B||this.send();g.D.prototype.ra.call(this)}; var Mcb=/\bnet\b/;var kYa=window;var iYa=/[?&]cpn=/;g.x(g.IY,g.D);g.k=g.IY.prototype;g.k.F3=function(){var a=g.pW(this.provider);oYa(this,a)}; g.k.JB=function(){return this.Aa}; g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.pW(this.provider),-1<["PL","B","S"].indexOf(this.bf)&&(!g.cd(this.j)||a>=this.C+30)&&(g.HY(this,a,"vps",[this.bf]),this.C=a),!g.cd(this.j))){7E3===this.sequenceNumber&&g.ZD(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){rYa(this,a);var b=a,c=this.provider.va.VB(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Ab,h=e&&!this.Cc;d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.provider.va.OC(),this.j.qoealert=["1"],this.Za=!0)),"B"!==a||"PL"!==this.bf&&"PB"!==this.bf||(this.ma=!0),this.C=c),"PL"===this.bf&&("B"===a||"S"===a)||this.provider.Z.pe()?rYa(this,c):(this.fb||"PL"!==a||(this.fb= !0,qYa(this,c,this.provider.va.RB())),oYa(this,c)),"PL"===a&&g.Rp(this.Qc),g.HY(this,c,"vps",[a]),this.bf=a,this.C=this.qb=c,this.D=!0);a=b.getData();g.BO(b,128)&&a&&(a.xH=a.xH||"",wYa(this,c,a.errorCode,a.sF,a.xH));(g.BO(b,2)||g.BO(b,128))&&this.reportStats(c);b.hd()&&!this.J&&(0<=this.u&&(this.j.user_intent=[this.u.toString()]),this.J=!0);uYa(this)}; g.k.aD=function(a){var b=g.pW(this.provider);g.HY(this,b,"vfs",[a.j.id,a.u,this.Mc,a.reason]);this.Mc=a.j.id;var c=this.provider.va.getPlayerSize();if(0b-this.ep+2||FYa(this,a,b))){c=this.provider.va.getVolume();var d=c!==this.ea,e=this.provider.va.isMuted()?1:0;e!==this.V?(this.V=e,c=!0):(!d||0<=this.C||(this.ea=c,this.C=b),c=b-this.C,0<=this.C&&2=this.provider.videoData.qb;a&&(this.u&&this.provider.videoData.qb&&(a=PY(this,"delayplay"),a.If=!0,a.send(),this.qa=!0),OYa(this))}; g.k.Dd=function(a){if(!this.isDisposed())if(g.BO(a.state,2)||g.BO(a.state,512))this.J="paused",(g.JO(a,2)||g.JO(a,512))&&this.u&&(SY(this),TY(this).send(),this.D=NaN);else if(g.BO(a.state,8)){this.J="playing";var b=this.u&&isNaN(this.C)?QY(this):NaN;!isNaN(b)&&(0>IO(a,64)||0>IO(a,512))&&(a=TYa(this,!1),a.D=b,a.send())}else this.J="paused"}; g.k.ra=function(){g.D.prototype.ra.call(this);SY(this);DYa(this.j)}; g.k.lc=function(){return IYa(PY(this,"playback"))}; g.k.eA=function(){this.provider.videoData.V.eventLabel=xN(this.provider.videoData);this.provider.videoData.V.playerStyle=this.provider.Z.playerStyle;this.provider.videoData.uh&&(this.provider.videoData.V.feature="pyv");this.provider.videoData.V.vid=this.provider.videoData.videoId;var a=this.provider.videoData.V;var b=this.provider.videoData;b=b.isAd()||!!b.uh;a.isAd=b}; g.k.Fj=function(a){var b=PY(this,"engage");b.V=a;return JYa(b,XYa(this.provider))};WYa.prototype.isEmpty=function(){return this.endTime===this.startTime};UY.prototype.N=function(a){return this.Z.N(a)}; var YYa={other:1,none:2,wifi:3,cellular:7};g.x(g.VY,g.D);g.k=g.VY.prototype;g.k.Dd=function(a){if(g.JO(a,1024)||g.JO(a,512)||g.JO(a,4)){var b=this.B;0<=b.u||(b.j=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.J||(b.u=-1))}if(this.provider.videoData.enableServerStitchedDai&&this.Fi){var c;null==(c=this.u.get(this.Fi))||c.Dd(a)}else this.j&&this.j.Dd(a);this.qoe&&this.qoe.Dd(a);this.B.Dd(a)}; g.k.Te=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Fi){var a;null==(a=this.u.get(this.Fi))||a.Te()}else this.j&&this.j.Te()}; g.k.Fn=function(a){this.qoe&&this.qoe.Fn(a)}; g.k.Rd=function(a,b){this.qoe&&xYa(this.qoe,a,b);this.B.onError(a)}; g.k.aD=function(a){this.qoe&&this.qoe.aD(a)}; g.k.LC=function(a){this.qoe&&this.qoe.LC(a)}; g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)}; g.k.vt=ba(42);g.k.ya=function(a,b,c){this.qoe&&this.qoe.ya(a,b,c)}; g.k.sD=function(a,b,c){this.qoe&&this.qoe.sD(a,b,c)}; g.k.Cz=function(a,b,c){this.qoe&&this.qoe.Cz(a,b,c)}; g.k.yn=ba(15);g.k.JB=function(){if(this.qoe)return this.qoe.JB()}; g.k.lc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Fi){var a;null==(a=this.u.get(this.Fi))||a.lc()}else if(this.j)return this.j.lc();return{}}; g.k.Fj=function(a){return this.j?this.j.Fj(a):function(){}}; g.k.eA=function(){this.j&&this.j.eA()};g.x(WY,g.D);WY.prototype.SK=function(a,b){this.j.has(a)||(b=new g.VY(new UY(b,this.Z,this.va)),this.j.set(a,b))}; WY.prototype.Jc=function(){var a=a||this.gT;return this.j.get(a)||this.u};g.x(XY,g.D);g.k=XY.prototype;g.k.Je=function(a,b){this.On();b&&2E3<=this.j.array.length&&this.qB("captions",1E4);b=this.j;if(1b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0a&&this.C.start()))}; g.k.iL=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.u)/this.qa(),this.C.start(a)))}}; g.k.QU=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.BO(a,32)&&this.ma.start();for(var b=g.BO(this.D(),2)?0x8000000000000:1E3*this.V(),c=g.BO(a,2),d=[],e=[],f=g.v(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.kL(e));f=e=null;c?(a=iZa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=jZa(this.j)):a=this.u<=b&&Vza(a)?hZa(this.j,this.u,b):iZa(this.j,b); d=d.concat(this.iL(a));e&&(d=d.concat(this.kL(e)));f&&(d=d.concat(this.iL(f)));this.u=b;mZa(this,d)}}; g.k.ra=function(){this.B=[];this.j.array=[];g.D.prototype.ra.call(this)}; g.jW.ev(XY,{Je:"crmacr",iL:"crmncr",kL:"crmxcr",QU:"crmis",kp:"crmrcr"});g.x($Y,g.yE);$Y.prototype.xq=function(){return this.K}; $Y.prototype.bq=function(){return Math.max(this.V()-aZ(this)*this.j,this.videoData.Qd())};g.x(eZ,g.D);eZ.prototype.Dd=function(){g.Rp(this.B)}; eZ.prototype.nf=function(){var a=this,b=this.va.Fe(),c=this.va.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.BO(c,8)&&g.BO(c,16),h=this.va.Js().isBackground()||c.isSuspended();fZ(this,this.Da,f&&!h,e,"qoe.slowseek",function(){},"timeout"); var l=isFinite(this.j);l=f&&l&&Qza(b,this.j);var m=!d||10d+5,B=q&&n&&y;y=this.va.getVideoData();fZ(this,this.qa,.002>d&&.002>this.j&&f&&g.yN(y)&&!h,e,"qoe.slowseek",m,"slow_seek_shorts");fZ(this,this.J,B&&!h,q&&!n,"qoe.longrebuffer",p,"jiggle_cmt");fZ(this,this.K,B&&!h,q&&!n,"qoe.longrebuffer",m,"new_elem_nnr");if(l){var G=l.getCurrentTime();f=b.Uu();f=kua(f,G);f=!l.Zg()&&d===f;fZ(this,this.Ua,q&&n&&f&&!h,q&&!n&&!f,"qoe.longrebuffer",function(){b.seekTo(G)}, "seek_to_loader")}f={}; p=uI(t,Math.max(d-3.5,0));B=0<=p&&d>t.end(p)-1.1;var M=0<=p&&p+1M;f.close2edge=B;f.gapsize=M;f.buflen=t.length;fZ(this,this.V,q&&n&&!h,q&&!n,"qoe.longrebuffer",function(){},"timeout",f); t=c.isSuspended();t=g.Bb(this.va.Bn,"ad")&&!t;fZ(this,this.D,t,!t,"qoe.start15s",function(){a.va.rg("ad")},"ads_preroll_timeout"); t=.5>d-this.C;u=y.isAd()&&q&&!n&&t;q=function(){var N=a.va,H=N.Lf.qd();(!H||!N.videoData.isAd()||H.getVideoData().Oc!==N.getVideoData().Oc)&&N.videoData.tf||N.Pg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+N.videoData.videoId)}; fZ(this,this.Ja,u,!u,"ad.rebuftimeout",q,"skip_slow_ad");n=y.isAd()&&n&&vI(b.Ah(),d+5)&&t;fZ(this,this.Ma,n,!n,"ad.rebuftimeout",q,"skip_slow_ad_buf");fZ(this,this.Oa,g.xP(c)&&g.BO(c,64)&&!h,e,"qoe.start15s",function(){},"timeout"); fZ(this,this.ea,!!l&&!l.Ya&&g.xP(c),e,"qoe.start15s",m,"newElemMse");this.C=d;this.B.start()}}; eZ.prototype.Rd=function(a,b,c){b=this.lc(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.va.Rd(new xL(a,b));this.u[a]=!0}; eZ.prototype.lc=function(a){a=Object.assign(this.va.lc(!0),a.lc());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; cZ.prototype.reset=function(){this.j=this.u=this.B=this.startTimestamp=0;this.C=!1}; cZ.prototype.lc=function(){var a={},b=(0,g.gB)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.u&&(a.wtd=(b-this.u).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.x(zZa,g.D);g.k=zZa.prototype;g.k.setMediaElement=function(a){g.hA(this.Za);(this.mediaElement=a)?(LZa(this),gZ(this)):hZ(this)}; g.k.Dd=function(a){this.ma.Dd(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.hd()?g.Rp(this.qa):this.qa.stop());if(this.mediaElement)if(8===a.Gv.state&&Vza(a.state)&&g.yP(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Ah();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?uI(b,Math.max(a-3.5,0)):uI(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Hb-c)||(this.va.ya("seekover", {b:tI(b,"_"),cmt:a}),this.Hb=c,this.seekTo(c,{bv:!0,ue:"seektimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&this.Z.N("embeds_enable_muted_autoplay")&&!this.qb&&0=this.Ee())||!g.oN(this.videoData))||this.va.ya("seeknotallowed",{st:y,mst:this.Ee()});if(!n)return this.B&&(this.B=null,HZa(this)),Bf(this.getCurrentTime());if(.005>Math.abs(a-this.j)&&this.V)return this.D;h&&(y=a,(this.Z.pe()|| this.N("html5_log_seek_reasons"))&&this.va.ya("seekreason",{reason:h,tgt:y}));this.V&&hZ(this);this.D||(this.D=new JK);a&&!isFinite(a)&&CZa(this,!1);(h=m||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0e.videoData.endSeconds&&isFinite(f)&&m_a(e);fb.start&&m_a(this.va);return this.D}; g.k.Ee=function(a){if(!this.videoData.isLivePlayback)return O_a(this.va);var b;return KN(this.videoData)&&(null==(b=this.mediaElement)?0:b.Rn())&&this.videoData.j?(a=this.getCurrentTime(),Dya(1E3*this.Pf(a))+a):TM(this.videoData)&&this.videoData.Qc&&this.videoData.j?this.videoData.j.Ee()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.u?this.u.bq():O_a(this.va)+this.timestampOffset:this.mediaElement?uz()?Dya(this.mediaElement.IE().getTime()):pP(this.mediaElement)+this.timestampOffset|| this.timestampOffset:this.timestampOffset}; g.k.Qd=function(){var a=this.videoData?this.videoData.Qd()+this.timestampOffset:this.timestampOffset;if(KN(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.Pf(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a}; g.k.pL=function(){this.D||this.seekTo(this.C,{ue:"seektimeline_forceResumeTime_singleMediaSourceTransition"})}; g.k.oG=function(){return this.V&&!isFinite(this.j)}; g.k.ra=function(){DZa(this,null);this.ma.dispose();g.D.prototype.ra.call(this)}; g.k.lc=function(){var a={};this.Ga&&Object.assign(a,this.Ga.lc());this.mediaElement&&Object.assign(a,this.mediaElement.lc());return a}; g.k.VN=function(a){this.timestampOffset=a}; g.k.getStreamTimeOffset=function(){return TM(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.k.Kd=function(){return this.timestampOffset}; g.k.Pf=function(a){return this.videoData.j.Pf(a-this.timestampOffset)}; g.k.Su=function(){if(!this.mediaElement)return 0;if(pN(this.videoData)){var a=this.mediaElement,b=a.Ah();a=(0=a.start);return a}; g.k.xq=function(){return this.Cd.xq()}; g.k.hd=function(){return this.playerState.hd()}; g.k.oC=function(){return this.playerState.oC()&&this.videoData.Tn}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.Ff){var a=this.Ff;a=a.videoData.yx.compose(a.videoData.WR);a=GF(a)}else a="auto";return a}; g.k.LB=ba(10);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.k.setMediaElement=function(a){if(this.mediaElement&&a.wb()===this.mediaElement.wb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.hA(this.iA),this.mediaElement=a,this.mediaElement.va=this,z_a(this),this.Cd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.pj();if(!this.playerState.isError()){var b=uP(this.playerState,512);g.BO(b,8)&&!g.BO(b,2)&&(b=tP(b,1));a.isView()&&(b=uP(b,64));this.wc(b)}this.mediaElement=a;this.mediaElement.va=this;rL(this.Z)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);z_a(this);this.Cd.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.Kl.uC&&Mza(this.mediaElement)}}; g.k.pj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0this.mediaElement.getCurrentTime()&&this.Ga)return;this.N("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.Rn()||2Math.abs(l- e.getDuration()),n="pause"===a.type&&e.Sh();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.BO(b,4)&&!YY(d,l);if(n||m&&l)0a-this.tG||(this.tG=a,b!==this.Ch()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Dg()),this.ya("airplay",{rbld:b}),FY(this)),this.oa("airplayactivechange"))}; g.k.YB=function(a){if(this.Ga){var b=this.Ga,c=b.B,d=b.currentTime,e=Date.now()-c.ea;c.ea=NaN;c.ya("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&3!==c.u&&vWa(c.Ga,d,c.D,c.B);c.K=NaN;cX(c,4,3===c.u?"adfps":"adf");rY(b)}}; g.k.zc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){EZa(this.Cd,this.hd());var c=this.getCurrentTime();this.Ga&&(g.BO(this.playerState,4)&&g.oN(this.videoData)||JWa(this.Ga,c));5Math.abs(m-h)?(b.ya("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Cs()?b.seekTo(0,{ue:"videoplayer_loop"}):qW(b)):(g.yP(b.playerState)||K_a(b,"progress_fix"),b.wc(tP(b.playerState,1)))):(m&&!n&&!p&&0n-1&&b.ya("misspg",{t:h.toFixed(2),d:n.toFixed(2), r:m.toFixed(2),bh:l.toFixed(2)})),g.wP(b.playerState)&&g.yP(b.playerState)&&5IO(b,8)||g.JO(b,1024))&&this.Av.stop();!g.JO(b,8)||this.videoData.fb||g.BO(b.state,1024)||this.Av.start();g.BO(b.state,8)&&0>IO(b,16)&&!g.BO(b.state,32)&&!g.BO(b.state,2)&&this.playVideo();g.BO(b.state,2)&&pN(this.videoData)&&(this.Xk(this.getCurrentTime()),this.zc(!0));g.JO(b,2)&&this.TO(!0);g.JO(b,128)&&this.Gn();this.videoData.j&&this.videoData.isLivePlayback&&!this.DY&&(0>IO(b, 8)?(a=this.videoData.j,a.C&&a.C.stop()):g.JO(b,8)&&this.videoData.j.resume());this.Cd.Dd(b);this.Jc().Dd(b);if(c&&!this.isDisposed())try{for(var e=g.v(this.pH),f=e.next();!f.done;f=e.next()){var h=f.value;this.Xi.Dd(h);this.oa("statechange",h)}}finally{this.pH.length=0}}}; g.k.OC=function(){this.videoData.isLivePlayback||this.N("html5_disable_connection_issue_event")||this.oa("connectionissue")}; g.k.RN=function(){this.xb.tick("qoes")}; g.k.pL=function(){this.Cd.pL()}; g.k.WG=function(a,b,c,d){a:{var e=this.Kl;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=yL(b);"drm.keyerror"===a&&this.De&&1e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())OXa(e,a);else{if(e.va.Pg(a,b,d,c),FXa(e,{detail:c}))break a}else e.Rd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ya("retrydrm",{sessionLimitExhausted:1}),e.D++,J_a(e.va))}}; g.k.Z5=function(){var a=this,b=g.PJ(this.Z.experiments,"html5_license_constraint_delay"),c=Dz();b&&c?(b=new g.Qp(function(){tZ(a);qZ(a)},b),g.J(this,b),b.start()):(tZ(this),qZ(this))}; g.k.RC=function(a){this.oa("heartbeatparams",a)}; g.k.hp=function(a){this.ya("keystatuses",jXa(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=kXa(b,c);d=yY(a)?lXa(a,d):a.C.includes(d)}else{a:{b=kXa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}if(this.N("html5_enable_vp9_fairplay")){if(c)if(a.V){var f;if(null==(f=this.De)?0:MJ(f.j))if(null==(c=this.De))c= 0;else{b=f=void 0;e=g.v(c.u.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=mXa(h,"SD")),b||(b=mXa(h,"AUDIO"));c.Ti({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.ya("drm",{dshdr:1});OXa(this.Kl);return}}else{this.videoData.FI||(this.videoData.FI=!0,this.ya("drm",{dphdr:1}),DY(this,!0));return}var l;if(null==(l=this.De)?0:MJ(l.j))return}else if(l=a.V&&d,c&&!l){OXa(this.Kl);return}d||lXa(a,"AUDIO")&&lXa(a,"SD")||(a=jXa(a),this.OO?(this.oa("drmoutputrestricted"), this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.Pg("drm.keyerror",2,void 0,"info."+a)):(this.OO=!0,this.Rd(new xL("qoe.restart",Object.assign({},{retrydrm:1},a))),kZ(this),J_a(this)))}; g.k.b6=function(){if(!this.videoData.fb&&this.mediaElement&&!this.isBackground()){var a="0";0=b.u.size){var c="ns;";b.ea||(c+="nr;");b=c+="ql."+b.B.length}else b=jXa(b.u.values().next().value),b=wL(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Ga)?void 0:d.lc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.lc())||{});this.Jc().Rd("qoe.start15s",wL(a));this.oa("loadsofttimeout")}}; g.k.Xk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,qZ(this))}; g.k.TO=function(a){var b=this;a=void 0===a?!1:a;if(!this.QE){tF("att_s","player_att")||yF("att_s",void 0,"player_att");var c=new g.GIa(this.videoData);if("c1a"in c.j&&!g.QR.isInitialized()&&(yF("att_wb",void 0,"player_att"),2===this.nK&&.01>Math.random()&&g.ZD(Error("Botguard not available after 2 attempts")),!a&&5>this.nK)){g.Rp(this.oK);this.nK++;return}if("c1b"in c.j){var d=cZa(this.Jc());d&&JIa(c).then(function(e){e&&!b.QE&&d?(yF("att_f",void 0,"player_att"),d(e),b.QE=!0):yF("att_e",void 0,"player_att")}, function(){yF("att_e",void 0,"player_att")})}else(a=g.HIa(c))?(yF("att_f",void 0,"player_att"),bZa(this.Jc(),a),this.QE=!0):yF("att_e",void 0,"player_att")}}; g.k.Ee=function(a){return this.Cd.Ee(void 0===a?!1:a)}; g.k.Qd=function(){return this.Cd.Qd()}; g.k.Kd=function(){return this.Cd?this.Cd.Kd():0}; g.k.getStreamTimeOffset=function(){return this.Cd?this.Cd.getStreamTimeOffset():0}; g.k.fq=function(){var a=0;this.Z.N("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Kd():this.getStreamTimeOffset());return a}; g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&TXa(this.Mi,null==(b=this.videoData.C)?void 0:b.videoInfos)&&kZ(this);this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)}; g.k.getPlaybackRate=function(){return this.playbackRate}; g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=EO(this);b&&0=+c),b.dis=this.mediaElement.SB("display"));(a=a?(0,g.KY)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Wa.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.W().experiments.experimentIds.join(", ")},b=this.Ib().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(EZ(this))return 3;var b;return a&&(null==(b=this.Ve)?0:XQa(b,this.getCurrentTime()))?2:g.bS(this).getPlayerType()}; g.k.Ib=function(a){return 3===this.getPresentingPlayerType()?oS(this.jd).bf:g.bS(this,a).getPlayerState()}; g.k.getAppState=function(){return this.appState}; g.k.XN=function(a){switch(a.type){case "loadedmetadata":this.MH.start();a=g.v(this.Iz);for(var b=a.next();!b.done;b=a.next())b=b.value,y0a(this,b.id,b.H9,b.G9,void 0,!1);this.Iz=[];break;case "loadstart":this.xb.Qt("gv");break;case "progress":case "timeupdate":2<=UI(a.target.Ah())&&this.xb.Qt("l2s");break;case "playing":g.pL&&this.MH.start();if(g.bL(this.Z))a=!1;else{b=g.qS(this.yb());a="none"===this.mediaElement.SB("display")||0===ye(this.mediaElement.getSize());var c=SW(this.template),d=this.Mb.getVideoData(), e=g.WK(this.Z)||g.XK(this.Z);d=dN(d);b=!c||b||e||d||this.Z.xe;a=a&&!b}a&&(this.Mb.ya("hidden",{},!0),this.getVideoData().qc||(this.getVideoData().qc=1,this.lW(),this.Mb.playVideo()))}}; g.k.onLoadProgress=function(a,b){this.Wa.Pa("onLoadProgress",b)}; g.k.q7=function(){this.Wa.oa("playbackstalledatstart")}; g.k.onVideoProgress=function(a,b){a=DZ(this,a);b=NZ(this,a.getCurrentTime(),a);this.Wa.Pa("onVideoProgress",b)}; g.k.onAutoplayBlocked=function(){this.Wa.Pa("onAutoplayBlocked")}; g.k.H6=function(){this.Wa.oa("progresssync")}; g.k.r5=function(a){if(1===this.getPresentingPlayerType()){g.JO(a,1)&&!g.BO(a.state,64)&&this.Pd().isLivePlayback&&this.Cb.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){m0a(this);return}d0a(this)}if(g.BO(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Wa.Pa("onError",ZIa(b.errorCode));this.Wa.Pa("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.jL,cpn:b.cpn});6048E5<(0,g.gB)()-this.Z.Zf&&this.Wa.Pa("onReloadRequired")}b={};if(a.state.hd()&&!g.yP(a.state)&&!tF("pbresume","ad_to_video")&&tF("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.uF(b,"ad_to_video");xF("pbresume",void 0,"ad_to_video");yLa(this.jd)}this.Wa.oa("applicationplayerstatechange",a)}}; g.k.FW=function(a){3!==this.getPresentingPlayerType()&&this.Wa.oa("presentingplayerstatechange",a)}; g.k.Ki=function(a){BZ(this,zP(a.state));g.BO(a.state,1024)&&this.Wa.isMutedByMutedAutoplay()&&(eS(this,{muted:!1,volume:this.wi.volume},!1),LZ(this,!1))}; g.k.n5=function(a,b,c){"newdata"===a&&X_a(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})}; g.k.LC=function(){this.Wa.Pa("onPlaybackAudioChange",this.Wa.getAudioTrack().Kc.name)}; g.k.aD=function(a){var b=this.Mb.getVideoData();a===b&&this.Wa.Pa("onPlaybackQualityChange",a.B.video.quality)}; g.k.onVideoDataChange=function(a,b,c){b===this.Cb&&(this.Z.dj=c.oauthToken);if(b===this.Cb&&(this.getVideoData().enableServerStitchedDai&&!this.Ve?this.Ve=new g.uW(this.Wa,this.Z,this.Cb):!this.getVideoData().enableServerStitchedDai&&this.Ve&&(this.Ve.dispose(),this.Ve=null),HN(this.getVideoData())&&"newdata"===a)){this.Qv.Gf();var d=MQa(this.Qv,1,0,this.getDuration(1),void 0,{video_id:this.getVideoData().videoId});var e=this.Qv;d.B===e&&(0===e.segments.length&&(e.j=d),e.segments.push(d));this.rf= new mRa(this.Wa,this.Qv,this.Cb)}if("newdata"===a)ET(this.jd,2),this.Wa.oa("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.Mb===this.Cb?($K(c.u,c.dY),this.Cb.getPlayerState().isError()||(d=EZ(this),this.Pd().isLoaded(),d&&this.rp(6),h0a(this),wLa(this.jd)||g0a(this))):h0a(this));if(1===b.getPlayerType()&&(this.Z.fb&&G0a(this),this.getVideoData().isLivePlayback&&!this.Z.bp&&this.Gg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(qya(c)||this.getVideoData().lA){d= this.Ix;var f=this.getVideoData();e=this.Cb;VR(d,"part2viewed",1,0x8000000000000,e);VR(d,"engagedview",Math.max(1,1E3*f.qb),0x8000000000000,e);f.isLivePlayback||(f=1E3*f.lengthSeconds,VR(d,"videoplaytime25",.25*f,f,e),VR(d,"videoplaytime50",.5*f,f,e),VR(d,"videoplaytime75",.75*f,f,e),VR(d,"videoplaytime100",f,0x8000000000000,e),VR(d,"conversionview",f,0x8000000000000,e),VR(d,"videoplaybackstart",1,f,e),VR(d,"videoplayback2s",2E3,f,e),VR(d,"videoplayback10s",1E4,f,e))}if(c.hasProgressBarBoundaries()){var h; d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.Pf())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.wH.progressEndBoundary,(null==d?void 0:d.start)!==h&&(d&&this.Ez([d]),h=new g.sE(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.Cb.addCueRange(h),this.wH.progressEndBoundary=h))}}this.Wa.oa("videodatachange",a,c,b.getPlayerType())}this.Wa.Pa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.RH(); (a=c.BD)?this.Qs.cT(a,c.clientPlaybackNonce):WRa(this.Qs)}; g.k.ZE=function(){GZ(this,null);this.Wa.Pa("onPlaylistUpdate")}; g.k.QV=function(a){var b=a.getId(),c=this.Pd(),d=!this.isInline();if(!c.inlineMetricEnabled&&!this.Z.experiments.ob("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.aZ&&g.sC(c.aZ),c.rL&&TZ(this,c.rL),c.ox)for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.v(c.ox),h=f.next();!h.done;h=f.next())TZ(this,g.Fp(h.value,e))}else"conversionview"===b?this.Cb.eA():"engagedview"===b&&c.uh&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.sC(g.Fp(c.uh,e)));c.iQ&&(e=a.getId(), e=Py(c.iQ,{label:e}),g.sC(e));switch(b){case "videoplaytime25":c.VY&&TZ(this,c.VY);c.HM&&UZ(this,c.HM);c.lQ&&g.sC(c.lQ);break;case "videoplaytime50":c.YY&&TZ(this,c.YY);c.RM&&UZ(this,c.RM);c.mQ&&g.sC(c.mQ);break;case "videoplaytime75":c.ZY&&TZ(this,c.ZY);c.YM&&UZ(this,c.YM);c.nQ&&g.sC(c.nQ);break;case "videoplaytime100":c.OY&&TZ(this,c.OY),c.GM&&UZ(this,c.GM),c.jQ&&g.sC(c.jQ)}(e=this.getVideoData().lA)&&t0a(this,e,a.getId())&&t0a(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l, m=null==(l=c.qx)?void 0:l.j;m&&TZ(this,m);break;case "videoplayback2s":(l=null==(m=c.qx)?void 0:m.B)&&TZ(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.qx)?void 0:n.u)&&TZ(this,l)}this.Cb.removeCueRange(a)}; g.k.G6=function(a){delete this.wH[a.getId()];this.Cb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.kd)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.kd)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.v(q),c=b.next();!c.done;c=b.next())if(c=c.value, e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.Q(c,g.YM),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.Q(a,g.YM))&&this.Wa.Pa("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}; g.k.rp=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(BZ(this,-1),BZ(this,5)),this.appState=a,this.Wa.oa("appstatechange",a))}; g.k.Gg=function(a,b,c,d,e){this.Cb.Pg(a,b,c,d,e)}; g.k.er=function(a,b){this.Cb.handleError(new xL(a,b))}; g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.bS(this,a);if(!c)return!1;a=CZ(this,c);c=DZ(this,c);return a!==c?a.isAtLiveHead(NZ(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; g.k.As=function(){var a=g.bS(this);return a?CZ(this,a).As():0}; g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.bS(this,d))2===this.appState&&JZ(this),this.tf(d)?MZ(this)?this.Ve.seekTo(a,b,c):this.rd.seekTo(a,b,c):d.seekTo(a,{tY:!b,uY:c,ue:"application"})}; g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; g.k.oz=function(){this.Wa.Pa("SEEK_COMPLETE")}; g.k.f7=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.BO(a.getPlayerState(),512)||JZ(this):this.Wa.Pa("SEEK_TO",b)}; g.k.onAirPlayActiveChange=function(){this.Wa.oa("airplayactivechange");this.Z.N("html5_external_airplay_events")&&this.Wa.Pa("onAirPlayActiveChange",this.Wa.Ch())}; g.k.onAirPlayAvailabilityChange=function(){this.Wa.oa("airplayavailabilitychange");this.Z.N("html5_external_airplay_events")&&this.Wa.Pa("onAirPlayAvailabilityChange",this.Wa.iC())}; g.k.showAirplayPicker=function(){var a;null==(a=this.Mb)||a.It()}; g.k.tN=function(){this.Wa.oa("beginseeking")}; g.k.xN=function(){this.Wa.oa("endseeking")}; g.k.getStoryboardFormat=function(a){return(a=g.bS(this,a))?CZ(this,a).getVideoData().getStoryboardFormat():null}; g.k.Gj=function(a){return(a=g.bS(this,a))?CZ(this,a).getVideoData().Gj():null}; g.k.tf=function(a){a=a||this.Mb;var b=!1;if(a){a=a.getVideoData();if(MZ(this))a=a===this.Ve.va.getVideoData();else a:if(b=this.rd,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.v(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Oc===c.value.Oc){a=!0;break a}a=!1}b=a}return b}; g.k.Hx=function(a,b,c,d,e,f,h){var l=MZ(this),m;null==(m=g.bS(this))||m.ya("appattl",{sstm:this.Ve?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?UQa(this.Ve,a,b,c,d,e,f,h):xRa(this.rd,a,c,d,e,f)}; g.k.fC=function(a,b,c,d,e,f,h){MZ(this)&&UQa(this.Ve,a,b,c,d,e,f,h);return""}; g.k.wt=function(a){var b;null==(b=this.Ve)||b.wt(a)}; g.k.Gu=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;MZ(this)||GRa(this.rd,a,b)}; g.k.dA=function(a,b,c){if(MZ(this)){var d=this.Ve,e=d.Qc.get(a);e?(void 0===c&&(c=e.Ld),e.durationMs=b,e.Ld=c):d.xC("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.rd;e=null;for(var f=g.v(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Oc===a){e=h;break}e?(void 0===c&&(c=e.Ld),FRa(d,e,b,c)):GW(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}}; g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.tf();a=new g.JM(this.Z,a);d&&(a.Oc=d);u0a(this,a,b,c)}; g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;if(a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e))if(this.W().supportsGaplessShorts())if(a.fm){var f;null==(f=g.bS(this))||f.ya("sgap",{nq:"autoplay"})}else if(this.getVideoData().Ma){var h;null==(h=g.bS(this))||h.ya("sgap",{pcpn:a.clientPlaybackNonce});f=this.PY;f.j!==a&&(f.j=a,f.u=1,a.isLoaded()?f.B():f.j.subscribe("dataloaded",f.B,f))}else{var l;null==(l=g.bS(this))||l.ya("sgap",{nq:"client"})}else{var m; null==(m=g.bS(this))||m.ya("sgap",{nq:"env"})}}; g.k.qF=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.bS(this);f&&(CZ(this,f).DY=!0);BQa(this.Ar,a,b,c,d).then(function(){e.Wa.Pa("onQueuedVideoLoaded")},function(){})}; g.k.uv=function(){return this.Ar.uv()}; g.k.clearQueue=function(){this.Ar.clearQueue()}; g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,h=new g.JM(this.Z,a);g.oL(this.Z)&&!h.fm&&qT(this.xb);var l,m=null!=(l=h.Ja)?l:"";this.xb.timerName=m;this.xb.oi("pl_i");this.N("web_player_early_cpn")&&h.clientPlaybackNonce&&this.xb.info("cpn",h.clientPlaybackNonce);if(this.W().supportsGaplessShorts()){l=EQa(this.Ar,h,b);if(null==l){BZ(this,-1);h=this.Ar;h.app.setLoopRange(null);h.app.getVideoData().II=!0;var n;null==(n=h.j)||ZYa(n.Jc());h.app.seekTo(DQa(h));if(!h.app.Ib(b).hd()){var p; null==(p=g.bS(h.app))||p.playVideo(!0)}h.J();return!0}this.Ar.clearQueue();var q;null==(q=g.bS(this))||q.ya("sgap",{f:l})}if(e){for(;h.Xl.length&&h.Xl[0].isExpired();)h.Xl.shift();n=h.Xl.length-1;f=0Math.random()&&g.OA("autoplayTriggered",{intentional:this.PU});this.mV=!1;yLa(this.jd);this.N("web_player_defer_ad")&&g0a(this);this.Wa.Pa("onPlaybackStartExternal");(this.Z.N("mweb_client_log_screen_associated"),this.Z.N("kids_web_client_log_screen_associated")&&cL(this.Z))||a();var c={};this.getVideoData().K&&(c.cttAuthInfo={token:this.getVideoData().K, videoId:this.getVideoData().videoId});vF("player_att",c);if(this.getVideoData().botguardData||this.N("fetch_att_independently"))g.lL(this.Z)||"MWEB"===g.$J(this.Z)?g.DA(g.FA(),function(){KZ(b)}):KZ(this); this.RH()}; g.k.DN=function(){this.Wa.oa("internalAbandon");OZ(this)}; g.k.onApiChange=function(){this.Z.J&&this.Mb?this.Wa.Pa("onApiChange",this.Mb.getPlayerType()):this.Wa.Pa("onApiChange")}; g.k.i6=function(){var a=this.mediaElement;a={volume:g.oe(Math.floor(100*a.getVolume()),0,100),muted:a.NF()};a.muted||LZ(this,!1);this.wi=g.hd(a);this.Wa.Pa("onVolumeChange",a)}; g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.mN)&&(this.mN=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.mN}),this.Wa.Pa("onMutedAutoplayStarts"))}; g.k.onFullscreenChange=function(){var a=C0a(this);this.jm(a?1:0);E0a(this,!!a)}; g.k.jm=function(a){var b=!!a,c=!!this.wy()!==b;this.visibility.jm(a);this.template.jm(b);this.N("html5_media_fullscreen")&&!b&&this.mediaElement&&C0a(this)===this.mediaElement.wb()&&this.mediaElement.oB();this.template.resize();c&&this.xb.tick("fsc");c&&(this.Wa.oa("fullscreentoggled",b),a=this.Pd(),b={fullscreen:b,videoId:a.NI||a.videoId,time:this.getCurrentTime()},this.Wa.getPlaylistId()&&(b.listId=this.Wa.getPlaylistId()),this.Wa.Pa("onFullscreenChange",b))}; g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.wy=function(){return this.visibility.wy()}; g.k.T6=function(){this.Mb&&(0!==this.wy()&&1!==this.wy()||this.jm(C0a(this)?1:0),this.Z.qm&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.oB())}; g.k.a6=function(a){3!==this.getPresentingPlayerType()&&this.Wa.oa("liveviewshift",a)}; g.k.playVideo=function(a){if(a=g.bS(this,a))2===this.appState?(g.oL(this.Z)&&qT(this.xb),JZ(this)):g.BO(a.getPlayerState(),2)?this.seekTo(0):a.playVideo()}; g.k.pauseVideo=function(a){(a=g.bS(this,a))&&a.pauseVideo()}; g.k.stopVideo=function(){var a=this.Cb.getVideoData(),b=new g.JM(this.Z,{video_id:a.NI||a.videoId,oauth_token:a.oauthToken});b.ea=g.hd(a.ea);this.cancelPlayback(6);RZ(this,b,1)}; g.k.cancelPlayback=function(a,b){var c=g.bS(this,b);c&&(2===b&&1===c.getPlayerType()&&Eya(this.Pd())?c.ya("canclpb",{r:"no_adpb_ssdai"}):(this.Z.pe()&&c.ya("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Mb&&ET(this.jd,a),1===b&&(c.stopVideo(),OZ(this)),c.Gn(void 0,6!==a),AZ(this,"cuerangesremoved",c.Nl()),c.Xi.reset(),this.Ar&&c.isGapless()&&(c.pj(!0),c.setMediaElement(this.mediaElement)))))}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.bS(this,b))&&this.Z.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.Fj=function(a){var b=g.bS(this);return b&&this.Z.enabledEngageTypes.has(a.toString())?b.Fj(a):null}; g.k.updatePlaylist=function(){jL(this.Z)?HZ(this):g.OK(this.Z)&&i0a(this);this.Wa.Pa("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.LX=a;this.FM=b;this.Wa.oa("sizestylechange",a,b);this.template.resize()}; g.k.vv=function(){return this.FM}; g.k.Rf=function(){return this.visibility.Rf()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.Py=function(){return this.visibility.Py()}; g.k.Ny=function(){return this.visibility.Ny()}; g.k.CM=function(){return this.LX}; g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return oS(this.jd).getAdState();if(!this.tf()){var a=FT(this.yb());if(a)return a.getAdState()}return-1}; g.k.S6=function(a){var b=this.template.getVideoContentRect();Ym(this.fV,b)||(this.fV=b,this.Mb&&tZ(this.Mb),this.Cb&&this.Cb!==this.Mb&&tZ(this.Cb),1===this.wy()&&this.cD&&E0a(this,!0));this.MM&&g.xe(this.MM,a)||(this.Wa.oa("appresize",a),this.MM=a)}; g.k.Dh=function(){return this.Wa.Dh()}; g.k.l7=function(){2===this.getPresentingPlayerType()&&this.rd.isManifestless()?ERa(this.rd):(this.Ve&&(aRa(this.Ve),OZ(this)),c0a(this,"signature"))}; g.k.lW=function(){this.pj();zZ(this)}; g.k.o6=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.Z.experiments.ob("html5_use_network_error_code_enums")?401:"401")&&this.Wa.Pa("onPlayerRequestAuthFailed")}; g.k.OC=function(){this.Wa.Pa("CONNECTION_ISSUE")}; g.k.RC=function(a){this.Wa.oa("heartbeatparams",a)}; g.k.JH=function(a){this.Wa.Pa("onAutonavChangeRequest",1!==a)}; g.k.Fe=function(){return this.mediaElement}; g.k.setBlackout=function(a){this.Z.xe=a;this.Mb&&(this.Mb.Ap(),this.Z.fb&&G0a(this),this.Z.N("html5_report_embargo_in_qoe_ping")&&this.Mb.Fn(a))}; g.k.q6=function(){var a=g.bS(this);if(a){var b=!this.Wa.nC();(a.uU=b)||a.Av.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.C&&c.C.stop()}a.Ga&&(b?a.Ga.resume():wZ(a,!0));g.BO(a.playerState,2)||b?g.BO(a.playerState,512)&&b&&a.wc(uP(a.playerState,512)):a.wc(tP(a.playerState,512));a=a.Jc();a.qoe&&(a=a.qoe,g.HY(a,g.pW(a.provider),"stream",[b?"A":"I"]))}}; g.k.onLoadedMetadata=function(){this.Wa.Pa("onLoadedMetadata")}; g.k.onDrmOutputRestricted=function(){this.Wa.Pa("onDrmOutputRestricted")}; g.k.mK=function(){tcb=this.N("html5_use_async_stopVideo");ucb=this.N("html5_pause_for_async_stopVideo");scb=this.N("html5_not_reset_media_source");Rza=this.N("html5_rebase_video_to_ad_timeline");dJ=this.N("html5_not_reset_media_source");Obb=this.N("html5_not_reset_media_source");YI=this.N("html5_retain_source_buffer_appends_for_debugging");Nbb=this.N("html5_source_buffer_wrapper_reorder");this.N("html5_mediastream_applies_timestamp_offset")&&(wX=!0);var a=g.PJ(this.Z.experiments,"html5_cobalt_override_quic"); a&&fW("QUIC",+(0this.u.length)throw new WC("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=WZ(this.Fb().Ca,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.v(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),r1a(this.B,this.slot,b.Fb()),s1a(this.B,this.slot,b.Fb());if(this.OD())for(this.Va.get().addListener(this),a=g.v(this.u),b=a.next();!b.done;b=a.next())(b=WZ(b.value.Fb().Ca,"metadata_type_player_vars"))&& this.Ce.get().addPlayerResponseForAssociation(b)}; g.k.Dt=function(){var a=WZ(this.Fb().Ca,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.v(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,aP(this.B,this.slot,b.Fb()),b.release()}; g.k.PN=function(){}; g.k.Ov=function(a,b){var c=this.u[this.j];b.layoutId!==W1(c,a,b)?bE("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Ov()}; g.k.Zv=function(a,b){var c=this.u[this.j];b.layoutId!==W1(c,a,b)?bE("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Zv()}; g.k.YC=function(a,b){var c=this.u[this.j];b.layoutId!==W1(c,a,b)?bE("onSkipRequested for a PlayerBytes layout that is not currently active",c.fd(),c.Fb(),{requestingSlot:a,requestingLayout:b}):t5a(this,c.fd(),c.Fb(),"skipped")}; g.k.Kt=function(){-1===this.j&&s5a(this,this.j+1)}; g.k.s7=function(a,b){f0(this.B,a,b)}; g.k.Mt=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.Qg(a.Fb(),b),this.D=function(){c.callback.Bd(c.slot,c.layout,b)}):this.callback.Bd(this.slot,this.layout,b)}; g.k.Vc=function(a,b){var c=this.u[this.j];c&&c.Vc(a,b)}; g.k.Bd=function(a,b,c){V1.prototype.Bd.call(this,a,b,c);var d=this.u[this.j];d&&d.Bd(a,b,c)}; g.k.wV=function(){var a=this.u[this.j];a&&a.YF()}; g.k.Mj=function(a){var b=this.u[this.j];b&&b.Mj(a)}; g.k.sW=function(a){var b=this.u[this.j];b&&b.Ok(a)}; g.k.og=function(a,b,c){-1===this.j&&(this.callback.Vc(this.slot,this.layout),this.j++);var d=this.u[this.j];d?d.DC(a,b,c):bE("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Fb().layoutId})}; g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)}; g.k.Wh=function(a){var b=this.u[this.j];b&&b.Wh(a)}; g.k.Nk=function(a){var b=this.u[this.j];b&&b.Nk(a)}; g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()}; g.k.u7=function(a,b,c){t5a(this,a,b,c)}; g.k.t7=function(a,b){t5a(this,a,b,"error")};g.x($1,g.D);g.k=$1.prototype;g.k.fd=function(){return this.slot}; g.k.Fb=function(){return this.layout}; g.k.init=function(){var a=WZ(this.layout.Ca,"metadata_type_video_length_seconds"),b=WZ(this.layout.Ca,"metadata_type_active_view_traffic_type");WN(this.layout.Ub)&&x4a(this.Rb.get(),this.layout.layoutId,b,a,this);B4a(this.Qa.get(),this);this.Ps()}; g.k.release=function(){WN(this.layout.Ub)&&y4a(this.Rb.get(),this.layout.layoutId);C4a(this.Qa.get(),this);this.Dt()}; g.k.Ov=function(){}; g.k.Zv=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.og(this.slot,a,new Y_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Gc="rendering_start_requested",Iya(this.dg.get(),1)?(this.mD(-1),this.Kt(a),this.Mx(!1)):this.DC("ui_unstable",new Y_("Failed to render media layout because ad ui unstable.", void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_UI_UNSTABLE"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"))}; g.k.Vc=function(a,b){if(b.layoutId===this.layout.layoutId){this.Gc="rendering";this.pC=this.Ia.get().isMuted()||0===this.Ia.get().getVolume();this.td("impression");this.td("start");if(this.Ia.get().isMuted()){this.uw("mute");var c;a=(null==(c=Z1(this))?void 0:c.muteCommands)||[];this.Sb.get().Jg(a,this.layout.layoutId)}if(this.Ia.get().isFullscreen()){this.ph("fullscreen");var d;c=(null==(d=Z1(this))?void 0:d.fullscreenCommands)||[];this.Sb.get().Jg(c,this.layout.layoutId)}this.Nc.get().UO();this.mD(1); this.hW();var e;d=(null==(e=Z1(this))?void 0:e.impressionCommands)||[];this.Sb.get().Jg(d,this.layout.layoutId)}}; g.k.DC=function(a,b,c){this.pu={qI:3,dE:"load_timeout"===a?402:400,errorMessage:b.message};this.td("error");var d;a=(null==(d=Z1(this))?void 0:d.errorCommands)||[];this.Sb.get().Jg(a,this.layout.layoutId);this.callback.og(this.slot,this.layout,b,c)}; g.k.YF=function(){this.LK()}; g.k.lU=function(){if("rendering"===this.Gc){this.uw("pause");var a,b=(null==(a=Z1(this))?void 0:a.pauseCommands)||[];this.Sb.get().Jg(b,this.layout.layoutId);this.mD(2)}}; g.k.mU=function(){if("rendering"===this.Gc){this.uw("resume");var a,b=(null==(a=Z1(this))?void 0:a.resumeCommands)||[];this.Sb.get().Jg(b,this.layout.layoutId)}}; g.k.Qg=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.og(this.slot,a,new Y_("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED");else if("rendering_stop_requested"!==this.Gc){this.Gc="rendering_stop_requested";this.layoutExitReason=b;switch(b){case "normal":this.td("complete");break;case "skipped":this.td("skip"); break;case "abandoned":M1(this.bb,"impression")&&this.td("abandon")}this.Mt(a,b)}}; g.k.Bd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Gc="not_rendering",this.layoutExitReason=void 0,(a="normal"!==c||this.position+1===this.lY)&&this.Mx(a),this.iW(c),this.mD(0),c){case "abandoned":if(M1(this.bb,"impression")){var d,e=(null==(d=Z1(this))?void 0:d.abandonCommands)||[];this.Sb.get().Jg(e,this.layout.layoutId)}break;case "normal":d=(null==(e=Z1(this))?void 0:e.completeCommands)||[];this.Sb.get().Jg(d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=Z1(this))? void 0:f.skipCommands)||[];this.Sb.get().Jg(d,this.layout.layoutId)}}; g.k.zy=function(){return this.layout.layoutId}; g.k.tL=function(){return this.pu}; g.k.Ok=function(a){if("not_rendering"!==this.Gc){this.uX||(a=new g.HO(a.state,new g.rP),this.uX=!0);var b=2===this.Ia.get().getPresentingPlayerType();"rendering_start_requested"===this.Gc?b&&u5a(a)&&this.WS():b?g.JO(a,2)?this.Hi():(u5a(a)?this.mD(1):g.JO(a,4)&&!g.JO(a,2)&&this.lU(),0>IO(a,4)&&!(0>IO(a,2))&&this.mU()):this.YF()}}; g.k.JC=function(){if("rendering"===this.Gc){this.bb.td("active_view_measurable");var a,b=(null==(a=Z1(this))?void 0:a.activeViewMeasurableCommands)||[];this.Sb.get().Jg(b,this.layout.layoutId)}}; g.k.IC=function(){if("rendering"===this.Gc){this.bb.td("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=Z1(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Sb.get().Jg(b,this.layout.layoutId)}}; g.k.KC=function(){if("rendering"===this.Gc){this.bb.td("active_view_viewable");var a,b=(null==(a=Z1(this))?void 0:a.activeViewViewableCommands)||[];this.Sb.get().Jg(b,this.layout.layoutId)}}; g.k.GC=function(){if("rendering"===this.Gc){this.bb.td("audio_audible");var a,b=(null==(a=Z1(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Sb.get().Jg(b,this.layout.layoutId)}}; g.k.HC=function(){if("rendering"===this.Gc){this.bb.td("audio_measurable");var a,b=(null==(a=Z1(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Sb.get().Jg(b,this.layout.layoutId)}}; g.k.Mx=function(a){this.Nc.get().Mx(WZ(this.layout.Ca,"metadata_type_ad_placement_config").kind,a,this.position,this.lY,!1)}; g.k.onFullscreenToggled=function(a){if("rendering"===this.Gc)if(a){this.ph("fullscreen");var b,c=(null==(b=Z1(this))?void 0:b.fullscreenCommands)||[];this.Sb.get().Jg(c,this.layout.layoutId)}else this.ph("end_fullscreen"),b=(null==(c=Z1(this))?void 0:c.endFullscreenCommands)||[],this.Sb.get().Jg(b,this.layout.layoutId)}; g.k.onVolumeChange=function(){if("rendering"===this.Gc)if(this.Ia.get().isMuted()){this.uw("mute");var a,b=(null==(a=Z1(this))?void 0:a.muteCommands)||[];this.Sb.get().Jg(b,this.layout.layoutId)}else this.uw("unmute"),a=(null==(b=Z1(this))?void 0:b.unmuteCommands)||[],this.Sb.get().Jg(a,this.layout.layoutId)}; g.k.Wh=function(){}; g.k.Nk=function(){}; g.k.Yl=function(){}; g.k.ph=function(a){this.bb.ph(a,!this.pC)}; g.k.td=function(a){this.bb.td(a,!this.pC)}; g.k.uw=function(a){this.bb.uw(a,!this.pC)};g.x(z5a,$1);g.k=z5a.prototype;g.k.Ps=function(){}; g.k.Dt=function(){var a=this.Qa.get();a.eI===this&&(a.eI=null);this.timer.stop()}; g.k.Kt=function(){y5a(this);M4a(this.Ia.get());this.Qa.get().eI=this;tF("pbp")||tF("pbs")||yF("pbp");tF("pbp","watch")||tF("pbs","watch")||yF("pbp",void 0,"watch");this.WS()}; g.k.hW=function(){C5a(this)}; g.k.Hi=function(){}; g.k.Ov=function(){this.timer.stop();$1.prototype.lU.call(this)}; g.k.Zv=function(){C5a(this);$1.prototype.mU.call(this)}; g.k.yy=function(){return WZ(this.Fb().Ca,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.Mt=function(){this.timer.stop()}; g.k.zc=function(){var a=Date.now(),b=a-this.PM;this.PM=a;this.Oi+=b;this.Oi>=this.yy()?(this.Oi=this.yy(),a2(this,this.Oi/1E3,!0),B5a(this,this.Oi),this.LK()):(a2(this,this.Oi/1E3),B5a(this,this.Oi))}; g.k.iW=function(){}; g.k.Mj=function(){};g.x(b2,$1);g.k=b2.prototype;g.k.Ps=function(){WZ(this.Fb().Ca,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=WZ(this.Fb().Ca,"metadata_type_shrunken_player_bytes_config")}; g.k.Dt=function(){WZ(this.Fb().Ca,"metadata_type_player_bytes_callback_ref").current=null;this.Iu&&this.vc.get().removeCueRange(this.Iu);this.Iu=void 0;this.GG.dispose();this.ez&&this.ez.dispose()}; g.k.Kt=function(a){var b=N0(this.Ea.get()),c=O0(this.Ea.get());if(b&&c){c=WZ(a.Ca,"metadata_type_preload_player_vars");var d=g.PJ(this.Ea.get().G.W().experiments,"html5_preload_wait_time_secs");c&&this.ez&&this.ez.start(1E3*d)}c=WZ(a.Ca,"metadata_type_ad_video_id");d=WZ(a.Ca,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.jg.get().G.W().Ja.add(c,{ZA:d});(c=WZ(a.Ca,"metadata_type_sodar_extension_data"))&&P4a(this.qf.get(),c);N4a(this.Ia.get(),!1);y5a(this);b?(c=this.Ce.get(),a=WZ(a.Ca, "metadata_type_player_vars"),c.G.loadVideoByPlayerVars(a,!1,2)):(c=this.Ce.get(),a=WZ(a.Ca,"metadata_type_player_vars"),c.G.cueVideoByPlayerVars(a,2));this.GG.start();b||this.Ce.get().G.playVideo(2)}; g.k.hW=function(){this.GG.stop();this.Iu="adcompletioncuerange:"+this.Fb().layoutId;this.vc.get().addCueRange(this.Iu,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Va.get().fg(2))?void 0:a.clientPlaybackNonce)||"")||bE("Media layout confirmed started, but ad CPN not set.");this.Fd.get().Pa("onAdStart",this.adCpn)}; g.k.Hi=function(){this.LK()}; g.k.yy=function(){var a;return null==(a=this.Va.get().fg(2))?void 0:a.W7}; g.k.HH=function(){this.bb.ph("clickthrough")}; g.k.Mt=function(){this.GG.stop();this.ez&&this.ez.stop();N4a(this.Ia.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ia.get().Qz(!1)}; g.k.onCueRangeEnter=function(a){a!==this.Iu?bE("Received CueRangeEnter signal for unknown layout.",this.fd(),this.Fb(),{cueRangeId:a}):(this.vc.get().removeCueRange(this.Iu),this.Iu=void 0,a=WZ(this.Fb().Ca,"metadata_type_video_length_seconds"),a2(this,a,!0),this.td("complete"))}; g.k.iW=function(a){"abandoned"!==a&&this.Fd.get().Pa("onAdComplete");this.Fd.get().Pa("onAdEnd",this.adCpn)}; g.k.onCueRangeExit=function(){}; g.k.Mj=function(a){"rendering"===this.Gc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ia.get().Qz(!0),a2(this,a))};g.x(E5a,V1);g.k=E5a.prototype;g.k.fd=function(){return this.j.fd()}; g.k.Fb=function(){return this.j.Fb()}; g.k.Ps=function(){this.j.init();if(this.OD()){var a=WZ(this.j.Fb().Ca,"metadata_type_player_vars");a&&this.Ce.get().addPlayerResponseForAssociation(a)}}; g.k.Dt=function(){this.j.release()}; g.k.Ov=function(){this.j.Ov()}; g.k.Zv=function(){this.j.Zv()}; g.k.YC=function(a,b){bE("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.fd(),this.Fb(),{requestingSlot:a,requestingLayout:b})}; g.k.Kt=function(a){this.j.startRendering(a)}; g.k.Mt=function(a,b){this.j.Qg(a,b)}; g.k.Vc=function(a,b){this.j.Vc(a,b)}; g.k.Bd=function(a,b,c){V1.prototype.Bd.call(this,a,b,c);this.j.Bd(a,b,c);b.layoutId===this.Fb().layoutId&&this.Nc.get().Uz()}; g.k.wV=function(){this.j.YF()}; g.k.Mj=function(a){this.j.Mj(a)}; g.k.sW=function(a){this.j.Ok(a)}; g.k.og=function(a,b,c){this.j.DC(a,b,c)}; g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)}; g.k.Wh=function(a){this.j.Wh(a)}; g.k.Nk=function(a){this.j.Nk(a)}; g.k.onVolumeChange=function(){this.j.onVolumeChange()};c2.prototype.zf=function(a,b,c,d){if(a=G5a(a,b,c,d,this.df,this.j,this.Qa,this.Rb,this.qf,this.Ce,this.Va,this.Ia,this.vc,this.Nc,this.Fd,this.dg,this.Sb,this.jg,this.Ea))return a;throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XZ(d.Ca)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.x(d2,g.D);g.k=d2.prototype;g.k.jW=function(a){if(!this.j){var b;null==(b=this.vf)||b.get().wt(a.identifier);return!1}H5a(this,this.j,a);return!0}; g.k.bW=function(){}; g.k.Nj=function(a){this.j&&this.j.contentCpn!==a&&(bE("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)}; g.k.xn=function(a){this.j&&this.j.contentCpn!==a&&bE("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null}; g.k.ra=function(){g.D.prototype.ra.call(this);this.j=null};g.x(e2,g.D);g.k=e2.prototype;g.k.Vc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&RO(b,this.B)){var d=this.Va.get().fg(2),e=this.j(b,d||void 0,this.Ea.get().G.W().experiments.ob("enable_post_ad_perception_survey_in_tvhtml5"));e?SC(this.jc.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[v2a(c.Nb.get(),e.contentCpn,e.xp,function(h){return c.u(h.slotId,"core",e,$Z(c.Ob.get(),h))},e.inPlayerSlotId)]; e.instreamAdPlayerUnderlayRenderer&&w2a(c.Ea.get())&&f.push(I5a(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):bE("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.k.Li=function(){}; g.k.Rj=function(){}; g.k.Ng=function(){}; g.k.Qj=function(){}; g.k.Og=function(){}; g.k.Pk=function(){}; g.k.Qk=function(){}; g.k.Oj=function(){}; g.k.Vh=function(){}; g.k.ij=function(){}; g.k.Bd=function(){};var M2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=M5a.prototype;g.k.init=function(){}; g.k.fd=function(){return this.slot}; g.k.rF=function(){this.callback.Ng(this.slot)}; g.k.tF=function(){this.callback.Og(this.slot)}; g.k.release=function(){};g2.prototype.zf=function(a,b){return new M5a(a,b)};g.k=N5a.prototype;g.k.init=function(){}; g.k.fd=function(){return this.slot}; g.k.rF=function(){A1(this.Ia.get(),"ad-showing");this.callback.Ng(this.slot)}; g.k.tF=function(){this.callback.Og(this.slot);B1(this.Ia.get(),"ad-showing")}; g.k.release=function(){};g.k=O5a.prototype;g.k.init=function(){}; g.k.fd=function(){return this.slot}; g.k.rF=function(){A1(this.Ia.get(),"ad-showing");A1(this.Ia.get(),"ad-interrupting");this.u=this.Ia.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Ng(this.slot)}; g.k.tF=function(){B1(this.Ia.get(),"ad-showing");B1(this.Ia.get(),"ad-interrupting");var a=this.u?Infinity:this.Ia.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ia.get().G.seekTo(a,void 0,void 0,1);this.callback.Og(this.slot)}; g.k.release=function(){};g.k=P5a.prototype;g.k.init=function(){}; g.k.fd=function(){return this.slot}; g.k.rF=function(){A1(this.Ia.get(),"ad-showing");A1(this.Ia.get(),"ad-interrupting");this.callback.Ng(this.slot)}; g.k.tF=function(){nQ(this.Ia.get());B1(this.Ia.get(),"ad-showing");B1(this.Ia.get(),"ad-interrupting");this.callback.Og(this.slot)}; g.k.release=function(){nQ(this.Ia.get())};h2.prototype.zf=function(a,b){if(UC(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new N5a(a,b,this.Ia);if(b.slotEntryTrigger instanceof Y0&&UC(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new O5a(a,b,this.Ia);if(UC(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new P5a(a,b,this.Ia);throw new WC("Unsupported slot with type "+b.slotType+" and client metadata: "+(XZ(b.Ca)+" in PlayerBytesSlotAdapterFactory."));};g.x(j2,g.D);j2.prototype.j=function(a){for(var b=[],c=g.v(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof F0&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?g0(this.UI(),b):bE("Mute requested but no registered triggers can be activated.")};g.x(k2,j2);g.k=k2.prototype;g.k.kh=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.v(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof F0&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&g0(this.UI(),a)}else U0(this.Ea.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&Q5a(this,b):"survey-submit"===a?Q5a(this,b):"survey-single-select-answer-button"===a&&Q5a(this,b)}; g.k.bM=function(a){j2.prototype.j.call(this,a)}; g.k.Vk=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new WC("Tried to register duplicate trigger for slot.");if(!(b instanceof G0||b instanceof F0))throw new WC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Wb.set(b.triggerId,new i2(a,b,c,d))}; g.k.ol=function(a){this.Wb.delete(a.triggerId)}; g.k.ZL=function(){}; g.k.YL=function(){}; g.k.ZF=function(){};g.x(l2,g.D);g.k=l2.prototype; g.k.Vk=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new WC("Tried to register duplicate trigger for slot.");if(!(b instanceof A0||b instanceof B0||b instanceof e1||b instanceof f1||b instanceof w0||b instanceof g1||b instanceof Y3a||b instanceof y0||b instanceof z0||b instanceof D0||b instanceof X3a||b instanceof c1))throw new WC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new i2(a,b,c,d);this.Wb.set(b.triggerId,a);b instanceof w0&&this.D.has(b.triggeringSlotId)&&g0(this.j(),[a]);b instanceof A0&&this.B.has(b.triggeringSlotId)&&g0(this.j(),[a]);b instanceof y0&&this.u.has(b.triggeringLayoutId)&&g0(this.j(),[a])}; g.k.ol=function(a){this.Wb.delete(a.triggerId)}; g.k.Li=function(a){this.D.add(a.slotId);for(var b=[],c=g.v(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof w0&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0IO(a,16)){a=g.v(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; g.k.Li=function(){}; g.k.Rj=function(){}; g.k.Qj=function(){}; g.k.Ng=function(){}; g.k.Og=function(){}; g.k.Pk=function(){}; g.k.Qk=function(){}; g.k.Oj=function(){}; g.k.Vh=function(){}; g.k.Vc=function(a,b){a=g.v(this.Wb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.Du.trigger;c=c.Lu;if(S5a(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ia.get().getCurrentTimeSec(1,!1);d instanceof a1?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.vc.get().addCueRange(c,d,e,!1,this)}}}; g.k.Bd=function(a,b,c){var d=this;a={};for(var e=g.v(this.Wb.values()),f=e.next();!f.done;a={qA:a.qA,Ep:a.Ep},f=e.next())f=f.value,a.Ep=f.Du.trigger,a.qA=f.Lu,S5a(a.Ep)&&a.Ep.layoutId===b.layoutId?r4a(this.vc.get(),a.qA):a.Ep instanceof d1&&a.Ep.layoutId===b.layoutId&&"user_cancelled"===c&&(this.vc.get().removeCueRange(a.qA),g.DA(g.FA(),function(h){return function(){d.vc.get().addCueRange(h.qA,h.Ep.j.start,h.Ep.j.end,h.Ep.visible,d)}}(a)))}; g.k.ij=function(){}; g.k.Mj=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Wh=function(){}; g.k.Nk=function(){}; g.k.onVolumeChange=function(){}; g.k.Yl=function(){};g.x(o2,g.D);g.k=o2.prototype;g.k.Vk=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new WC("Tried to register duplicate trigger for slot.");if(!(b instanceof E0))throw new WC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new i2(a,b,c,d))}; g.k.ol=function(a){this.Wb.delete(a.triggerId)}; g.k.eL=function(){}; g.k.oF=function(){}; g.k.Vc=function(){}; g.k.Bd=function(){}; g.k.Li=function(){}; g.k.Rj=function(){}; g.k.Qj=function(){}; g.k.Ng=function(){}; g.k.Og=function(){}; g.k.Pk=function(){}; g.k.Qk=function(){}; g.k.Oj=function(){}; g.k.Vh=function(){}; g.k.ij=function(){};g.x(p2,g.D);g.k=p2.prototype;g.k.ij=function(a,b){for(var c=[],d=g.v(this.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&g0(this.j(),c)}; g.k.Vk=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new WC("Tried to register duplicate trigger for slot.");if(!(b instanceof Z3a))throw new WC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new i2(a,b,c,d))}; g.k.ol=function(a){this.Wb.delete(a.triggerId)}; g.k.Li=function(){}; g.k.Rj=function(){}; g.k.Qj=function(){}; g.k.Ng=function(){}; g.k.Og=function(){}; g.k.Pk=function(){}; g.k.Qk=function(){}; g.k.Oj=function(){}; g.k.Vh=function(){}; g.k.Vc=function(){}; g.k.Bd=function(){};g.x(q2,g.D);q2.prototype.ra=function(){this.pn.isDisposed()||this.pn.get().removeListener(this);g.D.prototype.ra.call(this)};g.x(r2,g.D);r2.prototype.ra=function(){this.lf.isDisposed()||this.lf.get().removeListener(this);g.D.prototype.ra.call(this)};s2.prototype.fetch=function(a){var b=a.fT;return this.nu.fetch(a.JY,{iF:void 0===a.iF?void 0:a.iF,Le:b}).then(function(c){return V5a(c,b)})};g.x(t2,g.D);g.k=t2.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.aI=function(a){W5a(this,a,1)}; g.k.onAdUxClicked=function(a,b){u2(this,function(c){c.kh(a,b)})}; g.k.rN=function(a){u2(this,function(b){b.ZL(a)})}; g.k.qN=function(a){u2(this,function(b){b.YL(a)})}; g.k.h5=function(a){u2(this,function(b){b.ZF(a)})};g.x(v2,g.D);g.k=v2.prototype; g.k.Nj=function(){this.D=new dP(this,u4a(this.Ea.get()));this.B=new eP;var a=this.G.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.G.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.wN,this),b.subscribe("cuepointupdated",this.wN,this),this.j=b)}this.jI.length=0;var d;b=(null==(d=a.j)?void 0:Fua(d,0))||[];d=g.v(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.ut(b)&&bE("Unexpected a GetAdBreak to go out without player waiting", void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})}; g.k.xn=function(){}; g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.MN=function(a){this.jI.push(a);for(var b=!1,c=g.v(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.jW(a)||b;this.C=b}; g.k.cW=function(a){g.Vb(this.B.j,1E3*a);for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.bW(a)}; g.k.ut=function(a){Y5a(this,a);this.D.reduce(a);a=this.C;this.C=!1;return a}; g.k.wN=function(a){var b=this.G.getVideoData(1).isDaiEnabled();if(b||!g.nL(this.G.W())){a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Y5a(this,c),b?this.D.reduce(c):0!==this.G.getCurrentTime(1)&&"start"===c.event&&(this.Ea.get().G.W().experiments.ob("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.u?0:c.startSecs+c.Ug>=this.u.startSecs&&c.startSecs<=this.u.startSecs+this.u.Ug)?bE("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.u=c,this.MN(c)))}}; g.k.ra=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.wN,this),this.j=null);this.listeners.length=0;this.jI.length=0;g.D.prototype.ra.call(this)};w2.prototype.addPlayerResponseForAssociation=function(a){this.G.addPlayerResponseForAssociation(a)};y2.prototype.addListener=function(a){this.listeners.push(a)}; y2.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=$5a.prototype;g.k.fd=function(){return this.slot}; g.k.Fb=function(){return this.layout}; g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().fF.push(this)}; g.k.release=function(){this.Ia.get().removeListener(this);J4a(this.Ia.get(),this)}; g.k.startRendering=function(a){this.callback.Vc(this.slot,a)}; g.k.Qg=function(a,b){this.callback.Bd(this.slot,a,b)}; g.k.Yl=function(a){switch(a.id){case "part2viewed":this.bb.td("start");break;case "videoplaytime25":this.bb.td("first_quartile");break;case "videoplaytime50":this.bb.td("midpoint");break;case "videoplaytime75":this.bb.td("third_quartile");break;case "videoplaytime100":this.bb.td("complete");break;case "engagedview":if(!v4a(this.Ea.get())){this.bb.td("progress");break}a5a(this.bb)||this.bb.td("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:bE("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.k.onVolumeChange=function(){}; g.k.Nk=function(){}; g.k.Wh=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Ok=function(){}; g.k.Mj=function(){}; g.k.YV=function(a){v4a(this.Ea.get())&&a5a(this.bb)&&L1(this.bb,1E3*a,!1)};a6a.prototype.zf=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.v(J1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(G1(d,{Ke:b,Sf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new $5a(a,c,d,this.Ia,this.Qa,this.Ea);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XZ(d.Ca)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=z2.prototype;g.k.fd=function(){return this.slot}; g.k.Fb=function(){return this.layout}; g.k.init=function(){this.Af.get().addListener(this);this.Ia.get().addListener(this);this.Ps();var a=WZ(this.layout.Ca,"metadata_type_layout_enter_ms"),b=WZ(this.layout.Ca,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Va.get().Nu)?void 0:c.clientPlaybackNonce;c=this.layout.Ac.adClientDataEntry;x1(this.Qa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Af.get();e=fP(e.B,a,b);null!==e&&(x1(this.Qa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.vf.get().Gu(e,b))}; g.k.release=function(){this.Dt();this.Af.get().removeListener(this);this.Ia.get().removeListener(this)}; g.k.startRendering=function(){this.Kt();this.callback.Vc(this.slot,this.layout)}; g.k.Qg=function(a,b){this.Mt(b);null!==this.driftRecoveryMs&&(c6a(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(b6a(this)-WZ(this.layout.Ca,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ia.get().G.As()).toString()}),this.driftRecoveryMs=null);this.callback.Bd(this.slot,this.layout,b)}; g.k.jW=function(){return!1}; g.k.bW=function(a){var b=WZ(this.layout.Ca,"metadata_type_layout_enter_ms"),c=WZ(this.layout.Ca,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&aa.width&&B2(this.C,this.layout)}; g.k.onVolumeChange=function(){}; g.k.Mj=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Wh=function(){}; g.k.Ok=function(){}; g.k.Yl=function(){}; g.k.ra=function(){O1.prototype.ra.call(this)}; g.k.release=function(){O1.prototype.release.call(this);this.Ia.get().removeListener(this)};$6a.prototype.zf=function(a,b,c,d){if(b=U1(a,c,d,this.uc,this.Ia,this.Qa,this.C,this.j,this.Ea))return b;if(G1(d,X6a()))return new I2(c,d,this.Qa,this.Rb,this.uc,a,this.u,this.B,this.Ia,this.Sb,this.Ea,this.j,new J2(this.Ia));if(G1(d,W6a()))return new H2(c,d,this.Qa,this.Rb,this.uc,a,this.u,this.Ia,this.Sb,this.Ea,this.j,new J2(this.Ia));if(G1(d,{Ke:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Sf:["LAYOUT_TYPE_SURVEY"]}))return new Z6a(c,d,a,this.uc,this.u,this.Ia,this.Ea);if(G1(d, {Ke:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Sf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new E2(c,d,a,this.uc,this.Qa);if(G1(d,m5a()))return new T1(c,d,a,this.uc,this.Ia,this.Ea);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XZ(d.Ca)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.x(K2,g.D);g.k=K2.prototype;g.k.Vk=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new WC("Tried to register duplicate trigger for slot.");if(!(b instanceof q3a))throw new WC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new i2(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)}; g.k.ol=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof q3a))throw new WC("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)}; g.k.Li=function(){}; g.k.Rj=function(){}; g.k.Qj=function(){}; g.k.Ng=function(){}; g.k.Og=function(){}; g.k.Pk=function(){}; g.k.Qk=function(){}; g.k.Oj=function(){}; g.k.Vh=function(){}; g.k.ij=function(){}; g.k.Vc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.v(b);for(var d=b.next();!d.done;a={tA:a.tA},d=b.next())a.tA=d.value,d=new g.Qp(function(e){return function(){var f=c.Wb.get(e.tA.triggerId);g0(c.B(),[f])}}(a),a.tA.durationMs),d.start(),this.u.set(a.tA.triggerId,d)}}; g.k.Bd=function(){};g.x(L2,g.D);L2.prototype.Vk=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new WC("Tried to register duplicate trigger for slot.");if(!(b instanceof f4a))throw new WC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Wb.set(b.triggerId,new i2(a,b,c,d))}; L2.prototype.ol=function(a){this.Wb.delete(a.triggerId)};g.x(b7a,g.D);c7a.prototype.zf=function(a,b,c,d){if(b=U1(a,c,d,this.uc,this.Ia,this.Qa,this.C,this.j,this.Ea))return b;if(G1(d,X6a()))return new I2(c,d,this.Qa,this.Rb,this.uc,a,this.u,this.B,this.Ia,this.Sb,this.Ea,this.j,new J2(this.Ia));if(G1(d,W6a()))return new H2(c,d,this.Qa,this.Rb,this.uc,a,this.u,this.Ia,this.Sb,this.Ea,this.j,new J2(this.Ia));throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XZ(d.Ca)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.x(d7a,g.D);g.x(e7a,g.D);g.x(f7a,g.D);g.x(N2,S1);N2.prototype.startRendering=function(a){S1.prototype.startRendering.call(this,a);WZ(this.layout.Ca,"metadata_ad_video_is_listed")&&(a=WZ(this.layout.Ca,"metadata_type_ad_info_ad_metadata"),this.Gm.get().G.Pa("onAdMetadataAvailable",a))};h7a.prototype.zf=function(a,b,c,d){if(G1(d,g7a()))return new N2(a,c,d,this.uc,this.Ia,this.Qa,this.u,this.Gm,this.j);throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XZ(d.Ca)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.x(i7a,g.D);j7a.prototype.zf=function(a,b,c,d){if(G1(d,g7a()))return new N2(a,c,d,this.uc,this.Ia,this.Qa,this.u,this.Gm,this.j);if(a=U1(a,c,d,this.uc,this.Ia,this.Qa,this.u,this.j,this.Ea))return a;throw new Y_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+XZ(d.Ca)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.x(k7a,g.D);g.x(m7a,g.D);m7a.prototype.B=function(){return this.u};g.x(n7a,OQ); n7a.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.Pa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Pa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Pa("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.Pa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Pa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Pa("updateEngagementPanelAction",b.addAction);this.j.Pa("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.Pa("changeEngagementPanelVisibility",b.hideAction),this.j.Pa("updateEngagementPanelAction",b.removeAction)}};g.x(o7a,SQ);g.k=o7a.prototype;g.k.init=function(a,b,c){SQ.prototype.init.call(this,a,b,c);g.$m(this.B,"stroke-dasharray","0 "+this.u);this.api.W().N("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){UQ(this);SQ.prototype.hide.call(this)}; g.k.show=function(){TQ(this);SQ.prototype.show.call(this)}; g.k.Tv=function(){this.hide()}; g.k.Bt=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.$m(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.x(p7a,yQ);g.k=p7a.prototype; g.k.init=function(a,b,c){yQ.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&g.Q(b.actionButton,g.WM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.YD(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&& 0=this.B?(this.C.hide(),this.V=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.qa&&(UDa(this.messageText,{TIME_REMAINING:String(a)}),this.qa=a)))}};g.x(E7a,yQ);g.k=E7a.prototype; g.k.init=function(a,b,c){yQ.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.Q(b.actionButton,g.WM)?(this.B.init(PN("ad-image"),b.image,c),this.u.init(PN("ad-text"),b.headline,c),this.C.init(PN("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.W().N("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new FQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb, a),b.backgroundColor&&g.$m(this.element,"background-color",g.kR(b.backgroundColor)),g.J(this,this.actionButton),this.actionButton.Ha(this.D),this.actionButton.init(PN("button"),g.Q(b.actionButton,g.WM),c),b=g.PJ(this.api.W().experiments,"player_underlay_video_width_fraction"),this.api.W().N("place_shrunken_video_on_left_of_player")?(c=this.j,g.$p(c,"ytp-ad-underlay-left-container"),g.Yp(c,"ytp-ad-underlay-right-container"),g.$m(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.$p(c,"ytp-ad-underlay-right-container"), g.Yp(c,"ytp-ad-underlay-left-container")),g.$m(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.nG()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.AQ.bind(this)),this.api.addEventListener("resize",this.qU.bind(this))):g.YD(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.YD(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.YD(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.YD(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.k.show=function(){F7a(!0);this.actionButton&&this.actionButton.show();yQ.prototype.show.call(this)}; g.k.hide=function(){F7a(!1);this.actionButton&&this.actionButton.hide();yQ.prototype.hide.call(this)}; g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.AQ.bind(this));this.api.removeEventListener("resize",this.qU.bind(this));this.hide()}; g.k.onClick=function(a){yQ.prototype.onClick.call(this,a);this.actionButton&&g.kf(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.k.AQ=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; g.k.qU=function(a){1200a)g.YD(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.Q(b.ctaButton,g.WM))if(b.brandImage)if(b.backgroundImage&&g.Q(b.backgroundImage,S0)&&g.Q(b.backgroundImage,S0).landscape){this.layoutId||g.YD(Error("Missing layoutId for survey interstitial."));U7a(this.interstitial,g.Q(b.backgroundImage, S0).landscape);U7a(this.logoImage,b.brandImage);g.lf(this.text,g.BE(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.W().N("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new FQ(this.api,this.layoutId,this.interactionLoggingClientData,this.sb,e);g.J(this,this.actionButton);this.actionButton.Ha(this.u);this.actionButton.init(PN("button"),g.Q(b.ctaButton,g.WM),c);this.actionButton.show();this.j=new bR(this.api,1E3*a); this.j.subscribe("g",function(){d.transition.hide()}); g.J(this,this.j);this.T(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)}); this.transition.show(100)}else g.YD(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.YD(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.YD(Error("SurveyTextInterstitialRenderer has no button."));else g.YD(Error("SurveyTextInterstitialRenderer has no text."));else g.YD(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; X2.prototype.clear=function(){this.hide()}; X2.prototype.show=function(){V7a(!0);yQ.prototype.show.call(this)}; X2.prototype.hide=function(){V7a(!1);yQ.prototype.hide.call(this)};var Qcb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.x(Y2,OQ); Y2.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!Qcb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.sb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof MO?c.hP:!1,m=c instanceof MO||c instanceof bEa?c.XH:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new u7a(a,f,h,e);break;case "player-overlay":a=new jR(a,f,h,e,new WT(a),m);break;case "survey":a=new W2(a,f,h,e);break;case "ad-action-interstitial":a=new p7a(a, f,h,e,l,m);break;case "survey-interstitial":a=new X2(a,f,h,e);break;case "ad-message":a=new C7a(a,f,h,e,new WT(a,1));break;case "player-underlay":a=new E7a(a,f,h,e);break;default:a=null}if(!a){g.ZD(Error("No UI component returned from ComponentFactory for type: "+d));break}g.$c(this.u,b)?g.ZD(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof P6a?this.B?this.B.append(a.PO):g.YD(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.PO); break;case 2:b=W7a(this,a);if(null==b)break;b.bind(c);break;case 3:c=W7a(this,a),null!=c&&(g.kb(c),g.$c(this.u,b)?g.ed(this.u,b):g.ZD(Error("Ad UI component does not exist: "+b)))}}; Y2.prototype.ra=function(){g.lb(Object.values(this.u));this.u={};OQ.prototype.ra.call(this)};g.x(X7a,g.uT);g.k=X7a.prototype;g.k.create=function(){try{Y7a(this),this.load(),this.created=!0,Y7a(this)}catch(a){bE(a instanceof Error?a:String(a))}}; g.k.load=function(){try{$7a(this)}finally{q1(O2(this.j).Gi)&&this.player.rg("ad",1)}}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.qt.xn(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.uT.prototype.unload.call(this);dra(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){bE(b instanceof Error?b:String(b))}if(null!==this.Sg){var a=this.Sg;this.Sg=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.nu.reset()}; g.k.Yk=function(){return!1}; g.k.KX=function(){if(null===this.Sg)return!1;var a=this.player.getVideoData(2);return a?a.isListed&&!g.nL(this.player.W()):!1}; g.k.getAdState=function(){return-1}; g.k.getOptions=function(){return Object.values(Pcb)}; g.k.wh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":a=b;if(a.url){b=kO(this.player);Object.assign(b,a.n7a);if(this.Sg&&!b.AD_CPN){var c=this.Sg;null!=c.ea&&bE("AdCpn in AdService is not Null");b.AD_CPN=c.ea}a=g.Fp(a.url,b)}else a=null;return a;case "onAboutThisAdPopupClosed":this.ot(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}}; g.k.ut=function(a){var b;return!(null==(b=this.j.j.Af)||!b.get().ut(a))}; g.k.ot=function(a){a.isMuted&&S0a(O2(this.j).hj,O2(this.j).Mk,a.layoutId);this.Bx&&this.Bx.ot()}; g.k.executeCommand=function(a){O2(this.j).sb.executeCommand(a.command,a.layoutId)};g.tT("ad",X7a);var f8a=g.Ue&&e8a();g.x(g.Z2,g.D);g.Z2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.gB)()};this.next()}; g.Z2.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.Z2.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,g.gB)()-a;a=this.j;d=hla(a,e/d);if(0==d)a=a.K;else if(1==d)a=a.V;else{e=qe(a.K,a.D,d);var f=qe(a.D,a.J,d);a=qe(a.J,a.V,d);e=qe(e,f,d);f=qe(f,a,d);a=qe(e,f,d)}a=g.oe(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.x(g.$2,g.V);g.k=g.$2.prototype;g.k.FZ=function(){this.B&&this.scrollTo(this.j-this.containerWidth)}; g.k.show=function(){g.V.prototype.show.call(this);j8a(this)}; g.k.GZ=function(){this.B&&this.scrollTo(this.j+this.containerWidth)}; g.k.Lq=function(){this.Gb(this.api.kb().getPlayerSize())}; g.k.isShortsModeEnabled=function(){return this.api.W().N("shorts_mode_to_player_api")?this.api.Yb():this.J.Yb()}; g.k.Gb=function(a){var b=this.isShortsModeEnabled()?.5625:16/9,c=this.J.Bg();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.v(this.u),f=e.next();!f.done;f=e.next())f=f.value.Fa("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.D=d;this.ma=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.a3(this)}; g.k.onVideoDataChange=function(){var a=this.api.W(),b=this.api.getVideoData();this.K=b.wd?!1:a.C;this.suggestionData=b.suggestions?g.fo(b.suggestions,function(c){return c&&!c.playlistId}):[]; l8a(this);b.wd?this.title.update({title:g.XO("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.isShortsModeEnabled()?"More shorts":"More videos"})}; g.k.scrollTo=function(a){a=g.oe(a,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.V.start(this.j,a,1E3);this.j=a;g.a3(this);j8a(this)};})(_yt_player);