var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* SPDX-License-Identifier: Apache-2.0 */ /* (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. */ 'use strict';var da,baa,caa,ma,daa,oa,eaa,qa,ua,wa,za,gaa,haa,Ga,Ha,iaa,jaa,Ka,kaa,La,Pa,Ra,laa,Sa,Ya,$a,naa,oaa,pb,paa,sb,tb,ub,yb,zb,qaa,raa,Cb,taa,uaa,Ob,vaa,Vb,waa,xaa,Sb,yaa,zaa,Aaa,Caa,Baa,Daa,ec,Eaa,hc,jc,lc,uc,xc,yc,zc,Bc,Cc,Maa,Dc,Gc,Ec,Naa,Oaa,Paa,Qaa,Hc,Raa,Ic,Nc,Oc,Saa,Pc,Rc,Uaa,Vaa,Xaa,Xc,Yc,$aa,ad,dd,aba,bba,ld,cba,sd,zd,fba,gba,Ad,lba,Fd,iba,kba,Dd,Cd,Md,Nd,mba,Rd,nba,Td,Ud,oba,Yd,$d,ae,fe,uba,ne,Bba,zba,Aba,Eba,Fba,ue,we,Iba,ze,Kba,Be,Ce,Lba,Mba,Nba,Oba,Sba,Rba,Je,Le,Tba,Te,Ve,Uba, Vba,Wba,Ze,hf,jf,Xba,Yba,Zba,$ba,vf,wf,Bf,cca,eca,dca,Df,Hf,fca,Gf,Qf,mf,Wf,hca,ag,$f,kf,cg,ica,dg,eg,fg,jca,lca,nca,lg,mg,tg,rca,tca,vg,uca,ug,yca,jg,pca,Aca,xca,vca,wca,Bca,zca,wg,sca,zg,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,Lca,Mca,Nca,Oca,Pca,Qca,Rca,Sca,Tca,Uca,Vca,Wca,Xca,Yca,Bg,Zca,cda,dda,eda,jda,Fg,ida,fda,lda,nda,pda,Mg,Ng,sda,Pg,Qg,uda,Sg,Rg,vda,Tg,wda,Ug,Vg,Zg,xda,$g,yda,zda,ah,Wg,bh,eh,dh,fh,vh,wh,xh,yh,Ada,Cda,Ah,Dda,Eda,Bh,Ch,Fh,Gda,Hda,Jda,Kda,Mda,Gh,Nda,Hh,Oda,Ih,Pda,Jh,Kh,Qda,Lh,Mh,Nh, Oh,Rda,Qh,Sda,Uda,ii,ji,li,mi,Vda,Wda,oi,pi,Xda,Yda,Zda,$da,qi,ri,si,bea,ti,ui,vi,dea,yi,zi,eea,fea,xi,Vi,cea,wi,Wi,gea,hea,Xi,Yi,Zi,$i,iea,cj,ej,O,lea,kea,mea,nea,fj,oea,pea,hj,jj,yj,kj,Aj,zj,Bj,Ej,Hj,rea,sea,Gj,tea,uea,Ij,vea,Jj,Lj,Kj,wea,xea,Nj,Oj,Pj,Mj,Qj,qea,yea,zea,Sj,Tj,Uj,Fj,Vj,Wj,Aea,Xj,Bea,Cea,Yj,Zj,qk,Dea,rk,Eea,tk,Fea,uk,vk,wk,xk,yk,zk,P,Ak,Bk,S,Ck,T,Gea,Dk,Jea,Ek,Ik,Mea,Jk,Oea,Pea,Lea,Qea,Lk,Uea,Vea,Wea,Mk,Yea,Zea,Fk,Xea,$ea,Tea,Pk,Qk,Rk,sl,tl,ul,bfa,cfa,vl,dfa,wl,xl,yl,zl,Al,Bl,Cl,ffa, gfa,ifa,hfa,jfa,Fl,Gl,Hl,lfa,mfa,nfa,Il,Jl,Kl,Ll,Ol,Pl,Ql,ofa,ym,qfa,Bm,Cm,Dm,Em,Fm,Gm,rfa,Jm,tfa,Im,Hm,sfa,ufa,vfa,Lm,wfa,Km,Mm,Nm,xfa,Pm,yfa,Bfa,Qm,Rm,Cfa,Sm,Tm,Efa,Xm,Ffa,Ym,Zm,$m,Gfa,Hfa,cn,Ifa,dn,en,Lfa,Nfa,Ofa,Qfa,Pfa,Rfa,Kn,Sfa,Nn,Rn,Sn,Tn,Un,Vfa,Vn,Wn,Xn,Wfa,Xfa,Yfa,Yn,$fa,Zn,aga,cga,fga,ega,dga,iga,gga,ao,co,eo,fo,bo,jga,kga,go,io,lga,jo,mga,oga,nga,pga,qga,rga,tga,ko,lo,mo,no,oo,po,qo,ro,uga,so,to,uo,vo,wo,yga,vga,zo,xga,Ao,wga,yo,xo,Co,Aga,Eo,Do,Jo,Ko,Mo,Dga,Lo,Po,Ega,Qo,Bga,Hga,Iga,Jga, Gp,Hp,Ip,Kga,Jp,Kp,Lp,Mp,Lga,Np,Op,Pp,Mga,Nga,Qp,Oga,Rp,Rga,Sga,Tga,Uga,Pga,Sp,Tp,Up,Vp,Wga,Xga,Vga,Wp,Yga,Zga,$ga,$p,aha,aq,bq,cha,dha,cq,eha,dq,eq,fq,gq,hq,iq,jq,kq,fha,lq,mq,gha,iha,nq,hha,jha,kha,lha,oq,pq,qq,rq,sq,tq,uq,mha,vq,wq,xq,nha,pha,qha,zq,Bq,Aq,Dq,Eq,Fq,sha,Gq,tha,xr,yr,zr,vha,wha,zha,xha,Aha,Eha,Ar,Dha,Bha,Br,Cr,Fha,Dr,Gha,Er,Iha,Hha,Jha,Kha,Ir,Lha,Mha,Nha,Jr,Kr,Oha,Lr,Pha,Qha,Sha,Wha,Mr,Xha,Yha,Zha,$ha,aia,Pr,bia,cia,dia,Wr,Vr,Ur,eia,fia,gia,Xr,Yr,Zr,iia,ds,es,fs,jia,gs,lia,mia,nia, hs,js,ks,os,ps,ts,pia,ria,qia,sia,tia,zs,uia,via,As,wia,xia,yia,zia,Es,Cs,Fs,Gs,Hs,Aia,Bia,Cia,Is,Js,Ks,Dia,Eia,Fia,Ls,Gia,Ms,Ns,Hia,Iia,Jia,Kia,Lia,Mia,Os,Ps,Qs,Ss,Pia,Ts,Us,Qia,Oia,Rs,Ria,Vs,et,ft,ht,gt,Sia,Tia,Uia,it,Wia,jt,Yia,Zia,$ia,aja,bja,cja,dja,eja,mt,nt,ot,gja,fja,hja,ija,qt,jja,rt,kja,lja,tt,ut,vt,mja,wt,xt,nja,zt,At,Bt,Ct,Dt,Et,Ft,Gt,oja,pja,qja,rja,Ht,sja,uja,tja,Jt,Kt,wja,vja,zja,Cja,Bja,Lt,Dja,Eja,Fja,Hja,Gja,Ija,Mt,Jja,Kja,Ot,Lja,Mja,Nja,Oja,Pt,Pja,Qt,Qja,Rt,St,Sja,Tt,Tja,Ut,Vt,Uja, Vja,Wt,Yt,Xja,Zt,Wja,Yja,Zja,$ja,bka,$t,cka,cu,du,eka,fka,ika,jka,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,nka,mka,oka,qka,pka,ska,lka,rka,kka,ru,tu,uka,vka,wka,xu,yu,zu,uu,yka,Au,tka,Aka,Bka,zka,Bu,Cu,Du,Eu,Cka,xka,Dka,Fu,Eka,Fka,Gka,Hka,Ika,Lka,Mka,Nka,Oka,Pka,Ska,Iu,Uka,Hu,Ku,Vka,Lu,Nu,Ou,Wka,Xka,Vu,Yka,Zka,Wu,$ka,ala,ev,bla,ela,fv,fla,gla,lla,hla,uv,qv,rv,tv,vv,wv,qla,xv,yv,zv,sla,Cv,tla,ula,Dv,wla,Fv,Gv,Hv,Iv,xla,Lv,Kv,Nv,Ov,Pv,Qv,Sv,Tv,zla,Ala,Wv,Xv,Yv,Zv,$v,aw,Bla,Cla,Dla,Ela,Fla,Gla,bw,Hla, iw,Ila,Jla,Kla,jw,lw,mw,nw,qw,rw,tw,Mla,ww,xw,yw,Nla,Ola,zw,Pla,Qla,Bw,Yla,Zla,$la,Cw,ama,bma,Ew,fma,ema,Gw,gma,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,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,Lx,Mx,Nx,Ox,ey,fy,gy,hy,iy,jy,ky,ly,my,ny,oy,py,qy,ry,sy,ty,uy,vy,wy,yy,zy,Ay,hma,By,Cy,Dy,Ey,Fy,Gy,Hy,Iy,Jy,ima,Ly,My,Ny,Oy,Py,Qy,Ry,jma,kma,lma,mma,nma,Sy,oma,pma,qma,rma,Ty,sma,tma,uma,Uy,Vy,Wy,Xy,Yy,Zy,vma,$y,az,bz,cz, wma,dz,ez,fz,xma,yma,gz,hz,iz,jz,kz,lz,mz,nz,zma,Ama,oz,Bma,Cma,Dma,pz,Ema,Fma,Gma,qz,Hma,rz,sz,tz,Ima,uz,Jma,vz,wz,Kma,xz,Lma,yz,Mma,Nma,Oma,zz,Pma,Qma,Az,Bz,Rma,Cz,Sma,Dz,Ez,Fz,Gz,Jz,Kz,Lz,Tma,Mz,Nz,Oz,Uma,Pz,Qz,Rz,Sz,Vma,Tz,Uz,Vz,Wz,Xz,Wma,Yz,Xma,Zz,Yma,Zma,$z,aA,$ma,bA,cA,dA,ana,bna,cna,dna,eA,fA,ena,gA,fna,gna,hna,ina,jna,hA,iA,kna,lna,jA,kA,mna,lA,nna,ona,mA,pna,qna,rna,sna,nA,oA,pA,qA,tna,una,rA,vna,wna,xna,yna,sA,zna,Ana,Bna,Cna,Dna,Ena,Fna,Gna,Hna,tA,Ina,uA,vA,Jna,Kna,wA,Lna,Mna,Nna,Ona, Pna,Qna,Rna,Sna,xA,Tna,Una,Vna,yA,Wna,Xna,zA,AA,Yna,BA,CA,Zna,DA,$na,EA,aoa,FA,GA,boa,coa,HA,doa,eoa,IA,foa,goa,hoa,ioa,joa,koa,loa,moa,noa,ooa,JA,poa,qoa,KA,roa,LA,MA,soa,toa,NA,uoa,voa,OA,woa,PA,xoa,QA,RA,SA,TA,yoa,UA,VA,WA,XA,zoa,YA,ZA,Aoa,Boa,$A,aB,bB,Coa,cB,Doa,Eoa,Foa,dB,Goa,Hoa,Ioa,eB,Joa,Koa,fB,gB,Loa,hB,Moa,Noa,iB,Ooa,jB,Poa,Qoa,Roa,lB,nB,Soa,rB,sB,tB,uB,Woa,yB,zB,Xoa,AB,BB,CB,Toa,DB,$oa,cpa,EB,epa,dpa,fpa,ipa,hpa,lpa,mpa,npa,opa,qpa,vpa,rpa,tpa,upa,OB,NB,wpa,QB,RB,SB,ypa,zpa,Apa,Bpa,Cpa, Dpa,YB,Epa,$B,Fpa,Gpa,aC,Ipa,Jpa,dC,fC,Kpa,Npa,gC,hC,iC,jC,Ppa,kC,Rpa,Qpa,Tpa,mC,Upa,Ypa,Wpa,Xpa,Zpa,$pa,dqa,eqa,aqa,hqa,oC,iqa,rC,jqa,kqa,qC,sC,mqa,nqa,rqa,qqa,sqa,wC,xC,yC,zC,BC,uqa,wqa,HC,xqa,yqa,zqa,Aqa,Bqa,Eqa,Fqa,Gqa,Dqa,Hqa,Jqa,Lqa,OC,Mqa,RC,PC,UC,VC,Oqa,Rqa,$C,aD,bD,cD,Vqa,eD,Xqa,Yqa,Zqa,hD,ara,bra,$qa,cra,dra,era,fra,gra,ira,mD,lra,mra,jra,nra,ora,rra,qra,qD,kra,ura,vD,tra,vra,wra,wD,xD,xra,zra,zD,Ara,Bra,Dra,Fra,CD,Gra,Hra,Ira,Jra,Kra,Lra,Mra,Nra,ED,Ora,GD,Qra,Rra,Sra,Tra,Ura,Vra,LD,Yra, asa,MD,bsa,dsa,Xra,esa,fsa,gsa,Zra,$ra,HD,Wra,KD,csa,JD,ID,hsa,isa,jsa,ksa,lsa,msa,ssa,nsa,PD,QD,RD,vsa,xsa,wsa,tsa,ysa,Asa,UD,Csa,Fsa,XD,Esa,Psa,Gsa,Osa,aE,Qsa,Tsa,bE,$D,Rsa,Ssa,Usa,dE,Wsa,Xsa,Ysa,Zsa,$sa,ata,bta,Vsa,dta,eta,fta,gta,hta,kta,fE,gE,hE,mta,iE,nta,ota,kE,lE,rta,qta,tta,sta,vta,xta,wta,yta,Eta,Cta,wE,Fta,Hta,vE,Gta,xE,yE,Ita,Jta,Kta,AE,Mta,DE,CE,EE,FE,GE,Ota,Pta,IE,Qta,JE,Sta,Tta,Uta,Wta,Xta,Vta,ME,Zta,Yta,$ta,NE,bua,OE,dua,PE,fua,QE,eua,RE,SE,iua,oua,qua,nua,mua,pua,VE,rua,zua,vua,wua, xua,hua,Iua,Kua,Hua,Nua,Gua,UE,Mua,uua,yua,Jua,sua,kua,jua,lua,XE,Fua,dF,Xua,Wua,ava,dva,cva,fva,fF,gF,hva,iva,jva,kva,lva,mva,nva,iF,pva,qva,rva,sva,tva,uva,vva,xva,yva,mF,Ava,Cva,Bva,Dva,Fva,Gva,Kva,Iva,Mva,Lva,Ova,Nva,nF,Qqa,Wva,Tva,Yva,uF,$va,cwa,dwa,ewa,kwa,owa,pwa,rwa,qwa,swa,AF,uwa,zF,nwa,mwa,wF,HF,GF,KF,LF,NF,wwa,OF,RF,SF,xwa,ywa,Awa,Bwa,Cwa,Dwa,Ewa,Fwa,Gwa,Hwa,Iwa,Jwa,Kwa,YF,Lwa,Mwa,Owa,Pwa,Qwa,Rwa,Swa,Twa,Wwa,Xwa,$F,aG,Ywa,bG,Zwa,dG,axa,$wa,fG,gG,hG,iG,bxa,jG,cxa,dxa,exa,qG,fxa,jxa,gxa, ixa,hxa,kxa,rG,lxa,mxa,nxa,oxa,sG,qxa,txa,sxa,tG,uxa,uG,vG,wG,yG,zG,vxa,wxa,xxa,AG,yxa,zxa,BG,Bxa,Axa,Cxa,CG,FG,HG,Exa,Dxa,JG,Fxa,Gxa,KG,LG,MG,NG,QG,Ixa,RG,SG,TG,UG,Jxa,Kxa,XG,Lxa,YG,Pxa,Rxa,Txa,Vxa,Xxa,$G,Yxa,aH,Zxa,bya,cya,dya,cH,fya,gya,eH,fH,gH,iya,hH,iH,jH,jya,kH,hya,kya,lH,mya,lya,mH,oya,nH,oH,qH,pya,qya,sH,tH,vH,HH,GH,sya,uH,vya,wya,zya,Aya,Bya,Dya,yya,Eya,Fya,Gya,IH,uya,xya,JH,Kya,Mya,MH,Nya,NH,Oya,KH,Qya,Tya,Rya,OH,Uya,Lya,PH,Wya,QH,aza,Zya,Yya,Xya,SH,TH,UH,VH,WH,XH,ZH,cza,hza,aI,iza,jza, lza,kza,mza,nza,oza,qza,pza,tza,uza,vza,bI,wza,xza,yza,zza,Aza,Cza,Dza,cI,Bza,dI,Gza,Iza,eI,fI,gI,Jza,hI,iI,Kza,Lza,Mza,Nza,Oza,Pza,jI,kI,lI,mI,nI,oI,pI,qI,rI,sI,tI,Qza,Rza,uI,Sza,Tza,Uza,Vza,vI,wI,xI,yI,Wza,zI,AI,BI,Xza,CI,DI,EI,FI,GI,HI,II,JI,KI,Yza,LI,MI,NI,Zza,OI,PI,QI,RI,$za,SI,TI,aAa,UI,bAa,VI,cAa,XI,YI,dAa,ZI,$I,aJ,WI,bJ,cJ,dJ,fAa,hAa,iAa,eJ,jAa,fJ,kAa,hJ,lAa,mAa,iJ,jJ,nAa,qAa,rAa,sAa,tAa,uAa,vAa,oAa,uJ,yAa,zAa,AAa,BAa,pAa,DAa,lJ,EAa,FAa,wJ,GAa,xJ,nJ,HAa,mJ,CAa,yJ,KAa,JAa,pJ,qJ,AJ,zJ,LAa,BJ, MAa,CJ,OAa,NAa,DJ,EJ,FJ,GJ,HJ,QAa,RAa,TAa,UAa,JJ,KJ,XAa,LJ,aBa,cBa,eBa,fBa,NJ,hBa,iBa,kBa,lBa,mBa,nBa,oBa,pBa,SJ,TJ,qBa,sBa,rBa,tBa,uBa,vBa,XJ,ZJ,$J,aK,bK,cK,wBa,dK,eK,YJ,fK,gK,hK,zBa,yBa,CBa,DBa,EBa,FBa,GBa,HBa,IBa,JBa,KBa,LBa,MBa,NBa,OBa,PBa,QBa,RBa,SBa,TBa,UBa,VBa,WBa,XBa,jK,kK,YBa,lK,mK,ZBa,$Ba,aCa,bCa,cCa,dCa,eCa,nK,fCa,gCa,hCa,iCa,oK,jCa,kCa,lCa,mCa,nCa,pK,oCa,pCa,qCa,qK,rCa,tK,tCa,uCa,uK,vCa,wCa,xCa,vK,wK,xK,yK,ACa,zK,AK,CK,CCa,DCa,ECa,EK,GK,FCa,KK,LK,GCa,HCa,MK,ICa,NK,JCa,PK,QK,RK,KCa,LCa, MCa,SK,IK,TK,UK,VK,WK,XK,YK,NCa,ZK,$K,aL,bL,cL,dL,eL,fL,gL,PCa,QCa,RCa,SCa,mL,iL,nL,TCa,UCa,VCa,WCa,oL,pL,XCa,YCa,ZCa,kL,$Ca,aDa,qL,bDa,dDa,eDa,sL,tL,uL,vL,wL,hDa,zL,BL,AL,jDa,CL,kDa,lDa,nDa,mDa,FL,oDa,pDa,qDa,sDa,rDa,iDa,tDa,uDa,xDa,GL,yDa,ADa,vDa,wDa,HL,zDa,CDa,EDa,DDa,JL,GDa,HDa,IDa,KDa,JDa,LDa,MDa,ODa,NDa,PDa,QDa,RDa,SDa,TDa,UDa,VDa,WDa,XDa,YDa,ZDa,$Da,aEa,bEa,cEa,dEa,eEa,ML,fEa,NL,OL,hEa,iEa,PL,jEa,QL,kEa,RL,lEa,SL,mEa,nEa,oEa,pEa,TL,qEa,rEa,sEa,UL,VL,WL,XL,YL,tEa,ZL,$L,aM,uEa,bM,vEa,wEa,xEa, cM,dM,yEa,eM,zEa,fM,gM,SAa,AEa,BEa,hM,CEa,iM,jM,kM,lM,mM,nM,oM,pM,qM,rM,sM,DEa,EEa,FEa,GEa,tM,yM,IEa,NEa,XEa,OEa,ZEa,$Ea,YEa,bFa,cFa,dFa,HM,gFa,iFa,lFa,mFa,nFa,JM,pFa,qFa,uFa,KM,vFa,rFa,wFa,LM,xFa,AFa,zFa,EFa,BFa,MM,NM,KFa,NFa,MFa,QFa,PFa,SFa,TFa,WFa,UFa,VFa,LFa,XFa,YFa,PM,OFa,ZFa,QM,$Fa,aGa,dGa,gGa,eGa,jGa,rGa,qGa,kGa,sGa,mGa,nGa,lGa,wGa,yGa,AGa,EGa,HGa,IGa,KGa,MGa,OGa,NGa,WGa,QGa,PGa,XGa,$Ga,aHa,bHa,cHa,WM,hFa,fHa,dHa,YM,hHa,iHa,aN,lHa,mHa,kHa,bN,nHa,cN,dN,UJ,eN,fFa,fN,oHa,ABa,pHa,gN,qHa,rHa,sHa, hN,iN,tHa,jN,kN,lN,mN,nN,uHa,vHa,oN,wHa,xHa,pN,yHa,qN,IL,rN,sN,zHa,tN,AHa,BHa,jFa,jHa,CHa,uN,VJ,IJ,RM,DHa,EHa,vN,JFa,OM,FHa,XM,gHa,DGa,CGa,cGa,SM,FGa,JGa,LGa,FFa,YGa,GHa,tGa,oGa,wN,kFa,IHa,HHa,bGa,GGa,JHa,ZGa,TM,GFa,IFa,yFa,BGa,zGa,iGa,fGa,tFa,sFa,oFa,vGa,pGa,RGa,CFa,DFa,UGa,VGa,SGa,TGa,xGa,MHa,KHa,xN,LHa,yN,vJ,oJ,wAa,kJ,zN,AN,BN,HN,OHa,JN,QHa,RHa,SHa,THa,UHa,VHa,WHa,XHa,SN,VN,YHa,ZHa,aIa,$Ha,bIa,cIa,dIa,eIa,fIa,gIa,XN,YN,jIa,ZN,$N,kIa,lIa,mIa,nIa,aO,bO,cO,oIa,pIa,dO,fO,jO,qIa,kO,lO,mO,nO,oO,pO,qO, rO,sO,tO,uO,rIa,sIa,vO,wO,xO,yO,zO,AO,tIa,uIa,BO,FO,xIa,yIa,GO,AIa,zIa,BIa,CIa,IO,JO,KO,Z,EIa,LO,JIa,NIa,OIa,PIa,YIa,aJa,fJa,gJa,EJa,FJa,GJa,hJa,iJa,oJa,LJa,sJa,tJa,QJa,OJa,SJa,TJa,PJa,UJa,WKa,aKa,XKa,bKa,cKa,UO,ZKa,aLa,cLa,bLa,$Ka,hKa,yKa,zKa,gLa,iLa,BKa,CKa,EKa,FKa,GKa,pLa,IKa,LKa,SKa,yLa,tLa,uLa,ALa,DLa,CLa,ELa,FLa,NLa,GLa,XO,KLa,TLa,ULa,VLa,WLa,XLa,$La,eMa,IMa,HMa,aP,bP,cP,dP,eP,fP,PMa,hP,gP,RMa,NMa,OMa,SMa,QMa,iP,TMa,Pqa,VMa,UMa,XMa,ZMa,aNa,bNa,$Ma,cNa,mP,hNa,iNa,jNa,kNa,lNa,nP,mNa,nNa,oNa,pNa, qNa,sNa,pP,tNa,rP,tP,uNa,uP,vP,vNa,zNa,BNa,ANa,DNa,LNa,MNa,xP,CNa,yNa,xNa,wNa,CP,yP,BP,HP,IP,PNa,QNa,JP,GP,UNa,RNa,SNa,VNa,KP,LP,XNa,YNa,NP,OP,PP,QP,RP,ZNa,$Na,aOa,SP,TP,VP,cOa,dOa,UP,eOa,hOa,iOa,WP,jOa,ZP,kOa,$P,bQ,mOa,aQ,cQ,nOa,pOa,qOa,rOa,eQ,fQ,kQ,uOa,hQ,lQ,nQ,vOa,oQ,jQ,mQ,wOa,pQ,xOa,qQ,yOa,gQ,iQ,sOa,tOa,rQ,zOa,AOa,BOa,sQ,tQ,uQ,COa,vQ,wQ,DOa,xQ,EOa,yQ,zQ,AQ,FOa,GOa,HOa,IOa,JOa,BQ,KOa,LOa,MOa,NOa,OOa,POa,CQ,DQ,QOa,EQ,UOa,VOa,WOa,XOa,YOa,GQ,HQ,FQ,ROa,ZOa,$Oa,aPa,bPa,IQ,JQ,cPa,KQ,LQ,dPa,ePa,MQ,fPa, gPa,kPa,lPa,hPa,iPa,jPa,mPa,NQ,OQ,QQ,nPa,oPa,RQ,SQ,pPa,TQ,qPa,sPa,rPa,UQ,tPa,uPa,vPa,wPa,xPa,yPa,APa,BPa,VQ,CPa,EPa,GPa,FPa,YQ,KPa,JNa,zP,LPa,MPa,NPa,OPa,PPa,QPa,wP,XQ,RPa,ZQ,WPa,XPa,YPa,ZPa,$Q,cQa,$Pa,aQa,eQa,fQa,gQa,hQa,dQa,iQa,aR,bR,cR,jQa,kQa,dR,lQa,mQa,nQa,eR,UPa,hR,pQa,KNa,ENa,rQa,iR,kR,lR,mR,nR,oR,jR,sQa,uQa,rR,xQa,vQa,zQa,AQa,yQa,wQa,BQa,CQa,DQa,wR,EQa,FQa,HQa,IQa,ONa,xR,JQa,MQa,DP,NQa,OQa,PQa,AP,FNa,HNa,INa,yR,zR,AR,BR,RQa,SQa,CR,TQa,DR,ER,UQa,FR,VQa,GR,WQa,XQa,IR,JR,KR,YQa,ZQa,LR,$Qa,aRa, HR,MR,bRa,cRa,eRa,gRa,fRa,dRa,tRa,qRa,wRa,dS,eS,hRa,rRa,sJ,bS,hS,xRa,lS,zRa,SR,mS,RR,ARa,aS,pS,qS,CRa,DRa,ERa,FRa,GRa,HRa,IRa,rS,JRa,ORa,NRa,KRa,MRa,LRa,sS,PRa,tS,QRa,RRa,TRa,URa,VRa,$Ra,yS,zS,cSa,AS,BS,dSa,gSa,hSa,iSa,jSa,CS,lSa,pSa,qSa,xSa,ASa,uSa,vSa,CSa,LS,DSa,FSa,ESa,GSa,NS,QS,HSa,MS,ISa,RS,JSa,NSa,KSa,QSa,MSa,hTa,qTa,jT,rTa,tTa,cTa,YS,sTa,cT,kT,aTa,vTa,uTa,lT,VS,dTa,ATa,wTa,xTa,yTa,zTa,BTa,nT,CTa,ETa,FTa,pT,GTa,US,$S,DTa,iTa,LSa,mTa,vT,aT,BT,hT,DT,ET,TTa,UTa,iT,GT,VTa,HT,WTa,bT,IT,bTa,XTa,LTa, ZS,USa,YTa,SSa,RSa,OSa,LT,$Ta,hUa,jUa,kUa,OT,QT,RT,PT,TT,lUa,mUa,UT,oUa,VT,qUa,rUa,pUa,sUa,vUa,xUa,zUa,AUa,CUa,BUa,bU,DUa,GUa,HUa,mU,nU,oU,JUa,MUa,NUa,PUa,OUa,QUa,LUa,SUa,RUa,VUa,TUa,UUa,YUa,ZUa,$Ua,aVa,XUa,cVa,dVa,bVa,WUa,eVa,fVa,gVa,hVa,iVa,jVa,kVa,mVa,oVa,pVa,nVa,pU,qVa,rVa,tVa,sVa,uVa,wVa,vVa,xVa,yVa,zVa,AVa,CVa,DVa,BVa,rU,FVa,sU,tU,uU,GVa,vU,HVa,wU,xU,IVa,NVa,QVa,RVa,SVa,TVa,BU,CU,PVa,MVa,UVa,zU,JVa,XVa,yU,AU,KVa,LVa,DU,YVa,ZVa,OVa,WVa,$Va,IU,aWa,MU,NU,OU,PU,QU,bWa,RU,cWa,gWa,SU,TU,hWa,iWa,kWa, jWa,lWa,mWa,nWa,UU,VU,oWa,qWa,rWa,sWa,ZU,yWa,xWa,$U,aV,bV,zWa,AWa,BWa,CWa,DWa,cV,FWa,EWa,GWa,HWa,dV,eV,IWa,KWa,LWa,MWa,NWa,fV,OWa,gV,PWa,SWa,hV,QWa,VWa,TWa,UWa,RWa,iV,ZWa,XWa,YWa,$Wa,jV,aXa,bXa,cXa,kV,dXa,eXa,fXa,nV,lV,gXa,oV,hXa,qV,rV,jXa,pV,lXa,sV,uV,mXa,vV,wV,xV,nXa,qXa,pXa,zV,AV,BV,tXa,rXa,sXa,CV,uXa,yXa,wXa,vXa,xXa,DV,AXa,BXa,EV,FV,FXa,DXa,EXa,GV,GXa,CXa,HXa,HV,IV,IXa,JXa,KXa,JV,LXa,MXa,NXa,OXa,PXa,QXa,RXa,UXa,SXa,VXa,WXa,XXa,YXa,VVa,TV,UV,$Xa,SV,dYa,cYa,eYa,fYa,gYa,hYa,iYa,jYa,QQa,kYa,lYa,rYa, ZV,uYa,xYa,wYa,vYa,pYa,qYa,mYa,nYa,sYa,$V,aW,zYa,gU,wUa,cW,AYa,CYa,BYa,tYa,EYa,FYa,GYa,eW,HYa,lW,JYa,KYa,LYa,NYa,MYa,OYa,mW,nW,PYa,SYa,TYa,pW,RYa,UYa,VYa,QYa,qW,tW,WYa,XYa,sW,YYa,ZYa,$Ya,aZa,cZa,bZa,eZa,fZa,dZa,iZa,gZa,wW,xW,jZa,AW,BW,kZa,mZa,DW,lZa,nZa,oZa,pZa,rZa,qZa,tZa,sZa,uZa,GW,vZa,wZa,xZa,HW,IW,zZa,yZa,LW,JW,KW,AZa,BZa,MW,NW,DZa,EZa,CZa,FZa,GZa,HZa,JZa,IZa,KZa,LZa,MZa,NZa,PZa,PW,OW,QW,QZa,RZa,OZa,WZa,XZa,YZa,a_a,$Za,ZZa,b_a,c_a,RW,SW,d_a,e_a,f_a,g_a,i_a,TW,VW,h_a,j_a,k_a,l_a,m_a,n_a,XW,o_a, p_a,s_a,YW,t_a,r_a,ZW,$W,u_a,v_a,x_a,z_a,w_a,y_a,bX,A_a,C_a,D_a,F_a,G_a,cX,dX,H_a,B_a,e0a,d0a,eX,fX,gX,g0a,f0a,hX,iX,h0a,i0a,jX,j0a,k0a,l0a,kX,m0a,lX,n0a,mX,q0a,r0a,s0a,u0a,v0a,w0a,t0a,y0a,x0a,z0a,C0a,qX,E0a,D0a,A0a,B0a,F0a,G0a,rX,sX,H0a,I0a,J0a,K0a,L0a,M0a,O0a,P0a,X0a,S0a,T0a,Q0a,$0a,xX,a1a,e1a,AX,f1a,b1a,wX,DX,CX,yX,EX,i1a,j1a,FX,zX,Y0a,h1a,BX,c1a,g1a,l1a,tX,GX,m1a,n1a,d1a,HX,IX,o1a,JX,p1a,MX,NX,q1a,r1a,t1a,u1a,s1a,OX,PX,v1a,w1a,x1a,y1a,z1a,B1a,D1a,C1a,A1a,F1a,E1a,QX,RX,G1a,I1a,J1a,SX,H1a,K1a,L1a, M1a,UX,XX,WX,O1a,N1a,P1a,YX,ZX,Q1a,R1a,T1a,S1a,U1a,V1a,W1a,aY,X1a,Y1a,Z1a,$1a,a2a,b2a,d2a,e2a,f2a,c2a,g2a,h2a,i2a,j2a,k2a,eY,m2a,fY,o2a,gY,n2a,q2a,r2a,p2a,hY,s2a,iY,jY,kY,t2a,mY,v2a,w2a,x2a,nY,y2a,z2a,A2a,B2a,C2a,D2a,u2a,E2a,H2a,J2a,L2a,O2a,T2a,pY,U2a,V2a,W2a,X2a,rY,Y2a,Z2a,$2a,e3a,j3a,h3a,b3a,uY,g3a,a3a,i3a,wY,l3a,k3a,xY,n3a,o3a,p3a,r3a,s3a,q3a,t3a,kXa,BY,u3a,v3a,CY,DY,w3a,EY,y3a,x3a,z3a,A3a,H3a,IY,I3a,JY,L3a,LY,KY,M3a,B3a,MY,O3a,P3a,R3a,NY,OY,S3a,J3a,PY,U3a,T3a,QY,F3a,GY,V3a,W3a,X3a,Y3a,Z3a,C3a, E3a,HY,b4a,c4a,RY,TY,UY,e4a,f4a,d4a,g4a,h4a,i4a,SY,$3a,j4a,k4a,o4a,XY,a4a,q4a,u4a,ZY,v4a,w4a,s4a,aZ,x4a,y4a,p4a,z4a,t4a,A4a,bZ,$Y,B4a,D4a,C4a,YY,F4a,eZ,G4a,cZ,fZ,dZ,gZ,H4a,I4a,J4a,M4a,L4a,O4a,P4a,N4a,jZ,iZ,R4a,S4a,T4a,U4a,V4a,X4a,W4a,Y4a,kZ,GU,Z4a,lZ,$4a,b5a,e5a,c5a,d5a,rZ,vZ,g5a,wZ,h5a,i5a,j5a,xZ,yZ,zZ,l5a,m5a,k5a,p5a,q5a,AZ,BZ,r5a,s5a,t5a,tSa,zSa,u5a,w5a,v5a,x5a,y5a,DZ,z5a,A5a,FZ,GZ,EZ,B5a,nZ,C5a,D5a,E5a,F5a,G5a,H5a,I5a,IZ,K5a,L5a,J5a,M5a,N5a,O5a,JZ,Q5a,R5a,KZ,S5a,T5a,U5a,V5a,W5a,X5a,Y5a,Z5a,$5a, a6a,b6a,LZ,d6a,e6a,f6a,MZ,NZ,g6a,h6a,l6a,i6a,m6a,n6a,j6a,k6a,o6a,p6a,r6a,q6a,OZ,w6a,u6a,v6a,s6a,x6a,PZ,t6a,QZ,RZ,y6a,z6a,A6a,SZ,C6a,D6a,TZ,E6a,UZ,F6a,G6a,H6a,I6a,K6a,L6a,S6a,O6a,J6a,U6a,V6a,P6a,Q6a,N6a,R6a,WZ,M6a,T6a,a7a,Z6a,Y6a,X6a,W6a,YZ,b7a,mZ,c7a,ZZ,$Z,d7a,e7a,f7a,a_,g7a,tZ,h7a,i7a,j7a,pZ,qZ,n7a,c_,e_,o7a,p7a,g_,d_,b_,h_,l7a,k7a,m7a,i_,r7a,s7a,q7a,t7a,oZ,u7a,f_,v7a,w7a,x7a,y7a,j_,z7a,A7a,n5a,o5a,B7a,C7a,k_,F7a,D7a,G7a,I7a,l_,J7a,K7a,L7a,n_,p_,N7a,O7a,S7a,Q7a,T7a,U7a,P7a,R7a,M7a,V7a,W7a,X7a,Y7a, b8a,d8a,e8a,q_,f8a,P5a,g8a,h8a,r_,i8a,j8a,k8a,l8a,m8a,t_,t8a,s8a,y_,u8a,r8a,x8a,y8a,z8a,B8a,C8a,D8a,E8a,F8a,G8a,I8a,J8a,K8a,H8a,B_,s_,L8a,M8a,z_,O8a,A8a,A_,P8a,Q8a,T8a,U8a,R8a,S8a,X8a,W8a,Y8a,Z8a,$8a,V8a,a9a,b9a,C_,c9a,d9a,e9a,f9a,i9a,h9a,g9a,D_,j9a,l9a,m9a,n9a,G_,H_,c6a,o9a,p9a,s9a,r9a,q9a,t9a,v9a,w9a,u9a,I_,y9a,z9a,A9a,F9a,E9a,G9a,I9a,$6a,B9a,D9a,C9a,H9a,sZ,VZ,m_,K9a,J9a,L9a,M9a,N9a,O9a,k9a,J_,o_,P9a,Q9a,H7a,R9a,L_,M_,S9a,N_,T9a,U9a,V9a,W9a,X9a,Y9a,$9a,Z9a,b$a,c$a,g$a,d$a,f$a,h$a,P_,l$a,j$a,k$a, o$a,p$a,q$a,r$a,s$a,O_,t$a,n$a,i$a,Q_,u$a,e$a,v$a,R_,x$a,y$a,z$a,w$a,S_,C$a,B$a,F$a,E$a,D$a,G$a,H$a,T_,I$a,J$a,N$a,K$a,L$a,M$a,O$a,P$a,Q$a,S$a,R$a,T$a,U$a,V$a,X$a,Z$a,Y$a,$$a,W$a,aab,cab,eab,bab,fab,gab,iab,hab,jab,dab,X_,kab,lab,mab,oab,qab,rab,tab,uab,wab,vab,xab,a0,zab,Aab,Bab,Cab,Eab,Dab,Hab,b0,VY,Fab,Gab,Iab,e0,Kab,Jab,Lab,Nab,Oab,Rab,Pab,Vab,f0,Qab,Wab,g0,Yab,i0,k0,Zab,h0,$ab,l0,cbb,bbb,Xab,dbb,ebb,j0,fbb,m0,gbb,abb,yab,d0,WY,ibb,m4a,l4a,jbb,n4a,kbb,lbb,o0,mbb,obb,pbb,qbb,nbb,rbb,sbb,p0,tbb, ubb,vbb,wbb,q0,fDa,xbb,ybb,zbb,s0,Cbb,Dbb,u0,Ebb,Fbb,Bbb,t0,r0,Abb,x0,w0,Gbb,y0,v0,Kbb,Mbb,Obb,Pbb,Rbb,Ibb,Nbb,Sbb,Jbb,Tbb,Ubb,Wbb,z0,Xbb,Vbb,A0,Zbb,$bb,Lbb,Ybb,acb,Qbb,Hbb,C0,gcb,dcb,hcb,ecb,ccb,icb,bcb,lcb,D0,mcb,ocb,lL,qcb,scb,tcb,ucb,H0,vcb,D3a,xcb,I0,V_,ycb,Acb,wcb,zY,B0,Bcb,Ccb,N0,N8a,rcb,M0,E0,Fcb,Gcb,Icb,Hcb,zcb,K0,Jcb,P0,Kcb,f3a,Mcb,Lcb,x9a,U_,Ncb,m3a,Ocb,N3a,oXa,J0,Pcb,Rcb,Qcb,d3a,Scb,Ucb,Ecb,pcb,Wcb,Vcb,L0,F0,Xcb,Q0,vY,Zcb,$cb,K3a,adb,bdb,cdb,c3a,O0,F_,ddb,odb,jdb,rdb,idb,sdb,hdb,S0,AY, xdb,tdb,vdb,udb,zdb,V0,W0,Cdb,Bdb,Adb,Y0,ndb,c1,Edb,b1,X0,Gdb,Jdb,Kdb,kdb,Hdb,f1,Ldb,mdb,$0,Ddb,Z0,Odb,U0,Pdb,Rdb,Sdb,Qdb,i1,Fdb,j1,k1,Tdb,a1,ydb,Ndb,Mdb,Udb,Vdb,Wdb,Idb,Xdb,d1,Ydb,e1,Zdb,aeb,T0,l1,wdb,beb,ceb,ldb,h1,g1,deb,K4a,eeb,feb,geb,m1,n1,jeb,meb,oeb,ieb,web,xeb,yeb,zeb,Aeb,Beb,Ceb,Eeb,Deb,o1,p1,Geb,Heb,q1,BDa,Feb,Ieb,r1,Keb,Jeb,Leb,s1,t1,u1,v1,UM,Meb,ZM,eHa,Neb,HFa,Oeb,DL,EL,w1,Peb,Qeb,x1,Seb,Teb,y1,A1,B1,Web,Xeb,C1,Yeb,Ueb,Veb,Zeb,$eb,afb,bfb,D1,cfb,xBa,KL,dfb,efb,BBa,iK,ffb,gfb,hfb,E1,kfb, jfb,lfb,F1,G1,mfb,nfb,z1,ofb,pfb,qfb,H1,I1,rfb,J1,K1,sfb,L1,M1,tfb,N1,O1,ufb,vfb,FDa,P1,wfb,yfb,xfb,Q1,zfb,R1,S1,Afb,Bfb,Cfb,Dfb,Efb,Ffb,Gfb,Ifb,U1,Hfb,Jfb,Kfb,Lfb,Mfb,Qfb,Nfb,Ofb,Pfb,Sfb,Ufb,Vfb,Wfb,Tfb,V1,Xfb,Yfb,Zfb,$fb,agb,X1,bgb,Y1,Z1,$1,cgb,dgb,fgb,ggb,hgb,igb,kgb,jgb,lgb,a2,b2,ogb,mgb,ngb,c2,qgb,rgb,d2,e2,sgb,f2,ugb,g2,vgb,wgb,xgb,h2,i2,j2,ygb,zgb,Agb,Dgb,Cgb,k2,Egb,Fgb,Ggb,eFa,Bgb,Hgb,Kgb,Lgb,Ngb,aaa,ka;da=function(a){return function(){return aaa[a].apply(this,arguments)}}; g.fa=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]}; Cb=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)}; vaa=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.Rb(a,-(c+1),0,b)}; g.cc=function(a,b,c){var d={};(0,g.bc)(a,function(e,f){d[b.call(c,e,f,a)]=e}); return d}; zaa=function(a){for(var b=[],c=0;c")&&(a=a.replace(Iaa,">"));-1!=a.indexOf('"')&&(a=a.replace(Jaa,"""));-1!=a.indexOf("'")&&(a=a.replace(Kaa,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(Laa,"�"));return a}; g.ic=function(a,b){return-1!=a.indexOf(b)}; jc=function(a,b){return g.ic(a.toLowerCase(),b.toLowerCase())}; g.oc=function(a,b){var c=0;a=kc(String(a)).split(".");b=kc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; g.pc=function(){var a=g.Ta.navigator;return a&&(a=a.userAgent)?a:""}; uc=function(a){return qc||sc?tc?tc.brands.some(function(b){return(b=b.brand)&&g.ic(b,a)}):!1:!1}; xc=function(a){return g.ic(g.pc(),a)}; yc=function(){return qc||sc?!!tc&&0=a}; Xaa=function(a){return g.Vc?"webkit"+a:a.toLowerCase()}; Xc=function(a,b){g.Ab.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.timeStamp=0;this.j=null;a&&this.init(a,b)}; Yc=function(a){return!(!a||!a[Yaa])}; $aa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Id=e;this.key=++Zaa;this.removed=this.kH=!1}; ad=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Id=null}; g.bd=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)}; g.cd=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}; dd=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}; g.ed=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}; aba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}; g.fd=function(a){for(var b in a)return b}; bba=function(a){for(var b in a)return a[b]}; g.gd=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}; g.id=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}; g.jd=function(a,b){return null!==a&&b in a}; g.kd=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1}; ld=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}; cba=function(a,b){return(b=ld(a,b))&&a[b]}; g.md=function(a){for(var b in a)return!1;return!0}; g.dba=function(a){for(var b in a)delete a[b]}; g.nd=function(a,b,c){return null!==a&&b in a?a[b]:c}; g.od=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.pd=function(a){var b={},c;for(c in a)b[c]=a[c];return b}; g.qd=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.qd(a[c]);return b}; g.rd=function(a,b){for(var c,d,e=1;ea.B&&(a.B++,b.next=a.j,a.j=b)}; Rd=function(a){return function(){return a}}; g.Sd=function(){}; nba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; Td=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; Ud=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; oba=function(a,b){var c=0;return function(d){g.Ta.clearTimeout(c);var e=arguments;c=g.Ta.setTimeout(function(){a.apply(b,e)},50)}}; Yd=function(){if(void 0===Vd){var a=null,b=g.Ta.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:pb,createScript:pb,createScriptURL:pb})}catch(c){g.Ta.console&&g.Ta.console.error(c.message)}Vd=a}else Vd=a}return Vd}; g.Zd=function(a,b){this.w0=a===pba&&b||"";this.e5=qba}; $d=function(a){return a instanceof g.Zd&&a.constructor===g.Zd&&a.e5===qba?a.w0:"type_error:Const"}; ae=function(a){return new g.Zd(pba,a)}; g.be=function(a){this.t_=a}; g.ce=function(a){return a instanceof g.be&&a.constructor===g.be?a.t_:"type_error:TrustedResourceUrl"}; fe=function(a){var b=Yd();a=b?b.createScriptURL(a):a;return new g.be(a,rba)}; g.ge=function(a){this.s_=a}; g.he=function(a){return a instanceof g.ge&&a.constructor===g.ge?a.s_:"type_error:SafeUrl"}; uba=function(a){if(a instanceof g.ge)return a;a=String(a);sba.test(a)?a=new g.ge(a,le):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(tba)?new g.ge(a,le):null);return a}; g.me=function(a){this.r_=a}; ne=function(a){return a instanceof g.me&&a.constructor===g.me?a.r_:"type_error:SafeStyle"}; Bba=function(a){if(a instanceof g.ge)return'url("'+g.he(a).replace(/]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.me(c,Ge)}; g.Qba=function(a,b){if(Pba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.pe(b)}; Sba=function(a,b,c,d){a=Rba(a);b=b||g.Ta;c=c instanceof g.Zd?$d(c):c||"";return void 0!==d?b.open(a,c,d):b.open(a,c)}; Rba=function(a){a=ze(a);return void 0!==a?a:g.xe.toString()}; g.He=function(a,b,c){return Math.min(Math.max(a,b),c)}; g.Ie=function(a,b){a%=b;return 0>a*b?a+b:a}; Je=function(a,b,c){return a+c*(b-a)}; g.Ke=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; Le=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Oe=function(a,b){this.width=a;this.height=b}; g.Pe=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; g.Se=function(a,b){b=ze(b);void 0!==b&&(a.href=b)}; Tba=function(a,b,c,d){if(0===a.length)throw Error("");a=a.map(function(f){if(f instanceof Be)f=f.j;else throw Error("");return f}); var e=c.toLowerCase();if(a.every(function(f){return 0!==e.indexOf(f)}))throw Error('Attribute "'+c+'" does not match any of the allowed prefixes.'); b.setAttribute(c,d)}; Te=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);}; g.Ue=function(a,b,c){var d=window;a=ze(a);return void 0!==a?d.open(a,b,c):null}; Ve=function(a){var b,c;return(a=null==(c=(b=a.document).querySelector)?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""}; Uba=function(a){var b=Ve(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)}; Vba=function(a,b){if(b instanceof Ce)b=b.u_;else throw Error("");a.textContent=b;Uba(a)}; g.We=function(a,b){a.src=g.ce(b);Uba(a)}; Wba=function(a,b){return a.parseFromString(g.pe(b),"text/xml")}; g.Ye=function(a){return encodeURIComponent(String(a))}; Ze=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; g.$e=function(a){return a=hc(a)}; g.gf=function(a){return null==a?"":String(a)}; hf=function(a){for(var b=0,c=0;c>>0;return b}; jf=function(a){var b=Number(a);return 0==b&&g.fc(a)?NaN:b}; Xba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; Yba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Zba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; $ba=function(a){var b=1;a=a.split(":");for(var c=[];0a}; ag=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return $f(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Fb(e.className.split(/\s+/),c))},!0)}; $f=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; kf=function(a){this.j=a||g.Ta.document||document}; cg=function(a){"function"!==typeof g.Ta.setImmediate||g.Ta.Window&&g.Ta.Window.prototype&&!Cc()&&g.Ta.Window.prototype.setImmediate==g.Ta.setImmediate?(bg||(bg=ica()),bg(a)):g.Ta.setImmediate(a)}; ica=function(){var a=g.Ta.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!xc("Presto")&&(a=function(){var e=g.If("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.ib)(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&&!Bc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.QV;c.QV=null;e()}}; return function(e){d.next={QV:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ta.setTimeout(e,0)}}; dg=function(a){g.Ta.setTimeout(function(){throw a;},0)}; eg=function(){this.B=this.j=null}; fg=function(){this.next=this.scope=this.Ms=null}; g.ig=function(a,b){gg||jca();hg||(gg(),hg=!0);kca.add(a,b)}; jca=function(){if(g.Ta.Promise&&g.Ta.Promise.resolve){var a=g.Ta.Promise.resolve(void 0);gg=function(){a.then(lca)}}else gg=function(){cg(lca)}}; lca=function(){for(var a;a=kca.remove();){try{a.Ms.call(a.scope)}catch(b){dg(b)}mba(mca,a)}hg=!1}; g.kg=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Sd)try{var b=this;a.call(void 0,function(c){jg(b,2,c)},function(c){jg(b,3,c)})}catch(c){jg(this,3,c)}}; nca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1}; lg=function(a,b,c){var d=oca.get();d.C=a;d.B=b;d.context=c;return d}; mg=function(a){if(a instanceof g.kg)return a;var b=new g.kg(g.Sd);jg(b,2,a);return b}; tg=function(a){return new g.kg(function(b,c){c(a)})}; g.qca=function(a,b,c){pca(a,b,c,null)||g.ig(g.jb(b,a))}; rca=function(a){return new g.kg(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.D&&a.Lr()}; Eca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)}; Fca=function(a){for(var b=0;bf)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}; dda=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.Dg=function(a,b){void 0===b&&(b=0);fda();b=gda[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.Eg=function(a,b){if(hda&&!b)a=g.Ta.btoa(a);else{for(var c=[],d=0,e=0;e>=8);c[d++]=f}a=g.Dg(c,b)}return a}; jda=function(a){var b=[];ida(a,function(c){b.push(c)}); return b}; Fg=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ic("=.",a[b-1])&&(c=g.ic("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;ida(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; ida=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; fda=function(){if(!Gg){Gg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));gda[c]=d;for(var e=0;e "+a)}; Ug=function(a){if("string"===typeof a)return{buffer:pda(a),Vv:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Vv:!1};if(a.constructor===Uint8Array)return{buffer:a,Vv:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Vv:!1};if(a.constructor===Pg)return{buffer:Rg(a)||Ng(),Vv:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Vv:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); }; Vg=function(){return"function"===typeof BigInt}; Zg=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(Wg(c,a)),b=c.next().value,a=c.next().value,c=b);Xg=c>>>0;Yg=a>>>0}; xda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a}; $g=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else Vg()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+yda(c)+yda(a));return c}; yda=function(a){a=String(a);return"0000000".slice(a.length)+a}; zda=function(){var a=Xg,b=Yg;b&2147483648?Vg()?a=""+(BigInt(b|0)<>>0)):(b=g.u(Wg(a,b)),a=b.next().value,b=b.next().value,a="-"+$g(a,b)):a=$g(a,b);return a}; ah=function(a){if(16>a.length)Zg(Number(a));else if(Vg())a=BigInt(a),Xg=Number(a&BigInt(4294967295))>>>0,Yg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);Yg=Xg=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)),Yg*=1E6,Xg=1E6*Xg+d,4294967296<=Xg&&(Yg+=Math.trunc(Xg/4294967296),Yg>>>=0,Xg>>>=0);b&&(b=g.u(Wg(Xg,Yg)),a=b.next().value,b=b.next().value,Xg=a,Yg=b)}}; Wg=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; bh=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)}; eh=function(a){var b=0,c=0,d=0,e=a.B,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)return xda(b>>>0,c>>>0);throw Tg();}; dh=function(a,b){a.j=b;if(b>a.C)throw wda(a.C,b);}; fh=function(a){var b=a.B,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 Tg();dh(a,c);return e}; vh=function(a){var b=a.B,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];dh(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; wh=function(a){var b=vh(a);return 4294967296*vh(a)+(b>>>0)}; xh=function(a){var b=vh(a),c=vh(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)}; yh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;cb)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.C)throw wda(b,a.C-c);a.j=d;return c}; Cda=function(a,b){if(0==b)return Qg();var c=Ada(a,b);a.ZG&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?Ng():Bda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Qg():new Pg(c,Og)}; Ah=function(a,b){if(zh.length){var c=zh.pop();c.init(a,void 0,void 0,b);a=c}else a=new bh(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;Dda(this,b)}; Dda=function(a,b){b=void 0===b?{}:b;a.GN=void 0===b.GN?!1:b.GN}; Eda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=fh(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw vda(c,a.C);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0}; Bh=function(a){switch(a.B){case 0:0!=a.B?Bh(a):yh(a.j);break;case 1:a=a.j;dh(a,a.j+8);break;case 2:if(2!=a.B)Bh(a);else{var b=fh(a.j)>>>0;a=a.j;dh(a,a.j+b)}break;case 5:a=a.j;dh(a,a.j+4);break;case 3:b=a.D;do{if(!Eda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.B){if(a.D!=b)throw Error("Unmatched end-group tag");break}Bh(a)}while(1);break;default:throw vda(a.B,a.C);}}; Ch=function(a,b,c){var d=a.j.C,e=fh(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.C=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.C=d}; Fh=function(a){var b=fh(a.j)>>>0;a=a.j;var c=Ada(a,b);a=a.B;if(Fda){var d=a,e;(e=Dh)||(e=Dh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=0===c&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(void 0===Eh){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Eh=!0}catch(p){Eh=!1}}!Eh&&(Dh=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?Bg():(m=a[f++],194>l||128!==(m&192)?(f--,Bg()):c.push((l&31)<<6|m&63)): 240>l?f>=b-1?Bg():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((e=a[f++])&192)?(f--,Bg()):c.push((l&15)<<12|(m&63)<<6|e&63)):244>=l?f>=b-2?Bg():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((e=a[f++])&192)||128!==((d=a[f++])&192)?(f--,Bg()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Bg(),8192<=c.length&&(h=Zca(h,c),c.length=0);f=Zca(h,c)}return f}; Gda=function(a){var b=fh(a.j)>>>0;return Cda(a.j,b)}; Hda=function(a,b){this.B=a>>>0;this.j=b>>>0}; Jda=function(a){if(!a)return Ida||(Ida=new Hda(0,0));if(!/^\d+$/.test(a))return null;ah(a);return new Hda(Xg,Yg)}; Kda=function(a,b){this.B=a>>>0;this.j=b>>>0}; Mda=function(a){if(!a)return Lda||(Lda=new Kda(0,0));if(!/^-?\d+$/.test(a))return null;ah(a);return new Kda(Xg,Yg)}; Gh=function(){this.j=[]}; Nda=function(a,b,c){for(;0>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; Hh=function(a,b){for(;127>>=7;a.j.push(b)}; Oda=function(a,b){if(0<=b)Hh(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; Ih=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)}; Pda=function(){this.C=[];this.B=0;this.j=new Gh}; Jh=function(a,b){0!==b.length&&(a.C.push(b),a.B+=b.length)}; Kh=function(a,b,c){Hh(a.j,8*b+c)}; Qda=function(a,b,c){null!=c&&("string"===typeof c&&Jda(c),Kh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Xg=b,Yg=c,Ih(a,Xg),Ih(a,Yg)):(c=Jda(c),a=a.j,b=c.j,Ih(a,c.B),Ih(a,b)))}; Lh=function(a,b,c){Kh(a,b,2);Hh(a.j,c.length);Jh(a,a.j.end());Jh(a,c)}; Mh=function(a,b,c,d){this.sL=a;this.tL=b;this.j=c;this.K1=d}; Nh=function(a){return Array.prototype.slice.call(a)}; Oh=function(a,b,c){return c?a|b:a&~b}; Rda=function(a,b){Ph(b,(a|0)&-14591)}; Qh=function(a,b){Ph(b,(a|34)&-14557)}; Sda=function(a){a=a>>14&1023;return 0===a?536870912:a}; Uda=function(a){return!(!a||"object"!==typeof a||a.j!==Tda)}; ii=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object}; ji=function(a,b,c){if(null!=a)if("string"===typeof a)a=a?new Pg(a,Og):Qg();else if(a.constructor!==Pg)if(Mg(a))a=a.length?new Pg(c?a:new Uint8Array(a),Og):Qg();else{if(!b)throw Error();a=void 0}return a}; li=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=ki(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;Ph(a,d|1);return!0}; mi=function(a){if(a&2)throw Error();}; Vda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();}; Wda=function(a,b){(b=ni?b[ni]:void 0)&&(a[ni]=Nh(b))}; oi=function(a){a=Error(a);a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity="warning";return a}; pi=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a}; Xda=function(a){if(null==a||"number"===typeof a)return a;if("NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)}; Yda=function(a){return a.displayName||a.name||"unknown type name"}; Zda=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+$a(a)+": "+a);return a}; $da=function(a){if(null==a||"boolean"===typeof a)return a;if("number"===typeof a)return!!a}; qi=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:aea.test(a)}; ri=function(a){if(!Number.isFinite(a))throw oi("enum");return a|0}; si=function(a){return null==a?a:Number.isFinite(a)?a|0:void 0}; bea=function(a){if("number"!==typeof a)throw oi("int32");if(!Number.isFinite(a))throw oi("int32");return a|0}; ti=function(a){return null==a?a:bea(a)}; ui=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a|0:void 0}; vi=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a>>>0:void 0}; dea=function(a,b){b=!!b;if(!qi(a))throw oi("int64");return"string"===typeof a?wi(a):b?cea(a):xi(a)}; yi=function(a){return null==a?a:dea(a)}; zi=function(a){return"-"===a[0]?!1:20>a.length?!0:20===a.length&&184467>Number(a.substring(0,6))}; eea=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337a.length?!0:19===a.length&&922337>Number(a.substring(0,6))}; fea=function(a){if(0>a){Zg(a);var b=$g(Xg,Yg);a=Number(b);return Number.isSafeInteger(a)?a:b}if(zi(String(a)))return a;Zg(a);return 4294967296*Yg+(Xg>>>0)}; xi=function(a){qi(a);a=Math.trunc(a);Number.isSafeInteger(a)||(Zg(a),a=xda(Xg,Yg));return a}; Vi=function(a){qi(a);a=Math.trunc(a);return 0<=a&&Number.isSafeInteger(a)?a:fea(a)}; cea=function(a){qi(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);eea(b)?a=b:(Zg(a),a=zda())}return a}; wi=function(a){qi(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));eea(a)||(ah(a),a=zda());return a}; Wi=function(a){qi(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&0<=b)return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));zi(a)||(ah(a),a=$g(Xg,Yg));return a}; gea=function(a){if(null==a)return a;if(qi(a)){if("string"===typeof a)return Wi(a);if("number"===typeof a)return Vi(a)}}; hea=function(a){if(null==a||"string"==typeof a||Mg(a)||a instanceof Pg)return a}; Xi=function(a){if("string"!==typeof a)throw Error();return a}; Yi=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a}; Zi=function(a){return null==a||"string"===typeof a?a:void 0}; $i=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Yda(b)+" but got "+(a&&Yda(a.constructor)));return a}; iea=function(a,b,c){if(null!=a&&"object"===typeof a&&a.rJ===aj)return a;if(Array.isArray(a)){var d=ki(a),e=d;0===e&&(e|=c&32);e|=c&2;e!==d&&Ph(a,e);return new b(a)}}; cj=function(a,b){bj=b;a=new a(b);bj=void 0;return a}; ej=function(a){switch(typeof a){case "boolean":return dj||(dj=[0,void 0,!0]);case "number":return 0=Sda(b)){if(b&256)return a[a.length-1][c]}else{var e=a.length;if(d&&b&256&&(d=a[e-1][c],null!=d))return d;b=c+(+!!(b&512)-1);if(b=f||e){var h=b;if(b&256)e=a[a.length-1];else{if(null==d)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;cd||d>b.length)throw Error();f=ki(b);b[d]=c(e,!!(4&f)&&!!(4096&f));return a}; Nj=function(a,b,c,d){var e=a.ea,f=gj(e);mi(f);(c=Mj(e,f,c))&&c!==b&&null!=d&&(f=zj(e,f,c));zj(e,f,b,d);return a}; Oj=function(a,b,c,d){var e=gj(a);mi(e);(c=Mj(a,e,c))&&c!==b&&(e=zj(a,e,c));zj(a,e,b,d)}; Pj=function(a,b,c){a=a.ea;return Mj(a,gj(a),b)===c?c:-1}; Mj=function(a,b,c){for(var d=0,e=0;e>>=0}Aj(a,b,c)}; xk=function(a,b,c){return Aj(a,b,yi(c))}; yk=function(a,b,c){if(null!=c){var d=!!d;if(!qi(c))throw oi("uint64");"string"===typeof c?c=Wi(c):d?(qi(c),c=Math.trunc(c),0<=c&&Number.isSafeInteger(c)?c=String(c):(d=String(c),zi(d)?c=d:(Zg(c),c=$g(Xg,Yg)))):c=Vi(c)}Aj(a,b,c)}; zk=function(a,b,c){return Aj(a,b,pi(c))}; P=function(a,b,c){return Aj(a,b,Yi(c))}; Ak=function(a,b,c){return Jj(a,b,Yi(c),"")}; Bk=function(a,b,c){return Aj(a,b,ji(c,!1,!1))}; S=function(a,b,c){return Aj(a,b,null==c?c:ri(c))}; Ck=function(a,b,c,d){Nj(a,b,c,null==d?d:ri(d))}; T=function(a,b,c){this.ea=O(a,b,c)}; Gea=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);ij(b,32);return cj(a,b)}; Dk=function(a,b,c){var d=Hea?void 0:a.constructor.yb;var e=gj(c?a.ea:b);a=b.length;if(!a)return b;var f;if(ii(c=b[a-1])){a:{var h=c;var l={},m=!1,n;for(n in h){var p=h[n];if(Array.isArray(p)){var q=p;if(li(p,d,+n)||Uda(p)&&0===p.size)p=null;p!=q&&(m=!0)}null!=p?l[n]=p:m=!0}if(m){for(var r in l){h=l;break a}h=null}}h!=c&&(f=!0);a--}for(n=+!!(e&512)-1;0h&&(q-=h,h=a[++f]);for(;m>>=7,a.B++;c.push(e);a.B++}}; dfa=function(a){return function(){var b=new Pda;Tea(this.ea,b,Mk(a));Jh(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;ht;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],x=e[2],A=e[3],E=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var F=A^v&(x^A);var G=1518500249}else F=v^x^A,G=1859775393;else 60>t?(F=v&x|A&(v|x),G=2400959708):(F=v^x^A,G=3395469782);F=((q<<5|q>>>27)&4294967295)+F+E+G+r[t]&4294967295;E=A;A=x;x=(v<<30|v>>>2)&4294967295;v=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]= e[2]+x&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+E&4294967295} function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,x=q.length;vn?c(l,56-n):c(l,64-(n-56));for(var t=63;56<=t;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;5>t;t++)for(var v=24;0<=v;v-=8)q[r++]=e[t]>>v&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,w6:function(){for(var q=d(),r="",t=0;tb?a:a.slice(0,b)}; Ym=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]}; $m=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 Ze(a.slice(d,-1!==e?e:0))}; en=function(a,b){for(var c=a.search(Jfa),d=0,e,f=[];0<=(e=Ifa(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(Kfa,"$1")}; Lfa=function(a,b,c){return cn(en(a,b),b,c)}; g.Jn=function(a){g.Ld.call(this);this.headers=new Map;this.Z=a||null;this.C=!1;this.Ca=this.j=null;this.ma="";this.B=0;this.D="";this.G=this.Ea=this.Y=this.Ia=!1;this.N=0;this.va=null;this.Ma="";this.Na=this.K=!1}; Nfa=function(a,b,c,d,e,f,h){var l=new g.Jn;Mfa.push(l);b&&l.Ta("complete",b);l.eJ("ready",l.X5);f&&(l.N=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)}; Ofa=function(a){return g.Cf&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; Qfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Pfa(a);Kn(a)}; Pfa=function(a){a.Ia||(a.Ia=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Rfa=function(a){if(a.C&&"undefined"!=typeof Ln)if(a.Ca[1]&&4==g.Mn(a)&&2==a.getStatus())a.getStatus();else if(a.Y&&4==g.Mn(a))g.yg(a.KZ,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Nn(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=2>1,b),Yn(a,a.length>>1)]}; Zn=function(a,b,c){c=void 0===c?[]:c;this.maxItems=a;this.j=void 0===b?0:b;this.B=c}; aga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Zn(a);var c=b.split(",");if(2>c.length)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Zn(a);b=c.slice(1);1===b.length&&""===b[0]&&(b=[]);c=Number(c[0]);return isNaN(c)||0>c||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Zn(a)):new Zn(a,c,b)}; cga=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=aga(a))}; fga=function(a,b,c,d,e){if(a.index){var f=new Xn(a.logger,"W"),h=(4-($n.length+c.length)%4)%4,l=new Uint8Array(4+h+$n.length+4+c.length),m=new DataView(l.buffer),n=0;m.setUint32(n,4294967295*Math.random());n=n+4+h;l.set($n,n);n+=$n.length;m.setUint32(n,e);l.set(c,n+4);dga(l,d);b=ega(null!=b?b:[]);a.index.Ah(b,function(p){globalThis.sessionStorage.removeItem(p)})?Yfa(b,g.Dg(l))?(a.logger.yE("s"),f.done()):a.logger.yE("t"):a.logger.yE("i")}else a.logger.yE("u")}; ega=function(a){var b=g.u($fa(a,$n));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)}; dga=function(a,b){var c=$fa(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.u(c);c=d.next().value;d=d.next().value;for(var e=1;en;n++)h=h>>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1>>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=gga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=ao(a,l),d+=ao(a,l+4),e+=ao(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 hga.toString(e)}; gga=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.D=b}else a.D=null}; Jo=function(a,b,c){b instanceof Lo?(a.B=b,Bga(a.B,a.N)):(c||(b=Mo(b,Cga)),a.B=new Lo(b,a.N))}; g.No=function(a,b,c){a.B.set(b,c)}; g.Oo=function(a){return a instanceof g.Fo?a.clone():new g.Fo(a)}; Ko=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; Mo=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Dga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; Dga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; Lo=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b}; Po=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Ym(a.C,function(b,c){a.add(Ze(b),c)}))}; Ega=function(a,b){Po(a);b=Qo(a,b);return a.j.has(b)}; g.Fga=function(a,b,c){a.remove(b);0>7,a.error.code].concat(cha(b)))}; lq=function(a,b,c){fq.call(this,a);this.K=b;this.clientState=c;this.C="S";this.B="q"}; mq=function(a){g.I.call(this);var b=this;this.j=void 0;this.D=new g.ho;this.state=1;this.C=0;this.cache=this.B=void 0;this.vz=a.vz;this.vQ=a.vQ;this.onError=a.onError;var c;this.HA=null!=(c=a.HA)?c:function(){}; this.logger=a.Aob?new Wfa:new Xfa(a.jj,a.Wy,a.hpb);this.addOnDisposeCallback(function(){b.j&&(b.j.dispose(),b.j=void 0)})}; gha=function(a,b,c,d){if(!d)throw new eq(4,"PMD:Undefined");d=d(Sg(Ij(b,1)));if(!(d instanceof Function))throw new eq(16,"APF:Failed");return new hq(a.logger,c,d,qk(b,3),1E3*qk(b,2),function(){return a.cache},a.onError)}; iha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G,L;return g.H(function(Q){switch(Q.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Ml(c,6E5,.25,2),e={},f=1;case 2:if(!(2>=f)){Q.Ka(4);break}g.Ba(Q,5);a.state=3;a.C=f-1;return g.z(Q,a.B&&1===f?a.B:a.rD(f),7);case 7:return h=Q.B,a.B=void 0,a.state=4,l=new Xn(a.logger,"b"),g.z(Q,oga(h),8);case 8:return a.state=5,a.HA(1),e.SM=3,m=new io({challenge:h}),n=nq(a,12E4).then(function(aa){return function(){a.HA(aa.SM);return Promise.reject(new eq(15, "MDA:Timeout"))}}(e)),g.z(Q,Promise.race([m.e0, n]),9);case 9:return a.HA(2),p=[],a.HA(4),e.SM=6,g.z(Q,Promise.race([m.snapshot({B1:p}),n]),10);case 10:return q=Q.B,a.HA(5),r=g.u(p),v=t=r.next().value,l.done(),a.state=6,g.z(Q,hha(a,a.logger.GP("g",f,a.vz.IW(q)),new eq(10,"BWB:Timeout")),11);case 11:x=Q.B;a.state=7;A=new Xn(a.logger,"i");if(g.sk(x,4)){m.dispose();var R=new jq(a.logger,g.sk(x,4),1E3*qk(x,2))}else qk(x,3)?R=gha(a,x,m,v):(m.dispose(),R=new iq(a.logger,Sg(Ij(x,1)),1E3*qk(x,2)));E=R;A.done();G=F=void 0;null==(G=(F=a).vQ)||G.call(F,Sg(Ij(x, 1)));a.state=8;return Q.return(E);case 5:L=g.Da(Q);b=L instanceof eq?L:L instanceof bq?new eq(20,"WTO:Disposed",L):L instanceof Vn?new eq(11,"EBH:Error",L):new eq(12,"BSO:Unknown",L);dq(b,a.logger,a.onError);a:{if(L instanceof Vn)switch(L.code){case 2:case 13:case 14:case 4:R=!0;break a;default:R=!1;break a}R=L instanceof eq?20!==L.code:!0}if(!R)throw b;return g.z(Q,nq(a,d.getValue()),12);case 12:g.Nl(d);case 3:e={SM:void 0};f++;Q.Ka(2);break;case 4:throw b;}})}; nq=function(a,b){b=aha(b);g.N(a,b);b.start();return b.Z}; hha=function(a,b,c){return Promise.race([b,nq(a,12E4).then(function(){return Promise.reject(c)})])}; jha=function(a){var b,c,d;g.H(function(e){switch(e.j){case 1:return b=void 0,g.Ba(e,5),g.z(e,iha(a),7);case 7:b=e.B;g.Ca(e,6);break;case 5:c=g.Da(e);if(a.j){a.logger.fJ(13);e.Ka(0);break}a.logger.fJ(14);b=new kq(a.logger,c instanceof eq?c:new eq(14,"SOM:Init",c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.D.resolve(),g.Ba(e,8),g.z(e,a.j.D.promise,10);case 10:g.Ca(e,1);break;case 8:g.Da(e),e.Ka(0)}})}; kha=function(a,b){b=Object.assign({},b);var c=22;try{b.Ry&&!a.cache&&(a.cache=new cga(Math.min(b.Ry.b9,150),a.logger));c=23;var d;if(!a.isReady()&&(null==(d=b.Ry)?0:d.N5)){var e;if(null==(e=a.cache))var f=void 0;else a:{var h=cq(b,a.logger),l=b.Ry.LV;if(e.index){var m=new Xn(e.logger,"R"),n=ega(null!=h?h:[]),p=globalThis.sessionStorage.getItem(n);if(p){try{var q=Fg(p);dga(q,l)}catch(A){globalThis.sessionStorage.removeItem(n);e.logger.xw("c");f=void 0;break a}for(d=4;7>d&&0===q[d];)d++;for(h=0;h<$n.length;h++)if(q[d++]!== $n[h]){globalThis.sessionStorage.removeItem(n);e.logger.xw("d");f=void 0;break a}var r=(new DataView(q.buffer)).getUint32(d);if(Math.floor(Date.now()/1E3)>=r)globalThis.sessionStorage.removeItem(n),e.logger.xw("e");else{var t=new Uint8Array(q.buffer,d+4);m.done();e.logger.xw("a");f=t;break a}}else e.logger.xw("m")}else e.logger.xw("u");f=void 0}if(e=f)return eha(e,"a",a.logger)}}catch(A){dq(new eq(c,22===c?"GBJ:init":"RXO:read",A),a.logger,a.onError)}var v;c=null!=(v=a.j)?v:new lq(a.logger,a.C,a.state); v=new Xn(a.logger,c.C);try{if(a.isDisposed())throw new eq(21,"BNT:disposed");return c.G(b)}catch(A){v=new Xn(a.logger,"e");var x=A instanceof eq?A:new eq(5,"TVD:error",A);dq(x,a.logger,a.onError);c=new kq(a.logger,x);return c.G(b)}finally{v.done()}}; lha=function(a){var b={};g.bc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.j(e)||(b[d]=null)):b[d]=c}); uaa(a,function(c){return null===b[c.event]})}; oq=function(){this.Je=0;this.j=!1;this.B=-1;this.Wv=!1;this.Fk=0}; pq=function(){this.B=null;this.j=!1}; qq=function(a){pq.call(this);this.D=a}; rq=function(){pq.call(this)}; sq=function(){pq.call(this)}; tq=function(){this.j={};this.B=!0;this.C={}}; uq=function(a,b,c){a.j[b]||(a.j[b]=new qq(c));return a.j[b]}; mha=function(a){a.j.queryid||(a.j.queryid=new sq)}; vq=function(a,b,c){(a=a.j[b])&&a.C(c)}; wq=function(a,b){if(g.jd(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()}; xq=function(a){var b={},c=g.cd(a.j,function(d){return d.j}); g.bd(c,function(d,e){d=void 0!==a.C[e]?String(a.C[e]):d.j&&null!==d.B?String(d.B):"";0e?encodeURIComponent(Fha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; Gha=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1}; Er=function(a,b){this.j=a;this.depth=b}; Iha=function(){function a(l,m){return null==l?m:l} var b=Ar(),c=Math.max(b.length-1,0),d=Eha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Er([f.url,f.mP?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Er([e.url,2],0));b.url&&b!=f&&h.push(new Er([b.url,0],a(b.depth,c)));d=g.Fr(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=wha(b.url))&&d.push([new Er([e,1],a(b.depth,c))]);d.push([]);return g.Fr(d,function(l){return Hha(c,l)})}; Hha=function(a,b){g.Gr(b,function(e){return 0<=e.depth}); var c=Hr(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2); d[0]=a;g.bc(b,function(e){return d[e.depth+1]=e.j}); return d}; Jha=function(){var a=void 0===a?Iha():a;return a.map(function(b){return Dr(b)})}; Kha=function(a){var b=!1;b=void 0===b?!1:b;Cq.google_image_requests||(Cq.google_image_requests=[]);var c=xha("IMG",Cq.document);b&&(c.attributionSrc="");c.src=a;Cq.google_image_requests.push(c)}; Ir=function(){this.B=new sha;this.j=Aq()?new Bq:new zq}; Lha=function(){Jr();var a=Cq.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Cq.setInterval&&"function"===typeof Cq.clearInterval&&"function"===typeof Cq.setTimeout&&"function"===typeof Cq.clearTimeout)}; Mha=function(){Jr();return Jha()}; Nha=function(){}; Jr=function(){var a=Gq(Nha);if(!a.j){if(!Cq)throw Error("Context has not been set and window is undefined.");a.j=Gq(Ir)}return a.j}; Kr=function(a){this.ea=O(a)}; Oha=function(a){this.C=a;this.j=-1;this.B=this.D=0}; Lr=function(a,b){return function(){var c=g.Ia.apply(0,arguments);if(-1Math.random())}; bia=function(a){a&&Qr&&Or()&&(Qr.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Qr.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; cia=function(){var a=Rr;this.j=Sr;this.EW="jserror";this.fS=!0;this.HM=null;this.B=this.KP;this.qd=void 0===a?null:a}; dia=function(a,b,c){var d=Tr;return Lr(Mr().j.j,function(){try{if(d.qd&&d.qd.j){var e=d.qd.start(a.toString(),3);var f=b();d.qd.end(e)}else f=b()}catch(l){var h=d.fS;try{bia(e),h=d.B(a,new Ur(Vr(l)),void 0,c)}catch(m){d.KP(217,m)}if(!h)throw l;}return f})()}; Wr=function(a,b,c,d){return Lr(Mr().j.j,function(){var e=g.Ia.apply(0,arguments);return dia(a,function(){return b.apply(c,e)},d)})}; Vr=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}; Ur=function(a){Yha.call(this,Error(a),{message:a})}; eia=function(){Cq&&"undefined"!=typeof Cq.google_measure_js_timing&&(Cq.google_measure_js_timing||Rr.disable())}; fia=function(a){Tr.HM=function(b){g.bc(a,function(c){c(b)})}}; gia=function(a,b){return dia(a,b)}; Xr=function(a,b){return Wr(a,b)}; Yr=function(a,b,c,d){Tr.KP(a,b,c,d)}; Zr=function(){return Date.now()-hia}; iia=function(){var a=Mr().C,b=0<=$r?Zr()-$r:-1,c=as?Zr()-bs:-1,d=0<=cs?Zr()-cs:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Yr(637,Error(),.001);var f=b;-1!=c&&cd?500:h}; ds=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; es=function(a){return a.right-a.left}; fs=function(a,b,c){b instanceof g.Ke?(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}; jia=function(a,b,c){var d=new ds(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c}; gs=function(a,b,c,d,e,f,h,l){this.D=a;this.N=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.Z=l}; lia=function(a){var b=a!==a.top,c=a.top===Aha(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),aba(kia,function(h){return"function"===typeof f[h]})||(e=1)); return{Un:f,compatibility:e,Pca:d}}; mia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint}; nia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Oe(b.innerWidth,b.innerHeight)).round():cca(b||window).round()}catch(d){return new g.Oe(-12245933,-12245933)}}; hs=function(a,b,c){try{a&&(b=b.top);var d=nia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new ds(f,f,f,f);var h=eca(vf(b.document).j),l=h.x,m=h.y;return new ds(m,l+f,m+e,l)}catch(n){return new ds(-12245933,-12245933,-12245933,-12245933)}}; g.is=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; js=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.ls=function(a,b,c){if("string"===typeof b)(b=ks(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=ks(c,d);f&&(c.style[f]=e)}}; ks=function(a,b){var c=oia[b];if(!c){var d=Xba(b);c=d;void 0===a.style[d]&&(d=(g.Vc?"Webkit":ms?"Moz":g.Cf?"ms":null)+Zba(d),void 0!==a.style[d]&&(c=d));oia[b]=c}return c}; g.ns=function(a,b){var c=a.style[Xba(b)];return"undefined"!==typeof c?c:a.style[ks(a,b)]||""}; os=function(a,b){var c=mf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; ps=function(a,b){return os(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; g.rs=function(a,b,c){if(b instanceof g.Ke){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.qs(d,!1);a.style.top=g.qs(b,!1)}; ts=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; pia=function(a){if(g.Cf&&!g.Uc(8))return a.offsetParent;var b=mf(a),c=ps(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=ps(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; g.us=function(a){var b=mf(a),c=new g.Ke(0,0);var d=b?mf(b):document;d=!g.Cf||g.Uc(9)||"CSS1Compat"==vf(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=ts(a);b=eca(vf(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; ria=function(a,b){var c=new g.Ke(0,0),d=Df(mf(a));if(!Rc(d,"parent"))return c;do{var e=d==b?g.us(a):qia(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.vs=function(a,b){a=sia(a);b=sia(b);return new g.Ke(a.x-b.x,a.y-b.y)}; qia=function(a){a=ts(a);return new g.Ke(a.left,a.top)}; sia=function(a){if(1==a.nodeType)return qia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ke(a.clientX,a.clientY)}; g.ws=function(a,b,c){if(b instanceof g.Oe)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.qs(b,!0);a.style.height=g.qs(c,!0)}; g.qs=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; g.xs=function(a){var b=tia;if("none"!=ps(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; tia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Vc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=ts(a),new g.Oe(a.right-a.left,a.bottom-a.top)):new g.Oe(b,c)}; g.ys=function(a,b){a.style.display=b?"":"none"}; zs=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; uia=function(a){return new ds(a.top,a.right,a.bottom,a.left)}; via=function(a){var b=a.top||0,c=a.left||0;return new ds(b,c+(a.width||0),b+(a.height||0),c)}; As=function(a){return null!=a&&0<=a&&1>=a}; wia=function(){var a=g.pc();return a?Bs("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return jc(a,b)})||jc(a,"OMI/")&&!jc(a,"XiaoMi/")?!0:jc(a,"Presto")&&jc(a,"Linux")&&!jc(a,"X11")&&!jc(a,"Android")&&!jc(a,"Mobi"):!1}; xia=function(){this.C=!yr(Cq.top);this.isMobileDevice=xr()||tha();var a=Ar();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.C?!1:a.Bb.B?!1:typeof a.jtypeof b.j?!1:a.jc++;){if(a===b)return!0;try{if(a=g.Sf(a)||a){var d=mf(a),e=d&&Df(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; Tia=function(a,b,c){if(!a||!b)return!1;b=fs(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;yr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!mia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=mf(c))&&b.defaultView&&b.defaultView.frameElement)&&Sia(b,a);var d=a===c;a=!d&&a&&$f(a,function(e){return e===c}); return!(b||d||a)}; Uia=function(a,b,c,d){return Cs().C?!1:0>=es(a)||0>=a.getHeight()?!0:c&&d?gia(208,function(){return Tia(a,b,c)}):!1}; it=function(a,b,c){g.I.call(this);this.position=Via.clone();this.oJ=this.lI();this.FP=-2;this.ida=Date.now();this.J0=-1;this.Jp=b;this.cJ=null;this.iD=!1;this.CJ=null;this.opacity=-1;this.requestSource=c;this.pda=!1;this.MP=function(){}; this.Y0=function(){}; this.Xj=new qha;this.Xj.Ht=a;this.Xj.j=a;this.ut=!1;this.qv={WP:null,VP:null};this.k0=!0;this.gG=null;this.Tz=this.H8=!1;Mr().K++;this.Wh=this.sO();this.E0=-1;this.fg=null;this.hasCompleted=this.E8=!1;this.Mc=new tq;pha(this.Mc);Wia(this);1==this.requestSource?vq(this.Mc,"od",1):vq(this.Mc,"od",0)}; Wia=function(a){a=a.Xj.Ht;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Xia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Yba()):!!a.getAttribute("data-"+Yba());b&&(Cs().B=!0)}; jt=function(a,b){b!=a.Tz&&(a.Tz=b,a=Cs(),b?a.K++:0c?0:a}; $ia=function(a,b,c){if(a.fg){a.fg.ys();var d=a.fg.N,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.CJ=new g.Ke(h.left-f.left,h.top-f.top)}f=a.RK()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.gX(d);a.cJ=d;a.Sa(f,b,c,!1,h,e,d.Z)}}; aja=function(a){if(a.iD&&a.gG){var b=1==wq(a.Mc,"od"),c=Cs().j,d=a.gG,e=a.fg?a.fg.getName():"ns",f=a.CJ,h=new g.Oe(es(c),c.getHeight());c=a.RK();a={Xca:e,CJ:f,Oda:h,RK:c,Je:a.Wh.Je,Ida:b};if(b=d.B){b.ys();e=b.N;f=e.D.j;var l=h=null;null!=e.K&&f&&(h=e.C,h=new g.Ke(h.left-f.left,h.top-f.top),l=new g.Oe(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={Xca:b.getName(),CJ:h,Oda:l,RK:c,Ida:!1,Je:e}}else c=null;c&&Mia(d,a,c)}}; bja=function(a,b,c){b&&(a.MP=b);c&&(a.Y0=c)}; g.kt=function(){}; g.lt=function(a){return{value:a,done:!1}}; cja=function(){this.D=this.j=this.C=this.B=this.G=0}; dja=function(a){var b={};var c=g.kb()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b}; eja=function(){oq.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; mt=function(a){return As(a.volume)&&0Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ma;var d=c-a.ma,e=0;0<=d?(a.va+=b,a.Ma+=Math.max(b-d,0),e=Math.min(d,a.va)):a.Wa+=Math.abs(d);0!=d&&(a.va=0);-1==a.Xa&&0=a.C/2:0=a.Ea:!1:!1}; sja=function(a){var b=zs(a.Wh.Je,2),c=a.Sg.C,d=a.Wh,e=Gt(a),f=Ft(e.D),h=Ft(e.K),l=Ft(d.volume),m=zs(e.N,2),n=zs(e.va,2),p=zs(d.Je,2),q=zs(e.Ca,2),r=zs(e.Ea,2);d=zs(d.Fk,2);a=a.Ws().clone();a.round();e=et(e,!1);return{Nda:b,fE:c,sJ:f,iJ:h,OC:l,tJ:m,kJ:n,Je:p,vJ:q,lJ:r,Fk:d,position:a,xJ:e}}; uja=function(a,b){tja(a.j,b,function(){return{Nda:0,fE:void 0,sJ:-1,iJ:-1,OC:-1,tJ:-1,kJ:-1,Je:-1,vJ:-1,lJ:-1,Fk:-1,position:void 0,xJ:[]}}); a.j[b]=sja(a)}; tja=function(a,b,c){for(var d=a.length;da.Na&&a.Na++;return b}; Cja=function(){this.j={};var a=Df();Lt(this,a,document);var b=Bja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Lt(this,c,c.document);Lt(this,a.top,a.top.document)}}catch(d){}}; Bja=function(){var a=document.documentElement;try{if(!yr(Df().top))return"2";var b=[],c=Df(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}}; Lt=function(a,b,c){ft(c,"mousedown",function(){return Dja(a)},301); ft(b,"scroll",function(){return Eja(a)},302); ft(c,"touchmove",function(){return Fja(a)},303); ft(c,"mousemove",function(){return Gja(a)},304); ft(c,"keydown",function(){return Hja(a)},305)}; Dja=function(a){g.bd(a.j,function(b){1E5c.time?b:c},a[0])}; Ut=function(a){a=void 0===a?Cq:a;Ks.call(this,new Gs(a,2))}; Vt=function(){var a=Uja();Gs.call(this,Cq.top,a,"geo")}; Uja=function(){Mr();var a=Cs();return a.C||a.B?0:2}; Vja=function(){}; Wt=function(){this.done=!1;this.j={s5:0,rV:0,Cob:0,uW:0,ZO:-1,f6:0,e6:0,g6:0,Uca:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new Fs(this)}; Yt=function(){var a=Xt;a.K||(a.K=!0,Wja(a,function(){return a.D.apply(a,g.pa(g.Ia.apply(0,arguments)))}),a.D())}; Xja=function(){Gq(Vja);var a=Gq(Pt);null!=a.j&&a.j.j?Aia(a.j.j):Cs().update(Cq)}; Zt=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Xja();var d=Zr();Mr().G=d;if(null!=Gq(Pt).j)for(var e=0;eg.id(gka).length?null:Hr(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===hka[d[0]]||!hka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; jka=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?Ts(b.j,a.j):Ts(b.B,a.j);case "tos":return a.B?Ss(b.j,a.j):Ss(b.B,a.j)}return 0}; eu=function(a,b,c,d){wt.call(this,b,d);this.N=a;this.Z=c}; fu=function(){}; gu=function(a){wt.call(this,"fully_viewable_audible_half_duration_impression",a)}; hu=function(a){this.j=a}; iu=function(a,b){wt.call(this,a,b)}; ju=function(a){xt.call(this,"measurable_impression",a)}; ku=function(){hu.apply(this,arguments)}; lu=function(a,b,c){Bt.call(this,a,b,c)}; mu=function(a){a=void 0===a?Cq:a;Ks.call(this,new Gs(a,2))}; nu=function(a,b,c){Bt.call(this,a,b,c)}; ou=function(a){a=void 0===a?Cq:a;Ks.call(this,new Gs(a,2))}; pu=function(){Gs.call(this,Cq,2,"mraid");this.Ma=0;this.va=this.Ca=!1;this.N=null;this.B=lia(this.C);this.D.j=new ds(0,0,0,0);this.Na=!1}; qu=function(a,b,c){a.Wt("addEventListener",b,c)}; nka=function(a){Mr().D=!!a.Wt("isViewable");qu(a,"viewableChange",kka);"loading"===a.Wt("getState")?qu(a,"ready",lka):mka(a)}; mka=function(a){"string"===typeof a.B.Un.AFMA_LIDAR?(a.Ca=!0,oka(a)):(a.B.compatibility=3,a.N="nc",a.xj("w"))}; oka=function(a){a.va=!1;var b=1==wq(Mr().Mc,"rmmt"),c=!!a.Wt("isViewable");(b?!c:1)&&Jr().setTimeout(Xr(524,function(){a.va||(pka(a),Yr(540,Error()),a.N="mt",a.xj("w"))}),500); qka(a);qu(a,a.B.Un.AFMA_LIDAR,rka)}; qka=function(a){var b=1==wq(Mr().Mc,"sneio"),c=void 0!==a.B.Un.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Un.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Un.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Un.AFMA_LIDAR_EXP_1=!b)}; pka=function(a){a.Wt("removeEventListener",a.B.Un.AFMA_LIDAR,rka);a.Ca=!1}; ska=function(a,b){if("loading"===a.Wt("getState"))return new g.Oe(-1,-1);b=a.Wt(b);if(!b)return new g.Oe(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Oe(-1,-1):new g.Oe(a,b)}; lka=function(){try{var a=Gq(pu);a.Wt("removeEventListener","ready",lka);mka(a)}catch(b){Yr(541,b)}}; rka=function(a,b){try{var c=Gq(pu);c.va=!0;var d=a?new ds(a.y,a.x+a.width,a.y+a.height,a.x):new ds(0,0,0,0);var e=Zr(),f=Es();var h=new jia(e,f,c);h.j=d;h.volume=b;c.kt(h)}catch(l){Yr(542,l)}}; kka=function(a){var b=Mr(),c=Gq(pu);a&&!b.D&&(b.D=!0,c.Na=!0,c.N&&c.xj("w",!0))}; ru=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.j8,a.firstquartile=this.e8,a.midpoint=this.g8,a.thirdquartile=this.k8,a.complete=this.b8,a.error=this.c8,a.pause=this.XQ,a.resume=this.I_,a.skip=this.i8,a.viewable_impression=this.Bp,a.mute=this.KB,a.unmute=this.KB,a.fullscreen=this.f8,a.exitfullscreen=this.d8,a.fully_viewable_audible_half_duration_impression=this.Bp,a.measurable_impression=this.Bp,a.abandon=this.XQ,a.engagedview=this.Bp,a.impression=this.Bp,a.creativeview= this.Bp,a.progress=this.KB,a.custom_metric_viewable=this.Bp,a.bufferstart=this.XQ,a.bufferfinish=this.I_,a.audio_measurable=this.Bp,a.audio_audible=this.Bp,a);a={};this.N=(a.overlay_resize=this.h8,a.abandon=this.MO,a.close=this.MO,a.collapse=this.MO,a.overlay_unmeasurable_impression=function(b){return Jt(b,"overlay_unmeasurable_impression",Es())},a.overlay_viewable_immediate_impression=function(b){return Jt(b,"overlay_viewable_immediate_impression",Es())},a.overlay_unviewable_impression=function(b){return Jt(b, "overlay_unviewable_impression",Es())},a.overlay_viewable_end_of_session_impression=function(b){return Jt(b,"overlay_viewable_end_of_session_impression",Es())},a); Mr().B=3;tka(this)}; tu=function(a,b,c,d){a=a.zF(null,d,!0,b);a.D=c;Nja([a]);return a}; uka=function(a,b,c){lha(b);var d=a.j;g.bc(b,function(e){var f=g.Fr(e.criteria,function(h){var l=ika(h);if(null==l)h=null;else if(h=new fka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Eaa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h}); Bs(f,function(h){return null==h})||qja(c,new eu(e.id,e.event,f,d))})}; vka=function(){var a=[],b=Mr();a.push(Gq(Vt));wq(b.Mc,"mvp_lv")&&a.push(Gq(pu));b=[new mu,new ou];b.push(new Qt(a));b.push(new Ut(Cq));return b}; wka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Zr(),c=Mr(),d=Cs();$r=b;c.C=79463069;"o"!==a.B&&(aka=Aha(Cq));if(Lha()){Xt.j.rV=0;Xt.j.ZO=Zr()-b;var e=vka(),f=Gq(Pt);f.B=e;Pja(f,function(){uu()})?Xt.done||(Yja(),Hs(f.j.j,a),Yt()):d.C?uu():Yt()}else vu=!0}catch(h){throw Nt.reset(),h; }}}; xu=function(a){Xt.B.cancel();wu=a;Xt.done=!0}; yu=function(a){if(a.B)return a.B;var b=Gq(Pt).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B}; zu=function(a,b,c){if(null==a.j)return b.NB|=4,!1;a=xka(a.j,c,b);b.NB|=a;return 0==a}; uu=function(){var a=[new Ut(Cq)],b=Gq(Pt);b.B=a;Pja(b,function(){xu("i")})?Xt.done||(Yja(),Yt()):xu("i")}; yka=function(a,b){if(!a.Db){var c=Jt(a,"start",Es());c=a.YQ.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="961";null!==au&&(d.v=au);Ym(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)}); b=bka();Ym(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//pagead2.googlesyndication.com/pagead/gen_204?"+Ns(Ms(new Ls,d));Kia(b);a.Db=!0}}; Au=function(a,b,c){Zt(Xt,[a],!Es());uja(a,c);4!=c&&tja(a.Ca,c,a.lI);return Jt(a,b,Es())}; tka=function(a){$ja(function(){var b=zka();null!=a.B&&(b.sdk=a.B);var c=Gq(Pt);null!=c.j&&(b.avms=c.j.getName());return b})}; Aka=function(a,b,c,d){var e=Jja(Nt,c);null!==e&&e.ij!==b&&(a.CH(e),e=null);e||(b=a.zF(c,Zr(),!1,b),0==Nt.B.length&&(Mr().C=79463069),Oja([b]),e=b,e.D=yu(a),d&&(e.eb=d));return e}; Bka=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)}; lla=function(a){if(!a)return nv;var b=document.createElement("div").style;hla(a).forEach(function(c){var d=g.Vc&&c in ila?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ec(d,"--")||ec(d,"var")||(c=gla(jla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=ela(c),null!=c&&gla(kla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return new g.me(b.cssText||"",Ge)}; hla=function(a){g.ab(a)?a=g.Lb(a):(a=g.id(a),g.Ib(a,"cssText"));return a}; g.pv=function(a){var b,c=b=0,d=!1;a=a.split(mla);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=wv(a,c);var l=(wv(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.kb()}; g.Ev=function(a){this.j=a}; wla=function(){}; Fv=function(){}; Gv=function(a){this.j=a;this.B=null}; Hv=function(a){if(null==a.j)throw Error("Storage mechanism: Storage unavailable");var b;(null!=(b=a.B)?b:a.isAvailable())||dg(Error("Storage mechanism: Storage unavailable"))}; Iv=function(){var a=null;try{a=g.Ta.localStorage||null}catch(b){}Gv.call(this,a)}; xla=function(){var a=null;try{a=g.Ta.sessionStorage||null}catch(b){}Gv.call(this,a)}; g.Jv=function(a,b){this.B={};this.j=[];this.Au=this.size=0;var c=arguments.length;if(1=this.j.length){for(var c=this.j,d=0;df?1:2048>f?2:65536>f?3:4}var l=new Vv.Jx(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}; Wv=function(a){for(var b=a.length;0<=--b;)a[b]=0}; Xv=function(a,b,c,d,e){this.u0=a;this.Q6=b;this.P6=c;this.D6=d;this.f9=e;this.TX=a&&a.length}; Yv=function(a,b){this.wW=a;this.sA=0;this.mu=b}; Zv=function(a,b){a.zg[a.pending++]=b&255;a.zg[a.pending++]=b>>>8&255}; $v=function(a,b,c){a.zi>16-c?(a.vj|=b<>16-a.zi,a.zi+=c-16):(a.vj|=b<>>=1,c<<=1;while(0<--b);return c>>>1}; Cla=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]=Bla(d[e]++,e))}; Dla=function(a){var b;for(b=0;286>b;b++)a.bk[2*b]=0;for(b=0;30>b;b++)a.xv[2*b]=0;for(b=0;19>b;b++)a.Yi[2*b]=0;a.bk[512]=1;a.vr=a.CB=0;a.xm=a.matches=0}; Ela=function(a){8e?fw[e]:fw[256+(e>>>7)];aw(a,h,c);l=gw[h];0!==l&&(e-=hw[h],$v(a,e,l))}}while(da.Sq;){var m=a.Gg[++a.Sq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.vr--;e&&(a.CB-=d[2*m+1])}b.sA=l;for(h=a.Sq>>1;1<=h;h--)bw(a,c,h);m=f;do h=a.Gg[1],a.Gg[1]=a.Gg[a.Sq--],bw(a,c,1),d=a.Gg[1],a.Gg[--a.Lz]=h,a.Gg[--a.Lz]=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.Gg[1]=m++,bw(a,c,1);while(2<= a.Sq);a.Gg[--a.Lz]=a.Gg[1];h=b.wW;m=b.sA;d=b.mu.u0;e=b.mu.TX;f=b.mu.Q6;var n=b.mu.P6,p=b.mu.f9,q,r=0;for(q=0;15>=q;q++)a.xq[q]=0;h[2*a.Gg[a.Lz]+1]=0;for(b=a.Lz+1;573>b;b++){var t=a.Gg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.xq[q]++;var v=0;t>=n&&(v=f[t-n]);var x=h[2*t];a.vr+=x*(q+v);e&&(a.CB+=x*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.xq[q];)q--;a.xq[q]--;a.xq[q+1]+=2;a.xq[p]--;r-=2}while(0m||(h[2*d+1]!==q&&(a.vr+=(q- h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}Cla(c,l,a.xq)}; Ila=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.Yi[34]++:a.Yi[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}}; Jla=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?(aw(a,17,a.Yi),$v(a,h-3,3)):(aw(a,18,a.Yi),$v(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}}; Kla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.bk[2*c])return 0;if(0!==a.bk[18]||0!==a.bk[20]||0!==a.bk[26])return 1;for(c=32;256>c;c++)if(0!==a.bk[2*c])return 1;return 0}; jw=function(a,b,c){a.zg[a.bD+2*a.xm]=b>>>8&255;a.zg[a.bD+2*a.xm+1]=b&255;a.zg[a.wP+a.xm]=c&255;a.xm++;0===b?a.bk[2*c]++:(a.matches++,b--,a.bk[2*(cw[c]+256+1)]++,a.xv[2*(256>b?fw[b]:fw[256+(b>>>7)])]++);return a.xm===a.xE-1}; lw=function(a,b){a.msg=kw[b];return b}; mw=function(a){for(var b=a.length;0<=--b;)a[b]=0}; nw=function(a){var b=a.state,c=b.pending;c>a.Re&&(c=a.Re);0!==c&&(Vv.Ny(a.output,b.zg,b.hF,c,a.AA),a.AA+=c,b.hF+=c,a.wS+=c,a.Re-=c,b.pending-=c,0===b.pending&&(b.hF=0))}; qw=function(a,b){var c=0<=a.Nk?a.Nk:-1,d=a.Eb-a.Nk,e=0;if(0>>3;var h=a.CB+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)$v(a,b?1:0,3),Fla(a,c,d);else if(4===a.strategy||h===f)$v(a,2+(b?1:0),3),Hla(a,ow,pw);else{$v(a,4+(b?1:0),3);c=a.ZI.sA+1;d=a.BH.sA+1;e+=1;$v(a,c-257,5);$v(a,d-1,5);$v(a,e-4,4);for(f=0;f>>8&255;a.zg[a.pending++]=b&255}; Mla=function(a,b){var c=a.TY,d=a.Eb,e=a.fl,f=a.kZ,h=a.Eb>a.pj-262?a.Eb-(a.pj-262):0,l=a.window,m=a.Bu,n=a.Tp,p=a.Eb+258,q=l[d+e-1],r=l[d+e];a.fl>=a.uX&&(c>>=2);f>a.pc&&(f=a.pc);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&de){a.qA=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!== --c);return e<=a.pc?e:a.pc}; ww=function(a){var b=a.pj,c;do{var d=a.E1-a.pc-a.Eb;if(a.Eb>=b+(b-262)){Vv.Ny(a.window,a.window,b,b,0);a.qA-=b;a.Eb-=b;a.Nk-=b;var e=c=a.CI;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Tp[--e],a.Tp[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Ce.uj)break;e=a.Ce;c=a.window;f=a.Eb+a.pc;var h=e.uj;h>d&&(h=d);0===h?c=0:(e.uj-=h,Vv.Ny(c,e.input,e.Ew,h,f),1===e.state.wrap?e.Zd=uw(e.Zd,c,h,f):2===e.state.wrap&&(e.Zd=vw(e.Zd,c,h,f)),e.Ew+=h,e.Cx+=h,c=h);a.pc+=c;if(3<=a.pc+a.Ah)for(d=a.Eb-a.Ah, a.Ke=a.window[d],a.Ke=(a.Ke<a.pc+a.Ah););}while(262>a.pc&&0!==a.Ce.uj)}; xw=function(a,b){for(var c;;){if(262>a.pc){ww(a);if(262>a.pc&&0===b)return 1;if(0===a.pc)break}c=0;3<=a.pc&&(a.Ke=(a.Ke<a.Eb?a.Eb:2;return 4===b?(qw(a,!0),0===a.Ce.Re?3:4):a.xm&&(qw(a,!1),0===a.Ce.Re)?1:2}; yw=function(a,b){for(var c,d;;){if(262>a.pc){ww(a);if(262>a.pc&&0===b)return 1;if(0===a.pc)break}c=0;3<=a.pc&&(a.Ke=(a.Ke<=a.kf&&(1===a.strategy||3===a.kf&&4096a.Eb?a.Eb:2;return 4===b?(qw(a,!0),0===a.Ce.Re?3:4):a.xm&&(qw(a,!1),0===a.Ce.Re)?1:2}; Nla=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.pc){ww(a);if(258>=a.pc&&0===b)return 1;if(0===a.pc)break}a.kf=0;if(3<=a.pc&&0a.pc&&(a.kf=a.pc)}3<=a.kf?(c=jw(a,1,a.kf-3),a.pc-=a.kf,a.Eb+=a.kf,a.kf=0):(c=jw(a,0,a.window[a.Eb]),a.pc--,a.Eb++);if(c&&(qw(a,!1),0===a.Ce.Re))return 1}a.Ah=0;return 4=== b?(qw(a,!0),0===a.Ce.Re?3:4):a.xm&&(qw(a,!1),0===a.Ce.Re)?1:2}; Ola=function(a,b){for(var c;;){if(0===a.pc&&(ww(a),0===a.pc)){if(0===b)return 1;break}a.kf=0;c=jw(a,0,a.window[a.Eb]);a.pc--;a.Eb++;if(c&&(qw(a,!1),0===a.Ce.Re))return 1}a.Ah=0;return 4===b?(qw(a,!0),0===a.Ce.Re?3:4):a.xm&&(qw(a,!1),0===a.Ce.Re)?1:2}; zw=function(a,b,c,d,e){this.H7=a;this.e9=b;this.x9=c;this.d9=d;this.func=e}; Pla=function(){this.Ce=null;this.status=0;this.zg=null;this.wrap=this.pending=this.hF=this.Cm=0;this.Td=null;this.Fn=0;this.method=8;this.gA=-1;this.Bu=this.PS=this.pj=0;this.window=null;this.E1=0;this.head=this.Tp=null;this.kZ=this.uX=this.strategy=this.level=this.JP=this.TY=this.fl=this.pc=this.qA=this.Eb=this.yw=this.p_=this.kf=this.Nk=this.Qq=this.Pq=this.RO=this.CI=this.Ke=0;this.bk=new Vv.jq(1146);this.xv=new Vv.jq(122);this.Yi=new Vv.jq(78);mw(this.bk);mw(this.xv);mw(this.Yi);this.JV=this.BH= this.ZI=null;this.xq=new Vv.jq(16);this.Gg=new Vv.jq(573);mw(this.Gg);this.Lz=this.Sq=0;this.depth=new Vv.jq(573);mw(this.depth);this.zi=this.vj=this.Ah=this.matches=this.CB=this.vr=this.bD=this.xm=this.xE=this.wP=0}; Qla=function(a,b){if(!a||!a.state||5b)return a?lw(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.uj||666===c.status&&4!==b)return lw(a,0===a.Re?-5:-2);c.Ce=a;var d=c.gA;c.gA=b;if(42===c.status)if(2===c.wrap)a.Zd=0,rw(c,31),rw(c,139),rw(c,8),c.Td?(rw(c,(c.Td.text?1:0)+(c.Td.nt?2:0)+(c.Td.extra?4:0)+(c.Td.name?8:0)+(c.Td.comment?16:0)),rw(c,c.Td.time&255),rw(c,c.Td.time>>8&255),rw(c,c.Td.time>>16&255),rw(c,c.Td.time>>24&255),rw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),rw(c,c.Td.os& 255),c.Td.extra&&c.Td.extra.length&&(rw(c,c.Td.extra.length&255),rw(c,c.Td.extra.length>>8&255)),c.Td.nt&&(a.Zd=vw(a.Zd,c.zg,c.pending,0)),c.Fn=0,c.status=69):(rw(c,0),rw(c,0),rw(c,0),rw(c,0),rw(c,0),rw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),rw(c,3),c.status=113);else{var e=8+(c.PS-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Eb&&(e|=32);c.status=113;tw(c,e+(31-e%31));0!==c.Eb&&(tw(c,a.Zd>>>16),tw(c,a.Zd&65535));a.Zd=1}if(69===c.status)if(c.Td.extra){for(e= c.pending;c.Fn<(c.Td.extra.length&65535)&&(c.pending!==c.Cm||(c.Td.nt&&c.pending>e&&(a.Zd=vw(a.Zd,c.zg,c.pending-e,e)),nw(a),e=c.pending,c.pending!==c.Cm));)rw(c,c.Td.extra[c.Fn]&255),c.Fn++;c.Td.nt&&c.pending>e&&(a.Zd=vw(a.Zd,c.zg,c.pending-e,e));c.Fn===c.Td.extra.length&&(c.Fn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Td.name){e=c.pending;do{if(c.pending===c.Cm&&(c.Td.nt&&c.pending>e&&(a.Zd=vw(a.Zd,c.zg,c.pending-e,e)),nw(a),e=c.pending,c.pending===c.Cm)){var f=1;break}f=c.Fne&&(a.Zd=vw(a.Zd,c.zg,c.pending-e,e));0===f&&(c.Fn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Td.comment){e=c.pending;do{if(c.pending===c.Cm&&(c.Td.nt&&c.pending>e&&(a.Zd=vw(a.Zd,c.zg,c.pending-e,e)),nw(a),e=c.pending,c.pending===c.Cm)){f=1;break}f=c.Fne&&(a.Zd=vw(a.Zd,c.zg,c.pending-e,e));0===f&&(c.status=103)}else c.status= 103;103===c.status&&(c.Td.nt?(c.pending+2>c.Cm&&nw(a),c.pending+2<=c.Cm&&(rw(c,a.Zd&255),rw(c,a.Zd>>8&255),a.Zd=0,c.status=113)):c.status=113);if(0!==c.pending){if(nw(a),0===a.Re)return c.gA=-1,0}else if(0===a.uj&&(b<<1)-(4>=8,c.zi-=8)):5!==b&&($v(c,0,3),Fla(c,0,0),3===b&&(mw(c.head),0===c.pc&&(c.Eb=0,c.Nk=0,c.Ah=0))),nw(a),0===a.Re))return c.gA=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(rw(c,a.Zd&255),rw(c,a.Zd>>8&255),rw(c,a.Zd>>16&255),rw(c,a.Zd>>24&255),rw(c,a.Cx&255),rw(c,a.Cx>>8&255),rw(c,a.Cx>>16&255),rw(c,a.Cx>>24&255)):(tw(c,a.Zd>>>16),tw(c,a.Zd&65535));nw(a);0a.Cu&&(a.Cu+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Ce=new Rla;this.Ce.Re=0;var b=this.Ce;var c=a.level,d=a.method,e=a.Cu,f=a.l9,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.Zd=2===c.wrap?0:1;c.gA=0;if(!Sla){d=Array(16);for(f=h=0;28>f;f++)for(ew[f]=h,e=0;e< 1<f;f++)for(hw[f]=h,e=0;e<1<>=7;30>f;f++)for(hw[f]=h<<7,e=0;e<1<=e;e++)d[e]=0;for(e=0;143>=e;)ow[2*e+1]=8,e++,d[8]++;for(;255>=e;)ow[2*e+1]=9,e++,d[9]++;for(;279>=e;)ow[2*e+1]=7,e++,d[7]++;for(;287>=e;)ow[2*e+1]=8,e++,d[8]++;Cla(ow,287,d);for(e=0;30>e;e++)pw[2*e+1]=5,pw[2*e]=Bla(e,5);Tla=new Xv(ow,dw,257,286,15);Ula=new Xv(pw,gw,0,30,15);Vla=new Xv([],Wla,0,19,7);Sla=!0}c.ZI=new Yv(c.bk,Tla); c.BH=new Yv(c.xv,Ula);c.JV=new Yv(c.Yi,Vla);c.vj=0;c.zi=0;Dla(c);c=0}else c=lw(b,-2);0===c&&(b=b.state,b.E1=2*b.pj,mw(b.head),b.JP=Aw[b.level].e9,b.uX=Aw[b.level].H7,b.kZ=Aw[b.level].x9,b.TY=Aw[b.level].d9,b.Eb=0,b.Nk=0,b.pc=0,b.Ah=0,b.kf=b.fl=2,b.yw=0,b.Ke=0);b=c}}else b=-2;if(0!==b)throw Error(kw[b]);a.header&&(b=this.Ce)&&b.state&&2===b.state.wrap&&(b.state.Td=a.header);if(a.cD){var n;"string"===typeof a.cD?n=Ala(a.cD):"[object ArrayBuffer]"===Xla.call(a.cD)?n=new Uint8Array(a.cD):n=a.cD;a=this.Ce; f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.pc)b=-2;else{1===b&&(a.Zd=uw(a.Zd,f,h,0));n.wrap=0;h>=n.pj&&(0===b&&(mw(n.head),n.Eb=0,n.Nk=0,n.Ah=0),c=new Vv.Jx(n.pj),Vv.Ny(c,f,h-n.pj,n.pj,0),f=c,h=n.pj);c=a.uj;d=a.Ew;e=a.input;a.uj=h;a.Ew=0;a.input=f;for(ww(n);3<=n.pc;){f=n.Eb;h=n.pc-2;do n.Ke=(n.Ke<=c[44]&&(7>=c[69]?(((0,c[14])(c[15],c[46],(0,c[-35427-Math.pow(7,4)- -37885])()),c[27])((0,c[17])(c[46],c[32])^(0,c[38])(c[46],c[42]),c[14],(0,c[14])(c[59],c[new Date("1969-12-31T12:45:46.000-11:15")/1E3],(0,c[75])()),c[59],c[54],(0,c[432%Math.pow(3,1)+43])()),c[14])(c[59],c[46],(0,c[57])())>>> (0,c[58])(c[68],c[41]):((0,c[38])(c[46],c[2]),c[27])((0,c[38])(c[new Date("1969-12-31T19:00:41.000-05:00")/1E3],c[47]),c[144+Math.pow(4,3)+-186],(((0,c[0])((0,c[45])(c[62],c[6],(0,c[30])()),c[47],c[77]),c[45])(c[46],c[77],(0,c[74])()),c[76])(c[72],c[38640-Math.pow(new Date("1969-12-31T18:30:05.000-05:30")/1E3,3)-38474]),c[64],c[12])),-3!==c[39]&&(0,c[new Date("1970-01-01T06:00:04.000+06:00")/1E3])(((((0,c[38])(c[61],c[37]),(0,c[new Date("1969-12-31T20:30:04.000-03:30")/1E3])((0,c[17])(c[54],c[34]), c[6],c[41],c[78]),c[11])(c[72],(0,c[new Date("1970-01-01T04:45:38.000+04:45")/1E3])(c[33],c[55]),(0,c[18])(c[42],c[66]),(0,c[Math.pow(5,1)+-13664+13698])(c[47],c[67]),c[55])-(0,c[39])(c[178%(new Date("1970-01-01T04:03:20.000+04:00")/1E3)-Math.pow(7,2)+new Date("1970-01-01T05:58:46.000+06:00")/1E3],c[58*Math.pow(4,5)+-59373]))*(0,c[59])(c[26],c[62]),(0,c[new Date("1969-12-31T13:00:46.000-11:00")/1E3])(c[2],c[9]),c[71])(c[55],c[63])<=((0,c[46])(c[47],c[74]),c[39])(c[47],c[3600-Math.pow(4,3)-3487]), c[87079-170*Math.pow(8,new Date("1969-12-31T19:00:03.000-05:00")/1E3)],c[34],c[20])}try{9<=c[20]?(((0,c[35])(c[26],c[1]),c[10])(c[6],c[50]),c[41%(new Date("1969-12-31T20:47:16.000-03:15")/1E3)+Math.pow(4,5)+-1006])(c[24],c[11],(0,c[8])()):((0,c[49])((0,c[10])(c[6],c[14]),c[61],c[78]),c[69])(c[73],c[75]),(0,c[30])((0,c[18])(c[54]),c[76],c[1],c[0])}catch(d){}}catch(d){return"enhanced_except_05oBrOX-_w8_"+a}return b.join("")}; g.Hw=function(a){this.name=a}; Iw=function(a){this.ea=O(a)}; Jw=function(a){this.ea=O(a)}; Kw=function(a){this.ea=O(a)}; Lw=function(a){this.ea=O(a)}; Mw=function(a){this.ea=O(a)}; Nw=function(a){this.ea=O(a)}; Ow=function(a){this.ea=O(a)}; Pw=function(a){this.ea=O(a)}; Qw=function(a){this.ea=O(a)}; Rw=function(a){this.ea=O(a)}; Sw=function(a){this.ea=O(a)}; Tw=function(a){this.ea=O(a)}; Uw=function(a){this.ea=O(a)}; Vw=function(a){this.ea=O(a)}; Ww=function(a){this.ea=O(a)}; Xw=function(a){this.ea=O(a)}; Yw=function(a){this.ea=O(a)}; Zw=function(a){this.ea=O(a)}; $w=function(a){this.ea=O(a)}; ax=function(a){this.ea=O(a)}; bx=function(a){this.ea=O(a)}; cx=function(a){this.ea=O(a)}; dx=function(a){this.ea=O(a)}; ex=function(a){this.ea=O(a)}; fx=function(a){this.ea=O(a)}; gx=function(a){this.ea=O(a)}; hx=function(a){this.ea=O(a)}; ix=function(a){this.ea=O(a)}; jx=function(a){this.ea=O(a)}; kx=function(a){this.ea=O(a)}; lx=function(a){this.ea=O(a)}; mx=function(a){this.ea=O(a)}; nx=function(a){this.ea=O(a)}; ox=function(a){this.ea=O(a)}; px=function(a){this.ea=O(a)}; qx=function(a){this.ea=O(a)}; rx=function(a){this.ea=O(a)}; sx=function(a){this.ea=O(a)}; tx=function(a){this.ea=O(a)}; ux=function(a){this.ea=O(a)}; vx=function(a){this.ea=O(a)}; wx=function(a){this.ea=O(a)}; xx=function(a){this.ea=O(a)}; yx=function(a){this.ea=O(a)}; zx=function(a){this.ea=O(a)}; Ax=function(a){this.ea=O(a)}; Bx=function(a){this.ea=O(a)}; Cx=function(a){this.ea=O(a)}; Dx=function(a){this.ea=O(a)}; Ex=function(a){this.ea=O(a)}; Fx=function(a){this.ea=O(a)}; Gx=function(a){this.ea=O(a)}; Hx=function(a){this.ea=O(a)}; Ix=function(a){this.ea=O(a)}; Jx=function(a){this.ea=O(a)}; Kx=function(a){this.ea=O(a)}; Lx=function(a){this.ea=O(a)}; Mx=function(a){this.ea=O(a)}; Nx=function(a){this.ea=O(a)}; Ox=function(a){this.ea=O(a)}; ey=function(a){this.ea=O(a)}; fy=function(a){this.ea=O(a)}; gy=function(a){this.ea=O(a)}; hy=function(a){this.ea=O(a)}; iy=function(a){this.ea=O(a)}; jy=function(a){this.ea=O(a)}; ky=function(a){this.ea=O(a)}; ly=function(a){this.ea=O(a)}; my=function(a){this.ea=O(a)}; ny=function(a){this.ea=O(a)}; oy=function(a){this.ea=O(a)}; py=function(a){this.ea=O(a)}; qy=function(a){this.ea=O(a)}; ry=function(a){this.ea=O(a)}; sy=function(a){this.ea=O(a)}; ty=function(a){this.ea=O(a)}; uy=function(a){this.ea=O(a)}; vy=function(a){this.ea=O(a)}; wy=function(a){this.ea=O(a)}; yy=function(a){this.ea=O(a)}; zy=function(a){this.ea=O(a)}; Ay=function(a){this.ea=O(a)}; hma=function(a,b){return vk(a,1,b)}; By=function(a){this.ea=O(a)}; Cy=function(a){this.ea=O(a)}; Dy=function(a){this.ea=O(a)}; Ey=function(a){this.ea=O(a)}; Fy=function(a){this.ea=O(a)}; Gy=function(a){this.ea=O(a)}; Hy=function(a){this.ea=O(a)}; Iy=function(a){this.ea=O(a)}; Jy=function(a){this.ea=O(a)}; ima=function(a){this.ea=O(a)}; g.Ky=function(a){this.ea=O(a)}; Ly=function(a){this.ea=O(a)}; My=function(a){this.ea=O(a)}; Ny=function(a){this.ea=O(a)}; Oy=function(a){this.ea=O(a)}; Py=function(a){this.ea=O(a)}; Qy=function(a){this.ea=O(a)}; Ry=function(a){this.ea=O(a)}; jma=function(a){this.ea=O(a)}; kma=function(a){this.ea=O(a)}; lma=function(a){this.ea=O(a)}; mma=function(a){this.ea=O(a)}; nma=function(a){this.ea=O(a)}; Sy=function(a){this.ea=O(a)}; oma=function(a){this.ea=O(a)}; pma=function(a){this.ea=O(a)}; qma=function(a){this.ea=O(a)}; rma=function(a){this.ea=O(a)}; Ty=function(a){this.ea=O(a)}; sma=function(a){this.ea=O(a)}; tma=function(a){this.ea=O(a)}; uma=function(a){this.ea=O(a)}; Uy=function(a){this.ea=O(a)}; Vy=function(a){this.ea=O(a)}; Wy=function(a){this.ea=O(a)}; Xy=function(a){this.ea=O(a)}; Yy=function(a){this.ea=O(a)}; Zy=function(a){this.ea=O(a)}; vma=function(a){this.ea=O(a)}; $y=function(a){this.ea=O(a)}; az=function(a){this.ea=O(a)}; bz=function(a){this.ea=O(a)}; cz=function(a){this.ea=O(a)}; wma=function(a){this.ea=O(a)}; dz=function(a){this.ea=O(a)}; ez=function(a){this.ea=O(a)}; fz=function(a){this.ea=O(a)}; xma=function(a){this.ea=O(a)}; yma=function(a){this.ea=O(a)}; gz=function(a){this.ea=O(a)}; hz=function(a){this.ea=O(a)}; iz=function(a){this.ea=O(a)}; jz=function(a){this.ea=O(a)}; kz=function(a){this.ea=O(a)}; lz=function(a){this.ea=O(a)}; mz=function(a){this.ea=O(a)}; nz=function(a){this.ea=O(a)}; zma=function(a){this.ea=O(a)}; Ama=function(a){this.ea=O(a)}; oz=function(a){this.ea=O(a)}; Bma=function(a){this.ea=O(a)}; Cma=function(a){this.ea=O(a)}; Dma=function(a){this.ea=O(a)}; pz=function(a){this.ea=O(a)}; Ema=function(a){this.ea=O(a)}; Fma=function(a){this.ea=O(a)}; Gma=function(a){this.ea=O(a)}; qz=function(a){this.ea=O(a)}; Hma=function(a){this.ea=O(a)}; rz=function(a){this.ea=O(a)}; sz=function(a){this.ea=O(a)}; tz=function(a){this.ea=O(a)}; Ima=function(a){this.ea=O(a)}; uz=function(a){this.ea=O(a)}; Jma=function(a){this.ea=O(a)}; vz=function(a){this.ea=O(a)}; wz=function(a){this.ea=O(a)}; Kma=function(a){this.ea=O(a)}; xz=function(a){this.ea=O(a)}; Lma=function(a){this.ea=O(a)}; yz=function(a){this.ea=O(a)}; Mma=function(a){this.ea=O(a)}; Nma=function(a){this.ea=O(a)}; Oma=function(a){this.ea=O(a)}; zz=function(a){this.ea=O(a)}; Pma=function(a){this.ea=O(a)}; Qma=function(a){this.ea=O(a)}; Az=function(a){this.ea=O(a)}; Bz=function(a){this.ea=O(a)}; Rma=function(a){this.ea=O(a)}; Cz=function(a){this.ea=O(a)}; Sma=function(a){this.ea=O(a)}; Dz=function(a){this.ea=O(a)}; Ez=function(a){this.ea=O(a)}; Fz=function(a){this.ea=O(a)}; Gz=function(a){this.ea=O(a)}; g.Hz=function(a){this.ea=O(a)}; g.Iz=function(a){this.ea=O(a)}; Jz=function(a){this.ea=O(a)}; Kz=function(a){this.ea=O(a)}; Lz=function(a){this.ea=O(a)}; Tma=function(a){this.ea=O(a)}; Mz=function(a){this.ea=O(a)}; Nz=function(a){this.ea=O(a)}; Oz=function(a){this.ea=O(a)}; Uma=function(a){this.ea=O(a)}; Pz=function(a){this.ea=O(a)}; Qz=function(a){this.ea=O(a)}; Rz=function(a){this.ea=O(a)}; Sz=function(a){this.ea=O(a)}; Vma=function(a){this.ea=O(a)}; Tz=function(a){this.ea=O(a)}; Uz=function(a){this.ea=O(a)}; Vz=function(a){this.ea=O(a)}; Wz=function(a){this.ea=O(a)}; Xz=function(a){this.ea=O(a)}; Wma=function(a){this.ea=O(a)}; Yz=function(a){this.ea=O(a)}; Xma=function(a){this.ea=O(a)}; Zz=function(a){this.ea=O(a)}; Yma=function(a){this.ea=O(a)}; Zma=function(a){this.ea=O(a)}; $z=function(a){this.ea=O(a)}; aA=function(a){this.ea=O(a)}; $ma=function(a){this.ea=O(a)}; bA=function(a){this.ea=O(a)}; cA=function(a){this.ea=O(a)}; dA=function(a){this.ea=O(a)}; ana=function(a){this.ea=O(a)}; bna=function(a){this.ea=O(a)}; cna=function(a){this.ea=O(a)}; dna=function(a){this.ea=O(a)}; eA=function(a){this.ea=O(a)}; fA=function(a){this.ea=O(a)}; ena=function(a){this.ea=O(a)}; gA=function(a){this.ea=O(a)}; fna=function(a){this.ea=O(a)}; gna=function(a){this.ea=O(a)}; hna=function(a){this.ea=O(a)}; ina=function(a){this.ea=O(a)}; jna=function(a){this.ea=O(a)}; hA=function(a){this.ea=O(a)}; iA=function(a){this.ea=O(a)}; kna=function(a){this.ea=O(a)}; lna=function(a){this.ea=O(a)}; jA=function(a){this.ea=O(a)}; kA=function(a){this.ea=O(a)}; mna=function(a){this.ea=O(a)}; lA=function(a){this.ea=O(a)}; nna=function(a){this.ea=O(a)}; ona=function(a){this.ea=O(a)}; mA=function(a){this.ea=O(a)}; pna=function(a){this.ea=O(a)}; qna=function(a){this.ea=O(a)}; rna=function(a){this.ea=O(a)}; sna=function(a){this.ea=O(a)}; nA=function(a){this.ea=O(a)}; oA=function(a){this.ea=O(a)}; pA=function(a){this.ea=O(a)}; qA=function(a){this.ea=O(a)}; tna=function(a){this.ea=O(a)}; una=function(a){this.ea=O(a)}; rA=function(a){this.ea=O(a)}; vna=function(a){this.ea=O(a)}; wna=function(a){this.ea=O(a)}; xna=function(a){this.ea=O(a)}; yna=function(a){this.ea=O(a)}; sA=function(a){this.ea=O(a)}; zna=function(a){this.ea=O(a)}; Ana=function(a){this.ea=O(a)}; Bna=function(a){this.ea=O(a)}; Cna=function(a){this.ea=O(a)}; Dna=function(a){this.ea=O(a)}; Ena=function(a){this.ea=O(a)}; Fna=function(a){this.ea=O(a)}; Gna=function(a){this.ea=O(a)}; Hna=function(a){this.ea=O(a)}; tA=function(a){this.ea=O(a)}; Ina=function(a){this.ea=O(a)}; uA=function(a){this.ea=O(a)}; vA=function(a){this.ea=O(a)}; Jna=function(a){this.ea=O(a)}; Kna=function(a){this.ea=O(a)}; wA=function(a){this.ea=O(a)}; Lna=function(a){this.ea=O(a)}; Mna=function(a){this.ea=O(a)}; Nna=function(a){this.ea=O(a)}; Ona=function(a){this.ea=O(a)}; Pna=function(a){this.ea=O(a)}; Qna=function(a){this.ea=O(a)}; Rna=function(a){this.ea=O(a)}; Sna=function(a){this.ea=O(a)}; xA=function(a){this.ea=O(a)}; Tna=function(a){this.ea=O(a)}; Una=function(a){this.ea=O(a)}; Vna=function(a){this.ea=O(a)}; yA=function(a){this.ea=O(a)}; Wna=function(a){this.ea=O(a)}; Xna=function(a){this.ea=O(a)}; zA=function(a){this.ea=O(a)}; AA=function(a){this.ea=O(a)}; Yna=function(a){this.ea=O(a)}; BA=function(a){this.ea=O(a)}; CA=function(a){this.ea=O(a)}; Zna=function(a){this.ea=O(a)}; DA=function(a){this.ea=O(a)}; $na=function(a){this.ea=O(a)}; EA=function(a){this.ea=O(a)}; aoa=function(a){this.ea=O(a)}; FA=function(a){this.ea=O(a)}; GA=function(a){this.ea=O(a)}; boa=function(a){this.ea=O(a)}; coa=function(a){this.ea=O(a)}; HA=function(a){this.ea=O(a)}; doa=function(a){this.ea=O(a)}; eoa=function(a){this.ea=O(a)}; IA=function(a){this.ea=O(a)}; foa=function(a){this.ea=O(a)}; goa=function(a){this.ea=O(a)}; hoa=function(a){this.ea=O(a)}; ioa=function(a){this.ea=O(a)}; joa=function(a){this.ea=O(a)}; koa=function(a){this.ea=O(a)}; loa=function(a){this.ea=O(a)}; moa=function(a){this.ea=O(a)}; noa=function(a){this.ea=O(a)}; ooa=function(a){this.ea=O(a)}; JA=function(a){this.ea=O(a)}; poa=function(a){this.ea=O(a)}; qoa=function(a){this.ea=O(a)}; KA=function(a){this.ea=O(a)}; roa=function(a){this.ea=O(a)}; LA=function(a){this.ea=O(a)}; MA=function(a){this.ea=O(a)}; soa=function(a){this.ea=O(a)}; toa=function(a){this.ea=O(a)}; NA=function(a){this.ea=O(a)}; uoa=function(a){this.ea=O(a)}; voa=function(a,b){Sj(a,oA,1,b)}; OA=function(a){this.ea=O(a)}; woa=function(a,b){return Sj(a,oA,1,b)}; PA=function(a){this.ea=O(a)}; xoa=function(a,b){return Sj(a,oA,2,b)}; QA=function(a){this.ea=O(a)}; RA=function(a){this.ea=O(a)}; SA=function(a){this.ea=O(a)}; TA=function(a){this.ea=O(a)}; yoa=function(a){this.ea=O(a)}; UA=function(a){this.ea=O(a)}; VA=function(a){var b=new UA;return P(b,1,a)}; WA=function(a,b){return P(a,2,b)}; XA=function(a){this.ea=O(a)}; zoa=function(a){this.ea=O(a)}; YA=function(a){this.ea=O(a)}; ZA=function(a,b){Vj(a,68,UA,b)}; Aoa=function(a){this.ea=O(a)}; Boa=function(a){this.ea=O(a)}; $A=function(a){this.ea=O(a)}; aB=function(a){this.ea=O(a)}; bB=function(a){this.ea=O(a)}; Coa=function(a){this.ea=O(a)}; cB=function(a){this.ea=O(a)}; Doa=function(a){this.ea=O(a)}; Eoa=function(a){this.ea=O(a)}; Foa=function(a){this.ea=O(a)}; dB=function(a){this.ea=O(a)}; Goa=function(a){this.ea=O(a)}; Hoa=function(a){this.ea=O(a)}; Ioa=function(a){this.ea=O(a)}; eB=function(a){this.ea=O(a)}; Joa=function(a){this.ea=O(a)}; Koa=function(a){this.ea=O(a)}; fB=function(a){this.ea=O(a)}; gB=function(a){this.ea=O(a)}; Loa=function(a){this.ea=O(a)}; hB=function(a){this.ea=O(a)}; Moa=function(a){this.ea=O(a)}; Noa=function(a){this.ea=O(a)}; iB=function(a){this.ea=O(a,497)}; Ooa=function(a){this.ea=O(a)}; jB=function(a){this.ea=O(a)}; Poa=function(a){this.ea=O(a)}; Qoa=function(){return g.Wa("yt.ads.biscotti.lastId_")||""}; Roa=function(a){g.Va("yt.ads.biscotti.lastId_",a)}; lB=function(){var a=arguments;1m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=qpa(a,c,m,b.convertToSafeHtml);n&&(n=rpa(c,m,p));p=p||{};q=b.context||g.Ta;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===EB(p.xhr))return tg(new NB("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0a;a++)this.B.push(0);this.C=0;this.va=g.uC(window,"mousemove",(0,g.ib)(this.Y,this));this.Z=g.HB((0,g.ib)(this.ma,this),25)}; yC=function(a){g.I.call(this);this.N=[];this.tb=a||this}; zC=function(a,b,c,d){for(var e=0;e=f)lra(a,m,t,h,v,b.join(),e),l=v;A.Ka(2);break;case 4:return A.return(Promise.reject(l))}})}; lra=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.dD&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&aD("QUOTA_EXCEEDED",{dbName:cD(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.dD&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),aD("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),mra(a,!1,d,f,b,h.tag),$C(e)):mra(a,!0,d, f,b,h.tag)}; mra=function(a,b,c,d,e,f){aD("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; jra=function(a){this.j=a}; g.rD=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; nra=function(a,b){return g.sD(a,{query:b},function(c){return c.delete().then(function(){return g.tD(c)})}).then(function(){})}; g.pra=function(a,b){return"getAll"in IDBObjectStore.prototype?g.jD(a.j.getAll(b,void 0)):ora(a,b)}; ora=function(a,b){var c=[];return g.sD(a,{query:b},function(d){c.push(d.getValue());return g.tD(d)}).then(function(){return c})}; rra=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.jD(a.j.getAllKeys(void 0,void 0)):qra(a)}; qra=function(a){var b=[];return g.sra(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.hra(c)}).then(function(){return b})}; g.oD=function(a,b,c){return g.jD(a.j.put(b,c))}; g.sD=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return tra(a).then(function(d){return era(d,c)})}; g.sra=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 gra(a).then(function(e){return era(e,c)})}; qD=function(a){var b=this;this.j=a;this.C=new Map;this.B=!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.B){e=g.dD;for(var f=b.j.objectStoreNames,h=[],l=0;l=A},x); x.done.catch(function(A){e(A)})}catch(A){e(A)}}); h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())}); t.addEventListener("close",function(){aD("IDB_UNEXPECTEDLY_CLOSED",{dbName:cD(a),dbVersion:t.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; wra=function(a,b,c){c=void 0===c?{}:c;return vra(a,b,c)}; wD=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.H(function(h){if(1==h.j)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,dra(c),4); if(2!=h.j)return g.Ca(h,0);f=g.Da(h);throw Xqa(f,a,"",-1);})}; xD=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0}; xra=function(a,b){return new g.dD("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.yD=function(a,b){if(!b)throw g.gD("openWithToken",cD(a.name));return a.open()}; zra=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,g.yD(yra,b),2);c=d.B;return d.return(g.nD(c,["databases"],{Tb:!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.oD(f,a).then(function(){})})}))})}; zD=function(a,b){var c;return g.H(function(d){if(1==d.j)return a?g.z(d,g.yD(yra,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})}; Ara=function(a,b){var c,d;return g.H(function(e){return 1==e.j?(c=[],g.z(e,g.yD(yra,b),2)):3!=e.j?(d=e.B,g.z(e,g.nD(d,["databases"],{Tb:!0,mode:"readonly"},function(f){c.length=0;return g.sD(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.tD(h)})}),3)):e.return(c)})}; Bra=function(a,b){return Ara(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)}; Dra=function(){var a,b,c,d;return g.H(function(e){switch(e.j){case 1:a=Oqa();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(AD&&aC()&&!Ipa()||g.BD)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.Ba(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.z(e,zra(d,Cra),4);case 4:return g.z(e,zD("yt-idb-test-do-not-use",Cra),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})}; Fra=function(){if(void 0!==Era)return Era;ZC=!0;return Era=Dra().then(function(a){ZC=!1;var b;if(null!=(b=Nqa())&&b.j){var c;b={hasSucceededOnce:(null==(c=Oqa())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Nqa())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; CD=function(){return g.Wa("ytglobal.idbToken_")||void 0}; g.DD=function(){var a=CD();return a?Promise.resolve(a):Fra().then(function(b){(b=b?Cra:void 0)&&g.Va("ytglobal.idbToken_",b);return b})}; Gra=function(a){if(!g.NC())throw a=new g.dD("AUTH_INVALID",{dbName:a}),$C(a),a;var b=g.MC();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; Hra=function(a,b,c,d){var e,f,h,l,m,n;return g.H(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.DD(),2);case 2:h=p.B;if(!h)throw l=g.gD("openDbImpl",a,b),g.KB("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),$C(l),l;bD(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Gra(a);g.Ba(p,3);return g.z(p,zra(m,h),5);case 5:return g.z(p,wra(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Da(p),g.Ba(p,7),g.z(p,zD(m.actualName, h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})}; Ira=function(a,b,c){c=void 0===c?{}:c;return Hra(a,b,!1,c)}; Jra=function(a,b,c){c=void 0===c?{}:c;return Hra(a,b,!0,c)}; Kra=function(a,b){b=void 0===b?{}:b;var c,d;return g.H(function(e){if(1==e.j)return g.z(e,g.DD(),2);if(3!=e.j){c=e.B;if(!c)return e.return();bD(a);d=Gra(a);return g.z(e,wD(d.actualName,b),3)}return g.z(e,zD(d.actualName,c),0)})}; Lra=function(a,b,c){a=a.map(function(d){return g.H(function(e){return 1==e.j?g.z(e,wD(d.actualName,b),2):g.z(e,zD(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; Mra=function(a){var b=void 0===b?{}:b;var c,d;return g.H(function(e){if(1==e.j)return g.z(e,g.DD(),2);if(3!=e.j){c=e.B;if(!c)return e.return();bD(a);return g.z(e,Bra(a,c),3)}d=e.B;return g.z(e,Lra(d,b,c),0)})}; Nra=function(a,b){b=void 0===b?{}:b;var c;return g.H(function(d){if(1==d.j)return g.z(d,g.DD(),2);if(3!=d.j){c=d.B;if(!c)return d.return();bD(a);return g.z(d,wD(a,b),3)}return g.z(d,zD(a,c),0)})}; ED=function(a,b){xD.call(this,a,b);this.options=b;bD(a)}; Ora=function(a,b){var c;return function(){c||(c=new ED(a,b));return c}}; g.FD=function(a,b){return Ora(a,b)}; GD=function(a){return g.yD(Pra(),a)}; Qra=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.kD)()},g.z(l,GD(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.pD(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})}; Rra=function(a,b,c,d,e){var f,h,l;return g.H(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.kD)()},g.z(m,GD(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.pD(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})}; Sra=function(a){var b,c;return g.H(function(d){return 1==d.j?g.z(d,GD(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.nD(b,["coldConfigStore"],{mode:"readwrite",Tb:!0},function(e){return g.uD(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; Tra=function(a){var b,c;return g.H(function(d){return 1==d.j?g.z(d,GD(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.nD(b,["hotConfigStore"],{mode:"readwrite",Tb:!0},function(e){return g.uD(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; Ura=function(){return g.H(function(a){return g.z(a,Mra("ytGcfConfig"),0)})}; Vra=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Wa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.pa(a)),this.j=a):(this.j=[],g.Va("yt.gcf.config.hotUpdateCallbacks",this.j))}; LD=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Vra;this.Cd={Lnb:function(){a.G=!0}, Smb:function(){return a.j}, Nob:function(b){HD(a,b)}, Er:function(b){a.Er(b)}, Hob:function(b){Wra(a,b)}, f7:function(){return a.coldHashData}, n7:function(){return a.hotHashData}, inb:function(){return a.B}, anb:function(){return ID()}, cnb:function(){return JD()}, bnb:function(){return g.Wa("yt.gcf.config.coldHashData")}, dnb:function(){return g.Wa("yt.gcf.config.hotHashData")}, dpb:function(){Xra(a)}, Bob:function(){a.Er(void 0);KD(a);delete LD.instance}, Kob:function(b){a.C=b}, Xmb:function(){return a.C}}}; Yra=function(){if(!LD.instance){var a=new LD;LD.instance=a}return LD.instance}; asa=function(a){var b;g.H(function(c){if(1==c.j)return g.KB("start_client_gcf")||g.KB("delete_gcf_config_db")?g.KB("start_client_gcf")?g.z(c,g.DD(),3):c.Ka(2):c.return();2!=c.j&&((b=c.B)&&g.NC()&&!g.KB("delete_gcf_config_db")?(a.G=!0,Xra(a)):(Zra(a),$ra(a)));return g.KB("delete_gcf_config_db")?g.z(c,Ura(),0):c.Ka(0)})}; MD=function(){var a;return null!=(a=JD())?a:g.mB("RAW_HOT_CONFIG_GROUP")}; bsa=function(a){var b,c,d,e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.B)return l.return(JD());if(!a.G)return b=g.gD("getHotConfig IDB not initialized"),rB(b),l.return(Promise.reject(b));c=CD();d=g.mB("TIME_CREATED_MS");if(!c){e=g.gD("getHotConfig token error");rB(e);l.Ka(2);break}return g.z(l,Tra(c),3);case 3:if((f=l.B)&&f.timestamp>d)return HD(a,f.config),a.Er(f.hashData),l.return(JD());case 2:$ra(a);if(!(c&&a.B&&a.hotHashData)){l.Ka(4);break}return g.z(l,Qra(a.B,a.hotHashData,c,d),4);case 4:return a.B? l.return(JD()):(h=new g.LC("Config not available in ytConfig"),rB(h),l.return(Promise.reject(h)))}})}; dsa=function(a){var b,c,d,e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.j)return l.return(ID());if(!a.G)return b=g.gD("getColdConfig IDB not initialized"),rB(b),l.return(Promise.reject(b));c=CD();d=g.mB("TIME_CREATED_MS");if(!c){e=g.gD("getColdConfig");rB(e);l.Ka(2);break}return g.z(l,Sra(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Wra(a,f.config),csa(a,f.configData),KD(a,f.hashData),l.return(ID());case 2:Zra(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ka(4);break}return g.z(l,Rra(a.j, a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(ID()):(h=new g.LC("Config not available in ytConfig"),rB(h),l.return(Promise.reject(h)))}})}; Xra=function(a){if(!a.B||!a.j){if(!CD()){var b=g.gD("scheduleGetConfigs");rB(b)}a.D||(a.D=g.Ju.Xi(function(){return g.H(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,bsa(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,dsa(a),7);case 7:g.Ca(c,6);break;case 5:g.Da(c);case 6:a.D&&(a.D=0),g.Aa(c)}})},100))}}; esa=function(a,b,c){var d,e,f;return g.H(function(h){switch(h.j){case 1:if(!g.KB("start_client_gcf")){h.Ka(0);break}c&&HD(a,c);a.Er(b);d=CD();if(!d){h.Ka(3);break}if(c){h.Ka(4);break}return g.z(h,Tra(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,Qra(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})}; fsa=function(a,b,c){var d,e,f,h;return g.H(function(l){if(1==l.j){if(!g.KB("start_client_gcf"))return l.Ka(0);KD(a,b);return(d=CD())?c?l.Ka(4):g.z(l,Sra(d),5):l.Ka(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.Ka(0);h=c.configData;return g.z(l,Rra(c,b,h,d),0)})}; gsa=function(){var a=Yra(),b=(0,g.kD)()-a.C;if(!(0!==a.C&&bHsa||h=Msa&&(ZD++,g.KB("abandon_compression_after_N_slow_zips")?YD===g.LB("compression_disable_point")&&ZD>Nsa&&(WD=!1):WD=!1);Osa(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)}; Psa=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.kD)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Wa("yt.logging.gzipForFetch",!1):!0;if(WD&&f){if(!a.body)return a;try{var h=c?a.body:"string"===typeof a.body?a.body:JSON.stringify(a.body);f=h;if(!c&&"string"===typeof h){var l=Gsa(h);if(null!=l&&(l>Hsa||l=Msa)if(ZD++,g.KB("abandon_compression_after_N_slow_zips")||g.KB("abandon_compression_after_N_slow_zips_lr")){b=ZD/YD;var n=Nsa/g.LB("compression_disable_point");0=n&&(WD=!1)}else WD=!1;Osa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return rB(p),a}}else return a}; Gsa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return rB(b),null}}; Osa=function(a){g.KB("gel_compression_csi_killswitch")||!g.KB("log_gel_compression_latency")&&!g.KB("log_gel_compression_latency_lr")||ysa("gel_compression",a,{sampleRate:.1})}; aE=function(a){var b=this;this.gH=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){}; this.Jz=function(){}; this.now=Date.now;this.fD=!1;this.Cd={Job:function(p){b.Jf=p}, epb:function(){b.GB()}, R5:function(){b.aN()}, cE:function(p){return g.H(function(q){return g.z(q,b.cE(p),0)})}, zK:function(p,q){return b.zK(p,q)}, DK:function(){b.DK()}}; var c;this.D0=null!=(c=a.D0)?c:100;var d;this.L_=null!=(d=a.L_)?d:1;var e;this.E_=null!=(e=a.E_)?e:2592E6;var f;this.z_=null!=(f=a.z_)?f:12E4;var h;this.K_=null!=(h=a.K_)?h:5E3;var l;this.Jf=null!=(l=a.Jf)?l:void 0;this.JH=!!a.JH;var m;this.pH=null!=(m=a.pH)?m:.1;var n;this.kK=null!=(n=a.kK)?n:10;a.handleError&&(this.handleError=a.handleError);a.Jz&&(this.Jz=a.Jz);a.fD&&(this.fD=a.fD);a.gH&&(this.gH=a.gH);this.jb=a.jb;this.Rn=a.Rn;this.Eh=a.Eh;this.kh=a.kh;this.sendFn=a.sendFn;this.QQ=a.QQ;this.eQ= a.eQ;$D(this)&&(!this.jb||this.jb("networkless_logging"))&&Qsa(this)}; Qsa=function(a){$D(a)&&!a.fD&&(a.j=!0,a.JH&&Math.random()<=a.pH&&a.Eh.W5(a.Jf),a.DK(),a.kh.Uh()&&a.GB(),a.kh.Ta(a.QQ,a.GB.bind(a)),a.kh.Ta(a.eQ,a.aN.bind(a)))}; Tsa=function(a,b){if(!$D(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; b.options.onError=function(e,f){var h,l,m,n;return g.H(function(p){switch(p.j){case 1:h=Rsa(f);(l=Ssa(f))&&a.jb&&a.jb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.jb&&a.jb("nwl_consider_error_code")&&h||a.jb&&!a.jb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.kK)){p.Ka(2);break}if(!a.kh.IK){p.Ka(3);break}return g.z(p,a.kh.IK(),3);case 3:if(a.kh.Uh()){p.Ka(2);break}c(e,f);if(!a.jb||!a.jb("nwl_consider_error_code")||void 0===(null==(m= b)?void 0:m.id)){p.Ka(6);break}return g.z(p,a.Eh.AR(b.id,a.Jf,!1),6);case 6:return p.return();case 2:if(a.jb&&a.jb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.kK)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ka(8);break}return b.sendCount=a?!1:!0}; Ssa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)}; Usa=function(){if(cE)return cE();var a={};cE=g.FD("LogsDatabaseV2",{lr:(a.LogsRequestsStore={fn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.lD(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.rD(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&mD(b,"sapisid");c(9)&&mD(b,"SWHealthLog")}, version:9});return cE()}; dE=function(a){return g.yD(Usa(),a)}; Wsa=function(a,b){var c,d,e,f;return g.H(function(h){if(1==h.j)return c={startTime:(0,g.kD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,dE(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.mB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.pD(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.kD)();Vsa(c);return h.return(f)})}; Xsa=function(a,b){var c,d,e,f,h,l,m,n;return g.H(function(p){if(1==p.j)return c={startTime:(0,g.kD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(p,dE(b),2);if(3!=p.j)return d=p.B,e=g.mB("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.kD)()],l=IDBKeyRange.bound(f,h),m="prev",g.KB("use_fifo_for_networkless")&&(m="next"),n=void 0,g.z(p,g.nD(d,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(q){return g.uD(q.objectStore("LogsRequestsStore").index("newRequestV2"), {query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),"NEW"===a&&(n.status="QUEUED",r.update(n)))})}),3); c.ticks.tc=(0,g.kD)();Vsa(c);return p.return(n)})}; Ysa=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,dE(b),2);c=d.B;return d.return(g.nD(c,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.oD(f,h).then(function(){return h})})}))})}; Zsa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.H(function(f){if(1==f.j)return g.z(f,dE(b),2);e=f.B;return f.return(g.nD(e,["LogsRequestsStore"],{mode:"readwrite",Tb:!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.oD(l,m).then(function(){return m})):g.iD.resolve(void 0)})}))})}; $sa=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,dE(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})}; ata=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,dE(a),2);b=d.B;c=(0,g.kD)()-2592E6;return g.z(d,g.nD(b,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(e){return g.sD(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.tD(f)})})}),0)})}; bta=function(){g.H(function(a){return g.z(a,Mra("LogsDatabaseV2"),0)})}; Vsa=function(a){g.KB("nwl_csi_killswitch")||ysa("networkless_performance",a,{sampleRate:1})}; dta=function(a){return g.yD(cta(),a)}; eta=function(a){var b,c;g.H(function(d){if(1==d.j)return g.z(d,dta(a),2);b=d.B;c=(0,g.kD)()-2592E6;return g.z(d,g.nD(b,["SWHealthLog"],{mode:"readwrite",Tb:!0},function(e){return g.sD(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.tD(f)})})}),0)})}; fta=function(a){var b;return g.H(function(c){if(1==c.j)return g.z(c,dta(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})}; g.eE=function(a,b,c,d,e,f,h){e=void 0===e?"":e;f=void 0===f?!1:f;h=void 0===h?!1:h;if(a)if(c&&!g.ZB()){if(a){a=g.he(g.ye(a));if(a===g.xe.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.oe?l=a:(a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),l.xob&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 ")),l.wob&&(a=a.replace(/(\r\n|\n|\r)/g,"
")),l.yob&&(a=a.replace(/(\t+)/g,'$1')), l=g.qe(a));a=g.Ye(g.Om(g.pe(l).toString()))}g.fc(a)||(l=Hf("IFRAME",{src:'javascript:""',style:"display:none"}),mf(l).body.appendChild(l))}}else if(e)ipa(a,b,"POST",e,d);else if(g.mB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)ipa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Pka({url:a});if(m.C&&m.B||m.D){var n=Tm(g.Vm(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==dn(a,"ri"));break b}}catch(q){}p=!1}p?gta(a)?(b&&b(),l=!0):l=!1:l=!1;l||hta(a,b)}}; gta=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; hta=function(a,b){var c=new Image,d=""+ita++;jta[d]=c;c.onload=c.onerror=function(){b&&jta[d]&&b();delete jta[d]}; c.src=a}; kta=function(a){var b=g.Wm(a);if(!g.KB("update_chrome_api_monitoring_allowed_features")&&"www.googleadservices.com"!==b)return a;var c,d,e;return(g.KB("update_chrome_api_monitoring_allowed_features")?null==(c=document.featurePolicy)?0:c.allowedFeatures().includes("attribution-reporting"):"function"===typeof(null==(d=document.featurePolicy)?void 0:d.features)&&(null==(e=document.featurePolicy)?0:e.features().includes("attribution-reporting")))?a+"&nis=6":a+"&nis=5"}; fE=function(){this.j=new Map;this.B=!1}; gE=function(){if(!fE.instance){var a=g.Wa("yt.networkRequestMonitor.instance")||new fE;g.Va("yt.networkRequestMonitor.instance",a);fE.instance=a}return fE.instance}; hE=function(){lta||(lta=new VC("yt.offline"));return lta}; mta=function(a){if(g.KB("offline_error_handling")){var b=hE().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);hE().set("errors",b,2592E3,!0)}}; iE=function(){g.Ld.call(this);var a=this;this.B=!1;this.j=Uka();this.j.Ta("networkstatus-online",function(){if(a.B&&g.KB("offline_error_handling")){var b=hE().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.LC(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.pB(d)}hE().set("errors",{},2592E3,!0)}}})}; nta=function(){if(!iE.instance){var a=g.Wa("yt.networkStatusManager.instance")||new iE;g.Va("yt.networkStatusManager.instance",a);iE.instance=a}return iE.instance}; g.jE=function(a){a=void 0===a?{}:a;g.Ld.call(this);var b=this;this.j=this.D=0;this.B=nta();var c=g.Wa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){ota(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ota(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; ota=function(a,b){a.rateLimit?a.j?(g.Ju.Tj(a.D),a.D=g.Ju.Xi(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.kD)())},a.rateLimit-((0,g.kD)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.kD)()):a.dispatchEvent(b)}; kE=function(){var a=aE.call;pta||(pta=new g.jE({Wnb:!0,tmb:!0}));a.call(aE,this,{Eh:{W5:ata,oz:$sa,hX:Xsa,a9:Ysa,AR:Zsa,set:Wsa},kh:pta,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;rB(new g.LC(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.pB(b)}, Jz:rB,sendFn:qta,now:g.kD,F1:mta,Rn:g.SC(),QQ:"publicytnetworkstatus-online",eQ:"publicytnetworkstatus-offline",JH:!0,pH:.1,kK:g.LB("potential_esf_error_limit",10),jb:g.KB,fD:!(g.NC()&&"www.youtube-nocookie.com"!==g.Wm(document.location.toString()))});this.C=new g.ho;g.KB("networkless_immediately_drop_all_requests")&&bta();Nra("LogsDatabaseV2")}; lE=function(){var a=g.Wa("yt.networklessRequestController.instance");a||(a=new kE,g.Va("yt.networklessRequestController.instance",a),g.KB("networkless_logging")&&g.DD().then(function(b){a.Jf=b;Qsa(a);a.C.resolve();a.JH&&Math.random()<=a.pH&&a.Jf&&eta(a.Jf);g.KB("networkless_immediately_drop_sw_health_store")&&rta(a)})); return a}; rta=function(a){var b;g.H(function(c){if(!a.Jf)throw b=g.gD("clearSWHealthLogsDb"),b;return c.return(fta(a.Jf).catch(function(d){a.handleError(d)}))})}; qta=function(a,b,c,d){d=void 0===d?!1:d;b=g.KB("web_fp_via_jspb")?Object.assign({},b):b;g.KB("use_cfr_monitor")&&sta(a,b);if(g.KB("use_request_time_ms_header"))b.headers&&AB(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.kD)())));else{var e;if(null==(e=b.postParams)?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.kD)())}c&&0===Object.keys(b).length?g.eE(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),XD(a,b.postBody, b,g.MB,d)):XD(a,JSON.stringify(b.postParams),b,mpa,d):g.MB(a,b)}; tta=function(a,b){g.KB("use_event_time_ms_header")&&AB(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.kD)())));return b}; sta=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){gE().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){gE().requestComplete(a,!0);d(e,f)}}; g.mE=function(a){this.config_=null;a?this.config_=a:hsa()&&(this.config_=g.ND())}; g.nE=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?lE().writeThenSend(n,f):lE().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;"string"!==typeof r&&(r=JSON.stringify(f.postBody));XD(n,r,f,g.MB,q)}else XD(n,JSON.stringify(f.postParams),f,mpa,q)}else g.KB("web_all_payloads_via_jspb")?g.MB(n,f):mpa(n,f)}catch(t){if("InvalidAccessError"=== t.name)rB(Error("An extension is blocking network request."));else throw t;}} !g.mB("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&rB(new g.LC("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.LC("innertube xhrclient not ready",b,c,d),g.pB(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_.fY;h&&(c=h);var l=a.config_.gY||!1;h=ssa(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_.dP&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=yB(""+c+b,l);g.Wa("ytNetworklessLoggingInitializationOptions")&& uta.isNwlInitialized?Fra().then(function(p){e(p)}):e(!1)}; g.sE=function(a,b,c){var d=g.oE();if(d&&b){var e=d.subscribe(a,function(){function f(){pE[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,h)} var h=arguments;try{g.qE[a]?f():g.GB(f,0)}catch(l){g.pB(l)}},c); pE[e]=!0;rE[a]||(rE[a]=[]);rE[a].push(e);return e}return 0}; vta=function(a){var b=g.sE("LOGGED_IN",function(c){a.apply(void 0,arguments);g.tE(b)})}; g.tE=function(a){var b=g.oE();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.bc(a,function(c){b.unsubscribeByKey(c);delete pE[c]}))}; g.uE=function(a,b){var c=g.oE();return c?c.publish.apply(c,arguments):!1}; xta=function(a){var b=g.oE();if(b)if(b.clear(a),a)wta(a);else for(var c in rE)wta(c)}; g.oE=function(){return g.Ta.ytPubsubPubsubInstance}; wta=function(a){rE[a]&&(a=rE[a],g.bc(a,function(b){pE[b]&&delete pE[b]}),a.length=0)}; g.Bta=function(a,b,c){c=void 0===c?null:c;if(g.KB("web_simple_scriptloader"))yta(a,b,c);else 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(zta,""),c=c.replace(Ata,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else yta(a,b,c)}; yta=function(a,b,c){c=void 0===c?null:c;var d=Cta(a),e=document.getElementById(d),f=e&&eqa(e),h=e&&!f;f?b&&b():(b&&(f=g.sE(d,b),b=""+g.fb(b),Dta[b]=f),h||(e=Eta(a,d,function(){eqa(e)||(dqa(e),g.uE(d),g.GB(function(){xta(d)},0))},c)))}; Eta=function(a,b,c,d){d=void 0===d?null:d;var e=g.If("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.We(e,g.Fw(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; Cta=function(a){var b=document.createElement("a");g.Se(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+hf(a)}; wE=function(a){var b=g.Ia.apply(1,arguments);if(!vE(a)||b.some(function(d){return!vE(d)}))throw Error("Only objects may be merged."); b=g.u(b);for(var c=b.next();!c.done;c=b.next())Fta(a,c.value)}; Fta=function(a,b){for(var c in b)if(vE(b[c])){if(c in a&&!vE(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Fta(a[c],b[c])}else if(Gta(b[c])){if(c in a&&!Gta(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Hta(a[c],b[c])}else a[c]=b[c];return a}; Hta=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,vE(c)?a.push(Fta({},c)):Gta(c)?a.push(Hta([],c)):a.push(c);return a}; vE=function(a){return"object"===typeof a&&!Array.isArray(a)}; Gta=function(a){return"object"===typeof a&&Array.isArray(a)}; xE=function(a){g.I.call(this);this.B=a}; yE=function(a){xE.call(this,!0);this.j=a}; Ita=function(a,b){g.I.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.ma=null;var d=(0,g.ib)(a,b);this.j=new g.Ru(function(){return d(c.ma)},300); g.N(this,this.j);this.Y=this.Z=Infinity}; Jta=function(a,b){if(!b)return!1;for(var c=0;c=d.length&&eua(b)===d[0])return d;for(var e=[],f=0;f=a?tua||(tua=uua(function(){f();tua=void 0},0)):10<=h-m&&(vua(c,d.tier),l.D=h)}; mua=function(a,b){if("log_event"===a.endpoint){UE(a);var c=VE(a),d=new Map;d.set(c,[a.payload]);var e=jua(a.payload)||"";b&&(YE=new b);return new g.kg(function(f,h){YE&&YE.isReady()?wua(d,YE,f,h,{bypassNetworkless:!0},!0,XE(e)):f()})}}; pua=function(a,b,c){if("log_event"===b.endpoint){UE(void 0,b);var d=VE(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(YE=new c);return new g.kg(function(f){YE&&YE.isReady()?xua(e,YE,f,{bypassNetworkless:!0},!0,XE(a)):f()})}}; VE=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 jB;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Nj(d,2,ZE,Yi(c.playlistId));$E[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),aF[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; rua=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.kg(function(e,f){var h=sua(c,d),l=h.C;h.C=!1;yua(h.B);yua(h.j);h.j=0;YE&&YE.isReady()?void 0===d&&g.KB("enable_web_tiered_gel")?zua(e,f,a,b,c,300,l):zua(e,f,a,b,c,d,l):(vua(c,d),e())})}; zua=function(a,b,c,d,e,f,h){var l=YE;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.KB("enable_web_tiered_gel")?SE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):SE().extractMatchingEntries(q),m.set(d,b),xua(m,l,a,c,!1,h)):(m=g.KB("enable_web_tiered_gel")?SE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):SE().extractMatchingEntries(q),n.set(d,m), wua(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(WE));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.KB("enable_web_tiered_gel")?SE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):SE().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0=Eua&&c():c()},e); d.B=e}; wua=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.kD)()),m=a.size,n=Fua(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={YP:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,LQ:void 0,pQ:void 0},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.qd({context:g.osa(b.config_||g.ND())});if(!g.ab(q)&&!g.KB("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=aF[p])&&Gua(h.batchRequest,p,q);delete aF[p];h.dangerousLogToVisitorSession= "visitorOnlyApprovedKey"===p;Hua(h.batchRequest,l,h.dangerousLogToVisitorSession);Iua(e);h.LQ=function(r){g.KB("start_client_gcf")&&g.Ju.Xi(function(){return g.H(function(t){return g.z(t,Jua(r),0)})}); m--;m||c()}; h.YP=0;h.pQ=function(r){return function(){r.YP++;if(e.bypassNetworkless&&1===r.YP)try{g.nE(b,n,r.batchRequest,Kua({writeThenSend:!0},r.dangerousLogToVisitorSession,r.LQ,r.pQ,f)),bF=!1}catch(t){g.pB(t),d()}m--;m||c()}}(h); try{g.nE(b,n,h.batchRequest,Kua(e,h.dangerousLogToVisitorSession,h.LQ,h.pQ,f)),bF=!1}catch(r){g.pB(r),d()}}}; xua=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.kD)()),l={value:a.size},m=new Map([].concat(g.pa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new Poa;var r=b.config_||g.ND(),t=new Qy,v=new g.Ky;P(v,1,r.cP);P(v,2,r.bP);S(v,16,r.eY);P(v,17,r.innertubeContextClientVersion);if(r.MI){var x=r.MI,A=new Fy;x.coldConfigData&&P(A,1,x.coldConfigData);x.appInstallData&&P(A,6,x.appInstallData);x.coldHashData&&P(A,3,x.coldHashData);x.hotHashData&& A.Er(x.hotHashData);Sj(v,Fy,62,A)}(x=g.Ta.devicePixelRatio)&&1!=x&&zk(v,65,x);x=epa();""!==x&&P(v,54,x);x=fpa();if(0Pua&&(a=1);lB("BATCH_CLIENT_COUNTER",a);return a}; Gua=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}]}; UE=function(a,b){if(!g.Wa("yt.logging.transport.enableScrapingForTest")){var c=dpa("il_payload_scraping");if("enable_il_payload_scraping"===(void 0!==c?String(c):""))Qua=[],g.Va("yt.logging.transport.enableScrapingForTest",!0),g.Va("yt.logging.transport.scrapedPayloadsForTesting",Qua),g.Va("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Va("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Va("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Wa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Wa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Wa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Wa("yt.logging.transport.scrapeClientEvent");if(d&&1<=d.length)for(var e=0;e>3;switch(e&7){case 0:e=Lva(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Lva(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}; Ova=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;dd.length)){for(var f=wF({cttAuthInfo:mF(b)||void 0},b),h=g.u(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.md(m)||!m.trackingParams&&!m.veType)&&g.pF(Error("Child VE logged with no data"));if(g.KB("no_client_ve_attach_unless_shown")){var n=zF(l,b);if(m.veType&&!iwa.has(n)&&!jwa.has(n)&&!e){if(!g.KB("il_attach_cache_limit")||1E3>xF.size){xF.set(n,[a,b,c,l]);return}g.KB("il_attach_cache_limit")&& 1E3Math.random()&&g.pF(Error(a))}; CG=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.LC(a);if(a.args)for(var f=g.u(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.pF(a)}}; g.DG=function(a,b){this.state=a;this.EA=b}; FG=function(a,b){return g.EG(a.state,b)&&!g.EG(a.EA,b)?1:!g.EG(a.state,b)&&g.EG(a.EA,b)?-1:0}; g.GG=function(a,b){return 0e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; g.PG=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)}; QG=function(a,b,c,d,e,f){uG.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()}; Ixa=function(a,b,c,d){tG.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; RG=function(a,b){this.B=a;this.j=b}; SG=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.He(a,0,1)}; TG=function(a,b){g.QF.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.N(this,this.B);this.progressBar=this.Ga("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; UG=function(a,b,c,d,e,f){RF.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{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.Y=f;this.C=this.Ga("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.j=this.Ga("ytp-ad-player-overlay-instream-info");this.D=null;Jxa(this)&&(a=Hf("div"),g.Zu(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.j,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new Ixa(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(a),c.init(GF("ad-title"),{text:b.title},this.macros),g.N(this,c)),this.D=a);this.G=this.Ga("ytp-ad-player-overlay-skip-or-preview");this.Ea=this.Ga("ytp-ad-player-overlay-progress-bar"); this.va=this.Ga("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.N(this,this.B);this.hide()}; Jxa=function(a){a=a.api.U();return g.VG(a)&&a.B}; Kxa=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.bn("/sharing_services",a);g.eE(d)}; g.WG=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)}; XG=function(a){this.j=new Dv(a)}; Lxa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return g.KB("copy_login_info_to_st_cookie")&&("WEB"===g.mB("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.mB("INNERTUBE_CLIENT_NAME"))&&a}; YG=function(a){if(g.mB("LOGGED_IN",!0)&&Lxa()){var b=g.mB("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Wm(window.location.href);c&&b.push(c);c=g.Wm(a);g.Fb(b,c)||!c&&ec(a,"/")?(b=Xm(a),(b=Ffa(b))?(b=Dva(b),b=(b=g.WB(b)||null)?uB(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;Lxa()?(d||(d=g.mB("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Cva(a,b)}}; g.Mxa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.bn(a,b);YG(a);c=g.ye(a+c);d=d.location;c=ze(c);void 0!==c&&(d.href=c)}; g.Nxa=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.mB("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Cva(a,b);c||(YG(a),g.Mxa(a))}; g.ZG=function(a,b,c,d){c&&Cva(a,c);c=g.ye(a);var e=g.he(c);a!=e&&rB(Error("Unsafe window.open URL: "+a));a=e;b=b||hf(a).toString(36);try{var f;if("2"===(null==(f=uB(a))?void 0:f.ase)){a=kta(a);YG(a);g.Ue(a,b,"attributionsrc");return}}catch(l){g.pB(l)}if(d){a=kta(a);try{var h=encodeURIComponent(d);YG(a);g.Ue(a,b,"attributionsrc="+h);return}catch(l){g.pB(l)}}YG(a);g.Ue(c,b)}; Pxa=function(a){Oxa=a&&a.data}; Rxa=function(a){Qxa=a&&a.data}; Txa=function(a){Sxa=a&&a.data}; Vxa=function(){Uxa=Sxa=Qxa=Oxa=null}; Xxa=function(){var a=void 0===a?window.location.href:a;if(g.KB("kevlar_disable_theme_param"))return null;Tm(g.Vm(5,a));try{var b=g.xB(a).theme;return Wxa.get(b)||null}catch(c){}return null}; $G=function(){this.j={};if(this.B=ypa()){var a=g.WB("CONSISTENCY");a&&Yxa(this,{encryptedTokenJarContents:a})}}; Yxa=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c); a.B&&g.VB("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}; aH=function(){var a=g.mB("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.mB("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Zxa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)}; Zxa=function(a){return void 0===a.localStorage?new VC("yt-client-location"):a.localStorage}; g.bH=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.mB("INNERTUBE_CONTEXT");if(!d)return g.oF(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.qd(d);g.KB("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&"AUTOMOTIVE_FORM_FACTOR"!==e.clientFormFactor&&(e.clientFormFactor=g.mB("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints= window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.IC();var h="USER_INTERFACE_THEME_LIGHT";g.JC(0,165)?h="USER_INTERFACE_THEME_DARK":g.JC(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.KB("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (h="USER_INTERFACE_THEME_DARK");f=f?h:Xxa()||h;e.userInterfaceTheme=f;if(!b){if(f=Jqa())e.connectionType=f;g.KB("web_log_effective_connection_type")&&(f=Lqa())&&(d.client.effectiveConnectionType=f)}var l;if(g.KB("web_log_memory_total_kbytes")&&(null==(l=g.Ta.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Ta.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.KB("web_gcf_hashes_innertube")&&(f=gsa())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo|| {},d.client.configInfo.coldConfigData=m,d.client.configInfo.coldHashData=l,d.client.configInfo.hotHashData=f);m=g.xB(g.Ta.location.href);!g.KB("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Ta.location.href},g.KB("kevlar_woffle")&&yqa.instance&&(m=yqa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"), e.mainAppWebInfo.webDisplayMode=zqa(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.KB("web_lr_app_quality_killswitch")&&(m=g.mB("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.mB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.KB("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone; break a}catch(G){}n=void 0}n&&(e.timeZone=n)}(n=epa())?e.experimentsToken=n:delete e.experimentsToken;n=fpa();$G.instance||($G.instance=new $G);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.gd($G.instance.j)});!g.KB("web_prequest_context_killswitch")&&(n=g.mB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.IC();n=g.JC(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode= !0);g.KB("warm_op_csn_cleanup")?c&&(b=g.lF())&&(d.clientScreenNonce=b):!b&&(b=g.lF())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Wa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;aH.getInstance().setLocationOnInnerTubeContext(d);try{var p=DB(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value),x=v.next().value,A=v.next().value;p=x;q=A;a=void 0;null==(a=d.adSignalsInfo.params)|| a.push({key:p,value:""+q})}var E;if(g.KB("add_ifa_to_tvh5_requests")&&"TVHTML5"===(null==(E=d.client)?void 0:E.clientName)){var F=g.mB("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(G){g.oF(G)}return d}; bya=function(a,b){if(!a)return!1;var c,d=null==(c=g.U(a,$xa))?void 0:c.signal;if(d&&b.vx)return!!b.vx[d];var e;if((c=null==(e=g.U(a,aya))?void 0:e.request)&&b.sN)return!!b.sN[c];for(var f in a)if(b.nN[f])return!0;return!1}; cya=function(a,b){var c,d=null==(c=g.U(a,$xa))?void 0:c.signal;if(d&&b.vx&&(c=b.vx[d]))return c();var e;if((c=null==(e=g.U(a,aya))?void 0:e.request)&&b.sN&&(e=b.sN[c]))return e();for(var f in a)if(b.nN[f]&&(a=b.nN[f]))return a()}; dya=function(a){var b={"Content-Type":"application/json"};g.mB("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.mB("EOM_VISITOR_DATA"):g.mB("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.mB("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.mB("LOGGED_IN",!1);g.mB("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.mB("DEBUG_SETTINGS_METADATA"));"cors"!==a&&((a=g.mB("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.mB("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]= a),(a=g.mB("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.mB("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b}; cH=function(a){return function(){return new a}}; fya=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=eya[b];if(c){c=new RegExp(c);for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(eya).forEach(function(h){var l=g.u(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)}); c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length}); d=g.u(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]}; g.dH=function(a){return"/youtubei/v1/"+fya(a)}; gya=function(){}; eH=function(){}; fH=function(){}; gH=function(a){return g.Wa("ytcsi."+(a||"")+"data_")||hya(a)}; iya=function(){var a=gH();a.info||(a.info={});return a.info}; hH=function(a){a=gH(a);a.metadata||(a.metadata={});return a.metadata}; iH=function(a){a=gH(a);a.tick||(a.tick={});return a.tick}; jH=function(a){a=gH(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}; jya=function(a){a=jH(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}; kH=function(a){var b=gH(a).nonce;b||(b=g.BE(16),gH(a).nonce=b);return b}; hya=function(a){var b={tick:{},info:{}};g.Va("ytcsi."+(a||"")+"data_",b);return b}; kya=function(){var a=g.Wa("ytcsi.debug");a||(a=[],g.Va("ytcsi.debug",a),g.Va("ytcsi.reference",{}));return a}; lH=function(a){a=a||"";var b=lya();if(b[a])return b[a];var c=kya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d}; mya=function(a){a=a||"";var b=lya();b[a]&&delete b[a];var c=kya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d}; lya=function(){var a=g.Wa("ytcsi.reference");if(a)return a;kya();return g.Wa("ytcsi.reference")}; mH=function(a){return nya[a]||"LATENCY_ACTION_UNKNOWN"}; oya=function(a,b){PD.call(this,1,arguments);this.tf=b}; nH=function(){this.j=0}; oH=function(){nH.instance||(nH.instance=new nH);return nH.instance}; qH=function(a,b){pH[b]=pH[b]||{count:0};var c=pH[b];c.count++;c.time=(0,g.kD)();a.j||(a.j=g.QC(0,function(){var d=(0,g.kD)(),e;for(e in pH)pH[e]&&6E41E5*Math.random()&&(c=new g.LC("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.pF(c)),!0):!1}; pya=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; qya=function(){var a;if(g.KB("csi_use_performance_navigation_timing")||g.KB("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==rH?void 0:null==(a=rH.getEntriesByType)?void 0:null==(b=a.call(rH,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=sH(e.requestStart),e.responseEnd=sH(e.responseEnd),e.redirectStart=sH(e.redirectStart),e.redirectEnd=sH(e.redirectEnd),e.domainLookupEnd=sH(e.domainLookupEnd),e.connectStart=sH(e.connectStart), e.connectEnd=sH(e.connectEnd),e.responseStart=sH(e.responseStart),e.secureConnectionStart=sH(e.secureConnectionStart),e.domainLookupStart=sH(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=rH.timing}else a=rH.timing;return a}; sH=function(a){return Math.round(tH()+a)}; tH=function(){return(g.KB("csi_use_time_origin")||g.KB("csi_use_time_origin_tvhtml5"))&&rH.timeOrigin?Math.floor(rH.timeOrigin):rH.timing.navigationStart}; vH=function(a,b){uH("_start",a,b)}; HH=function(a,b,c){c=void 0===c?!1:c;if(!g.KB("web_csi_action_sampling_enabled")||!gH(b).actionDisabled)if(g.KB("web_csi_via_jspb")&&!c){c=new YA;var d=Object.keys(a);a=Object.values(a);for(var e=0;e=tH()&&0c.duration?d:c},{duration:0}))&&0=c)c=!1;else{var d=kH(a);c=0!==dwa(d)%c}c&&(gH(a).actionDisabled=!0);lH(a||"").info.actionType=a;b.cttAuthInfo&&(gH(a).cttAuthInfo=b.cttAuthInfo);lB(a+"TIMING_ACTION",a);g.qB(vH)(b.startTime,a);c={actionType:mH(a)};(d=g.lF())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.LH(c,a);Gya(!0,a)})()}; Nya=function(a){g.qB(function(){Lya(a);mya(a);JH(a)})()}; g.LH=function(a,b,c){g.qB(HH)(a,b,void 0===c?!1:c)}; NH=function(a,b,c){return g.qB(uH)(a,b,c)}; Oya=function(a){g.qB(Eya)("above_the_fold",a,void 0)}; KH=function(a,b){return g.qB(function(){var c=iH(b);return a in c})()}; Qya=function(a){if(!g.KB("universal_csi_network_ticks"))return"";a=Tm(g.Vm(5,a))||"";for(var b=Object.keys(Pya),c=0;c=b||!c&&e.height>=b))return e;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]}; oza=function(){this.state=1;this.j=null}; qza=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Hc(2),g.Bta(c,function(){if(window[h])pza(a,d,h,e);else{a.Hc(3);var l=Cta(c),m=document.getElementById(l);m&&(xta(l),m.parentNode.removeChild(m));g.pF(new g.LC("Unable to load Botguard","from "+c))}},f)):b?(f=g.If("SCRIPT"),b instanceof Ce?Vba(f,b):f.textContent=b,f.nonce=Ve(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?pza(a,d,h,e):(a.Hc(4),g.pF(new g.LC("Unable to load Botguard from JS")))):g.pF(new g.LC("Unable to load VM; no url or JS provided"))}; pza=function(a,b,c,d){a.Hc(5);try{var e=new io({program:b,globalName:c,Uba:g.KB("att_web_record_metrics"),o9:"aGIf"});e.e0.then(function(){a.Hc(6);d&&d(b)}); a.VR(e)}catch(f){a.Hc(7),f instanceof Error&&g.pF(f)}}; tza=function(){if(!g.KB("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.KB("disable_biscotti_fetch_entirely_for_all_web_clients")&&Npa()){var a=g.mB("PLAYER_VARS",{});if("1"!=g.nd(a,"privembed",!1)&&!Rpa(a)){var b=function(){rza=!0;"google_ad_status"in window?lB("DCLKSTAT",1):lB("DCLKSTAT",2)}; try{g.Bta("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}sza.push(g.Ju.Xi(function(){if(!(rza||"google_ad_status"in window)){try{if(b){var c=""+g.fb(b),d=Dta[c];d&&g.tE(d)}}catch(e){}rza=!0;lB("DCLKSTAT",3)}},5E3))}}}; uza=function(){var a=Number(g.mB("DCLKSTAT",0));return isNaN(a)?0:a}; vza=function(){var a=g.Wa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null}; bI=function(){oza.apply(this,arguments)}; wza=function(){}; xza=function(a,b,c){for(var d=!1,e=g.u(a.Mj.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.Ya&&(d=!0);if(d){a:if(!c){a=g.u(a.Mj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.u(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.Ya){c=d.layoutId;break a}c=void 0}c?b.KO(c):CG("No triggering layout ID available when attempting to mute.")}}; yza=function(a,b){this.nk=a;this.zm=b}; zza=function(){}; Aza=function(){}; Cza=function(a){g.I.call(this);var b=this;this.kd=a;this.j=new Map;cI(this,"commandExecutorCommand",function(c,d,e){Bza(b,c.commands,d,e)}); cI(this,"clickTrackingParams",function(){})}; Dza=function(a,b){cI(a,b.Gq(),function(c,d,e){b.Zs(c,d,e)})}; cI=function(a,b,c){a.isDisposed();a.j.get(b)&&g.oF(Error("Extension name "+b+" already registered"));a.j.set(b,c)}; Bza=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[];b=g.u(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.U(h,Eza)||g.U(h,Fza)?e.push(h):f.push(h);e=g.u(e);for(b=e.next();!b.done;b=e.next())dI(a,b.value,c,d);f=g.u(f);for(e=f.next();!e.done;e=f.next())dI(a,e.value,c,d)}; dI=function(a,b,c,d){a.isDisposed();b.loggingUrls&&Gza(a,"loggingUrls",b.loggingUrls,c,d);b=g.u(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?a.kd.get().ax("innertubeCommand",{openPopupAction:f}):"confirmDialogEndpoint"===e?a.kd.get().ax("innertubeCommand",{confirmDialogEndpoint:f}):Hza.hasOwnProperty(e)||Gza(a,e,f,c,d)}}; Gza=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.oF(f)}else b=new g.LC("Unhandled field",b),g.pF(b)}; Iza=function(a,b,c){this.oo=a;this.j=b;this.Oa=c}; eI=function(a){this.value=a}; fI=function(a){this.value=a}; gI=function(a){this.value=a}; Jza=function(a){this.value=a}; hI=function(a){this.value=a}; iI=function(a){this.value=a}; Kza=function(){eI.apply(this,arguments)}; Lza=function(a){this.value=a}; Mza=function(a){this.value=a}; Nza=function(a){this.value=a}; Oza=function(a){this.value=a}; Pza=function(a){this.value=a}; jI=function(a){this.value=a}; kI=function(a){this.value=a}; lI=function(a){this.value=a}; mI=function(a){this.value=a}; nI=function(a){this.value=a}; oI=function(){eI.apply(this,arguments)}; pI=function(a){this.value=a}; qI=function(a){this.value=a}; rI=function(a){this.value=a}; sI=function(a){this.value=a}; tI=function(a){this.value=a}; Qza=function(a){this.value=a}; Rza=function(a){this.value=a}; uI=function(a){this.value=a}; Sza=function(a){this.value=a}; Tza=function(a){this.value=a}; Uza=function(a){this.value=a}; Vza=function(a){this.value=a}; vI=function(a){this.value=a}; wI=function(a){this.value=a}; xI=function(a){this.value=a}; yI=function(a){this.value=a}; Wza=function(a){this.value=a}; zI=function(a){this.value=a}; AI=function(a){this.value=a}; BI=function(a){this.value=a}; Xza=function(a){this.value=a}; CI=function(a){this.value=a}; DI=function(a){this.value=a}; EI=function(a){this.value=a}; FI=function(a){this.value=a}; GI=function(a){this.value=a}; HI=function(a){this.value=a}; II=function(a){this.value=a}; JI=function(a){this.value=a}; KI=function(a){this.value=a}; Yza=function(a){this.value=a}; LI=function(a){this.value=a}; MI=function(a){this.value=a}; NI=function(a){this.value=a}; Zza=function(a){this.value=a}; OI=function(a){this.value=a}; PI=function(a){this.value=a}; QI=function(a){this.value=a}; RI=function(){eI.apply(this,arguments)}; $za=function(a){this.value=a}; SI=function(){eI.apply(this,arguments)}; TI=function(){eI.apply(this,arguments)}; aAa=function(){eI.apply(this,arguments)}; UI=function(){eI.apply(this,arguments)}; bAa=function(a){this.value=a}; VI=function(a){this.value=a}; cAa=function(a){this.value=a}; XI=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!WI(a.Ba,c.value))return!1;return!0}; YI=function(){return""}; dAa=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}}; ZI=function(a,b,c,d){d=void 0===d?!1:d;yb.call(this,a);this.Lk=c;this.Su=d;this.args=[];b&&this.args.push(b)}; $I=function(a,b,c,d){d=void 0===d?!1:d;yb.call(this,a);this.Lk=c;this.Su=d;this.args=[];b&&this.args.push(b)}; aJ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)}); this.j=b}; WI=function(a,b){return a.j.has(b)}; bJ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()}; cJ=function(a){return Array.from(a.j.keys())}; dJ=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!WI(a.Ba,c.value))return!1;return!0}; fAa=function(a){var b;return(null==(b=eAa.get(a))?void 0:b.zx)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; hAa=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:gAa.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=eJ(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(eJ(d.value)); b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.u(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(eJ(a.value))}return c}; iAa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:gAa.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c}; eJ=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c}; jAa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Fr(d||[],function(e){return hAa(a,e)}),b.debugData=Object.assign({},c&&0=b?b:0;this.j=a=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; KK=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; YK=function(a,b){return 0<=XK(a,b)}; NCa=function(a,b){if(!a)return NaN;b=XK(a,b);return 0<=b?a.start(b):NaN}; ZK=function(a,b){if(!a)return NaN;b=XK(a,b);return 0<=b?a.end(b):NaN}; $K=function(a){return a&&a.length?a.end(a.length-1):NaN}; aL=function(a,b){a=ZK(a,b);return 0<=a?a-b:0}; bL=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 VK(d,e)}; cL=function(a,b,c,d){g.IF.call(this);var e=this;this.Wd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.GX={error:function(){!e.isDisposed()&&e.isActive&&e.ra("error",e)}, updateend:function(){!e.isDisposed()&&e.isActive&&e.ra("updateend",e)}}; g.JF(this.Wd,this.GX);this.BG=this.isActive}; dL=function(a,b,c,d,e,f){g.IF.call(this);var h=this;this.ac=a;this.Ag=b;this.id=c;this.containerType=d;this.sb=e;this.Hg=f;this.zP=this.tE=this.Pf=null;this.rH=!1;this.appendWindowStart=this.timestampOffset=0;this.WM=VK([],[]);this.UC=!1;this.sE=[];this.kB=OCa?[]:void 0;this.Id=function(m){return h.ra(m.type,h)}; var l;if(null==(l=this.ac)?0:l.addEventListener)this.ac.addEventListener("updateend",this.Id),this.ac.addEventListener("error",this.Id)}; eL=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; fL=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1}; gL=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.va=0;this.callback=null;this.ma=!1;this.Qa||(this.Ag=this.mediaElement.Kb());this.events=new g.DK(this);g.N(this,this.events);this.C=new fL(this.Qa?window.URL.createObjectURL(this.Qa):this.Ag.webkitMediaSourceURL,!0);a=this.Qa||this.Ag;zC(this.events,a,["sourceopen","webkitsourceopen"],this.Oaa);zC(this.events,a,["sourceclose","webkitsourceclose"],this.Naa);this.D={updateend:this.X3}}; PCa=function(){return!!(window.MediaSource||hL&&window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; QCa=function(a,b){iL(a)?g.ig(function(){b(a)}):a.callback=b}; RCa=function(a,b,c){if(jL){var d;kL(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.oa)?void 0:lL(d)},!1);g.JF(b,a.D,a);g.JF(c,a.D,a)}a.j=b;a.B=c;g.N(a,b);g.N(a,c)}; SCa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.sb;c=c.sb;var f;a.Z=null==(f=a.Qa)?void 0:f.addSourceBuffer(e);var h;a.Y="fakesb"===d.split(";")[0]?void 0:null==(h=a.Qa)?void 0:h.addSourceBuffer(d);a.Ag&&(a.Ag.webkitSourceAddId("0",e),a.Ag.webkitSourceAddId("1",d));f=new dL(a.Z,a.Ag,"0",IK(e),c,!1);d=new dL(a.Y,a.Ag,"1",IK(d),b,!0);RCa(a,f,d)}; mL=function(a){return!!a.j||!!a.B}; iL=function(a){try{return"open"===nL(a)}catch(b){return!1}}; nL=function(a){if(a.Qa)return a.Qa.readyState;switch(a.Ag.webkitSourceState){case a.Ag.SOURCE_OPEN:return"open";case a.Ag.SOURCE_ENDED:return"ended";default:return"closed"}}; TCa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||hL&&window.ManagedMediaSource}; UCa=function(a){iL(a)&&(a.Qa?a.Qa.endOfStream():a.Ag.webkitSourceEndOfStream(a.Ag.EOS_NO_ERROR))}; VCa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Wd:a.j,f=a.B.isView()?a.B.Wd:a.B,h=new gL(a.mediaElement,a.Qa,!0);h.C=a.C;RCa(h,new cL(e,b,c,d),new cL(f,b,c,d));iL(a)||a.j.Zp(a.j.Vc());return h}; WCa=function(a){var b;null==(b=a.j)||b.Vy();var c;null==(c=a.B)||c.Vy();a.K=!1}; oL=function(){var a=this;this.C_=this.CR=qaa;this.promise=new g.kg(function(b,c){a.CR=b;a.C_=c})}; pL=function(){g.I.call(this);this.JI=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Ld;this.oa=null;g.N(this,this.D)}; XCa=function(a){a=a.PD();return 1>a.length?NaN:a.end(a.length-1)}; YCa=function(a){!a.B&&PCa()&&(a.C?a.C.then(function(){return YCa(a)}):a.Kf()||(a.B=a.Jq()))}; ZCa=function(a){a.B&&(a.B.dispose(),a.B=void 0)}; kL=function(a,b,c){var d;(null==(d=a.oa)?0:d.Dc())&&a.oa.qa("rms",b,void 0===c?!1:c)}; $Ca=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10=a.Ad.length+1||0>c)CG("Unexpected target sublayout index",a.slot,a.layout,{targetSubLayoutIndex:c});else{a.zd=c;if(c===a.Ad.length){var e=a.Ua.get().Te(1).clientPlaybackNonce;IL(a.zk,a.layout)}else e=a.Ad[c].rb().layoutId;a.Sc.get().finishSegmentByCpn(b.layoutId,e)}})}; wDa=function(a,b,c,d){HL(a,b,c,"skipped",function(){zDa(a,d)})}; HL=function(a,b,c,d,e){if(!a.gP){var f=a.Ad[a.zd];f?(f.rb().layoutId!==c.layoutId&&CG("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.rb().layoutId}),a.gP=!0,f.Ze(f.rb(),d),vAa(a.iG,b,c,d),a.gP=!1,a.OO=!1,a.XO?(a.XO(),a.Kd()||BDa(a.Bc.get())):e()):CG("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}}; zDa=function(a,b){a.zd===a.Ad.length-1?(a.zd++,IL(a.zk,a.layout),a.Kd()||BDa(a.Bc.get())):CDa(a,b)}; CDa=function(a,b){if(-1===a.zd&&(a.callback.Ec(a.slot,a.layout),0e&&h.vG(p,e-d);return p}; MDa=function(a,b){var c=bJ(b.Ba,"metadata_type_sodar_extension_data");if(c)try{QAa(0,c)}catch(d){CG("Unexpected error when loading Sodar",a,b,{error:d})}}; ODa=function(a,b,c,d,e,f){NDa(a,b,new g.DG(c,new g.rL),d,e,!1,f)}; NDa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;uCa(c)&&uK(e,0,null)&&(!gK(a,"impression")&&h&&h(),a.hc("impression"));gK(a,"impression")&&(g.GG(c,4)&&!g.GG(c,2)&&a.Hh("pause"),0>FG(c,4)&&!(0>FG(c,2))&&a.Hh("resume"),g.GG(c,16)&&.5<=e&&a.Hh("seek"),f&&g.GG(c,2)&&PDa(a,c.state,b,d,e))}; PDa=function(a,b,c,d,e,f,h){if(gK(a,"impression")){var l=1>=Math.abs(d-e);QDa(a,b,l?d:e,c,d,f,h&&l);l&&a.hc("complete")}}; QDa=function(a,b,c,d,e,f,h){fK(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.EG(b,16))||(null==b?0:g.EG(b,32))||(uK(c,.25*e,d)&&(f&&!gK(a,"first_quartile")&&f("first"),a.hc("first_quartile")),uK(c,.5*e,d)&&(f&&!gK(a,"midpoint")&&f("second"),a.hc("midpoint")),uK(c,.75*e,d)&&(f&&!gK(a,"third_quartile")&&f("third"),a.hc("third_quartile")))}; RDa=function(a,b){gK(a,"impression")&&a.Hh(b?"fullscreen":"end_fullscreen")}; SDa=function(a){gK(a,"impression")&&a.Hh("clickthrough")}; TDa=function(a){a.Hh("active_view_measurable")}; UDa=function(a){gK(a,"impression")&&!gK(a,"seek")&&a.Hh("active_view_fully_viewable_audible_half_duration")}; VDa=function(a){gK(a,"impression")&&!gK(a,"seek")&&a.Hh("active_view_viewable")}; WDa=function(a){gK(a,"impression")&&!gK(a,"seek")&&a.Hh("audio_audible")}; XDa=function(a){gK(a,"impression")&&!gK(a,"seek")&&a.Hh("audio_measurable")}; YDa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Sc=d;this.bb=e;this.Fa=f;this.De=h;this.wb=l;this.Ye=m;this.Da=n;this.Oa=p;this.Ua=q;this.RI=!0;this.yd=this.Qc=null;this.adCpn=void 0}; ZDa=function(a,b,c){var d;a.Oa.get().Ii("ads_qua","cpn."+bJ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ua.get().Te(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; $Da=function(a,b){var c,d;a.Oa.get().Ii("ads_imp","cpn."+bJ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ua.get().Te(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.U(null==(d=bJ(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,LL))}; aEa=function(a){return{enterMs:bJ(a.Ba,"metadata_type_layout_enter_ms"),exitMs:bJ(a.Ba,"metadata_type_layout_exit_ms")}}; bEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){JL.call(this,a,b,c,d,e,h,l,m,n,q);this.De=f;this.Ye=p;this.wb=r;this.Da=t;this.yd=this.Qc=null}; cEa=function(a,b){var c;a.Oa.get().Ii("ads_imp","acpn."+(null==(c=a.Ua.get().Te(2))?void 0:c.clientPlaybackNonce)+";clr."+b)}; dEa=function(a,b,c){var d;a.Oa.get().Ii("ads_qua","cpn."+bJ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ua.get().Te(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; eEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G){this.Uc=a;this.oe=b;this.zk=c;this.Ua=d;this.Sc=e;this.Fa=f;this.Oa=h;this.De=l;this.If=m;this.wb=n;this.Ye=p;this.Nd=q;this.wc=r;this.Bc=t;this.kd=v;this.uf=x;this.Ab=A;this.Df=E;this.Da=F;this.j=G}; ML=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A){this.Uc=a;this.oe=b;this.zk=c;this.Oa=d;this.wb=e;this.Ye=f;this.Nd=h;this.Ua=l;this.Fa=m;this.wc=n;this.Bc=p;this.kd=q;this.uf=r;this.Ab=t;this.Df=v;this.Da=x;this.Sc=A}; fEa=function(a,b,c,d){HF.call(this,"survey-interstitial",a,b,c,d)}; NL=function(a,b,c,d,e){XJ.call(this,c,a,b,d);this.Oa=e;a=bJ(b.Ba,"metadata_type_ad_placement_config");this.bb=new dK(b.Gb,e,a,b.layoutId)}; OL=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; hEa=function(a,b,c){c=void 0===c?gEa:c;c.widtha.width*a.height*.2)return{rL:3,yG:501,errorMessage:"ad("+OL(c)+") to container("+OL(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{rL:3,yG:501,errorMessage:"ad("+OL(c)+") covers container("+OL(a)+") center."}}; iEa=function(a,b){var c=bJ(a.Ba,"metadata_type_ad_placement_config");return new dK(a.Gb,b,c,a.layoutId)}; PL=function(a){return bJ(a.Ba,"metadata_type_invideo_overlay_ad_renderer")}; jEa=function(a,b,c,d){HF.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d}; QL=function(a,b,c,d,e,f,h,l,m,n,p,q){XJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Fa=l;this.Ab=m;this.Da=n;this.K=p;this.G=q;this.bb=iEa(b,c)}; kEa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];eK().forEach(function(b){a.push(b)}); return{Qd:a,Xe:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; RL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){XJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.N=l;this.Fa=m;this.Ab=n;this.Da=p;this.K=q;this.G=r;this.bb=iEa(b,c)}; lEa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(eK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Qd:a,Xe:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; SL=function(a){this.Fa=a;this.j=!1}; mEa=function(a,b,c){HF.call(this,"survey",a,{},b,c)}; nEa=function(a,b,c,d,e,f,h){XJ.call(this,c,a,b,d);this.D=e;this.Fa=f;this.Da=h}; oEa=function(a,b,c,d,e,f,h,l,m,n){this.vc=a;this.Fa=b;this.Oa=c;this.D=d;this.wb=e;this.B=f;this.C=h;this.Ab=l;this.Da=m;this.j=n}; pEa=function(a,b,c,d,e,f,h,l,m,n){this.vc=a;this.Fa=b;this.Oa=c;this.D=d;this.wb=e;this.B=f;this.C=h;this.Ab=l;this.Da=m;this.j=n}; TL=function(a,b,c,d,e,f,h,l,m,n){pK.call(this,a,b,c,d,e,f,h,m);this.cn=l;this.Ua=n}; qEa=function(){var a=oCa();a.Qd.push("metadata_type_ad_info_ad_metadata");return a}; rEa=function(a,b,c,d,e,f,h){this.vc=a;this.Fa=b;this.Oa=c;this.B=d;this.cn=e;this.j=f;this.Ua=h}; sEa=function(a,b,c,d,e,f,h,l){this.vc=a;this.Fa=b;this.Oa=c;this.B=d;this.cn=e;this.j=f;this.Da=h;this.Ua=l}; UL=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)}; VL=function(a,b){this.j=a;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); var c=0;for(a+=1;av?new $I("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===c&&d-500<=v):new xv(d,v),a=c instanceof $I?c:new dM(YI,b,c,!1,a.id)):a=new $I("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new YL(YI,b,!1,a.id):new $I("Not able to create ContentVideoIdEndedTrigger"); else{if(a.layoutIdEnteredTrigger){var x;b=null!=(x=a.layoutIdEnteredTrigger)&&x.triggeringLayoutId?new $L(YI,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new $I("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=null!=(A=a.timeRelativeToLayoutEnterTrigger)&&A.triggeringLayoutId?new qM(YI,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new $I("Not able to create TimeRelativeToLayoutEnterTrigger")}else b= new $I("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a}; pFa=function(a,b,c,d,e,f,h,l){return null===b?new $I("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[oFa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new aJ([new fI(d),new jI(e)]);n=IJ(c.gb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Gb:new Map, layoutExitNormalTriggers:[new gM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:q,lc:m(r),adLayoutLoggingData:p}})]}; qFa=function(a,b,c,d,e,f,h,l){return null===b?new $I("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[oFa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new aJ([new gI(d),new jI(e)]);n=IJ(c.gb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Gb:new Map,layoutExitNormalTriggers:[new gM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:q,lc:m(r),adLayoutLoggingData:p}})]}; uFa=function(a,b,c,d,e,f){if(!f)for(b=g.u(b),f=b.next();!f.done;f=b.next())f=f.value,KM(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return rFa(p)}); b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={bv:void 0},h=f.next()){l.bv=h.value;h=g.u(l.bv.EM);for(var m=h.next(),n={};!m.done;n={dn:void 0},m=h.next())n.dn=m.value,m=function(p,q){return function(r){return p.dn.wN(r,q.bv.instreamVideoAdRenderer.elementId,p.dn.DM)}}(n,l),n.dn.isContentVideoCompanion?b.push(sFa(c,d,e,l.bv.instreamVideoAdRenderer.elementId,n.dn.associatedCompositePlayerBytesLayoutId,n.dn.adSlotLoggingData,m)):1=l?function(){return new $I("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=iGa(m,c,d,function(q){var r=q.slotId; q=n(q);var t=aGa(h);r=IJ(e.gb.get(),"LAYOUT_TYPE_SURVEY",r);var v={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Ya:"core"},x=new bM(e.j,d),A=new iM(e.j,r),E=new pM(e.j,r),F=new AEa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Gb:new Map,layoutExitNormalTriggers:[x,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[E],Zc:[],Ya:"core",Ba:new aJ([new Tza(h),new jI(b),new PI(l/1E3),new SI(t)]),lc:q(v),adLayoutLoggingData:h.adLayoutLoggingData}}); m=gGa(a,c,p.slotId,d,e,m,n);return m instanceof $I?m:[p].concat(g.pa(m))}}; rGa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(x){x=kGa(x.slotId,c,b,e(x),d,f,h);m=x.cda;return x.q6}; else if(c.renderer.instreamVideoAdRenderer)n=function(x){var A=x.slotId;x=e(x);var E=h,F=c.config.adPlacementConfig,G=lGa(F),L=G.BW,Q=G.GW;G=c.renderer.instreamVideoAdRenderer;var R;if(null==G?0:null==(R=G.playerOverlay)?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var aa=mGa(G,E);R=Math.min(L+1E3*aa.videoLengthSeconds,Q);E=new VL(0,[aa.videoLengthSeconds]);Q=aa.videoLengthSeconds;var na=aa.playerVars,ta=aa.instreamAdPlayerOverlayRenderer,la= aa.adVideoId,va=nGa(c),ea=aa.Gb;aa=aa.qV;var Y=null==G?void 0:G.adLayoutLoggingData;G=null==G?void 0:G.sodarExtensionData;A=IJ(b.gb.get(),"LAYOUT_TYPE_MEDIA",A);var Na={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Gb:ea,layoutExitNormalTriggers:[new vEa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new aJ([new pI(d),new CI(Q),new DI(na),new GI(L),new HI(R),ta&&new qI(ta), new jI(F),new oI(la),new kI(E),new LI(va),G&&new FI(G),new zI({current:null}),new JI({}),new UI(aa)].filter(oGa)),lc:x(Na),adLayoutLoggingData:Y}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=pGa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof $I)return v;l.push.apply(l,g.pa(v))}}catch(x){return new $I(x,{errorMessage:x.message,AdPlacementRenderer:c,numberOfSurveyRenderers:qGa(c)})}return l}; qGa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.U(b,uM))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0}; kGa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=lGa(l),n=m.BW,p=m.GW;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={x0:n,nu:0,Yca:q};m=m.map(function(v){return sGa(a,v,r,c,d,l,e,p,h)}).map(function(v,x){x=new VL(x,q); return v(x)}); var t=m.map(function(v){return v.r6}); return{q6:tGa(c,a,n,t,l,nGa(b),d,p,f),cda:m.map(function(v){return v.bda})}}; sGa=function(a,b,c,d,e,f,h,l,m){var n=mGa(g.U(b,uM),m),p=c.x0,q=c.nu,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.x0=r;c.nu++;c.Yca.push(n.videoLengthSeconds);var t,v,x=null==(t=g.U(b,uM))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(A){var E=n.playerVars;2<=A.B&&(E.slot_pos=A.j);E.autoplay="1";var F,G;E=n.videoLengthSeconds;var L=n.playerVars,Q=n.Gb,R=n.qV,aa= n.instreamAdPlayerOverlayRenderer,na=n.adVideoId,ta=null==(F=g.U(b,uM))?void 0:F.adLayoutLoggingData;F=null==(G=g.U(b,uM))?void 0:G.sodarExtensionData;G=IJ(d.gb.get(),"LAYOUT_TYPE_MEDIA",a);var la={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};A={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Gb:Q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"adapter",Ba:new aJ([new pI(h),new CI(E),new DI(L),new GI(p),new HI(r), new II(q),new zI({current:null}),aa&&new qI(aa),new jI(f),new oI(na),new kI(A),F&&new FI(F),x&&new aAa(x),new JI({}),new UI(R)].filter(oGa)),lc:e(la),adLayoutLoggingData:ta};E=jGa(g.U(b,uM),f,h,A.layoutId,d);return{r6:A,bda:E}}}; mGa=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=uB(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=void 0===e.instreamAdPlayerOverlayRenderer?null:e.instreamAdPlayerOverlayRenderer;var f=c.video_id; f||(f=(f=a.externalVideoId)?f:void 0);if(!f)throw new TypeError("Expected valid video id in IVAR");if(b&&0===d){var h;b=null!=(h=uGa[f])?h:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,adVideoId:f,Gb:a.pings?cK(a.pings):new Map,qV:bK(a.pings)}}; nGa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; lGa=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{BW:b,GW:a}}; wGa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[vGa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=IJ(b.gb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ya:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Gb:cK(n),layoutExitNormalTriggers:[new gM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new aJ([new jI(d), new UI(bK(n)),new CI(h/1E3)]),lc:p(t),adLayoutLoggingData:r}})]:new $I("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})}; yGa=function(a,b,c,d,e,f,h,l){a=xGa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=IJ(b.gb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ya:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Gb:q,layoutExitNormalTriggers:[new fM(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new aJ([new Yza(e),new jI(c)]),lc:m(p)}}); return a instanceof $I?a:[a]}; AGa=function(a,b,c,d,e,f,h){return[zGa(a,f,d,function(l){var m=l.slotId;l=h(l);m=IJ(b.gb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Gb:new Map,layoutExitNormalTriggers:[new gM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new aJ([new qI(e),new jI(c)]),lc:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]}; EGa=function(a,b,c,d,e,f,h,l){a=BGa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=IJ(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=CGa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,DGa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=IJ(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=CGa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,DGa(b,n,p))):q.imageOverlayAdContentRenderer?(q=IJ(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=DGa(b,n,p),n.push(new qM(b.j,45E3,q)),n=CGa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new ZI("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new ZI("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof $I?a:[a]}; HGa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new $I("Expected valid duration for AdActionInterstitialRenderer."):function(p){return FGa(b,p.slotId,c,d,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 GGa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=IJ(b.gb.get(),"LAYOUT_TYPE_ENDCAP", v);return cGa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new uI(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}}; IGa=function(a,b,c,d){if(!c.playerVars)return new $I("No playerVars available in AdIntroRenderer.");var e=uB(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=IJ(a.gb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};return{Cg:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Gb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"adapter",Ba:new aJ([new KI({}), new jI(b),new zI({current:null}),new DI(e)]),lc:f(l)},Wl:[new aM(a.j,h,["error"])],Vj:[],ez:[],cz:[]}}}; KGa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=$Fa(e);if(!ZEa(e,n))return new $I("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new $I("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=dGa(a,b,e,f,c,d,h);return q instanceof $I?q:function(r){return JGa(b,r.slotId,c,p,e,aGa(e),h(r),q,l,m)}}; MGa=function(a,b,c,d,e,f,h,l){function m(q){return GGa(a,q,d,n)} function n(q,r){var t=q.slotId;q=h(q);t=IJ(b.gb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return cGa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Sza(e),f],e.adLayoutLoggingData)} if(!dFa(e))return new $I("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=LGa(b,r,c,p,t,new Map,q,m,void 0,SM(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new wI(r.YJ);q=new lI(l);return{Cg:{layoutId:r.layoutId,layoutType:r.layoutType,Gb:r.Gb,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:r.Ya,Ba:new aJ([].concat(g.pa(r.Yy),[t,q])),lc:r.lc,adLayoutLoggingData:r.adLayoutLoggingData},Wl:[],Vj:r.layoutExitMuteTriggers,ez:r.layoutExitUserInputSubmittedTriggers,cz:r.Zc,yf:r.yf}}}; OGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x){a=VJ(a,"SLOT_TYPE_PLAYER_BYTES");d=yFa(b,h,d,e,a,n,p);if(d instanceof $I)return d;var A;h=null==(A=bJ(d.Ba,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!h)return new $I("Invalid adNotify layout");b=NGa(h,b,c,e,f,m,l,n,q,r,t,v,x);return b instanceof $I?b:[d].concat(g.pa(b))}; NGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=PGa(b,c,d,f,h,l,m,n,p,q,r);QGa(f)?(d=RGa(b,a),a=VJ(b.gb.get(),"SLOT_TYPE_IN_PLAYER"),f=IJ(b.gb.get(),"LAYOUT_TYPE_SURVEY",a),l=SGa(b,d,l),b=[].concat(g.pa(l.slotExpirationTriggers),[new XL(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Ya:l.Ya},{slotId:a,layoutId:f}),e=a instanceof $I?a:{Xw:Object.assign({}, l,{slotExpirationTriggers:b,Ba:new aJ([new MI(a.layout)]),adSlotLoggingData:e}),yg:a.yg}):e=CFa(b,a,l,e,c);return e instanceof $I?e:[].concat(g.pa(e.yg),[e.Xw])}; WGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=PGa(a,b,c,e,f,h,m,n,p,q,r,t);QGa(e)?(e=TGa(a,c,h,l),e instanceof $I?a=e:(l=VJ(a.gb.get(),"SLOT_TYPE_IN_PLAYER"),m=IJ(a.gb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.pa(e.slotExpirationTriggers),[new XL(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Ya:e.Ya,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof $I? l:{Xw:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:UGa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:VGa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Ya:e.Ya,Ba:new aJ([new VI(TM(c)),new MI(l.layout)]),adSlotLoggingData:d},yg:l.yg})):a=DFa(a,c,h,l,d,m.zc,b);return a instanceof $I?a:a.yg.concat(a.Xw)}; QGa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.U(b.value,wM))return!0;return!1}; PGa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(DL(p)&&EL(p))a:{var v=XGa(d,c,p);if(v instanceof $I)t=v;else{for(var x=0,A=[],E=[],F=[],G=[],L=[],Q=[],R=new AI({current:null}),aa=new nI({current:null}),na=!1,ta=[],la=0,va=[],ea=0;ea=m)return new $I("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new AI({current:null}),p=dGa(a,b,c,n,d,f,h);return ZGa(a,d,f,m,e,function(q,r){var t=q.slotId,v=aGa(c);q=h(q);var x,A=null!=(x=SM(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))? x:IJ(b.gb.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"core"};x=p(A,r);var E=bJ(x.Ba,"metadata_type_fulfilled_layout");E||CG("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new jI(d),new QI(m),new SI(v),n];E&&v.push(new xI(E.layoutType));return{j9:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Gb:new Map,layoutExitNormalTriggers:[new fM(b.j,A)],layoutExitSkipTriggers:[new iM(b.j,r.layoutId)], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new pM(b.j,r.layoutId)],Zc:[],Ya:"core",Ba:new aJ(v),lc:q(t)},t8:x}})}; aHa=function(a){if(!cFa(a))return!1;var b=g.U(a.adVideoStart,VM);return b?g.U(a.linearAd,uM)&&EEa(b)?!0:(CG("Invalid Sandwich with notify"),!1):!1}; bHa=function(a){if(null==a.linearAds)return!1;a=g.U(a.adStart,VM);return a?EEa(a)?!0:(CG("Invalid LASR with notify"),!1):!1}; cHa=function(a){if(!bFa(a))return!1;a=g.U(a.adStart,VM);return a?EEa(a)?!0:(CG("Invalid LASR with notify"),!1):!1}; WM=function(a,b,c,d,e,f,h,l){this.gb=a;this.Lb=b;this.Cb=c;this.Da=d;this.Wb=e;this.j=f;this.Yj=h;this.loadPolicy=void 0===l?1:l}; hFa=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(FEa);var p=c.filter(XEa),q=d.filter(FEa),r=new Map,t=KFa(b),v=c.some(function(ea){var Y;return"SLOT_TYPE_PLAYER_BYTES"===(null==ea?void 0:null==(Y=ea.adSlotMetadata)?void 0:Y.slotType)}),x=c.some(function(ea){var Y; return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==ea?void 0:null==(Y=ea.adSlotMetadata)?void 0:Y.slotType)}); c=c.some(function(ea){var Y;return"SLOT_TYPE_IN_PLAYER"===(null==ea?void 0:null==(Y=ea.adSlotMetadata)?void 0:Y.slotType)}); if(v||x||c)c=NFa(p,b,l,e,t,a.Wb.get(),a.loadPolicy,r,a.Da.get(),a.gb.get(),c),c instanceof $I?CG(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.pa(c));c=g.u(b);for(x=c.next();!x.done;x=c.next()){x=x.value;var A=dHa(a,r,x,e,f,h,v,l,t,m,p);A instanceof $I?CG(A,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.pa(A))}eHa(a.Da.get())||(f=fHa(a,q,e,l,t,r),n.push.apply(n,g.pa(f)));if(null===a.j||h&&!l.nW){var E, F,G;a=l.zc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(E=b[0].config)?void 0:null==(F=E.adPlacementConfig)?void 0:F.kind)&&(null==(G=b[0].renderer)?void 0:G.adBreakServiceRenderer);if(!n.length&&!a){var L,Q,R,aa;CG("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(L=b[0])?void 0:null==(Q=L.config)?void 0:null==(R=Q.adPlacementConfig)?void 0:R.kind,renderer:null==(aa=b[0])?void 0:aa.renderer})}return n}E= d.filter(FEa);n.push.apply(n,g.pa(uFa(r,E,a.Lb.get(),a.j,e,v)));if(!n.length){var na,ta,la,va;CG("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(na=b[0])?void 0:null==(ta=na.config)?void 0:null==(la=ta.adPlacementConfig)?void 0:la.kind,renderer:null==(va=b[0])?void 0:va.renderer})}return n}; fHa=function(a,b,c,d,e,f){function h(r){return fJ(a.Wb.get(),r)} var l=[];b=g.u(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&&aHa(p)?(CG("Found AdNotify with SandwichedLinearAdRenderer"),q=g.U(p.adVideoStart,VM),p=g.U(p.linearAd,uM),KM(f,n,m.config.adPlacementConfig.kind),n=void 0,q=zFa(null==(n=q)?void 0:n.layout.layoutId,a.Lb.get(),a.Cb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Da.get(),a.Wb.get()),q instanceof $I?CG(q):l.push.apply(l,g.pa(q))): q&&(!q.adLayoutMetadata&&bHa(q)||q.adLayoutMetadata&&cHa(q))&&(CG("Found AdNotify with LinearAdSequenceRenderer"),KM(f,n,m.config.adPlacementConfig.kind),n=void 0,p=NGa(null==(n=g.U(q.adStart,VM))?void 0:n.layout.layoutId,a.Lb.get(),a.Cb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,sM(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Da.get()),p instanceof $I?CG(p):l.push.apply(l,g.pa(p)))}return l}; dHa=function(a,b,c,d,e,f,h,l,m,n,p){function q(E){return fJ(a.Wb.get(),E)} var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,x=c.adSlotLoggingData,A=l.nW&&"AD_PLACEMENT_KIND_START"===v;A=f&&!A;if(null!=r.adsEngagementPanelRenderer)return LM(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,L){var Q=a.Cb.get(),R=E.slotId,aa=r.adsEngagementPanelRenderer;E=fJ(a.Wb.get(),E);return XM(Q,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Jza(aa),F,G,aa.impressionPings,E,r.adsEngagementPanelRenderer.adLayoutLoggingData,L)}),[]; if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return pFa(a.Lb.get(),a.j,a.Cb.get(),r.actionCompanionAdRenderer,t,x,d,q);LM(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,L){var Q=a.Cb.get(),R=E.slotId,aa=r.actionCompanionAdRenderer;E=fJ(a.Wb.get(),E);return XM(Q,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new fI(aa),F,G,aa.impressionPings,E,r.actionCompanionAdRenderer.adLayoutLoggingData,L)})}else if(void 0!==r.topBannerImageTextIconButtonedLayoutViewModel){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return qFa(a.Lb.get(),a.j,a.Cb.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,x,d,q); LM(b,c.elementId,v,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,L){var Q=a.Cb.get(),R=E.slotId,aa=r.topBannerImageTextIconButtonedLayoutViewModel;E=fJ(a.Wb.get(),E);return gHa(Q,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new gI(aa),F,G,E,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,L)})}else if(r.imageCompanionAdRenderer)LM(b, c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,L){var Q=a.Cb.get(),R=E.slotId,aa=r.imageCompanionAdRenderer; E=fJ(a.Wb.get(),E);return XM(Q,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Lza(aa),F,G,aa.impressionPings,E,r.imageCompanionAdRenderer.adLayoutLoggingData,L)}); else if(r.bannerImageLayoutViewModel)LM(b,c.elementId,v,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,L){var Q=a.Cb.get(),R=E.slotId,aa=r.bannerImageLayoutViewModel;E=fJ(a.Wb.get(),E);return gHa(Q,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Mza(aa),F,G,E,r.bannerImageLayoutViewModel.adLayoutLoggingData,L)}); else if(r.shoppingCompanionCarouselRenderer)LM(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,L){var Q=a.Cb.get(),R=E.slotId,aa=r.shoppingCompanionCarouselRenderer;E=fJ(a.Wb.get(),E);return XM(Q,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Nza(aa),F,G,aa.impressionPings,E,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,L)}); else if(r.adBreakServiceRenderer){if(!nFa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return mFa(a.Lb.get(),t,x,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return lFa(a.Lb.get(),t,x,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Yj)return new $I("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.zc||CG("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:t, daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.zc),clientPlaybackNonce:l.clientPlaybackNonce});hHa(a.Yj,{adPlacementRenderer:c,contentCpn:d,Ds:e})}else{if(r.clientForecastingAdRenderer)return yGa(a.Lb.get(),a.Cb.get(),t,x,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return EGa(a.Lb.get(),a.Cb.get(),t,x,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return AGa(a.Lb.get(),a.Cb.get(),t,x,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer|| r.instreamVideoAdRenderer)&&A)return rGa(a.Lb.get(),a.Cb.get(),c,d,q,n,!a.Da.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];KM(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!bFa(r.linearAdSequenceRenderer))return new $I("Received invalid LinearAdSequenceRenderer.")}else if(null==r.linearAdSequenceRenderer.linearAds)return new $I("Received invalid LinearAdSequenceRenderer.");if(g.U(r.linearAdSequenceRenderer.adStart,VM)){CG("Found AdNotify in LinearAdSequenceRenderer"); b=g.U(r.linearAdSequenceRenderer.adStart,VM);if(!DEa(b))return new $I("Invalid AdMessageRenderer.");c=r.linearAdSequenceRenderer.linearAds;return OGa(a.gb.get(),a.Lb.get(),a.Cb.get(),a.Wb.get(),t,x,b,sM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Da.get())}return WGa(a.Lb.get(),a.Cb.get(),t,x,r.linearAdSequenceRenderer.linearAds,sM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata: void 0,d,e,l,q,m,a.loadPolicy,a.Da.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];KM(b,r,v);return EFa(a.Lb.get(),a.Cb.get(),t,x,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Da.get(),a.Wb.get(),p)}if(r.instreamSurveyAdRenderer)return $Ga(a.Lb.get(),a.Cb.get(),r.instreamSurveyAdRenderer,t,x,d,q,UM(a.Da.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return cFa(r.sandwichedLinearAdRenderer)?g.U(r.sandwichedLinearAdRenderer.adVideoStart, VM)?(CG("Found AdNotify in SandwichedLinearAdRenderer"),b=g.U(r.sandwichedLinearAdRenderer.adVideoStart,VM),DEa(b)?(c=g.U(r.sandwichedLinearAdRenderer.linearAd,uM))?AFa(b,c,t,a.gb.get(),a.Lb.get(),a.Cb.get(),a.Wb.get(),x,d,e,l,q,m,a.loadPolicy,a.Da.get()):new $I("Missing IVAR from Sandwich"):new $I("Invalid AdMessageRenderer.")):WGa(a.Lb.get(),a.Cb.get(),t,x,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Da.get()):new $I("Received invalid SandwichedLinearAdRenderer."); if(null!=r.videoAdTrackingRenderer)return l=UM(a.Da.get(),"enable_h5_shorts_ad_terminal_events")&&l.Pn,wGa(a.Lb.get(),a.Cb.get(),r.videoAdTrackingRenderer,t,x,d,e,l,q)}}return[]}; YM=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.Rb=a;this.Lb=b;this.If=d;this.Fa=e;this.Da=f;this.Oa=h;this.Sc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.isDisposed()||c.get().removeListener(m)}); d.get().addListener(this);this.addOnDisposeCallback(function(){d.isDisposed()||d.get().removeListener(m)})}; hHa=function(a,b){if(a.j)CG("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.If.get().eL);for(var c=b.next();!c.done;c=b.next())iHa(a,a.j,c.value)}}; iHa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(1,!1);a.Da.get().J.U().Dc()&&a.Oa.get().Ii("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.yh.toFixed(3));UJ(a.Rb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Lb.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=ZM(a.Da.get()),n=a.Oa;if(e.Da.get().J.U().experiments.jb("enable_smearing_expansion_dai")){var p=g.gJ(e.Da.get().J.U().experiments, "max_prefetch_window_sec_for_livestream_optimization");var q=g.gJ(e.Da.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={uo:jHa(c),uF:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.yh;if(0===d)m.wp=new xv(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.wp=0>=t?new xv(1E3*q,1E3*r):new xv(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={uo:jHa(c),uF:!1},r=c.startSecs+c.yh,c.startSecs<=d?m=new xv(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new xv(1E3* Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.wp=m;f=kFa(e,f,h,p,l,[new Xza(c)]);e.Da.get().J.U().experiments.jb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.wp.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.fd())&&(h=h.Cc(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.$M(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):n.get().Ii("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.wp.start/ 1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})}; aN=function(a){var b,c=null==(b=bJ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=bJ(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=bJ(a.Ba,"metadata_type_content_cpn"),f=bJ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=bJ(a.Ba,"metadata_type_player_overlay_layout_renderer"),l=bJ(a.Ba,"metadata_type_player_underlay_renderer"),m=bJ(a.Ba,"metadata_type_ad_placement_config"),n=bJ(a.Ba,"metadata_type_video_length_seconds"); var p=WI(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?bJ(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):WI(a.Ba,"metadata_type_layout_enter_ms")&&WI(a.Ba,"metadata_type_layout_exit_ms")?(bJ(a.Ba,"metadata_type_layout_exit_ms")-bJ(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{eq:d,contentCpn:e,cR:c,FM:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,pJ:p,inPlayerLayoutId:bJ(a.Ba,"metadata_type_linked_in_player_layout_id"), inPlayerSlotId:bJ(a.Ba,"metadata_type_linked_in_player_slot_id")}}; lHa=function(a,b){return kHa(a,b)}; mHa=function(a,b){b=kHa(a,b);if(!b)return null;var c;b.pJ=null==(c=bJ(a.Ba,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b}; kHa=function(a,b){var c,d=null==(c=bJ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;c=kCa(a,b);return{t5:jCa(a,b),adPlacementConfig:bJ(a.Ba,"metadata_type_ad_placement_config"),w5:c,contentCpn:bJ(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:bJ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:bJ(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:bJ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0, instreamAdPlayerUnderlayRenderer:void 0,pJ:void 0,cR:d,eq:a.layoutId,videoLengthSeconds:bJ(a.Ba,"metadata_type_video_length_seconds")}}; bN=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.j=a;this.C=b;this.B=c;this.Rb=d;this.Lb=e;this.Cb=f;this.Wb=h;this.Da=l;this.Ua=m;this.Bh=!0}; nHa=function(a,b,c){return IFa(a.Lb.get(),b.contentCpn,b.eq,function(d){return JFa(a.Cb.get(),d.slotId,c,b.adPlacementConfig,b.eq,fJ(a.Wb.get(),d))})}; cN=function(a,b,c,d,e,f,h,l){g.I.call(this);this.Rb=a;this.He=b;this.j=c;this.Da=d;this.B=e;this.Ua=f;this.Fa=h;this.Bc=l}; dN=function(a){g.I.call(this);this.j=a}; UJ=function(a,b,c,d){a.j().nh(b,d);c=c();a=a.j();a.kc.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.u(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;vJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);vJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.fc(c.slotId))throw new $I("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(nJ(e,c))throw new $I("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Wg.Dq.has(c.slotType))throw new $I("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.Wg.Kr.has(c.slotType))throw new $I("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");KAa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);KAa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", c.slotFulfillmentTriggers);KAa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=xJ(f,h);if(nJ(f,c))throw new $I("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new FAa(c));f.j.set(h,l)}catch(na){na instanceof $I&&na.Lk?(kJ(d.kc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",na.Lk,c),CG(na,c,void 0,void 0,na.Su)):(kJ(d.kc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", c),CG(na,c));break a}nJ(d.j,c).K=!0;try{var m=d.j,n=nJ(m,c),p=c.slotEntryTrigger,q=m.Wg.Cl.get(p.triggerType);q&&(q.ql("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ca.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,x=m.Wg.Cl.get(v.triggerType);x&&(x.ql("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.ma.set(v.triggerId,x))}for(var A=g.u(c.slotExpirationTriggers),E=A.next();!E.done;E=A.next()){var F=E.value,G=m.Wg.Cl.get(F.triggerType);G&&(G.ql("TRIGGER_CATEGORY_SLOT_EXPIRATION", F,c,null),n.Y.set(F.triggerId,G))}var L=m.Wg.Dq.get(c.slotType).get().build(m.C,c);n.N=L;var Q=m.Wg.Kr.get(c.slotType).get().build(m.G,c);Q.init();n.B=Q}catch(na){na instanceof $I&&na.Lk?(kJ(d.kc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",na.Lk,c),CG(na,c,void 0,void 0,na.Su)):(kJ(d.kc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),CG(na,c));lJ(d,c,!0);break a}vJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.oh(c);for(var R=g.u(d.B),aa=R.next();!aa.done;aa= R.next())aa.value.oh(c);oAa(d,c)}}; eN=function(a,b,c,d){g.I.call(this);var e=this;this.Rb=a;this.Lb=b;this.wc=c;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.isDisposed()||d.get().removeListener(e)})}; fFa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.u(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof dM?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):CG("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new xv(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.wc.get().addCueRange(d,c.start,c.end,!1,a)}; fN=function(){g.I.apply(this,arguments);this.Bh=!0;this.Mj=new Map;this.j=new Map}; oHa=function(a,b){a=g.u(a.Mj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; ABa=function(a,b){a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}CG("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.fc(b)),layoutId:b})}; pHa=function(a,b){this.callback=a;this.slot=b}; gN=function(){}; qHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c}; rHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c;this.B=!1;this.j=0}; sHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c}; hN=function(a){this.Fa=a}; iN=function(a){g.I.call(this);this.aM=a;this.Ub=new Map}; tHa=function(a,b){for(var c=[],d=g.u(a.Ub.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof pM&&f.triggeringLayoutId===b&&c.push(e)}c.length?uJ(a.aM(),c):CG("Survey is submitted but no registered triggers can be activated.")}; jN=function(a,b,c){iN.call(this,a);var d=this;this.Da=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(d)})}; kN=function(a){g.I.call(this);this.j=a;this.Bh=!0;this.Ub=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set}; lN=function(a){g.I.call(this);this.j=a;this.Ub=new Map}; mN=function(a,b){for(var c=[],d=g.u(a.Ub.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&uJ(a.j(),c)}; nN=function(a,b){g.I.call(this);var c=this;this.j=a;this.Ub=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(c)})}; uHa=function(a,b,c,d){var e=[];a=g.u(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof gM){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(CG("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e}; vHa=function(a){return a instanceof BEa||a instanceof CEa||a instanceof hM}; oN=function(a,b,c,d){g.I.call(this);var e=this;this.B=a;this.wc=b;this.Fa=c;this.Ua=d;this.Bh=!0;this.Ub=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.isDisposed()||c.get().removeListener(e)})}; wHa=function(a,b,c,d,e,f,h,l,m,n){if(a.Ua.get().Te(1).clientPlaybackNonce!==m)throw new $I("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ub.set(c.triggerId,{Yu:new rM(b,c,d,e),uv:f});a.wc.get().addCueRange(f,h,l,n,a)}; xHa=function(a,b){a=g.u(a.Ub.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.uv)return c}return""}; pN=function(a,b){g.I.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(c)}); var d;this.j=(null==(d=b.get().vv)?void 0:d.slotId)||null}; yHa=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; qN=function(a){g.I.call(this);this.j=a;this.Bh=!0;this.Ub=new Map}; IL=function(a,b){b=b.layoutId;for(var c=[],d=g.u(a.Ub.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof fM){var f;if(f=e.trigger.layoutId===b)f=(f=xAa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&uJ(a.j(),c)}; rN=function(a){g.I.call(this);this.j=a;this.Bh=!0;this.Ub=new Map}; sN=function(a){g.I.call(this);this.C=a;this.Bh=!0;this.Ub=new Map;this.j=new Map;this.B=new Map}; zHa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c}; tN=function(a){g.I.call(this);this.j=a;this.Ub=new Map}; AHa=function(a,b){for(var c=[],d=g.u(a.Ub.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof UL&&e.trigger.slotId===b&&c.push(e);1<=c.length&&uJ(a.j(),c)}; BHa=function(a,b){var c={slotId:VJ(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ya:"surface",Ba:new aJ([])},d=Object,e=d.assign;b=IJ(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Gb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"surface",Ba:new aJ([]), lc:kAa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Ya,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{B8:!0,slot:c,layout:b})}; jFa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={uo:new xv(-0x8000000000000,-0x8000000000000),uF:d},null!=c&&(d.wp=new xv(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={uo:new xv(0x7ffffffffffff,0x8000000000000),uF:d},null!=c&&(d.wp=new xv(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||CG("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||CG("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new $I("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={uo:new xv(a,e),uF:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.wp=new xv(a,e)}return d; default:return new $I("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}}; jHa=function(a){var b=1E3*a.startSecs;return new xv(b,b+1E3*a.yh)}; CHa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.u(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,null!=c&&"AD_PLACEMENT_KIND_START"===(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind))return!0;a=g.u(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if("SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===(null==(c=g.U(b.value,IM))?void 0:null==(d=c.adSlotMetadata)?void 0:d.triggerEvent))return!0}return!1}; uN=function(){this.B=new Map;this.j=new Map;this.C=new Map}; VJ=function(a,b){if(g.mB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.BE(16)}; IJ=function(a,b,c){if(g.mB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.BE(16)}; RM=function(a,b){if(g.mB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.BE(16)}; DHa=function(a){var b=[new vI(a.eq),new Wza(a.cR),new jI(a.adPlacementConfig),new CI(a.videoLengthSeconds),new PI(a.pJ)];a.instreamAdPlayerOverlayRenderer&&b.push(new qI(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new rI(a.playerOverlayLayoutRenderer));a.FM&&b.push(new nI(a.FM));return b}; EHa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:IJ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Gb:new Map,layoutExitNormalTriggers:[new bM(function(n){return RM(f, n)},c.eq)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:b,Ba:d,lc:e(h),adLayoutLoggingData:m}}; vN=function(a,b){var c=this;this.gb=a;this.Da=b;this.j=function(d){return RM(c.gb.get(),d)}}; JFa=function(a,b,c,d,e,f){c=new aJ([new sI(c),new jI(d)]);b=IJ(a.gb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Gb:new Map,layoutExitNormalTriggers:[new bM(function(h){return RM(a.gb.get(),h)},e)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:c,lc:f(d),adLayoutLoggingData:void 0}}; OM=function(a,b,c,d,e){var f=DHa(d);return EHa(b,c,d,new aJ(f),e,a.gb.get())}; FHa=function(a,b,c,d,e){var f=DHa(d);f.push(new Oza(d.t5));f.push(new Pza(d.w5));return EHa(b,c,d,new aJ(f),e,a.gb.get())}; XM=function(a,b,c,d,e,f,h,l,m,n){b=IJ(a.gb.get(),c,b);var p={layoutId:b,layoutType:c,Ya:"core"},q=new Map;h&&q.set("impression",h);h=[new eM(a.j,e)];n&&h.push(new aM(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Gb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new aJ([d,new jI(f),new vI(e)]),lc:l(p),adLayoutLoggingData:m}}; gHa=function(a,b,c,d,e,f,h,l,m){b=IJ(a.gb.get(),c,b);var n={layoutId:b,layoutType:c,Ya:"core"},p=[new eM(a.j,e)];m&&p.push(new aM(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Gb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new aJ([d,new jI(f),new vI(e)]),lc:h(n),adLayoutLoggingData:l}}; DGa=function(a,b,c){var d=[];d.push(new zEa(a.j,c));b&&d.push(b);return d}; CGa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Ya:"core"};return{layoutId:b,layoutType:c,Gb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new XL(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new aJ([new Kza(d),new jI(e)]),lc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; cGa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Ya:"core"};return{layoutId:b,layoutType:f,Gb:new Map,layoutExitNormalTriggers:[new bM(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new aJ([new jI(d)].concat(g.pa(h))),lc:e(m),adLayoutLoggingData:l}}; SM=function(a,b,c,d){if(a.Da.get().Kd("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)CG("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c}; FGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=LGa(a,b,c,e,f,h,l,m,q,SM(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Yy;c=new wI(a.YJ);d=a.layoutExitSkipTriggers;0b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);CN=new Uint8Array(256);DN=BN(256);EN=BN(256);FN=BN(256);GN=BN(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;CN[f]=e;b=e<<1^(e>>7&&283);var h=b^e;DN[f]=b<<24|e<<16|e<<8|h;EN[f]=h<<24|DN[f]>>>8;FN[f]=e<<24|EN[f]>>>8;GN[f]=e<<24|FN[f]>>>8}NHa=!0}e=BN(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=(CN[a>>16&255]^d)<<24|CN[a>>8&255]<<16|CN[a&255]<<8|CN[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; OHa=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=DN[c>>>24]^EN[d>>16&255]^FN[e>>8&255]^GN[f&255]^b[n++],l=DN[d>>>24]^EN[e>>16&255]^FN[f>>8&255]^GN[c&255]^b[n++],m=DN[e>>>24]^EN[f>>16&255]^FN[c>>8&255]^GN[d&255]^b[n++],f=DN[f>>>24]^EN[c>>16&255]^FN[d>>8&255]^GN[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=CN[c>>>24]^h>>>24;a[1]=CN[d>>16&255]^h>>16&255;a[2]=CN[e>>8&255]^ h>>8&255;a[3]=CN[f&255]^h&255;h=b[41];a[4]=CN[d>>>24]^h>>>24;a[5]=CN[e>>16&255]^h>>16&255;a[6]=CN[f>>8&255]^h>>8&255;a[7]=CN[c&255]^h&255;h=b[42];a[8]=CN[e>>>24]^h>>>24;a[9]=CN[f>>16&255]^h>>16&255;a[10]=CN[c>>8&255]^h>>8&255;a[11]=CN[d&255]^h&255;h=b[43];a[12]=CN[f>>>24]^h>>>24;a[13]=CN[c>>16&255]^h>>16&255;a[14]=CN[d>>8&255]^h>>8&255;a[15]=CN[e&255]^h&255}; JN=function(){if(!PHa&&!g.BD){if(IN)return IN;var a;IN=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=IN)?0:b.importKey)&&(null==(c=IN)?0:c.sign)&&(null==(d=IN)?0:d.encrypt))return IN;IN=void 0}}; QHa=function(){this.B=this.Sy=0;this.j=Array.from({length:KN.length}).fill(0)}; RHa=function(){}; SHa=function(a){this.name=a;this.startTimeMs=(0,g.kD)();this.j=!1}; THa=function(){this.j=new RHa}; UHa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new QHa),a.j[b].Lg(c,d))}; VHa=function(a,b,c,d,e){var f=(0,g.kD)(),h=e?e(b):void 0,l;e=null!=(l=null==h?void 0:h.Sy)?l:1;var m;l=null!=(m=null==h?void 0:h.profile)?m:c;UHa(a,l,f-d,e);return b}; WHa=function(a,b,c,d,e){return b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then?b.then(function(f){return VHa(a,f,c,d,e)},void 0):VHa(a,b,c,d,e)}; XHa=function(){}; SN=function(a,b){this.j=a;this.cipher=this.j.exports.AES128CTRCipher_create(b.byteOffset)}; g.TN=function(a){this.D=a}; g.UN=function(a){g.I.call(this);this.B=a}; VN=function(a,b){this.B=new SN(a,b)}; YHa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()}; ZHa=function(a,b,c){for(var d=a.N,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],r,t,v,x=0;64>x;)16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=q+WN[x]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r= d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=p+WN[x]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=n+WN[x]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^ ~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=m+WN[x]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,x++;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}; aIa=function(a){var b=new Uint8Array(32),c=64-a.B;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;$Ha(a);return b}; $Ha=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0}; bIa=function(a){this.j=a}; cIa=function(a,b,c){a=new YHa(a.j);a.update(b);a.update(c);b=aIa(a);a.update(a.G);a.update(b);b=aIa(a);a.reset();return b}; dIa=function(a){this.B=a}; eIa=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.j){l.Ka(2);break}return g.z(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.z(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})}; fIa=function(a,b,c){a.C||(a.C=new bIa(a.B));return cIa(a.C,b,c)}; gIa=function(a,b,c){var d,e;return g.H(function(f){if(1==f.j){d=JN();if(!d)return f.return(fIa(a,b,c));g.Ba(f,3);return g.z(f,eIa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.pF(e);PHa=!0;return f.return(fIa(a,b,c))})}; XN=function(){var a=hIa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Zla.apply(null,[$la.apply(null,g.pa(b))].concat(g.pa(c)));this.store=bma(a,void 0,b)}; g.iIa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(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.pa(h),g.pa(l)):l;else if(!Array.isArray(l)&&g.bb(l)&&!Array.isArray(h)&&g.bb(h))d[f]=g.iIa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.LC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,kob:h,updateValue:l}), g.oF(b),a}return d}; YN=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})}; jIa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset}; ZN=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)}; $N=function(a,b,c){return a.split(b).Hm.split(c).GI}; kIa=function(a){a.D=void 0;a.B=0;a.C=0}; lIa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length}; mIa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D}; nIa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!lIa(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);kIa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)}; aO=function(a,b,c){a=nIa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; bO=function(a,b,c){a=aO(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;ce&&bf)gO[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;gO[e++]=55296|f>>10;f=56320|f&1023}gO[e++]=f}}f=String.fromCharCode.apply(String,gO); 1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")}; jO=function(a,b){var c;if(null==(c=iO)?0:c.encodeInto)return b=iO.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}; qIa=function(a){if(iO)return iO.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=jO(a,b);b.lengthc&&(b=b.subarray(0,c));return b}; kO=function(a){this.j=a;this.pos=0;this.B=-1}; lO=function(a){var b=cO(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=cO(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c}; mO=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=lO(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:lO(a);break;case 1:a.pos+=8;break;case 2:d=lO(a);a.pos+=d;break;case 5:a.pos+=4}}return!1}; nO=function(a,b){if(mO(a,b))return lO(a)}; oO=function(a,b){if(mO(a,b))return!!lO(a)}; pO=function(a,b){if(mO(a,b)){b=lO(a);var c=aO(a.j,a.pos,b);a.pos+=b;return c}}; qO=function(a,b){if(a=pO(a,b))return g.hO(a)}; rO=function(a,b,c){if(a=pO(a,b))return c(new kO(new YN([a])))}; sO=function(a,b){for(var c=[];mO(a,b);)c.push(lO(a));return c.length?c:void 0}; tO=function(a,b,c){for(var d=[],e;e=pO(a,b);)d.push(c(new kO(new YN([e]))));return d.length?d:void 0}; uO=function(a,b){a=a instanceof Uint8Array?new YN([a]):a;return b(new kO(a))}; rIa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a}; sIa=function(a,b){this.C=b;this.pos=0;this.B=[];this.j=rIa(void 0===a?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; vO=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;cd;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(vO(a,4);127>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1}; xO=function(a,b,c){void 0!==c&&(wO(a,8*b),wO(a,c))}; yO=function(a,b,c){void 0!==c&&xO(a,b,c?1:0)}; zO=function(a,b,c){void 0!==c&&(wO(a,8*b+2),b=c.length,wO(a,b),vO(a,b),a.j.set(c,a.pos),a.pos+=b)}; AO=function(a,b,c){void 0!==c&&(tIa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),vO(a,1.2*c.length),b=jO(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(vO(a,b),b=jO(c,a.j.subarray(a.pos))),a.pos+=b,uIa(a))}; tIa=function(a,b,c){c=void 0===c?2:c;wO(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c}; uIa=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}}; BO=function(a,b,c,d,e){c&&(tIa(a,b,void 0===e?3:e),d(a,c),uIa(a))}; g.CO=function(a,b,c){c=new sIa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)}; g.DO=function(a){var b=new kO(new YN([Fg(decodeURIComponent(a))]));a=qO(b,2);b=nO(b,4);var c=vIa[b];if("undefined"===typeof c)throw a=new g.LC("Failed to recognize field number",{name:"EntityKeyHelperError",Imb:b}),g.oF(a),a;return{M6:b,entityType:c,entityId:a}}; g.EO=function(a,b){var c=new sIa;zO(c,2,qIa(a));a=wIa[b];if("undefined"===typeof a)throw b=new g.LC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.oF(b),b;xO(c,4,a);xO(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Dg(b))}; FO=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))}; xIa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.iIa(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))}; yIa=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.oF(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.oF(new g.LC("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.fd(e.payload); return FO(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.DO(e).entityType;l=FO(d,m,e)}catch(q){if(q instanceof Error)g.oF(new g.LC("Failed to deserialize entity key",{entityKey:e,RQ:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.oF(new g.LC("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.fd(e.payload);var n,p;return xIa(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 FO(a,c.entityType,c.key,c.L6);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 FO(h,e,l,f[l])},d)},a); case "UPDATE_ENTITY":return c=b.payload,xIa(a,c.entityType,c.key,c.L6,c.aob);default:return a}}; GO=function(a,b,c){return a[b]?a[b][c]||null:null}; AIa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0c?zIa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=zIa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(HO)&&(c=".");return b.join(c)}; zIa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; BIa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;ca}; aNa=function(a,b){$Ma(a.program,b.Xba)&&(OH("bg_i",void 0,"player_att"),g.jP.initialize(a,function(){OH("bg_l",void 0,"player_att");YMa=(0,g.kD)()},b.cspNonce))}; bNa=function(a){a=void 0===a?{}:a;return g.jP.invoke(a)}; $Ma=function(a,b){return a?g.jP.isLoading()?!1:ZMa(b):!1}; cNa=function(a){a=a.split("");kP.bg(a,2);kP.CV(a,69);kP.qD(a,14);kP.bg(a,1);kP.CV(a,69);kP.qD(a,29);kP.CV(a,20);return a.join("")}; g.dNa=function(a,b){return a.Ea+"timedtext_video?ref=player&v="+b.videoId}; g.lP=function(a,b){a.feature=b;return a}; g.eNa=function(a){var b=this;this.videoData=a;a={};this.B=(a.c1a=function(){var c=[];if(g.jP.isInitialized()){var d="";b.videoData&&b.videoData.wq&&(d=b.videoData.wq+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);OH("bg_v",void 0,"player_att");(d=bNa(d))?(OH("bg_s",void 0,"player_att"),c.push("r1a="+d)):(OH("bg_e",void 0,"player_att"),c.push("r1c=2"))}else OH("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.jP.getState()); return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^uza())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.mB("CATSTAT",0)))},a); this.videoData&&this.videoData.wq?this.j=uB(this.videoData.wq):this.j={}}; g.fNa=function(a){if(a.videoData&&a.videoData.wq){for(var b=[a.videoData.wq],c=g.u(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.B[d]&&(d=a.B[d](a.j))&&b.push(d);return b.join("&")}return null}; g.gNa=function(a,b){aNa(a,{Xba:g.gJ(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})}; mP=function(a){a=void 0===a?2592E3:a;if(0(0,g.kD)()-1E3*a))return 0;a=g.EC("yt-player-quality");if("string"===typeof a){if(a=g.FK[a],0a.previousQuality)return 1;if(a.quality=b)}; uP=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")}; vP=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.u(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.uc||a.has(d.uc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.uc,itag:d.itag,xtag:d.j,lang:(null==(e=d.uc)?void 0:e.name)||"",langid:(null==(f=d.uc)?void 0:f.id)||""})}else e=new g.oP(d.id,d.uc),a.add(d.uc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}}; vNa=function(){g.I.apply(this,arguments);this.j=null}; zNa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(wP(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.sb]=[a.info]);return n}p=wNa(b,d,l);f&&e({aftsrt:xP(p)});for(var q={},r=g.u(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var v=g.u(p[t]),x=v.next();!x.done;x=v.next()){x=x.value;var A=x.itag,E=void 0,F=t+"_"+((null==(E=x.video)?void 0:E.fps)||0);q.hasOwnProperty(F)?!0===q[F]?n[t].push(x):l[A]=q[F]:(E=yP(b,x,c,d.isLive,m),!0!==E?(h.add(t),l[A]=E, "disablevp9hfr"===E&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(x),q[F]=!0))}}f&&e({bfflt:xP(n)});for(var G in n)n.hasOwnProperty(G)&&(d=G,n[d]&&n[d][0].Hg()&&(n[d]=n[d],n[d]=xNa(b,n[d],l),n[d]=yNa(n[d],l)));f&&e(l);b=g.u(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.J_;f&&e({aftflt:xP(n)});a.j=g.cd(n,function(L){return!!L.length}); return a.j}; BNa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.Yc&&h&&1h?A=c:b.Bd&&p===h&&LNa(q[c])&&(A=c));"9"===A&&q.h&&CP(q.h)>CP(q["9"])&&(A="h");b.Mb&&d.isLive&&"("===A&&q.H&&1440>CP(q["("])&&(A="H");m&&f({vfmly:MNa(A)});b=q[A];if(!b.length)return m&&f({novfmly:MNa(A)}), RB();BP(b);return SB(new vP(b,a,n))}; DNa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c}; LNa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&NNa.has(b.itag))return!0;return!1}; MNa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}}; xP=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(MNa(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")}; CNa=function(a,b,c,d,e,f){var h={},l={};g.bd(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.ue)return l[q]="noenc",!1;if(f.Db&&"(h"===p.sb&&f.ub)return l[q]="lichdr",!1;if("("===p.sb||"(h"===p.sb){if(a.D&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.ue[c.flavor]&&!!c.j[r])||(l[q]=p.ue[c.flavor]?"unspt":"noflv");return r}if(!DP(a,EP.CRYPTOBLOCKFORMAT)&&!a.Ca||a.ma)return l[q]=a.ma?"disvp":"vpsub",!1}return c&&p.ue[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.ue[c.flavor]? "unspt":"noflv":"nosys",!1)}); m.length&&(h[n]=m)}); d&&Object.entries(l).length&&e(l);return h}; yNa=function(a,b){var c=Hr(a,function(d,e){return 32c&&(a=a.filter(function(d){if(32a.K)return"max"+a.K;if(a.ib&&"h"===b.sb&&b.video&&1080a.eb)return"av1cap";if((d=c.C.get(b.sb))&&0a.Ob)return"ratecap";a=ONa(c,b);return!0!==a?a:!0}; BP=function(a,b){b=void 0===b?[]:b;g.Xb(a,function(c,d){var e=d.Ob-c.Ob;if(!c.Hg()||!d.Hg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0a.Hd())a.segments=[];else{var c=Cb(a.segments,function(d){return d.Pa>=b},a); 0a.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}; eQ=function(a,b){this.j=a;this.pos=0;this.start=b||0}; fQ=function(a){return a.pos>=a.j.byteLength}; kQ=function(a,b,c){var d=new eQ(c);if(!gQ(d,a))return!1;d=hQ(d);if(!iQ(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=jQ(d,!0);d=a+(d.start+d.pos-b)+e;d=9b;b++)c=256*c+oQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+oQ(a),d*=128;return b?c-d:c}; mQ=function(a){var b=jQ(a,!0);a.pos+=b}; wOa=function(a){if(!iQ(a,440786851,!0))return null;var b=a.pos;jQ(a,!1);var c=jQ(a,!0)+a.pos-b;a.pos=b+c;if(!iQ(a,408125543,!1))return null;jQ(a,!0);if(!iQ(a,357149030,!0))return null;var d=a.pos;jQ(a,!1);var e=jQ(a,!0)+a.pos-d;a.pos=d+e;if(!iQ(a,374648427,!0))return null;var f=a.pos;jQ(a,!1);var h=jQ(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}; pQ=function(a){var b=a.pos;a.pos=0;var c=1E6;gQ(a,[408125543,357149030,2807729])&&(c=lQ(a));a.pos=b;return c}; xOa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!qQ(a)||!iQ(a,160))return a.pos=c,NaN;jQ(a,!0);var d=a.pos;if(!iQ(a,161))return a.pos=c,NaN;jQ(a,!0);oQ(a);var e=oQ(a)<<8|oQ(a);a.pos=d;if(!iQ(a,155))return a.pos=c,NaN;d=lQ(a);a.pos=c;return(e+d)*b/1E9}; qQ=function(a){if(!yOa(a)||!iQ(a,524531317))return!1;jQ(a,!0);return!0}; yOa=function(a){if(a.Nn()){if(!iQ(a,408125543))return!1;jQ(a,!0)}return!0}; gQ=function(a,b){for(var c=0;c=Math.abs(a.D-b.C)||a.Pa+1===b.Pa&&0===b.Zb&&a.rf?!0:!1}; GOa=function(a){return a.Pa+(a.rf?1:0)}; HOa=function(a){1===a.length||g.Gr(a,function(c){return!!c.range}); for(var b=1;b=b.range.start+b.Zb&&a.range.start+a.Zb+a.B<=b.range.start+b.Zb+b.B:a.Pa===b.Pa&&a.Zb>=b.Zb&&(a.Zb+a.B<=b.Zb+b.B||b.rf)}; OOa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.wg()?(a=a.j.iB(a),Bs(a,function(c){return OOa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Zb+b.B>a.Zb&&b.Zb+b.B<=a.Zb+a.B}; POa=function(a,b){var c=b.Pa;a.G="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,DOa(a)}; CQ=function(a,b){var c=this;this.fb=a;this.D=this.j=null;this.G=this.ih=NaN;this.K=this.requestId=null;this.Cd={wnb:function(){return c.range}}; this.resource=a[0].j.resource;this.B=b||"";this.fb[0].range&&0d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=ZOa(a,b);c=GQ(c,HP(a));return c.timedOut+c.j+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 LP(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}}; RQ=function(a,b){this.info=a;this.j=b;this.B=null;this.D=this.C=-1;this.timestampOffset=0;this.K=!1;this.G=this.info.j.bA()&&!this.info.Zb}; SQ=function(a){return nIa(a.j)}; pPa=function(a,b){a.j.getLength();b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.Hm;c=new RQ(new wQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb,b,!1,a.info.Lj,a.info.clipId),c.GI);c.D=a.D;c.C=a.C;b=new RQ(new wQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb+b,a.info.B-b,a.info.rf,a.info.Lj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]}; TQ=function(a,b,c){var d;if(!(d=!AQ(a.info,b.info)||a.info.rf)){if(c=void 0===c?!1:c)c=a.j,d=b.j,c=!(d.j.length?jIa(c,d.j[0]):1);d=c}if(d)return null;c=new wQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb,a.info.B,a.info.rf,a.info.Lj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.D=d.D;c.rf=d.rf;d=new YN;ZN(d,a.j);ZN(d,b.j);c=new RQ(c,d);c.B=b.B||a.B;c.C=-1!==a.C?a.C:b.C;c.D=-1!==a.D?a.D:b.D;return c}; qPa=function(a){g.OK(a.info.j.info)||a.info.j.info.We();if(-1!==a.C)return a.C;if(a.B&&dOa(a.B))return a.C=dOa(a.B),a.C;if(g.OK(a.info.j.info)){var b=SQ(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;aQ(b,f);){var h=bQ(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.YP(h):1952867444===h.type&&isNaN(d)&&(d=g.lOa(h));f=cQ(h.type)?f+8:f+h.size}!e&&c&&(e=ZP(c));b=d/e}else b=new eQ(SQ(a)),c=a.G?b:new eQ(new DataView(a.info.j.j.buffer)),d=pQ(c),c=b.pos,b.pos=0,qQ(b)?iQ(b,231)? (d=lQ(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C}; sPa=function(a,b){0e)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}; UQ=function(a,b){b=void 0===b?!1:b;var c=tPa(a);a=b?0:a.info.K;return c||a}; tPa=function(a){g.OK(a.info.j.info)||a.info.j.info.We();if(a.B&&7===a.info.type)return a.B.Nj;if(g.OK(a.info.j.info)){var b=SQ(a);var c=0;b=g.dQ(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=mOa(d.value),c+=d.nS[0]/d.Mr;c=c||NaN;if(!(0<=c))a:{c=SQ(a);b=a.info.j.j;for(var e=d=0,f=0;aQ(c,d);){var h=bQ(c,d);if(1836476516===h.type)e=g.YP(h);else if(1836019558===h.type){!e&&b&&(e=ZP(b));if(!e){c=NaN;break a}var l=$P(h.data,h.dataOffset,1953653094),m=l;l=e;var n=$P(m.data,m.dataOffset, 1952868452);m=$P(m.data,m.dataOffset,1953658222);var p=PP(n);PP(n);p&2&&PP(n);n=p&8?PP(n):0;var q=PP(m),r=q&1;p=q&4;var t=q&256,v=q&512,x=q&1024;q&=2048;var A=QP(m);r&&PP(m);p&&PP(m);for(var E=r=0;Ea.Y&&a.isLivePlayback;a.Xa=Number(KQ(c, a.D+":earliestMediaSequence"))||0;if(d=Date.parse(ePa(KQ(c,a.D+":mpdResponseTime"))))a.va=((0,g.kD)()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Gr(c.getElementsByTagName("Period"),a.rba,a);a.state=2;a.ra("loaded");dQa(a)}return a}).Al(function(c){if(c instanceof NB){var d=c.xhr; a.Ig=d.status}a.state=3;a.ra("loaderror");return tg(d)})}; fQa=function(a,b,c){return eQa(new YQ(a,b,c),a)}; gQa=function(a){return a.isLive&&(0,g.kD)()-a.Ma>=a.Y}; hQa=function(a){a.G&&a.G.stop()}; dQa=function(a){var b=a.Y;isFinite(b)&&(gQa(a)?a.refresh():(b=Math.max(0,a.Ma+b-(0,g.kD)()),a.G||(a.G=new g.Ru(a.refresh,b,a),g.N(a,a.G)),a.G.start(b)))}; iQa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Hd()+1}return 0}; aR=function(a){return a.Pb?a.Pb-(a.K||a.timestampOffset):0}; bR=function(a){return a.Za?a.Za-(a.K||a.timestampOffset):0}; cR=function(a){if(!isNaN(a.Ca))return a.Ca;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!SK(b[c].info.mimeType)){b=0;for(c=d.zn();c<=d.Hd();c++)b+=d.getDuration(c);b/=d.Fz();b=.5*Math.round(b/.5);10=navigator.hardwareConcurrency&&(d=480);b.coreCount=navigator.hardwareConcurrency;Epa()&&(b.isArm=1,d=240);if(c){var f,h;if(e=null==(f=c.videoInfos.find(function(l){return MK(l)}))?void 0:null==(h=f.B)?void 0:h.powerEfficient)d=8192,b.isEfficient=1; c=c.videoInfos[0].video;a=Math.min(hR(a,"1",c.fps),hR(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=hR(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=hR(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d}; iR=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Xa=this.keySystemAccess=null;this.jy=this.ly=-1;this.Nl=null;this.C=!!d&&d.jb("edge_nonprefixed_eme")}; kR=function(a){return a.C?!1:!a.keySystemAccess&&!!jR()&&"com.microsoft.playready"===a.keySystem}; lR=function(a){return"com.microsoft.playready"===a.keySystem}; mR=function(a){return!a.keySystemAccess&&!!jR()&&"com.apple.fps.1_0"===a.keySystem}; nR=function(a){return"com.youtube.fairplay"===a.keySystem}; oR=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem}; g.pR=function(a){return"fairplay"===a.flavor}; jR=function(){var a=window,b=a.MSMediaKeys;aC()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; sQa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.BK&&!g.ZB())return zv("45");if(g.BD||g.Cf)return a.jb("edge_nonprefixed_eme");if(g.qR)return zv("47");if(g.fD){if(a.jb("html5_enable_safari_fairplay"))return!1;if(a=g.gJ(a,"html5_safari_desktop_eme_min_version"))return zv(a)}return!0}; uQa=function(a,b,c,d){var e=$B(),f=(c=e||c&&aC())?["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.pa(f),g.pa(tQa.playready)):[].concat(g.pa(tQa.playready),g.pa(f))}; rR=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.Ha=b;this.useCobaltWidevine=d;this.qa=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)}; xQa=function(a,b){a.callback=b;a.D=[];sQa(a.Ha.experiments)?vQa(a):wQa(a)}; vQa=function(a){if(!a.isDisposed())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=yQa(a,c);if(sR&&sR.keySystem===b&&sR.ica===JSON.stringify(d))a.qa("remksa",{re:!0}),zQa(a,c,sR.keySystemAccess);else{var e,f;a.qa("remksa",{re:!1,ok:null!=(f=null==(e=sR)?void 0:e.keySystem)?f:""});sR=void 0;(tR.isActive()?tR.ll("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(IO(function(h){zQa(a,c,h,d)}),IO(function(){a.G=!a.G&& "widevine"===a.C[a.B[0]].flavor; a.G||a.B.shift();vQa(a)}))}}}; zQa=function(a,b,c,d){if(!a.isDisposed()){d&&(sR={keySystem:b.keySystem,keySystemAccess:c,ica:JSON.stringify(d)});b.keySystemAccess=c;if(lR(b)){c=zK();d=g.u(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.u(c.audioCapabilities),e=d.next();!e.done;e=d.next())AQa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())AQa(a,b,d.value)}a.D.push(b); a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&oR(b)?(a.B.shift(),vQa(a)):a.callback(a.D)}}; AQa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; yQa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&nR(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];lR(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!== b.flavor||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.BK&&g.XB("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.uR(a.Ha)&&(fC()||YB())&&(a.qa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; wQa=function(a){if(jR()&&g.fD)a.D.push(new iR("fairplay","com.apple.fps.1_0","",a.Ha.experiments));else{var b=BQa(),c=g.Db(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h}); c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)}; BQa=function(){var a=jR();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=zK(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; CQa=function(a){this.experiments=a;this.C=0;this.K=(this.D=this.experiments.jb("html5_consider_end_stall"))&&vR;this.B=this.experiments.jb("html5_measure_max_progress_handling");this.G=(this.j=this.experiments.jb("html5_record_ump_timing"))&&this.experiments.jb("html5_use_ump_timing")}; DQa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=sB(b||"","&");a={};b=g.u(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; g.gJ=function(a,b){return Number(a.flags[b])||0}; wR=function(a,b){return(a=a.flags[b])?a.toString():""}; EQa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]}; FQa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.pa(a.experimentIds)).map(function(d){return Number(d)}); b.sort();for(var c=b.length-1;0=f&&f>d&&!0===ONa(a,e,c)&&(d=f)}return d}; g.KQa=function(a,b){b=void 0===b?!1:b;return xR()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(zK(),"application/x-mpegURL")?!0:!1}; MQa=function(a){LQa(function(){for(var b=g.u(Object.keys(EP)),c=b.next();!c.done;c=b.next())DP(a,EP[c.value])})}; DP=function(a,b){b.name in a.N||(a.N[b.name]=NQa(a,b));return a.N[b.name]}; NQa=function(a,b){if(a.G)return!!a.G[b.name];if(b===EP.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===EP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Kn);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.Kn)}; OQa=function(a){a.D||(a.D=!0,a.B=!0)}; PQa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).R6);a.C.set(b,{R6:c+1,J_:Math.pow(2,c+1)});a.B=!0}; AP=function(a){for(var b=[],c=g.u(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")}; FNa=function(a,b){for(var c=new Map,d=g.u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c}; HNa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,sb:b,Ch:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=null==l?void 0:l.width;h.maxHeight=null==l?void 0:l.height;h.maxFramerate=e;DP(a,EP.BITRATE)&&(h.Lp=8*c.Ob);h.jE=null==l?void 0:l.isHdr()}l=a.j.get(d);l?f||(c=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(h.maxWidth||0,h.maxHeight||0)?l:h,b={itag:c.itag,sb:b,Ch:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth||0),maxHeight:Math.max(l.maxHeight|| 0,h.maxHeight||0),maxFramerate:e,jE:c.jE},DP(a,EP.BITRATE)&&(b.Lp=c.Lp),a.j.set(d,b)):a.j.set(d,h)}; INa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&(null==(n=c.video)?0:n.height)&&l.maxHeight&&l.maxHeight>=(null==(p=c.video)?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,sb:b,Ch:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=null==f?void 0:f.width,b.maxHeight=null==f?void 0:f.height,b.maxFramerate=e,DP(a,EP.BITRATE)&&(b.Lp=8*c.Ob),b.jE=null== f?void 0:f.isHdr()),a.j.set(d,b))}; yR=function(){g.IF.call(this);this.items={}}; zR=function(){g.TN.apply(this,arguments)}; AR=function(){g.UN.apply(this,arguments)}; BR=function(a,b){var c=QQa(a,b);VN.call(this,a,c||b);this.j=a;c&&this.j.exports.free(c.byteOffset)}; RQa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)}; SQa=function(a){a.B||(a.B=new zR(a.j));return a.B}; CR=function(a){try{return Fg(a)}catch(b){return null}}; TQa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?CR(b.clientKey):null;var c=b.encryptedClientKey?CR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.kD)():null;a&&c&&d&&(this.j=new RQa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=CR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; DR=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)}; ER=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.Xl=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a=TR;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.QR(this)&&this.B;n=this.B&&!this.Z;m=g.UR(this)||!l&&gC(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Il=this.B;this.color=hC("red",b?b.progressBarColor:a.color,pRa);this.Ip="3"===this.controlsType;this.Jc=!this.D;this.Um=(m=!this.Jc&&!SR(this)&&!this.ma&&!this.N&&!RR(this))&&!this.Ip&&"1"===this.controlsType;this.Ge=g.VR(this)&&m&&"0"===this.controlsType&&!this.Um;this.Rr=this.Yq= l;this.Bd=("3"===this.controlsType||this.B||gC(!1,a.use_media_volume))&&!this.Z;this.Wm=bC&&!g.Tc(601)?!1:!0;this.Vo=this.D||!1;this.rd=SR(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=jC("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.K||gC(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.lk=this.L("enable_cast_for_web_unplugged")&&g.WR(this)&&l||this.L("enable_cast_on_music_web")&&g.VG(this)&&l||p&&l&&"1"=== this.controlsType&&!this.B&&(SR(this)||g.VR(this)||g.YR(this));this.Ar=!!window.document.pictureInPictureEnabled||DCa();p=b?!!b.supportsAutoplayOverride:gC(!1,a.autoplayoverride);this.Ui=!(this.B&&!g.QR(this))&&!g.XB("nintendo wiiu")||p;p=b?!!b.enableMutedAutoplay:gC(!1,a.mutedautoplay);this.Qo=this.L("embeds_enable_muted_autoplay")&&g.QR(this);this.Vi=p&&!1;p=(SR(this)||RR(this))&&"blazer"===this.playerStyle;this.xk=b?!!b.disableFullscreen:!gC(!0,a.fs);l=g.lC(g.ZR(this))&&g.QR(this);this.Pb=!this.xk&& (p||g.pC())&&!l;this.Mm=this.L("uniplayer_block_pip")&&(YB()&&zv(58)&&!fC()||AD);p=g.QR(this)&&!this.Pl;var q;b?void 0!==b.disableRelatedVideos&&(q=!b.disableRelatedVideos):q=a.rel;this.Yd=p||gC(!this.N,q);this.Sm=gC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=fC()&&0=TR?"_top":"_blank";this.Yg=g.YR(this);this.Hl=gC("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break; case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.va=q;this.Ca=jC("",b?b.authorizedUserIndex:a.authuser);this.Lc=g.QR(this)&&(this.Yc||!ypa()||this.eb);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.Fe=((q=!this.Lc)|| !!this.Ca&&q)&&gC(!this.ma,this.K?r:void 0);this.cf=b?b.isMobileDevice||!!b.disableKeyboardControls:gC(!1,a.disablekb);this.loop=gC(!1,a.loop);this.pageId=jC("",b?b.initialDelegatedSessionId:a.pageid);this.xr=gC(!0,a.canplaylive);this.tb=gC(!1,a.livemonitor);this.disableSharing=gC(this.N,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),2!==q.length?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)|| isNaN(q)||0>=r*q?null:new g.Oe(r,q))):r=null;this.Xm=r;this.mute=b?!!b.startMuted:gC(!1,a.mute);this.storeUserVolume=!this.mute&&gC("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:hC(void 0,r,$R);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":jC("",a.cc_lang_pref);r=hC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,$R);"3"===this.controlsType&&2===r&&(r=3);this.Db= r;this.wj=b?b.hl||"en_US":jC("en_US",a.hl);this.region=b?b.contentRegion||"US":jC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":jC("en",a.host_language);this.Ro=!this.Yc&&Math.random()Math.random();this.vl=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new TQa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig): void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=null==b?void 0:b.canaryStage;this.Xf=new eRa;g.N(this,this.Xf);this.Ll=gC(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.mB("DATASYNC_ID");this.Nl=g.mB("LOGGED_IN",!1);this.zj=(null==b?void 0:b.allowWoffleManagement)||!1;this.Dl=this.zl=Infinity;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Zf=!0:this.Zf=100*Math.random()< g.gJ(this.experiments,"html5_high_res_logging_percent");var Q;this.Nm=!!(null==b?0:null==(Q=b.embedsHostFlags)?0:Q.allowRcat);this.Jl=!g.WR(this)&&!bS(this)}; g.ZR=function(a){var b,c;if(!(null==(b=a.webPlayerContextConfig)?0:null==(c=b.embedsHostFlags)?0:c.enableLiteUx)||a.Yc||a.N||a.C||"EMBEDDED_PLAYER_MODE_PFP"===a.Ia)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.gJ(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&av.width*v.height*v.fps)v=F}else r.push(F)}else l[E]="disdrmhfr";t.reduce(function(Q, R){return R.Qh().isEncrypted()&&Q},!0)&&(q=p); e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(NRa(r,c,d,f,"93",v,p,n,m,"auto",e,q,x,A));Object.entries(l).length&&h(l);return qS(a.G,t,wRa(a,b),!1)}; NRa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,x="",A=g.u(a),E=A.next();!E.done;E=A.next())E=E.value,x||(x=E.itag),E.audioChannels&&E.audioChannels>v&&(v=E.audioChannels,x=E.itag);e=new KK(e,"application/x-mpegURL",{audio:new EK(0,v),video:new GK(f,h,l,null,void 0,n,void 0,r),ue:q,dZ:x});a=new CRa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new rS(e,a,m)}; KRa=function(a){a=g.u(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}; MRa=function(a,b){for(var c=g.u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.ue===b.ue&&!e.audioChannels)return d}return""}; LRa=function(a){for(var b=new Set,c=g.u(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.u(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.u(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]}; sS=function(a,b){this.j=a;this.B=b}; PRa=function(a,b,c,d){var e=[];c=g.u(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.FP(h.url,!0);if(h.s){var l=f,m=h.sp,n=cNa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=TK(h.type,h.quality,h.itag,h.width,h.height);e.push(new sS(h,f))}}return qS(a.G,e,wRa(a,b),!1)}; tS=function(a,b){this.j=a;this.B=b}; QRa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=TK(e.type,"medium","0");d.push(new tS(f,e.url))}return qS(a.G,d,wRa(a,b),!1)}; RRa=function(a,b){var c=[],d=TK(b.type,"auto",b.itag);c.push(new tS(d,b.url));return qS(a.G,c,!1,!0)}; TRa=function(a){return a&&SRa[a]?SRa[a]:null}; URa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Jo=CR(a.ustreamerConfig)||void 0)}; VRa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.VZ=new URa(b)}; g.uS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=void 0===a.name?null:a.name;this.displayName=a.displayName||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.wS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.vS(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.xS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.WRa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.xS(a));return b}; g.vS=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);"asr"===a.kind&&-1===c.indexOf("(")&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")}; $Ra=function(a,b,c,d){a||(a=b&&XRa.hasOwnProperty(b)&&YRa.hasOwnProperty(b)?YRa[b]+"_"+XRa[b]:void 0);b=a;if(!b)return null;a=b.match(ZRa);if(!a||5!==a.length)return null;if(a=b.match(ZRa)){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}; yS=function(a,b){for(var c={},d=g.u(Object.keys(aSa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.MJ(f)&&(c[aSa[e]]=f)}return c}; zS=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.u(Object.keys(bSa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=bSa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=cSa(h.url);g.MJ(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=cSa(a.url),g.MJ(a)&&(b["maxresdefault.jpg"]=a));return b}; cSa=function(a){return a.startsWith("//")?"https:"+a:a}; AS=function(a){return a&&a.baseUrl||""}; BS=function(a){a=g.xB(a);for(var b=g.u(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}; dSa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.wq=b)}; gSa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.U(h,eSa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.U(h,fSa))return Object.assign({is_yto_interstitial:!0},uB(h))}); d=g.u(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,Ho:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Ho: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, Ho:0===f?5:7})}}}; hSa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; iSa=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)}; jSa=function(a,b){null!=b?(a.tp=b,a.Of=!0):(a.tp="",a.Of=!1)}; CS=function(a,b){this.type=a||"";this.id=b||""}; g.kSa=function(a){return new CS(a.substr(0,2),a.substr(2))}; g.DS=function(a,b){this.Ha=a;this.author="";this.lD=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=sB(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=yS(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new CS("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.kSa(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.ES=function(a,b){this.Ha=a;this.ws=this.author="";this.lD=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.ow=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.ws=b.ws||"";if(a=b.endscreen_autoplay_session_data)this.lD=sB(a,"&");this.mD=b.mD;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.ow=b.ow||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=sB(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=yS(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; lSa=function(a){var b,c,d=null==(b=a.getWatchNextResponse())?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.getWatchNextResponse())?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.oSa=function(a){var b,c,d;a=g.U(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,mSa);return g.U(null==a?void 0:a.playerBar,nSa)}; pSa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url}; qSa=function(){if(void 0===FS){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Rv(g.MC()+"::yt-player"))){FS=new XG(a);break a}FS=void 0}}return FS}; g.GS=function(){var a=qSa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.rSa=function(a){var b=qSa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.HS=function(a){return g.GS()[a]||0}; g.IS=function(a,b){var c=g.GS();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.rSa(c))}; g.JS=function(a){return g.H(function(b){return b.return(g.yD(sSa(),a))})}; xSa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:return m=g.HS(a),4===m?v.return(4):g.z(v,g.DD(),2);case 2:n=v.B;if(!n)throw g.gD("wiac");if(!l||void 0===h){v.Ka(3);break}return g.z(v,tSa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.JS(n),5);case 5:return q=v.B,g.Ba(v,6),KS++,g.z(v,g.nD(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Tb:!0},function(x){if(void 0!==f&&void 0!==h){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10, "0");A=g.oD(x.objectStore("media"),h,A)}else A=g.iD.resolve(void 0);var E=uSa(a,b.Hg()),F=uSa(a,!b.Hg()),G={fmts:vSa(d),format:c||{}};E=g.oD(x.objectStore("index"),G,E);var L=-1===d.downloadedEndTime;G=L?x.objectStore("index").get(F):g.iD.resolve(void 0);var Q={fmts:"music",format:{}};x=L&&e&&!b.Hg()?g.oD(x.objectStore("index"),Q,F):g.iD.resolve(void 0);return g.iD.all([x,G,A,E]).then(function(R){R=g.u(R);R.next();R=R.next().value;KS--;var aa=g.HS(a);if(4!==aa&&L&&e||void 0!==R&&g.wSa(R.fmts))aa= 1,g.IS(a,aa);return aa})}),8); case 8:return v.return(v.B);case 6:r=g.Da(v);KS--;t=g.HS(a);if(4===t)return v.return(t);g.IS(a,4);throw r;}})}; g.ySa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,g.DD(),2);if(3!=d.j){b=d.B;if(!b)throw g.gD("ri");return g.z(d,g.JS(b),3)}c=d.B;return d.return(g.nD(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.pra(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})}; ASa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){if(1==m.j)return g.z(m,g.DD(),2);if(3!=m.j){f=m.B;if(!f)throw g.gD("rc");return g.z(m,g.JS(f),3)}h=m.B;l=g.nD(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},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 zSa(e,n)}).catch(function(n){throw new g.LC("Error while reading chunk: "+n.name+", "+n.message); })):m.return(l)})}; g.wSa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; uSa=function(a,b){return""+a+"|"+(b?"v":"a")}; vSa=function(a){var b={};return tB((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; CSa=function(a){var b={},c={};a=g.u(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.BSa)?(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.u(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}; LS=function(a){g.IF.call(this);this.j=null;this.C=new zla;this.j=null;this.K=new Set;this.crossOrigin=a||""}; DSa=function(a,b,c){for(c=MS(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(NS(d,b))&&(d=g.OS(d,b)))return d;c--}return g.OS(a.levels[0],b)}; FSa=function(a,b,c){c=MS(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=NS(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.Ah(f,{DY:f,cZ:e}))}ESa(a)}; ESa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=GSa(a,b)}}; GSa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.DY].Ve(b.cZ);c.onload=function(){var d=b.DY,e=b.cZ;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);ESa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.cI()-1);e=[e,d];a.ra("l",e[0],e[1])}; return c}; g.PS=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.C=a[6];this.signature=a[7];this.videoLength=d}; NS=function(a,b){return Math.floor(b/(a.columns*a.rows))}; g.OS=function(a,b){b>=a.cM()&&a.ey();var c=NS(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.ey()+1-d*c;if(f=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1}; ISa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.PS.call(this,a,b,c,0);this.B=null;this.G=d?2:0}; RS=function(a,b,c,d){QS.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;aXS?!1:!0,a.isLivePlayback=!0;else if($c.isLive){Li.livestream="1";a.allowLiveDvr=$c.isLiveDvrEnabled?xR()?!0:cC&&5>XS?!1:!0:!1;a.Ma=27;$c.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var jm=$c.latencyClass;jm&&(a.latencyClass= $Sa[jm]||"UNKNOWN");var bp=$c.liveChunkReadahead;bp&&(a.liveChunkReadahead=bp);var ik=gk&&gk.livePlayerConfig;if(ik){ik.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);ik.hasSubfragmentedWebm&&(a.aE=!0);ik.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var jk=ik.liveExperimentalContentId;jk&&(a.liveExperimentalContentId=Number(jk));var al=ik.isLiveHeadPlayable;a.L("html5_live_head_playable")&&null!=al&&(a.isLiveHeadPlayable=al)}hk=!0}else $c.isUpcoming&&(hk=!0);hk&&(a.isLivePlayback= !0,Li.adformat&&"8"!==Li.adformat.split("_")[1]||a.Ia.push("heartbeat"),a.Xo=!0)}var bl=$c.isPrivate;void 0!==bl&&(a.isPrivate=gC(a.isPrivate,bl))}if(la){var cp=$c||null,Pq=!1,cl=la.errorScreen;Pq=cl&&(cl.playerLegacyDesktopYpcOfferRenderer||cl.playerLegacyDesktopYpcTrailerRenderer||cl.ypcTrailerRenderer)?!0:cp&&cp.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(la.status);if(!Pq){a.errorCode=TRa(la.errorCode)||"auth";var rj=cl&&cl.playerErrorMessageRenderer;if(rj){a.playerErrorMessageRenderer= rj;var km=rj.reason;km&&(a.errorReason=g.TF(km));var dl=rj.subreason;dl&&(a.vn=g.TF(dl),a.oy=dl)}else a.errorReason=la.reason||null;var dp=la.status;if("LOGIN_REQUIRED"===dp)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===dp)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===dp){var Qq=la.errorScreen,Rq=Qq&&Qq.playerKavRenderer;a.errorDetail=Rq&&Rq.kavUrl?"4":"3"}else a.errorDetail=la.isBlockedInRestrictedMode?"5":"0"}}var qn=a.playerResponse.interstitialPods;qn&&gSa(a,qn);a.Wa&&a.eventId&&(a.Wa= zB(a.Wa,{ei:a.eventId}));var lm=a.playerResponse.captions;if(lm&&lm.playerCaptionsTracklistRenderer)a:{var qh=lm.playerCaptionsTracklistRenderer;a.captionTracks=[];if(qh.captionTracks)for(var rn=g.u(qh.captionTracks),mm=rn.next();!mm.done;mm=rn.next()){var Lg=mm.value,Sq=OSa(Lg.baseUrl);if(!Sq)break a;var ep={is_translateable:!!Lg.isTranslatable,languageCode:Lg.languageCode,languageName:Lg.name&&g.TF(Lg.name),url:Sq,vss_id:Lg.vssId,kind:Lg.kind};ep.name=Lg.trackName;ep.displayName=Lg.name&&g.TF(Lg.name); a.captionTracks.push(new g.uS(ep))}a.WB=qh.audioTracks||[];a.jV=qh.defaultAudioTrackIndex||0;a.Eu=[];if(qh.translationLanguages)for(var Tq=g.u(qh.translationLanguages),el=Tq.next();!el.done;el=Tq.next()){var sj=el.value,ci={};ci.languageCode=sj.languageCode;ci.languageName=g.TF(sj.languageName);if(sj.translationSourceTrackIndices){ci.translationSourceTrackIndices=[];for(var rh=g.u(sj.translationSourceTrackIndices),di=rh.next();!di.done;di=rh.next())ci.translationSourceTrackIndices.push(di.value)}if(sj.excludeAudioTrackIndices){ci.excludeAudioTrackIndices= [];for(var Mi=g.u(sj.excludeAudioTrackIndices),fp=Mi.next();!fp.done;fp=Mi.next())ci.excludeAudioTrackIndices.push(fp.value)}a.Eu.push(ci)}a.YB=[];if(qh.defaultTranslationSourceTrackIndices)for(var Uq=g.u(qh.defaultTranslationSourceTrackIndices),sn=Uq.next();!sn.done;sn=Uq.next())a.YB.push(sn.value);a.Du=!!qh.contribute&&!!qh.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.LP=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&& a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&iSa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var nm;a.compositeLiveIngestionOffsetToken=null==(nm=a.playerResponse.playbackTracking)?void 0:nm.compositeLiveIngestionOffsetToken;var Ni;a.compositeLiveStatusToken=null==(Ni=a.playerResponse.playbackTracking)?void 0:Ni.compositeLiveStatusToken}MSa(a,b);b.queue_info&&(a.queueInfo= b.queue_info);var tj=b.hlsdvr;null!=tj&&(a.allowLiveDvr="1"==tj?xR()?!0:cC&&5>XS?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Gx||(a.Gx=b.encoded_ad_safety_reason||null);a.PU=b.agcid||null;a.DG=b.ad_id||null;a.FG=b.ad_sys||null;a.uC=b.encoded_ad_playback_context||null;a.vl=gC(a.vl,b.infringe||b.muted);a.S5=b.authkey;a.o5=b.authuser;a.mutedAutoplay=gC(a.mutedAutoplay,b&&b.playmuted)&&a.L("embeds_enable_muted_autoplay");a.xL=gC(a.xL,b&&b.mutedautoplay)&&a.L("embeds_enable_muted_autoplay");var uj=b.length_seconds; uj&&(a.lengthSeconds="string"===typeof uj?jf(uj):uj);if(a.isAd()||a.Pm||!g.lC(g.ZR(a.Ha)))a.endSeconds=iC(a.endSeconds,a.vP||b.end||b.endSeconds);else{var tn=a.lengthSeconds;switch(g.ZR(a.Ha)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30tn&&10(null!=c?c:50)&&(c=fTa.shift())&&eTa.delete(c),c=e),e!==c&&a.eB("ssei","dcpn,"+e+","+c),c)}; MSa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Ra=c;var e=a.Ra.playerCueRangeSet;e&&g.ZSa(a,e);var f=a.Ra.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.U(l,gTa),a.L("web_player_autonav_use_server_provided_state")&&hTa(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p= m.playerOverlayVideoDetailsRenderer;p&&(p.title&&(b.title=g.TF(p.title)),p.subtitle&&(b.subtitle=g.TF(p.subtitle)))}g.VR(a.Ha)&&(a.Fe=!!h.addToMenu);iTa(a,h.shareButton);a.L("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.p5=g.U(q,jTa));var r,t,v,x=g.U(null== (r=a.getWatchNextResponse())?void 0:null==(t=r.playerOverlays)?void 0:null==(v=t.playerOverlayRenderer)?void 0:v.infoPanel,kTa);if(x){a.yC=Number(null==x?void 0:x.durationMs)||NaN;if(null==x?0:x.infoPanelOverviewViewModel)a.bf=null==x?void 0:x.infoPanelOverviewViewModel;if(null==x?0:x.infoPanelDetailsViewModel)a.Hl=null==x?void 0:x.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,E,F=null==(A=a.getWatchNextResponse())?void 0:null==(E=A.contents)?void 0:E.twoColumnWatchNextResults; if(F){var G=F.desktopOverlay&&g.U(F.desktopOverlay,lTa);G&&(G.suppressShareButton&&(a.showShareButton=!1),G.suppressWatchLaterButton&&(a.Fe=!1))}n&&mTa(a,b,n);var L=iC(0,b.autoplay_count),Q=a.getWatchNextResponse(),R,aa=null==(R=Q.contents)?void 0:R.twoColumnWatchNextResults,na,ta,la,va=null==(na=Q.playerOverlays)?void 0:null==(ta=na.playerOverlayRenderer)?void 0:null==(la=ta.autoplay)?void 0:la.playerOverlayAutoplayRenderer,ea=lSa(a),Y,Na=null==(Y=Q.contents)?void 0:Y.singleColumnWatchNextResults; if(Na){var y;if((null==(y=Na.autoplay)?0:y.autoplay)&&!Na.playlist){var ca=Na.autoplay.autoplay.sets,Ja={},cb=new g.ES(a.U()),nb=null,Oa;if(ca){for(var Ua=g.u(ca),gb=Ua.next();!gb.done;gb=Ua.next()){var qb=gb.value.autoplayVideoRenderer;if(qb&&qb.compactVideoRenderer){nb=qb.compactVideoRenderer;break}}if(Oa=ca[0].autoplayVideo){var rb=Oa.clickTrackingParams;rb&&(Ja.itct=rb);Ja.autonav="1";Ja.playnext=String(L)}}else Ja.feature="related-auto";var B=g.U(Oa,g.dT);if(nb){cb.videoId=nb.videoId;var C=nb.shortBylineText; C&&(cb.author=g.TF(C));var D=nb.title;D&&(cb.title=g.TF(D))}else null!=B&&B.videoId&&(cb.videoId=B.videoId);cb.lD=Ja;a.suggestions=[];a.Ix=cb}}if(ea){for(var J=[],K=g.u(ea),ba=K.next();!ba.done;ba=K.next()){var sa=ba.value,ia=void 0,M=null;if(sa.endScreenVideoRenderer){var X=sa.endScreenVideoRenderer,ya=X.title;M=new g.ES(a.U());M.videoId=X.videoId;M.lengthSeconds=X.lengthInSeconds||0;var xa=X.publishedTimeText;xa&&(M.publishedTimeText=g.TF(xa));var Za=X.shortBylineText;Za&&(M.author=g.TF(Za));var Xa= X.shortViewCountText;Xa&&(M.shortViewCount=g.TF(Xa));if(ya){M.title=g.TF(ya);var wb=ya.accessibility;if(wb){var Pb=wb.accessibilityData;Pb&&Pb.label&&(M.ariaLabel=Pb.label)}}var db=X.navigationEndpoint;if(db){ia=db.clickTrackingParams;var Qb=g.U(db,g.dT),gc=g.U(db,g.eG);Qb?M.mD=Qb:null!=gc&&(M.watchUrl=gc.url)}var Ac=X.thumbnailOverlays;if(Ac)for(var Yb=g.u(Ac),vc=Yb.next();!vc.done;vc=Yb.next()){var Wc=vc.value.thumbnailOverlayTimeStatusRenderer;if(Wc)if("LIVE"===Wc.style){M.isLivePlayback=!0;break}else if("UPCOMING"=== Wc.style){M.isUpcoming=!0;break}}M.Z=zS(X.thumbnail)}else if(sa.endScreenPlaylistRenderer){var Jc=sa.endScreenPlaylistRenderer,Kc=Jc.navigationEndpoint;if(!Kc)continue;var Lc=g.U(Kc,g.dT);if(!Lc)continue;var Ub=Lc.videoId;M=new g.DS(a.U());M.playlistId=Jc.playlistId;M.playlistLength=Number(Jc.videoCount)||0;M.j=Ub||null;M.videoId=Ub;var ud=Jc.title;ud&&(M.title=g.TF(ud));var vd=Jc.shortBylineText;vd&&(M.author=g.TF(vd));ia=Kc.clickTrackingParams;M.Z=zS(Jc.thumbnail)}M&&(ia&&(M.sessionData={itct:ia}), J.push(M))}a.suggestions=J}if(va){a.YS=!!va.preferImmediateRedirect;a.Xf=a.Xf||!!va.webShowNewAutonavCountdown;a.Kl=a.Kl||!!va.webShowBigThumbnailEndscreen;if(a.Xf||a.Kl){var ac=aa||null,Wb=new g.ES(a.U());Wb.videoId=va.videoId;var Mc=va.videoTitle;if(Mc){Wb.title=g.TF(Mc);var Hb=Mc.accessibility;if(Hb){var Zc=Hb.accessibilityData;Zc&&Zc.label&&(Wb.ariaLabel=Zc.label)}}var wd=va.byline;wd&&(Wb.author=g.TF(wd));var Nb=va.publishedTimeText;Nb&&(Wb.publishedTimeText=g.TF(Nb));var re=va.shortViewCountText; re&&(Wb.shortViewCount=g.TF(re));var Od=va.thumbnailOverlays;if(Od)for(var Pd=g.u(Od),Me=Pd.next();!Me.done;Me=Pd.next()){var Ae=Me.value.thumbnailOverlayTimeStatusRenderer;if(Ae)if("LIVE"===Ae.style){Wb.isLivePlayback=!0;break}else if("UPCOMING"===Ae.style){Wb.isUpcoming=!0;break}else if("DEFAULT"===Ae.style&&Ae.text){Wb.lengthText=g.TF(Ae.text);var Gd=Ae.text.accessibility;if(Gd){var Ef=Gd.accessibilityData;Ef&&Ef.label&&(Wb.ow=Ef.label||"")}break}}Wb.Z=zS(va.background);var Xe=va.nextButton;if(Xe){var de= Xe.buttonRenderer;if(de){var Ff=de.navigationEndpoint;if(Ff){var ee=g.U(Ff,g.dT);ee&&(Wb.mD=ee)}}}if(va.topBadges){var se=va.topBadges[0];if(se){var Hd=g.U(se,nTa);Hd&&"BADGE_STYLE_TYPE_PREMIUM"===Hd.style&&(Wb.TK=!0)}}var xd=va.alternativeTitle;xd&&(Wb.ws=g.TF(xd));var hd={autonav:"1",playnext:String(L)};Wb.playlistId&&(hd.autoplay="1");if(ac){var Qd,yd,lf,Uf,te=null==(Qd=ac.autoplay)?void 0:null==(yd=Qd.autoplay)?void 0:null==(lf=yd.sets)?void 0:null==(Uf=lf[0])?void 0:Uf.autoplayVideo;if(te){var nc= te.clickTrackingParams;nc&&(hd.itct=nc);var Ne=g.U(te,g.dT);Ne&&(Wb.EV=Ne)}}else if(va){var ch,Rh,Ai,Bi=null==(ch=va.nextButton)?void 0:null==(Rh=ch.buttonRenderer)?void 0:null==(Ai=Rh.navigationEndpoint)?void 0:Ai.clickTrackingParams;Bi&&(hd.itct=Bi)}hd.itct||(hd.feature="related-auto");Wb.lD=hd;a.suggestions||(a.suggestions=[]);a.Ix=Wb}null!=va.countDownSecs&&(a.dV=1E3*va.countDownSecs);null!=va.countDownSecsForFullscreen&&(a.VB=0<=va.countDownSecsForFullscreen?1E3*va.countDownSecsForFullscreen: -1);if(a.L("web_player_autonav_next_button_renderer")){var Kf;a.B6=null==(Kf=va.nextButton)?void 0:Kf.buttonRenderer}var af;a.t6=null==(af=va.cancelButton)?void 0:af.buttonRenderer;a.L("web_autonav_color_transition")&&va.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.U(va.watchToWatchTransitionRenderer,oTa))}var bf=lSa(a);if(bf){var Sh,rc,wc,Fc=null==bf?void 0:null==(Sh=bf[0])?void 0:null==(rc=Sh.endScreenVideoRenderer)?void 0:null==(wc=rc.navigationEndpoint)?void 0:wc.clickTrackingParams, Hg=g.eT(a);Fc&&Hg&&(Hg.sessionData={itct:Fc})}a.Ra.currentVideoThumbnail&&(a.Z=zS(a.Ra.currentVideoThumbnail));var Qc,cf,Xf,Ci,Di,Th=null==(Qc=a.Ra)?void 0:null==(cf=Qc.contents)?void 0:null==(Xf=cf.twoColumnWatchNextResults)?void 0:null==(Ci=Xf.results)?void 0:null==(Di=Ci.results)?void 0:Di.contents;if(Th&&Th[1]){var Ig,Lf,gh,lj,nf=null==(Ig=Th[1].videoSecondaryInfoRenderer)?void 0:null==(Lf=Ig.owner)?void 0:null==(gh=Lf.videoOwnerRenderer)?void 0:null==(lj=gh.thumbnail)?void 0:lj.thumbnails;nf&& nf.length&&(a.profilePicture=nf[nf.length-1].url)}var df=kC(b),ng,Ei=null==(ng=a.getWatchNextResponse())?void 0:ng.onResponseReceivedEndpoints;if(Ei)for(var Uh=g.u(Ei),of=Uh.next();!of.done;of=Uh.next()){var hh=of.value;g.U(hh,fT)&&(a.D1=g.U(hh,fT));var ih=g.U(hh,pTa),Fi=void 0;if(null==(Fi=ih)?0:Fi.entityKeys)a.uy=ih.entityKeys||[],ih.visibleOnLoadKeys&&(a.visibleOnLoadKeys=ih.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var De=g.gT.getState().entities,ef=g.EO("visibility_override","markersVisibilityOverrideEntity"); var Jd=GO(De,"markersVisibilityOverrideEntity",ef);a.Ge=(null==Jd?void 0:Jd.videoId)===(a.videoId||df)&&(null==Jd?0:Jd.visibilityOverrideMarkersKey)?Jd.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.pa(a.Ge))}}}; hTa=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)}; qTa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)}; jT=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&hT(a)&&(b=!1);var c=!!a.j&&a.j.zc,d=a.Ha,e=a.kP(),f=iT(a),h=a.kM,l=b,m=a.isOtf();b=a.IM();var n=a.tb,p=a.Zf,q=rTa(a),r=new pQa(d);if(d.Dc()||d.L("html5_logging_format_selection"))r.B=!0;r.Xa=f;r.Ma=h&&d.K;r.Zf=p;g.XB("windows nt 5.1")&&!g.qR&&(r.po=!0);if(f=e)f=g.kS(d)?xRa(d):!1;f&&(r.Ca=!0);l&&(r.po=!0,r.Lc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.po=!0);"picasaweb"===d.playerStyle&&(m&&(r.po=!1),r.Ia=!1);n&&(r.po=!0);DP(d.G, EP.CHANNELS)&&(d.L("html5_enable_aac51")&&(r.va=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Na=!0));d.L("html5_block_8k_hfr")&&(r.Za=!0);r.K=g.gJ(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.gJ(d.experiments,"html5_min_selectable_quality_ordinal");OR&&(r.jc=480);if(c||e)r.Ia=!1;r.ib=!1;r.disableAv1=q;c=rQa(d,r.j,void 0,r.disableAv1);0c&&(eL()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+eL(), r.tj=c);2160<=c&&(r.Ea=!0);qNa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Jc=!1);r.IM=b;r.Wa=g.BD||Kpa()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Mb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");$B()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.Y&&a.isAd()&&(a.Rr&&(r.ma=a.Rr),a.Ar&&(r.C=a.Ar));r.Ra=a.isLivePlayback&&a.Cj()&&a.Ha.L("html5_drm_live_audio_51"); r.ub=a.bC;return a.Qe=r}; rTa=function(a){return a.Ha.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&hT(a)?!0:!1}; tTa=function(a){NH("drm_pb_s",void 0,a.Na);a.Xa||a.j&&zP(a.j);var b={};a.j&&(b=zNa(a.Mx,jT(a),a.Ha.G,a.j,function(c){return a.ra("ctmp","fmtflt",c)},!0,new Set)); b=new rR(b,a.Ha,a.WU,a.useCobaltWidevine?$B()?sTa(a):!1:!1,function(c,d){a.qa(c,d)}); g.N(a,b);a.Wm=!1;a.loading=!0;xQa(b,function(c){NH("drm_pb_f",void 0,a.Na);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Xa=a.Xa;e.ly=a.ly;e.jy=a.jy;break;case "widevine":e.Nl=a.Nl}a.Ym=c;if(0p&&(p=t.Qh().audio.numChannels)}2=a.C.videoInfos.length)&&(b=PK(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.Ym),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}}; nT=function(a,b){a.rd=b;BTa(a,new vP(g.Fr(a.rd,function(c){return c.Qh()})))}; CTa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ha.j.c,cver:a.Ha.j.cver};a.vy&&(b.ptk=a.vy,b.oid=a.J1,b.ptchn=a.H1,b.pltype=a.US,a.Ox&&(b.m=a.Ox));return b}; g.oT=function(a){return YS(a)&&a.Xa?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.ue||null}; ETa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.TF(b.text):a.paidContentOverlayText}; FTa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?jf(b.durationMs):a.paidContentOverlayDurationMs}; pT=function(a){var b="";if(a.IC)return a.IC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.eb?"window":"live");a.ze&&(b="post");return b}; g.qT=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; GTa=function(a){return!!a.yj||!!a.dQ||!!a.yy||!!a.zy||a.UX||a.N.focEnabled||a.N.rmktEnabled}; g.rT=function(a){return!!(a.Yc||a.Yf||a.Ml||a.hlsvp||a.Mv())}; US=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Fb(a.Ia,"ypc");a.ypcPreview&&(b=!1);return a.Le()&&!a.loading&&(g.rT(a)||g.Fb(a.Ia,"heartbeat")||b)}; $S=function(a,b){a=Woa(a);var c={};if(b){b=g.u(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.u(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}; DTa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.zl);for(var c=0;c1E3*a.maxStatefulTimeThresholdSec&& (a.Ha.zl=Infinity,a.Ha.Dl=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Ha.zl)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Ha.zl=c+e,a=a.Ha,c=Date.now(),a.Dl=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b}; iT=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.uR(a.Ha)&&"MUSIC"===a.Ha.j.ctheme;a.lk||!g.VG(a.Ha)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.lk=!0);if(b=g.ZB())b=/Starboard\/([0-9]+)/.exec(g.pc()),b=10>(b?parseInt(b[1],10):NaN);c=a.Ha;c=("TVHTML5_CAST"===g.uR(c)||"TVHTML5"===g.uR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Ha.j.ctheme;var d;if(d=!a.lk)c||(c=a.Ha,c= "TVHTML5"===g.uR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.lk=!0);return a.Ha.deviceIsAudioOnly||a.lk&&a.Ha.K}; GT=function(a){var b,c,d;return a.isDaiEnabled()&&!!(null==(b=a.playerResponse)?0:null==(c=b.playerConfig)?0:null==(d=c.daiConfig)?0:d.ssaEnabledPlayback)}; VTa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; HT=function(a){return!(!a.Rm||!a.Ha.K)&&a.Mv()}; WTa=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; bT=function(a){if(a.tX||a.cotn||!a.j||a.j.isOtf)return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.zc&&!a.Cj(),c=b&&vR&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!vR&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=IT(a),e;if(e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.Cj()&&!a.j.zc&&vR)e=a.Sm,e="1"===e?!1:"6"===e||"4"===e?!1:!0;(c=c||b||d||e)&&!a.By&&a.qa("sabr",{loc:"m"},!0);return c&&!!a.By}; IT=function(a){if(a.enableServerStitchedDai)return!1;var b=a.zc()&&!a.Cj(),c=b&&vR;b=b&&!vR&&a.L("html5_enable_sabr_live_non_streaming_xhr");var d=a.zc()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),e=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr");a="ULTRALOW"===a.latencyClass&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");return c&&(d||e||a)||b}; g.JT=function(a){return a.UV&&bT(a)}; bTa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.HS(b);return b&&!a.Rm}; g.KT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j;return!!b[a.B.id]&&IP(b[a.B.id].resource.j)&&!!b[a.D.id]&&IP(b[a.D.id].resource.j)}; XTa=function(a){return a.wy?["OK","LIVE_STREAM_OFFLINE"].includes(a.wy.status):!0}; LTa=function(a){return(a=a.Tm)&&a.showError?a.showError:!1}; ZS=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")}; USa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")}; YTa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; SSa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.zy=new pSa(b));if(b=b.video_masthead_ad_quartile_urls)a.dQ=b.quartile_0_url,a.eT=b.quartile_25_url,a.fT=b.quartile_50_url,a.gT=b.quartile_75_url,a.ZS=b.quartile_100_url,a.yy=b.quartile_0_urls,a.BS=b.quartile_25_urls,a.QS=b.quartile_50_urls,a.RS=b.quartile_75_urls,a.lR=b.quartile_100_urls}; RSa=function(a){var b={};a=g.u(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}; OSa=function(a){if(a){if(eBa(a))return a;a=fBa(a);if(eBa(a,!0))return a}return""}; g.ZTa=function(a){return a.captionsLanguagePreference||a.Ha.captionsLanguagePreference||g.qT(a,"yt:cc_default_lang")||a.Ha.wj}; LT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; g.eT=function(a){var b;return a.Ix||(null==(b=a.suggestions)?void 0:b[0])||null}; $Ta=function(a){var b={isSabr:bT(a)},c;if(a=null==(c=a.getHeartbeatResponse())?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b}; g.MT=function(a){return a.L("embeds_web_disable_pfp_unbranded_livestream")&&a.isLivePlayback?!1:a.L("embeds_web_enable_pfp_unbranded_flag")?a.Ha.Kl&&a.allowPfpUnbranded:a.Of&&a.Ha.Kl}; g.NT=function(a){var b=a.U(),c=g.aUa(b),d=a.va;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=BT(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.tb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Xm)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:bUa[e]}});a.Fy&&(d.unpluggedAppInfo={enableFilterMode:!0}); if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.wj&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=cUa[b];c.request=d;d=c.user||{};if(b=a.Ca)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.ub)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c}; g.aUa=function(a){var b=g.bH(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo, {deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.rd)b.thirdParty={embedUrl:a};return b}; hUa=function(a,b,c){var d=a.videoId,e=g.NT(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(EE()),referer:document.location.toString(),signatureTimestamp:19795};g.IC();a.isAutonav&&(h.autonav=!0);g.JC(0,141)&&(h.autonavState=g.JC(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.JC(0,66);TTa(a)&&(h.autoplay=!0);f.K&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l= l.split(",");l=g.u(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId= String(v));else if("video_ad"===p.adtype){var x={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=dUa[p.breaktype])x.breakType=p;q&&(x.url=q);r&&(x.presetAd=r);t&&(x.viralAdResponseUrl=t);v&&(x.viralCampaignId=String(v));n.push(x)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.vM;if(null!=m){m={startWalltime:String(m)};if(n=a.Il)m.manifestDuration=String(n||14400); h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.ag?0:a.Yg)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.hv)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.rl){n=a.SS;l=[];p=g.u(p.split(","));for(q=p.next();!q.done;q=p.next())if(r=q.value)if((q=r.startsWith("!"))&&(r=r.substr(1)),r=r.split("-"),!(3>r.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:eUa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:fUa[r[0]]||"UNKNOWN_INTERFACE", clientVersion:r[2]||"",platform:gUa[r[1]]||"UNKNOWN_PLATFORM"};r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.pF(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,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));Qf(a,b,d);b.setAttribute("data-layer",String(c))}; g.lU=function(a){var b=a.U();if(!b.Qe)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!LT(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Uk();var f=c.Ra&&c.Ra.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Of&&f;return!c.ypcPreview&&(!d||e)&&!g.Fb(c.Ia,"ypc")&& !a&&(!g.QR(b)||f)}; GUa=function(a){a=g.XT(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.jZ)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.qa("iqss",{trigger:d},!0),!0):!1}; HUa=function(){HC.apply(this,arguments);this.hB={}}; mU=function(){IUa||(IUa=new HUa);return IUa}; nU=function(a,b){b?a.hB.Authorization="Bearer "+b:delete a.hB.Authorization}; oU=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.kD)()-f).toFixed(),shost:g.Wm(a),trigger:b};JUa(h,a);c&&c(h);d&&!l&&d(new wK("pathprobe.net",h))} var f=(0,g.kD)();g.MB(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})}; JUa=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed(),KUa&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; MUa=function(a,b){xO(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(wO(a,112),wO(a,c<<1^c>>31));xO(a,16,b.N8);xO(a,17,b.detailedNetworkType);xO(a,18,b.mN);xO(a,19,b.lN);xO(a,21,b.Tca);xO(a,23,b.P5);xO(a,28,b.eR);xO(a,29,b.kda);xO(a,34,b.visibility);c=b.playbackRate;if(void 0!==c){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(void 0!==c)for(wO(a,285),vO(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}xO(a,36,b.C6); BO(a,38,b.mediaCapabilities,LUa,3);xO(a,39,b.jda);xO(a,40,b.yv);xO(a,44,b.playerState);yO(a,46,b.vW);xO(a,48,b.wca);xO(a,50,b.Zu);xO(a,51,b.Ax);xO(a,54,b.Vp);yO(a,56,b.p9);xO(a,57,b.d6);yO(a,58,b.po);xO(a,59,b.tj);xO(a,60,b.Dw);yO(a,61,b.isPrefetch);xO(a,62,b.Zy)}; NUa=function(a){return{O5:sO(a,2),videoId:qO(a,3),MS:nO(a,4)}}; PUa=function(a){return{bob:tO(a,1,OUa)}}; OUa=function(a){return{conditions:sO(a,1),eob:nO(a,2)}}; QUa=function(a){return{WI:sO(a,1)}}; LUa=function(a,b){var c;if(b.oL)for(c=0;ca.policy.tj,l=e<=a.policy.tj?MK(d):LK(d);if(!f||h||l)c[e]=d}return c}; zU=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.kD)();c=g.pt(c,function(r){if(r.Ob>this.policy.Ob)return!1;var t=this.manifest.j[r.id];return uU(this.G).get(r.id)>d?!1:4=r.video.width&&480>=r.video.height}))}!a.policy.Om&&0b.j)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)})); if(0c.QM.video.width?(g.Gb(e,b),b--):DU(a,c.xM)*a.policy.K>DU(a,c.QM)&&(g.Gb(e,b-1),b--);var q=e[e.length-1];a.eb=!!a.C&&!!a.C.info&&a.C.info.sb!==q.sb;a.logger.debug(function(){return"Constraint: "+uP(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+UK(q)}); a.D=e;a.Wa.clear();c=!1;for(b=0;bd}; yU=function(a){if(!a.B||!a.policy.D&&!a.B.info.uc){var b=a.K.j;a.B&&(a.policy.tb||FU)&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j)); a.B=a.manifest.j[b[0].id];if(1a.j.j:XVa(a,a.B))a.B=a.manifest.j[g.Bb(b).id]}}}; AU=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.Bb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+UK(a.nextVideo.info)}); else{for(var b=Math.min(a.Z,a.D.length-1),c=GU(a.Ia),d=DU(a,a.B.info),e=c/a.policy.Z-d;0=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+UK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+uP(a.j)}); a.Z=b}}; KVa=function(a){var b=a.policy.Z,c=GU(a.Ia),d=c/b-DU(a,a.B.info);b=g.Eb(a.D,function(e){return DU(this,e)b&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+UK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})}; LVa=function(a){if(a.ib.length){var b=a.ib,c=function(d,e){if("f"===d.info.sb||b.includes(RK(d.info,a.manifest.zc)))return d;for(var f={},h=0;h=b&&a.j?GWa(a):a.j&&a.j.start()}; GWa=function(a){a.j&&(a.j.dispose(),a.j=null)}; HWa=function(a){PU.call(this,a);var b=this;this.events=new g.DK(a);g.N(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new cV(a);g.N(b,b.j);g.kU(a,b.j.element,4);b.j.hide()})}; dV=function(a){g.V.call(this,{I:"button",La:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",La:["ytp-fullerscreen-edu-text"],ya:"Scroll for details"},{I:"div",La:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Va=a;this.j=new g.xG(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.N(this, this.j);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Ta("click",this.onClick);this.Sa()}; eV=function(a){PU.call(this,a);var b=this;this.events=new g.DK(a);g.N(this,this.events);PT(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)}); PT(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)}); var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&eS(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){b.j=new dV(a);g.N(b,b.j);a.My(b.j)})}; IWa=function(a){g.V.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",La:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},V:[g.XF()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle", ya:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ga("ytp-gated-actions-overlay-background");this.B=this.Ga("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ga("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.ob("onCloseMiniplayer")}); this.hide()}; KWa=function(a,b){var c=0;c=0;for(var d={};c e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;KWa(c,d.actionButtons||[]);c.show()}else c.hide()}); g.kU(this.api,this.j.element,4)}; MWa=function(a){PU.call(this,a);a=a.U();a.Za=!1;a.Rm=!1}; NWa=function(a){PU.call(this,a);a=a.U();a.wh.push("flix");a.Za=!1;a.Jl=!1}; fV=function(a){PU.call(this,a);var b=this;RT(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()}); RT(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.pa(g.Ia.apply(0,arguments)))}); QT(this.api,"getSphericalProperties",function(){return 2===b.api.getPresentingPlayerType()?{}:b.getSphericalProperties()}); QT(this.api,"setSphericalProperties",function(){var c=g.Ia.apply(0,arguments);2!==b.api.getPresentingPlayerType()&&b.setSphericalProperties.apply(b,g.pa(c))})}; OWa=function(a){PU.call(this,a);PT(a,"createClientVe",this.createClientVe.bind(this));PT(a,"createServerVe",this.createServerVe.bind(this));PT(a,"destroyVe",this.destroyVe.bind(this));PT(a,"hasVe",this.hasVe.bind(this));PT(a,"logClick",this.logClick.bind(this));PT(a,"logVisibility",this.logVisibility.bind(this));PT(a,"setTrackingParams",this.setTrackingParams.bind(this))}; gV=function(a){PU.call(this,a);var b=this;this.events=new g.DK(a);g.N(this,this.events);PT(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}); PT(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}); PT(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})}; PWa=function(a,b,c){var d=1E3*a.api.getCurrentTime()=c.width||!c.height||0>=c.height||g.MJ(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; RWa=function(a){a=a.api.Xb();a=a.isCued()||a.isError()?"none":g.xL(a)?"playing":"paused";navigator.mediaSession.playbackState=a}; iV=function(a){PU.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.DK(a);g.N(this,this.events);this.events.T(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.U(l.compositeVideoOverlay,WWa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.u(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e= e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.jL({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})}); this.events.T(a,"videodatachange",function(c){var d=b.api.getVideoData();b.j=void 0;b.B.clear();b.api.Ef("compositeembargo",1);var e=null==d?void 0:d.wL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?XWa(b,e.filter(function(f){return YWa(b,f)})):(null==d?0:d.cueRanges)&&XWa(b,d.cueRanges.filter(function(f){return YWa(b,f)})); "dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.Io())}); this.events.T(a,g.QJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.xo(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.Yq!==f&&(d.Yq=f,b.api.Io());ZWa(b,c)}}}); this.events.T(a,g.RJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.xo(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.Yq=void 0;b.api.Io();ZWa(b)}}); this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)}); this.events.T(a,"onPlaybackAudioChange",function(){b.api.Io()}); PT(a,"setCompositeParam",function(c){b.compositeVideoState=c})}; ZWa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.Ao([a.j],1)),a.j=b)}; XWa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}}; YWa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)}; $Wa=function(a){PU.call(this,a);PT(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));PT(this.api,"updateDownloadState",this.updateDownloadState.bind(this));PT(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));PT(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));PT(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));PT(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this))}; jV=function(a){PU.call(this,a);var b=this;PT(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()}); PT(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})}; aXa=function(a,b,c){var d=[],e=b?156595:151874;a=g.u(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d}; bXa=function(a){for(var b=0,c=0;ct.start&&daa;aa++)R="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(G&31)+R,G>>=5;L+=R}A=L.substr(0,4)+" "+L.substr(4,4)+" "+L.substr(8,4);f&&(A+=" "+L.substr(12,4)+" "+L.substr(16,4));f=A}else f="";m={video_id_and_cpn:E+f,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:x,network_activity_style:x,network_activity_bytes:n.toFixed(0)+" KB", shader_info:v,shader_info_style:v?"":"display:none",playback_categories:""};n=e.clientWidth+"x"+e.clientHeight+(1na)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;(na=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+na.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=wV(l,"bandwidth");m.network_activity_samples=wV(l,"networkactivity");m.live_latency_samples=wV(l,"livelatency");m.buffer_health_samples= wV(l,"bufferhealth");b=g.KT(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;m.cotn_and_local_media_style=m.cotn_and_local_media?"":"display:none";ZS(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240312_01_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&0=m.debug_info.length+q.length?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&0=a.length?0:b}; PXa=function(a){var b=a.index-1;return 0>b?a.length-1:b}; g.KV=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.TS(a.Ha,b),g.N(a,e),e.Pm=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; QXa=function(a,b){a.index=g.He(b,0,a.length-1);a.startSeconds=0}; RXa=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.KV(a);a.items=[];for(var d=g.u(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()}}; UXa=function(a,b){var c,d,e,f,h,l,m;return g.H(function(n){if(1==n.j){c=g.$H();var p=a.U(),q={context:g.NT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(null==r?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(null==r?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r= b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,x,A,E,F,G;r=(null==(G=g.U(null==(v=r)?void 0:null==(x=v.embedPreview)?void 0:null==(A=x.thumbnailPreviewRenderer)?void 0:null==(E=A.playButton)?void 0:null==(F=E.buttonRenderer)?void 0:F.navigationEndpoint,g.dT))?void 0:G.videoId)||null}else r=null}v=(v=r)?v:void 0;x=a.playlistId?a.playlistId:b.list;A=b.listType;if(x){var L;"user_uploads"===A?L={username:x}:L={playlistId:x};SXa(p,v,b,L);q.playlistRequest= L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},SXa(p,v,b,L),q.playlistRequest=L):v&&(L={videoId:v},p&&(L.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=L);d=q;e=g.dH(TXa);g.Ba(n,2);return g.z(n,g.RH(c,d,e),4)}if(2!=n.j)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ia=Qpa(b,g.QR(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Ia,f&&(l=f,l.trackingParams&&hP(l.trackingParams)),n.return(new g.TS(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.oF(m);return n.return(a)})}; SXa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.MV=function(a,b){LV.get(a);LV.set(a,b)}; g.NV=function(a){g.IF.call(this);this.loaded=!1;this.player=a}; VXa=function(){this.B=[];this.j=[]}; g.OV=function(a,b){return b?a.j.concat(a.B):a.j}; g.PV=function(a,b){switch(b.kind){case "asr":WXa(b,a.B);break;default:WXa(b,a.j)}}; WXa=function(a,b){g.Db(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)}; g.QV=function(a){g.I.call(this);this.W=a;this.B=new VXa;this.D=[];this.N=[]}; g.RV=function(a,b,c){g.QV.call(this,a);this.audioTrack=c;this.j=null;this.C=!1;this.D=b.Eu;this.N=b.YB;this.C=g.CT(b)}; XXa=function(){this.j=10;this.nj=!1}; YXa=function(a,b){b=void 0===b?{}:b;var c=void 0===b.aE?!1:b.aE,d=new XXa;d.nj=(void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4)||c;d.j=g.gJ(a.experiments,"html5_streaming_xhr_time_based_consolidation_ms")||d.j;return d}; g.ZXa=function(a){this.Ha=a;this.N=new XXa;this.Uo=this.To=!1;this.Vm=2;this.ma=20971520;this.Wa=8388608;this.Y=120;this.Lc=62914560;this.Ym=g.gJ(this.Ha.experiments,"html5_min_readbehind_secs");this.vF=g.gJ(this.Ha.experiments,"html5_min_readbehind_cap_secs");this.Vi=this.Ha.L("html5_offline_reset_media_stream_on_unresumable_slices");this.Ob=NaN;this.Ip=this.xk=this.Fu=2;this.jn=1024*SV(this,"html5_request_size_min_kb",64);this.Ea=2097152;this.Ox=SV(this,"html5_bypass_contention_secs");this.Dp=1048576; this.Hl=!1;this.Wi=SV(this,"html5_repredict_interval_ms",1800);this.tA=SV(this,"html5_head_miss_secs",5);this.CG=SV(this,"html5_min_upgrade_health_secs",10);this.eb=15;this.wh=1;this.K=1.15;this.Z=1.05;this.jl=1;this.sG=SV(this,"html5_min_seconds_between_format_selections",8);this.eA=SV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.yu=vR;this.rg=this.Vb=!1;this.Yg=6;this.B=!1;this.Ui=g.gJ(this.Ha.experiments,"html5_min_startup_buffered_media_duration_secs");this.Vo=g.gJ(this.Ha.experiments, "html5_post_interrupt_readahead");this.py=this.Ha.L("html5_disable_classic_alr");this.Wo=g.gJ(this.Ha.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Du=100;this.Zf=10;this.EG=6;this.Gx=SV(this,"html5_ssdai_failure_retry_limit",3);this.Dl=this.Ha.experiments.jb("html5_clone_original_for_fallback_location");this.Yf=!1;this.Mb=g.gJ(this.Ha.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.zj=g.gJ(this.Ha.experiments,"html5_subsegment_readahead_timeout_secs");this.BC= g.gJ(this.Ha.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.yj=g.gJ(this.Ha.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.CC=g.gJ(this.Ha.experiments,"html5_subsegment_readahead_min_load_speed");this.Ix=g.gJ(this.Ha.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.DC=g.gJ(this.Ha.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.ag=SV(this,"html5_hopeless_secs",15);this.Rm=1;this.Jc=!1;this.wC=this.Ha.L("html5_restrict_streaming_xhr_on_sqless_requests"); this.CA=g.gJ(this.Ha.experiments,"html5_max_headm_for_streaming_xhr");this.VB=this.Ha.L("html5_pipeline_manifestless_allow_nonstreaming");this.ZB=this.Ha.L("html5_prefer_server_bwe3");this.sz=this.Ha.L("html5_last_slice_transition");this.zC=this.Ha.L("html5_store_xhr_headers_readable");this.Dx=this.bf=this.Zj=!1;this.Tm=g.gJ(this.Ha.experiments,"html5_max_drift_per_track_secs");this.Po=this.Ha.L("html5_no_placeholder_rollbacks");this.AC=this.Ha.L("html5_subsegment_readahead_enable_mffa");this.Ge= this.Ha.L("html5_allow_video_keyframe_without_audio");this.UB=this.Ha.L("html5_enable_vp9_fairplay");this.Xa=!0;this.Yd=this.Na=this.Pb=!1;this.Ll=!0;this.Yq=!1;this.D="";this.vy=1048576;this.Fe=[];this.zy=this.Ha.L("html5_woffle_resume");this.lk=this.Ha.L("html5_abs_buffer_health");this.Gy=this.Ha.L("html5_interruption_resets_seeked_time");this.RA=g.gJ(this.Ha.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ia=!1;this.Ol=this.Ha.L("html5_explicitly_dispose_xhr");this.Xo=!1; this.il=!this.Ha.L("html5_encourage_array_coalescing");this.zl=!1;this.vC=this.Ha.L("html5_restart_on_unexpected_detach");this.tj=0;this.Za="";this.Fy=this.Ha.L("html5_filter_non_efficient_formats_for_safari");this.Ha.L("html5_format_hybridization");this.Kx=this.Ha.L("html5_abort_before_separate_init");this.xC=Ipa();this.yC=this.Ha.L("html5_serialize_server_stitched_ad_request");this.Px=this.Ha.L("html5_skip_buffer_check_seek_to_head");this.rd=!1;this.Nx=this.Ha.L("html5_attach_po_token_to_bandaid"); this.Wm=g.gJ(this.Ha.experiments,"html5_max_redirect_response_length")||8192;this.wj=this.Ha.L("html5_rewrite_timestamps_for_webm");this.ib=this.Ha.L("html5_only_media_duration_for_discontinuities");this.uC=g.gJ(this.Ha.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ha.L("html5_onesie_live");this.FC=this.Ha.L("html5_onesie_premieres");this.yy=this.Ha.L("html5_drop_onesie_for_live_mode_mismatch");this.FG=g.gJ(this.Ha.experiments,"html5_onesie_live_ttl_secs")||8;this.Ro=g.gJ(this.Ha.experiments, "html5_attach_num_random_bytes_to_bandaid");this.TB=g.gJ(this.Ha.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.Dy=this.Ha.L("html5_reinit_source_buffer_on_sabr_format");this.Kl=this.Ha.L("html5_init_source_buffer_after_metadata");this.Eu=!1;this.Ca=this.Ha.L("html5_ssdai_use_post_for_media")&&this.Ha.L("gab_return_sabr_ssdai_config");this.HC=this.Ha.L("html5_use_post_for_media");this.Db=this.Ha.L("html5_use_live_ump_heartbeat");this.Bd=this.Ha.L("html5_use_sps_ump_part");this.IC= this.Ha.L("html5_sabr_use_sps_ump_part");this.useUmp=this.Ha.L("html5_use_ump")||this.Db||this.Bd;this.Ra=this.va=!1;this.tb=this.Ha.L("html5_enable_drc_toggle_api")?this.Ha.Pm:this.Ha.L("html5_enable_drc");this.tC=this.Ha.L("html5_reset_primary_stats_on_redirector_failure");this.bC=this.Ha.L("html5_remap_to_original_host_when_redirected");this.Il=this.Xf=this.C=!1;this.Wf=this.Ha.L("html5_enable_sabr_format_selection");this.Ml=this.Ha.L("html5_sabr_support_quality_constraints");this.cC=this.Ha.L("html5_sabr_remove_all_quality_constraints"); this.jy=this.Ha.L("html5_iterative_seeking_buffered_time");this.jk=this.Ha.L("html5_use_network_error_code_enums");this.qy=this.Ha.L("html5_disable_overlapping_requests");this.G=!1;this.enableServerDrivenRequestCancellation=this.Ha.L("html5_enable_server_driven_request_cancellation");this.Ey=this.Ha.L("html5_enable_sabr_request_timing");this.Nl=this.Ha.L("html5_enable_server_format_filter");this.wy=this.Ha.L("html5_drc_edit_sync_workaround");this.Ay=this.Ha.L("html5_enable_lawnmower");this.By=this.Ha.L("html5_enable_lawnmower_messaging"); this.oy=this.Ha.Dc()?g.gJ(this.Ha.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.Oy=g.gJ(this.Ha.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Qo=g.gJ(this.Ha.experiments,"html5_normal_latency_mffa_ms")||NaN;this.DG=g.gJ(this.Ha.experiments,"html5_mffa_ms_proxima_override")||this.Qo;this.dA=this.Ha.L("html5_live_defrag_only_h264_playbacks");this.Kz=this.Ha.L("html5_live_defrag_only_h264_formats");this.GC=this.Ha.L("html5_use_managed_media_source_buffering");this.aC= this.Ha.L("html5_record_now");this.Qe=!1;this.Nm=g.gJ(this.Ha.experiments,"html5_drm_byterate_soft_cap");this.Jl=g.gJ(this.Ha.experiments,"html5_drm_live_byterate_soft_cap");this.Pm=this.pp=!1;this.ub=this.Ha.L("html5_sabr_report_request_cancellation_info");this.cf=this.So=this.Hx=!1;this.Fx=this.Ha.L("html5_spoof_4k");this.Xm=SV(this,"html5_min_media_duration_for_cabr_slice");this.rF=this.il?0:SV(this,"html5_min_media_duration_for_append_prop");this.sC=this.Ha.L("html5_remove_defrag_without_frame_level_streaming"); this.jc=!0;this.ly=this.Ha.L("html5_consume_all_buffered_bytes_one_poll");this.uy=this.Ha.L("html5_disable_urgent_adaptation");this.Mx=this.Ha.L("html5_apply_constraints_in_client_for_sabr");this.Rr=this.Ha.L("html5_send_video_playback_ustreamer_config");this.Cy=this.Ha.L("html5_enable_path_probe_for_sabr_polling");this.Sm=SV(this,"html5_max_discontinuity_rewrite_count");this.Um=SV(this,"html5_max_drift_seconds");this.Pl=SV(this,"html5_fixed_media_duration_for_request");this.Ar=this.Ha.L("html5_sabr_use_init_selected_audio"); this.vl=this.Ha.L("html5_use_init_selected_audio");this.Ma=!1;this.Ld=SV(this,"html5_sabr_request_limit_per_period");this.xr=this.Bj=!1;this.gr=this.Ha.L("html5_sabr_live_partial_segment");this.Yc=this.Ha.L("html5_sabr_dispose_media_objects");this.Om=this.Ha.L("html5_ignore_lawnmower_denylist_for_locked_constraint");this.Qm=this.Ha.L("html5_log_lawnmower_itag_filtering");this.Mm=!1;this.Lx=this.Ha.L("html5_account_for_underrun_advance_in_sabr")}; VVa=function(a,b,c){c=void 0===c?!1:c;1080Math.random()){var A=new g.LC("Unable to load player module",b,document.location&&document.location.origin);g.oF(A)}cg(e);r&&r(x)}; var t=m,v=t.onreadystatechange;t.onreadystatechange=function(x){switch(t.readyState){case "loaded":case "complete":cg(f)}v&&v(x)}; l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.We(m,g.Fw(b)),h=g.xf("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))}; FYa=function(a,b,c,d,e){g.IF.call(this);var f=this;this.target=a;this.nH=b;this.B=0;this.K=!1;this.D=new g.Ke(NaN,NaN);this.j=new g.DK(this);this.Ca=this.C=this.N=null;g.N(this,this.j);b=d||e?4E3:3E3;this.Y=new g.Ru(function(){eW(f,1,!1)},b,this); g.N(this,this.Y);this.ma=new g.Ru(function(){eW(f,2,!1)},b,this); g.N(this,this.ma);this.va=new g.Ru(function(){eW(f,512,!1)},b,this); g.N(this,this.va);this.Ia=3E3;d||(this.C=this.j.T(a,"mouseover",this.Bw),this.j.T(a,"mousemove",this.a4),this.j.T(a,"mouseleave",this.t9));ms?this.j.T(a,"keypress",this.L8):this.j.T(a,"focusin",this.V6);this.G=this.j.T(a,"mousedown",this.nU);this.Z=this.j.T(a,"touchstart",this.oU,void 0,!0);eW(this,640,!0)}; GYa=function(a){eW(a,4,!1);a.N&&(a.j.Tc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.Bw));a.C&&(a.j.Tc(a.C),a.C=a.j.T(a.target,"mouseover",a.Bw))}; eW=function(a,b,c){a.isDisposed();var d=!a.B;c?(a.B|=b,b&1&&a.Y.start(),b&2&&a.ma.start()):(a.B&=~b,b&1&&a.Y.stop(),b&2&&a.ma.stop(),b&512&&a.va.stop());a.B&512&&!(a.B&128)&&g.Su(a.va,a.Ia);b=!a.B;d!==b&&a.ra("autohideupdate",b)}; g.gW=function(a){g.V.call(this,{I:"button",La:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Sa);this.T(a,"basechromeinitialized",this.Ada);a=this.api.U();a.Z&&fW&&(this.Ta("click",this.K7,this),this.Ta("touchstart",this.Kba,this));g.VR(a)&&g.Zu(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Sa()}; g.hW=function(a){var b=a.U(),c=["ytp-cued-thumbnail-overlay"];b.N&&c.push("ytp-exp-contain-thumbnail");b.L("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.V.call(this,{I:"div",La:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ga("ytp-cued-thumbnail-overlay");c=new g.gW(a);g.N(this,c);c.Ja(b);this.D=new g.DK(this);g.N(this,this.D);this.api=a;this.G=this.Ga("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.xG(this,250);g.N(this,this.B);this.j=new g.Ru(this.Sa, 0,this);g.N(this,this.j);this.Sa();this.T(a,"appresize",this.Yb);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.qba);SR(a.U())&&this.T(a,"videoplayerreset",this.Pw)}; HYa=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Xb();a=g.EG(a,64)&&g.EG(a,1);return 0===b&&a}; g.iW=function(a){g.V.call(this,{I:"div",La:["ytp-error"],X:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap", V:[{I:"div",S:"ytp-error-content-wrap-reason",ya:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",ya:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]}; g.jW=function(a){a=a.split(IYa);for(var b=[],c=0;c1+b&&a.api.toggleFullscreen()}; QYa=function(a){a=YB()&&67<=Cpa()&&!a.api.U().Z;return!g.XB("tizen")&&!OR&&!a&&!0}; qW=function(a,b){b=void 0===b?2:b;g.IF.call(this);this.api=a;this.j=null;this.Id=new yC(this);g.N(this,this.Id);this.B=Hxa;this.Id.T(this.api,"presentingplayerstatechange",this.f4);this.j=this.Id.T(this.api,"progresssync",this.Rc);this.Ho=b;1===this.Ho&&this.Rc()}; g.rW=function(a){g.V.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",ya:"{{title}}"}]},{I:"div",S:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",ya:"{{icon}}"}]}]});this.J=a;this.B=new g.Ru(this.show,10,this);this.j=new g.Ru(this.hide,500,this);g.N(this,this.B);g.N(this,this.j);this.hide()}; tW=function(a,b,c){if(0>=b){c=Xwa();b="muted";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";sW(a,c,b,d+"%")}; WYa=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Gwa();var c=a.J.getPlaybackRate(),d=g.WJ("Speed is $RATE",{RATE:String(c)});sW(a,b,d,c+"x")}; XYa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";sW(a,qWa(),b)}; sW=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Uu(a.j);a.B.start();a.updateValue("title",d);g.cv(a.element,"ytp-bezel-text-hide",!d)}; YYa=function(a,b){g.V.call(this,{I:"button",La:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.QR(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?Jwa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {I:"div",S:"ytp-cards-button-title",ya:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div", S:"ytp-cards-button-title",ya:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.xG(this,250,!0,100);g.N(this,this.B);g.cv(this.C,"ytp-show-cards-title",g.QR(a.U()));this.hide();this.Ta("click",this.Y9);this.Ta("mouseover",this.r$);this.VF(!0)}; ZYa=function(a,b){g.V.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},V:[Jwa()]},{I:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},V:[g.XF()]}]:[{I:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"}]}]});var c=this;this.J=a;this.Zg= b;this.D=new g.xG(this,250,!1,250);this.j=null;this.N=new g.Ru(this.F$,300,this);this.K=new g.Ru(this.E$,2E3,this);this.G=[];this.B=null;this.Y=new g.Ru(function(){c.element.style.margin="0"},250); this.onClickCommand=this.C=null;g.N(this,this.D);g.N(this,this.N);g.N(this,this.K);g.N(this,this.Y);a.U().L("player_new_info_card_format")?(g.Zu(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ga("ytp-cards-teaser-close-button"),"click",this.g4),this.T(this.Ga("ytp-cards-teaser-info-icon"),"click",this.oS),this.T(this.Ga("ytp-cards-teaser-label"),"click",this.oS)):this.Ta("click",this.oS);this.T(b.element,"mouseover",this.qU);this.T(b.element,"mouseout",this.pU);this.T(a,"cardsteasershow", this.Vaa);this.T(a,"cardsteaserhide",this.Qb);this.T(a,"cardstatechange",this.Z0);this.T(a,"presentingplayerstatechange",this.Z0);this.T(a,"appresize",this.fM);this.T(a,"onShowControls",this.fM);this.T(a,"onHideControls",this.Y5);this.Ta("mouseenter",this.i4)}; $Ya=function(a){g.V.call(this,{I:"button",La:[uW.BUTTON,uW.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:uW.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.Nwa()]},{I:"div",S:uW.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{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.createClientVe(this.element,this,36927);this.Ta("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; aZa=function(a,b){a.j=b;a.element.classList.toggle(uW.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.DL:c.CL)?(a=a.api.hm())?QH(a,b):g.oF(Error("No innertube service available when updating notification preferences.")):g.oF(Error("No update preferences command available.")):g.oF(Error("No video data when updating notification preferences."))}; cZa=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=bZa(a,b);if(a=g.Ue(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))vta(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)}; bZa=function(a,b){var c=document.location.protocol;return Hfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")}; g.vW=function(a,b,c,d,e,f,h,l,m,n,p,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 r=p.U(),t=r.userDisplayName&&g.VR(r);g.V.call(this,{I:"div",La:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.WJ("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":ARa(r),"data-tooltip-opaque":String(g.QR(r)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",ya:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",X:t?{title:g.WJ("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":ARa(r),"data-tooltip-opaque":String(g.QR(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div",S:"ytp-sb-count", ya:d}:""]}],X:{"aria-live":"polite"}});var v=this;this.channelId=h;this.J=p;this.C=q;var x=this.Ga("ytp-sb-subscribe"),A=this.Ga("ytp-sb-unsubscribe");f&&g.Zu(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var E=function(){if(r.Ca){var G=v.channelId;if(m||n){var L={c:G};var Q;g.jP.isInitialized()&&(Q=bNa(L));L=Q||"";if(Q=p.getVideoData())if(Q=Q.subscribeCommand){var R=p.hm();R?(QH(R,Q,{botguardResponse:L,feature:m}),p.ob("SUBSCRIBE",G)):g.oF(Error("No innertube service available when updating subscriptions."))}else g.oF(Error("No subscribe command in videoData.")); else g.oF(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}else cZa(g.cS(v.J.U()),"sb_button",v.D)},F=function(){var G=v.channelId; if(m||n){var L=p.getVideoData();QH(p.hm(),L.unsubscribeCommand,{feature:m});p.ob("UNSUBSCRIBE",G)}x.focus();x.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}; this.T(x,"click",E);this.T(A,"click",F);this.T(x,"keypress",function(G){13===G.keyCode&&E(G)}); this.T(A,"keypress",function(G){13===G.keyCode&&F(G)}); this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(DUa(p),bU(p,x,this),bU(p,A,this))}else g.Zu(x,"ytp-sb-disabled"),g.Zu(A,"ytp-sb-disabled")}; eZa=function(a){g.V.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",ya:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",ya:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ga("ytp-title-channel");this.j=this.Ga("ytp-title-channel-logo");this.channelName=this.Ga("ytp-title-expanded-title");this.G=this.Ga("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.D=!1;a.createClientVe(this.j,this,36925);a.createClientVe(this.channelName,this, 37220);g.QR(this.api.U())&&dZa(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Ue(wW(b));c.preventDefault()}),this.T(this.j,"click",this.X9)); this.Sa()}; fZa=function(a){if(!a.api.U().Lc){var b=a.api.getVideoData(),c=new g.vW("Subscribe",null,"Subscribed",null,!0,!1,b.Gl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new $Ya(a.api);a.B=e;g.N(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Ll&&(e.show(),a.api.logVisibility(e.element,!0))}); a.T(a.api,"UNSUBSCRIBE",function(){b.Ll&&(e.hide(),a.api.logVisibility(e.element,!1),aZa(e,!1))})}}; dZa=function(a){var b=a.api.U();fZa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.eb?a.T(a.j,"click",function(c){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||(gZa(a)&&(c.preventDefault(),a.isExpanded()?a.vH():a.SH()),a.api.logClick(a.j))}):(a.T(a.channel,"mouseenter",a.SH),a.T(a.channel,"mouseleave",a.vH),a.T(a.channel,"focusin", a.SH),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.vH()}),a.T(a.j,"click",function(){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||a.api.logClick(a.j)})); a.C=new g.Ru(function(){a.isExpanded()&&(a.api.L("web_player_ve_conversion_fixes_for_channel_info")&&a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.B&&(a.B.hide(),a.api.logVisibility(a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.N(a,a.C);a.T(a.channel,hZa,function(){iZa(a)}); a.T(a.api,"onHideControls",a.zR);a.T(a.api,"appresize",a.zR);a.T(a.api,"fullscreentoggled",a.zR)}; iZa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; gZa=function(a){var b=a.api.getPlayerSize();return g.QR(a.api.U())&&524<=b.width}; wW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.nS(b)+c.Jc;if(!g.QR(b))return c;b={};g.ST(a.api,"addEmbedsConversionTrackingParams",[b]);g.lP(b,"emb_ch_name_ex");return g.bn(c,b)}; xW=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",V:[{I:"div",La:["ytp-panel-back-button-container"],V:[{X:{"aria-label":"Back to previous menu"},I:"button",La:["ytp-button",l]}]},{I:"span",La:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",La:["ytp-button",p],V:[d]})}h.V=[n]}d=!1;f&&(f={I:"div",S:"ytp-panel-footer",V:[f]},d=!0,h.V?h.V.push(f):h.V=[f]);g.QF.call(this,h);this.content= b;d&&h.V?b.Ja(this.element,h.V.length-1):b.Ja(this.element);this.OX=!1;this.MX=d;c&&(c=this.Ga(l),m=this.Ga(m),this.T(c,"click",this.pZ),this.T(m,"click",this.pZ),this.OX=!0,e&&(p=this.Ga(p),this.T(p,"click",e)));b.subscribe("size-change",this.tZ,this);this.T(a,"fullscreentoggled",this.tZ);this.J=a}; g.yW=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.QF({I:"div",S:"ytp-panel-menu",X:h});xW.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.N(this,this.menuItems)}; g.zW=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.EQ,a);a.items=[];g.Pf(a.menuItems.element);a.menuItems.ra("size-change")}; jZa=function(a,b){return b.priority-a.priority}; AW=function(a){var b=g.LU({"aria-haspopup":"true"});g.KU.call(this,b,a);this.Ta("keydown",this.j)}; BW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; kZa=function(a,b){g.V.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"User info"},V:a.U().Ca&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",ya:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},ya:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},ya:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon", ya:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",X:{tabIndex:"{{userInfoFocusable}}"},ya:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},ya:a.U().Lc?"":"Sign in on YouTube"}]}]}]});this.Va=a;this.j=b;a.U().Ca||a.U().Lc||(a=this.Ga("ytp-user-info-panel-login"),this.T(a,"click",this.l4));this.closeButton=new g.V({I:"button",La:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.ZF()]});this.closeButton.Ja(this.element); g.N(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.j4);this.Sa()}; mZa=function(a,b,c){g.yW.call(this,a);this.Hb=b;this.ge=c;this.getVideoUrl=new AW(6);this.Dn=new AW(5);this.yn=new AW(4);this.qc=new AW(3);this.DF=new g.KU(g.LU({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.KU(g.LU(),1,"Stats for nerds");this.jz=new g.QF({I:"div",La:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},ya:"{{text}}"});this.gW=new xW(this.J,this.jz);this.xG=this.ot=null;g.QR(this.J.U())&&(this.closeButton= new g.V({I:"button",La:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.ZF()]}),g.N(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.Ta("click",this.Z5,this));g.QR(this.J.U())&&(this.yl=new g.KU(g.LU(),8,"Account"),g.N(this,this.yl),this.Xc(this.yl,!0),this.yl.Ta("click",this.Iaa,this),a.createClientVe(this.yl.element,this.yl,137682));this.J.U().Vm&&(this.Xk=new UU("Loop",7),g.N(this,this.Xk),this.Xc(this.Xk,!0),this.Xk.Ta("click",this.y$,this),a.createClientVe(this.Xk.element, this.Xk,28661));g.N(this,this.getVideoUrl);this.Xc(this.getVideoUrl,!0);this.getVideoUrl.Ta("click",this.p$,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.N(this,this.Dn);this.Xc(this.Dn,!0);this.Dn.Ta("click",this.q$,this);a.createClientVe(this.Dn.element,this.Dn,28660);g.N(this,this.yn);this.Xc(this.yn,!0);this.yn.Ta("click",this.o$,this);a.createClientVe(this.yn.element,this.yn,28658);g.N(this,this.qc);this.Xc(this.qc,!0);this.qc.Ta("click",this.n$,this);g.N(this,this.DF); this.Xc(this.DF,!0);this.DF.Ta("click",this.qaa,this);g.N(this,this.showVideoInfo);this.Xc(this.showVideoInfo,!0);this.showVideoInfo.Ta("click",this.Jaa,this);g.N(this,this.jz);this.jz.Ta("click",this.d$,this);g.N(this,this.gW);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Qaa("Chromium")&&(b=!0);40>=Qaa("Firefox")&&(b=!1);b&&(this.ot=new g.V({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.N(this,this.ot),this.ot.Ja(this.element));var d;null== (d=this.yl)||MU(d,Qwa());var e;null==(e=this.Xk)||MU(e,{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});MU(this.qc,{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"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"}}]});MU(this.DF,Hwa());MU(this.showVideoInfo,Iwa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);lZa(this);this.WF(this.J.getVideoData())}; DW=function(a,b){var c=!1;if(a.ot){var d=a.ot.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Hb.Qb():(a.jz.Vd(b,"text"),g.CW(a.Hb,a.gW),sWa(a.jz.element),a.ot&&(a.ot=null,lZa(a)));return c}; lZa=function(a){var b=!!a.ot;g.JU(a.qc,b?"Copy debug info":"Get debug info");BW(a.qc,!b);g.JU(a.yn,b?"Copy embed code":"Get embed code");BW(a.yn,!b);g.JU(a.getVideoUrl,b?"Copy video URL":"Get video URL");BW(a.getVideoUrl,!b);g.JU(a.Dn,b?"Copy video URL at current time":"Get video URL at current time");BW(a.Dn,!b);MU(a.yn,b?Ewa():null);MU(a.getVideoUrl,b?YF():null);MU(a.Dn,b?YF():null)}; nZa=function(a){return g.QR(a.J.U())?a.yl:a.Xk}; g.EW=function(a,b){g.HU.call(this,a,{I:"div",La:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Oe(0,0);this.Ta("keydown",this.m4)}; oZa=function(a){var b=a.j[a.j.length-1];if(b){g.ws(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.ls(b.element,"width","");g.ls(b.element,"height","");g.ls(b.element,"maxWidth","100%");g.ls(b.element,"maxHeight","100%");g.ls(b.content.element,"height","");var c=g.xs(b.element);c.width+=1;c.height+=1;g.ls(b.element,"width",c.width+"px");g.ls(b.element,"height",c.height+"px");g.ls(b.element,"maxWidth","");g.ls(b.element,"maxHeight","");var d=0;b.OX&&(d=b.Ga("ytp-panel-header"),d=g.xs(d).height); var e=0;b.MX&&(e=b.Ga("ytp-panel-footer"),g.ls(e,"width",c.width+"px"),e=g.xs(e).height);g.ls(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];pZa(a,b,c,!0)}}; pZa=function(a,b,c,d){qZa(a);b&&(b.unsubscribe("size-change",a.LB,a),b.unsubscribe("back",a.Ij,a));c.subscribe("size-change",a.LB,a);c.subscribe("back",a.Ij,a);if(a.Jb){g.Zu(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;oZa(a);g.ws(a.element,e);a.G=new g.Ru(function(){rZa(a,b,c,d)},20,a); a.G.start()}else c.Ja(a.element),b&&b.detach()}; rZa=function(a,b,c,d){a.G.dispose();a.G=null;g.Zu(a.element,"ytp-popup-animating");d?(g.Zu(b.element,"ytp-panel-animate-forward"),g.av(c.element,"ytp-panel-animate-back")):(g.Zu(b.element,"ytp-panel-animate-back"),g.av(c.element,"ytp-panel-animate-forward"));g.ws(a.element,a.size);a.K=new g.Ru(function(){g.av(a.element,"ytp-popup-animating");b.detach();g.bv(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a); a.K.start()}; qZa=function(a){a.G&&g.Tu(a.G);a.K&&g.Tu(a.K)}; tZa=function(a,b){g.EW.call(this,a);this.ge=b;this.D=new g.DK(this);this.va=new g.Ru(this.aba,1E3,this);this.Ca=this.C=null;g.N(this,this.D);g.N(this,this.va);a.createClientVe(this.element,this,28656);g.Zu(this.element,"ytp-contextmenu");sZa(this);this.hide()}; sZa=function(a){g.AC(a.D);var b=a.J.U();"gvn"===b.playerStyle||b.B||b.eb||(b=a.J.qb(),a.D.T(b,"contextmenu",a.b$),a.D.T(b,"touchstart",a.o4,null,!0),a.D.T(b,"touchmove",a.QZ,null,!0),a.D.T(b,"touchend",a.QZ,null,!0))}; uZa=function(a){a.J.isFullscreen()?g.kU(a.J,a.element,10):a.Ja(document.body)}; GW=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{I:"button",La:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.QR(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",ya:"{{icon}}"},{I:"div",S:"ytp-copylink-title",ya:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.df=b;this.j=c;this.visible=!1;this.tooltip=this.df.Ue();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.cv(this.element,"ytp-show-copylink-title",g.QR(b));a.createClientVe(this.element, this,86570);this.Ta("click",this.onClick);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.Sa();this.addOnDisposeCallback(g.aU(this.tooltip,this.element))}; vZa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.qb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.So&&!g.MT(c)&&!a.api.md()&&!b}; wZa=function(a){a.updateValue("icon",Awa());if(a.api.U().B)a.tooltip.aG(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Nh();a.tooltip.aG(a.element);var b=a.Ta("mouseleave",function(){a.Tc(b);a.Sa();a.tooltip.Vl()})}}; xZa=function(a,b){return g.H(function(c){if(1==c.j)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.If("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(AD){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)})}; HW=function(a){g.V.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{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",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",ya:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",ya:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.Ru(this.show,10,this);this.B=new g.Ru(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ga("ytp-doubletap-static-circle");g.N(this,this.D);g.N(this,this.B);this.hide();this.N=this.Ga("ytp-doubletap-fast-forward-ve");this.Y=this.Ga("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.Y, this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.Y,!0);this.G=a.L("web_show_cumulative_seek_time")}; IW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.qb().getPlayerSize();a.G?a.B.stop():g.Uu(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Zu(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";yZa(a,a.G?a.C:c)}; zZa=function(a,b,c){g.Uu(a.B);a.D.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.Zu(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")}; yZa=function(a,b){b=g.WJ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)}; LW=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?!1:c;g.V.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.tb=this.Ca=this.va=this.C=this.B=this.Y=this.expanded=this.enabled=this.Ra=!1;this.eb=new g.Ru(function(){d.badge.element.style.width=""},200,this); this.Na=new g.Ru(function(){JW(d);KW(d)},200,this); this.dismissButton=new g.V({I:"button",La:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.N(this,this.dismissButton);this.K=new g.V({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",ya:"{{badgeLabel}}"},this.dismissButton]});g.N(this,this.K);this.Ma=new g.V({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.N(this,this.Ma);this.badge=new g.V({I:c?"div": "button",La:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.Ma,this.K]});g.N(this,this.badge);this.badge.Ja(this.element);this.ma=new g.xG(this.badge,250,!1,100);g.N(this,this.ma);this.Xa=new g.xG(this.K,250,!1,100);g.N(this,this.Xa);this.ib=new g.Pu(this.Sca,null,this);g.N(this,this.ib);this.Wa=new g.Pu(this.J6,null,this);g.N(this,this.Wa);g.N(this,this.eb);g.N(this,this.Na);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element, this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.GJ(!1)}); this.T(this.J,"onShowControls",function(){d.GJ(!0)}); this.T(this.badge.element,"click",this.DJ);this.T(this.dismissButton.element,"click",this.GA);this.T(this.J,"pageTransition",this.rU);this.T(this.J,"appresize",this.Jm);this.T(this.J,"fullscreentoggled",this.m$);this.T(this.J,"cardstatechange",this.U9);this.T(this.J,"annotationvisibility",this.Bda,this);this.T(this.J,"offlineslatestatechange",this.Cda,this)}; JW=function(a){g.cv(a.badge.element,"ytp-suggested-action-badge-with-controls",a.va||!a.Y)}; KW=function(a,b){var c=a.QK();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ib.stop(),a.Wa.stop(),a.eb.stop(),a.ib.start()):(g.PF(a.K,a.expanded),g.cv(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),AZa(a))}; AZa=function(a){a.B&&a.J.logVisibility(a.badge.element,a.zB());a.C&&a.J.logVisibility(a.dismissButton.element,a.zB()&&a.QK())}; BZa=function(a){var b=a.text||"",c=g.Af("ytp-suggested-action-badge-title",a.element);c&&g.Vf(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Db?a.Db:"")}; MW=function(a,b){b?a.C&&a.J.logClick(a.dismissButton.element):a.B&&a.J.logClick(a.badge.element)}; NW=function(a){g.EW.call(this,a,"ytp-shopping-product-menu");this.gf=new g.yW(this.J);g.N(this,this.gf);this.hide();g.CW(this,this.gf);g.kU(this.J,this.element,4)}; DZa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&(c=CZa(a,c,e,null==b?void 0:b.icon),b.navigationEndpoint&&c.Ta("click",function(){a.J.ob("innertubeCommand",b.navigationEndpoint);a.hide()},a))}; EZa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&CZa(a,c,e,null==b?void 0:b.icon).Ta("click",function(){var f;"HIDE"===(null==b?void 0:null==(f=b.icon)?void 0:f.iconType)?a.J.ra("featuredproductdismissed"):b.serviceEndpoint&&a.J.ob("innertubeCommand",b.serviceEndpoint);a.hide()},a)}; CZa=function(a,b,c,d){b=new g.KU(g.LU(),b,c);MU(b,FZa(d));g.N(a,b);a.gf.Xc(b,!0);return b}; FZa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Hwa();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}}}; GZa=function(a){LW.call(this,a,!1,!0);this.Ia=[];this.Pb=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ea=new g.V({I:"div",S:"ytp-featured-product-open-in-new"});g.N(this,this.Ea);this.countdownTimer=new g.V({I:"text",S:"ytp-featured-product-countdown",ya:"{{content}}"});this.countdownTimer.hide();g.N(this,this.countdownTimer);this.N=new g.V({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text", ya:"{{trendingOffer}}"}]});this.N.hide();g.N(this,this.N);this.overflowButton=new g.V({I:"button",La:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.infoButton=new g.V({I:"button",La:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.N(this,this.infoButton);this.G=new g.V({I:"text",S:"ytp-featured-product-exclusive-countdown",ya:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}}); this.G.hide();g.N(this,this.G);this.D=new g.V({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",ya:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.D.hide();g.N(this,this.D);this.banner=new g.V({I:"a",S:"ytp-featured-product-container", V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Ea]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",ya:"{{title}}"},{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",ya:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",ya:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",ya:"{{priceDropReferencePrice}}", X:{"aria-hidden":"true"}}]},{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",ya:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.N,{I:"text",S:"ytp-featured-product-vendor",ya:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.N(this,this.banner);this.banner.Ja(this.K.element);this.T(this.J,g.QJ("featured_product"),this.Dca);this.T(this.J,g.RJ("featured_product"), this.gB);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.s$);this.T(this.overflowButton.element,"click",this.O$);this.T(a,"featuredproductdismissed",this.GA)}; HZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e,f;return(null==a||!a.affiliateDisclaimer)&&(null==a?0:null==(d=a.exclusivesData)?0:d.exclusiveOfferLabelText)&&(null==a?0:null==(e=a.exclusivesData)?0:e.expirationTimestampMs)&&(null==a?0:null==(f=a.exclusivesData)?0:f.exclusiveOfferCountdownText)?!0:!1}; JZa=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.exclusivesData)?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(0b){var h,l,m,n;c=null==(h=a.j)?void 0:null==(l=h.bannerData)?void 0:null==(m=l.itemData)?void 0:null==(n=m.exclusivesData)?void 0:n.exclusiveOfferCountdownText;if(void 0!==c)for(h=Date.now(),l=g.u(c),m=l.next();!m.done;m=l.next())if(m=m.value,void 0!==m&&void 0!==m.text&&(n=Number(m.textDisplayStartTimestampMs), !isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(AIa({seconds:b}))),a.G.Vd(b)):a.G.Vd(m.text);a.G.show();break}}var p,q,r,t;a.D.update({exclusive:null==(p=a.j)?void 0:null==(q=p.bannerData)?void 0:null==(r=q.itemData)?void 0:null==(t=r.exclusivesData)?void 0:t.exclusiveOfferLabelText});a.D.show();OW(a);var v;null==(v=a.Vb)||v.start()}else IZa(a)}; IZa=function(a){var b;null==(b=a.Vb)||b.stop();a.G.hide();a.D.hide();PW(a)}; KZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e;if((null==a||!a.priceReplacementText)&&(null==a?0:null==(d=a.dealsData)?0:null==(e=d.sales)?0:e.originalPrice)){var f,h;return null==a?void 0:null==(f=a.dealsData)?void 0:null==(h=f.sales)?void 0:h.originalPrice}return null}; LZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e,f,h;if(!(null!=a&&a.priceReplacementText||(null==a?0:null==(d=a.dealsData)?0:null==(e=d.sales)?0:e.originalPrice))&&(null==a?0:null==(f=a.dealsData)?0:null==(h=f.priceDrop)?0:h.referencePrice)){var l,m;return null==a?void 0:null==(l=a.dealsData)?void 0:null==(m=l.priceDrop)?void 0:m.referencePrice}return null}; MZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;if(null==a?0:a.priceReplacementText)return null==a?void 0:a.priceReplacementText;var d,e;if(null==a?0:null==(d=a.dealsData)?0:null==(e=d.sales)?0:e.originalPrice){var f,h;return null==a?void 0:null==(f=a.dealsData)?void 0:null==(h=f.sales)?void 0:h.salesPriceAccessibilityLabel}var l,m;if(null==a?0:null==(l=a.dealsData)?0:null==(m=l.priceDrop)?0:m.referencePrice){var n,p;return(null==a?void 0:a.price)+" "+(null== a?void 0:null==(n=a.dealsData)?void 0:null==(p=n.priceDrop)?void 0:p.referencePrice)}return null==a?void 0:a.price}; NZa=function(a){var b,c,d,e,f,h;return a.N.Jb||a.D.Jb||(null==(b=a.j)?0:null==(c=b.bannerData)?0:null==(d=c.itemData)?0:d.affiliateDisclaimer)?null:null==(e=a.j)?void 0:null==(f=e.bannerData)?void 0:null==(h=f.itemData)?void 0:h.vendorName}; PZa=function(a,b){QW(a);if(b){var c=g.gT.getState().entities;c=GO(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.u(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.Ia.push(d);var f=void 0;e=g.u(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=OZa(h.startTimeSec);void 0!==f&&(h=OZa(h.endTimeSec),b.push(new g.PJ(1E3*f,void 0===h?0x7ffffffffffff:1E3*h,{id:d.identifier, namespace:"featured_product"})))}}}a.J.Af(b)}}}; PW=function(a){if(a.trendingOfferEntityKey){var b=g.gT.getState().entities;if(b=GO(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?OW(a):(a.N.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.N.show(),a.banner.update({vendor:NZa(a)}))}else OW(a)}else OW(a)}; OW=function(a){a.N.hide();a.banner.update({vendor:NZa(a)})}; QW=function(a){a.Ia=[];a.gB();a.J.Ef("featured_product")}; QZa=function(a){var b,c,d,e,f=null==(b=a.j)?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;a.countdownTimer.Vd(AIa({seconds:b}));if(0a)))return a}; WZa=function(a,b,c){g.V.call(this,{I:"div",La:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",ya:"{{disclaimer}}"},{I:"a",La:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",ya:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",ya:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ga("ytp-info-panel-action-item-disclaimer");this.button= this.Ga("ytp-info-panel-action-item-button");this.Le=!1;this.J.createServerVe(this.element,this,!0);this.Ta("click",this.onClick);a="";c=g.U(null==b?void 0:b.onTap,sF);var d=g.U(c,g.eG);this.Le=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.Le=!0,g.Se(this.button,g.ye(a))):(d=g.U(c,SZa))&&!this.j?((a=d.phoneNumbers)&&0b);d=a.next())c++;return 0===c?c:c-1}; d_a=function(a,b){for(var c=0,d=g.u(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&b=a.C&&!b}; v_a=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.df.Aq(),IU(a.B,a.element,!1)):g.oF(b))}; x_a=function(a,b){var c=LF(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:LF(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},ya:"Share"},{I:"a",La:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},ya:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox", checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[rWa()]},{I:"div",S:"ytp-share-panel-service-buttons",ya:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",ya:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",La:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},V:[g.XF()]}]};g.HU.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Ue();this.C=[];this.G=this.Ga("ytp-share-panel-inner-content"); this.closeButton=this.Ga("ytp-share-panel-close");this.T(this.closeButton,"click",this.Qb);this.addOnDisposeCallback(g.aU(this.tooltip,this.closeButton));this.D=this.Ga("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Sa);this.j=this.Ga("ytp-share-panel-link");this.addOnDisposeCallback(g.aU(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=w_a(e,h); g.XU(h,e.api,f)&&e.api.ob("SHARE_CLICKED")}); this.Ta("click",this.w4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.Z8);this.hide()}; z_a=function(a,b){y_a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;fd;e={pw:void 0,Em:void 0},f++){e.pw=c[f];a:switch(e.pw.img||e.pw.iconId){case "facebook":var h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.pw.sname||e.pw.serviceName;e.Em=new g.V({I:"a",La:["ytp-share-panel-service-button","ytp-button"],X:{href:e.pw.url,target:"_blank",title:l},V:[h]});e.Em.Ta("click",function(p){return function(q){var r=p.pw.url;if(g.PG(q)){var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var x=r instanceof g.ge?r:g.ye("undefined"!=typeof r.href?r.href:String(r));var A=void 0!==self.crossOriginIsolated, E="strict-origin-when-cross-origin";window.Request&&(E=(new Request("/")).referrerPolicy);var F="unsafe-url"===E;E=v.noreferrer;if(A&&E){if(F)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");E=!1}r=v.target||r.target;A=[];for(var G in v)switch(G){case "width":case "height":case "top":case "left":A.push(G+"="+v[G]);break;case "target":case "noopener":case "noreferrer":break;default:A.push(G+"="+(v[G]?1:0))}G=A.join(",");Nc()&& t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.If("A"),v.href=Rba(x),v.target=r,E&&(v.rel="noreferrer"),x=document.createEvent("MouseEvent"),x.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(x),t={}):E?(t=Sba("",t,r,G),x=g.he(x),t&&(g.jS&&g.ic(x,";")&&(x="'"+x.replace(/'/g,"%27")+"'"),t.opener=null,""===x&&(x="javascript:''"),x=g.qe(''),(v=t.document)&&v.write&&(v.write(g.pe(x)),v.close()))): ((t=Sba(x,t,r,G))&&v.noopener&&(t.opener=null),t&&v.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e)); e.Em.addOnDisposeCallback(g.aU(a.tooltip,e.Em.element));"Facebook"===l?a.api.createClientVe(e.Em.element,e.Em,164504):"Twitter"===l&&a.api.createClientVe(e.Em.element,e.Em,164505);a.T(e.Em.element,"click",function(p){return function(){a.api.logClick(p.Em.element)}}(e)); a.api.logVisibility(e.Em.element,!0);a.C.push(e.Em);d++}}var m=b.more||b.moreLink,n=new g.V({I:"a",La:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.Ta("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=w_a(a,q);g.XU(q,a.api,p)&&a.api.ob("SHARE_CLICKED")}); n.addOnDisposeCallback(g.aU(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)}); a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)}; w_a=function(a,b){var c={};g.QR(a.api.U())&&(g.ST(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.bn(b,g.lP(c,"emb_share")));return b}; y_a=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.vb(c);a.C=[]}; bX=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0}; A_a=function(a,b){a.startSec+=b;a.endSec+=b}; C_a=function(a){LW.call(this,a);this.D=this.j=this.isContentForward=this.N=!1;B_a(this);this.T(this.J,"changeProductsInVideoVisibility",this.V$);this.T(this.J,"videodatachange",this.onVideoDataChange)}; D_a=function(a){a.G&&a.Ma.element.removeChild(a.G.element);a.G=void 0}; F_a=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.U(c,E_a))?void 0:null==(e=d.thumbnail)?void 0:e.thumbnails)&&0!==c.length)return c[0].url}).filter(function(c){return void 0!==c}).map(function(c){c=new g.V({I:"img", S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.N(a,c);return c})}; G_a=function(a,b){a.isContentForward=b;g.cv(a.badge.element,"ytp-suggested-action-badge-content-forward",b)}; cX=function(a){var b=a.isContentForward&&!a.QK();g.cv(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.cv(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.D)}; dX=function(a,b,c){return new g.PJ(1E3*a,1E3*b,{priority:9,namespace:c})}; H_a=function(a){a.J.Ef("shopping_overlay_visible");a.J.Ef("shopping_overlay_preview_collapsed");a.J.Ef("shopping_overlay_preview_expanded");a.J.Ef("shopping_overlay_expanded")}; B_a=function(a){a.T(a.J,g.QJ("shopping_overlay_visible"),function(){a.jg(!0)}); a.T(a.J,g.RJ("shopping_overlay_visible"),function(){a.jg(!1)}); a.T(a.J,g.QJ("shopping_overlay_expanded"),function(){a.Ca=!0;KW(a)}); a.T(a.J,g.RJ("shopping_overlay_expanded"),function(){a.Ca=!1;KW(a)}); a.T(a.J,g.QJ("shopping_overlay_preview_collapsed"),function(){a.j=!0;cX(a)}); a.T(a.J,g.RJ("shopping_overlay_preview_collapsed"),function(){a.j=!1;cX(a)}); a.T(a.J,g.QJ("shopping_overlay_preview_expanded"),function(){a.D=!0;cX(a)}); a.T(a.J,g.RJ("shopping_overlay_preview_expanded"),function(){a.D=!1;cX(a)})}; e0a=function(a){g.V.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",ya:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ga("ytp-shorts-title-channel-logo");this.channelName=this.Ga("ytp-shorts-title-expanded-title"); this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.L("web_player_ve_conversion_fixes_for_channel_info")?(b.api.logClick(b.j),g.Ue(eX(b)),c.preventDefault()):b.api.logClick(b.j)}); a.createClientVe(this.channelName,this,37220);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Ue(eX(b));c.preventDefault()}); d0a(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()}; d0a=function(a){if(!a.api.U().Lc){var b=a.api.getVideoData(),c=new g.vW("Subscribe",null,"Subscribed",null,!0,!1,b.Gl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}}; eX=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.nS(b)+c.Jc;if(!g.QR(b))return c;b={};g.ST(a.api,"addEmbedsConversionTrackingParams",[b]);g.lP(b,"emb_ch_name_ex");return g.bn(c,b)}; fX=function(a){g.HU.call(this,a,{I:"button",La:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",ya:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.Ru(function(){b.hide()},5E3); this.cf=this.Wi=NaN;g.N(this,this.j);this.K=function(){b.show()}; this.G=function(){b.hide()}; this.D=function(){var c=b.J.getCurrentTime();c>b.Wi/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 "+r+"px/"+l+"px "+m+"px"}; i0a=function(a){return a.L("web_big_boards")?a.xg()?a.L("web_big_boards_enable_in_miniplayer"):a.isInline()?a.L("web_big_boards_enable_in_inline"):!0:!1}; jX=function(a,b){g.V.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",ya:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Ga("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.DK(this);this.j=new g.xG(this,100);g.N(this,this.events);g.N(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.Av()}); i0a(this.api)&&g.Zu(this.element,"ytp-storyboard-framepreview-big-boards")}; j0a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){j0a(a,a.api.fk())}),a.events.T(a.api,"progresssync",a.hg),a.events.T(a.api,"appresize",a.K)),a.C=NaN,k0a(a),a.j.show(200)):(c&&g.AC(a.events),a.j.hide(),a.j.stop())}; k0a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.qb().getPlayerSize(),e=MS(b,d.width);e=HSa(b,e,c);a.update({timestamp:g.OG(c)});e!==a.C&&(a.C=e,FSa(b,e,d.width),b=DSa(b,e,d.width),h0a(a.D,b,d.width,d.height))}; l0a=function(a,b){g.V.call(this,{I:"button",La:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.J=a;this.df=b;this.message=null;this.j=g.aU(this.df.Ue(),this.element);this.B=new g.Ru(this.U5,2E3,this);g.N(this,this.B);this.T(a,"fullscreentoggled",this.Fm);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"resize",this.Sa);this.Ta("click",this.onClick);g.pC()&&(b= this.J.qb(),this.T(b,kqa(),this.tQ),this.T(b,jqa(document),this.Lw));a.U().Pb||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Sa();this.Fm(a.isFullscreen())}; kX=function(a,b){g.V.call(this,{I:"button",La:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[0=h)break}a.D=d;a.frameCount=b.cI();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d= void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,null==(d=a.B.pop())||d.dispose(); for(;a.B.length-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; D0a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)}; A0a=function(){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})}; B0a=function(){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",ya:"{{chapterTitle}}"}]})}; F0a=function(a){g.V.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white", "fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ga("ytp-heat-map-svg");this.C=this.Ga("ytp-heat-map-path");this.G=this.Ga("ytp-heat-map-graph");this.D=this.Ga("ytp-heat-map-play");this.B=this.Ga("ytp-heat-map-hover");this.Le=!1;this.j=60;a=""+g.fb(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path", a);this.api.L("web_heat_map_v2")&&g.Zu(this.api.getRootNode(),"ytp-heat-map-v2")}; G0a=function(a,b){0=h&&x<=p&&f.push(r)}0l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0a.tb&&(a.tb=m/f),d=!0)}c++}}return d}; xX=function(a){if(a.N){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:LT(d))&&b.airingStart&&b.airingEnd?a1a(a,b.airingStart,b.airingEnd):a1a(a,b.seekableStart,b.seekableEnd);d=SG(c,b.loaded,0);b=SG(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;yX(a,b,d);e&&b1a(a);c1a(a)}}}; a1a=function(a,b,c){return d1a(a)?new RG(Math.max(b,a.Fb.startTimeMs/1E3),Math.min(c,a.Fb.endTimeMs/1E3)):new RG(b,c)}; e1a=function(a,b){var c;if("repeatChapter"===(null==(c=a.Fb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[SW(a.j,b.startTimeMs)],g.cv(b.j,"ytp-repeating-chapter",!1)),a.Fb&&(b=a.j[SW(a.j,a.Fb.startTimeMs)],g.cv(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.cv(d.j,"ytp-exp-chapter-hover-container",!a.Fb)})}; AX=function(a,b){var c=a.C;c=c.B+b.B*c.getLength();if(1=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ca)}; b1a=function(a){a.ag.style.removeProperty("height");for(var b=g.u(Object.keys(a.Ma)),c=b.next();!c.done;c=b.next())g1a(a,c.value);BX(a);yX(a,a.ma,a.ib)}; wX=function(a){var b=a.Za.x;b=g.He(b,0,a.N);a.wh.update(b,a.N);return a.wh}; DX=function(a){return(a.D?135:90)-CX(a)}; CX=function(a){var b=48,c=a.api.U();a.D?b=54:g.QR(c)&&!c.B&&(b=40);return b}; yX=function(a,b,c){a.ma=b;a.ib=c;var d=wX(a),e=a.C.j;var f=a.C;f=f.B+a.ma*f.getLength();var h=g.WJ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.OG(f,!0),DURATION:g.OG(e,!0)}),l=SW(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Fb&&2!==a.api.getPresentingPlayerType()&&(e=a.Fb.startTimeMs/1E3,f=a.Fb.endTimeMs/1E3);e=SG(a.C,e,0);l=SG(a.C,f,1);h=a.api.getVideoData();f=g.He(b,e,l);c=(null== h?0:g.KT(h))?1:g.He(c,e,l);b=Y0a(a,b,d);g.ls(a.Yg,"transform","translateX("+b+"px)");EX(a,d,e,f,"PLAY_PROGRESS");(null==h?0:LT(h))?(b=a.api.getProgressState().seekableEnd)&&EX(a,d,f,SG(a.C,b),"LIVE_BUFFER"):EX(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}}; EX=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=zX(a,l);var m=d*h;h=zX(a,m);"HOVER_PROGRESS"===e&&(h=zX(a,b.j*d,!0),m=b.j*d-h1a(a,b.j*d)*(a.D?3:2));b=Math.max(l-i1a(a,c),0);for(d=c;d=a.j.length)return a.N;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; Y0a=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.D}; h1a=function(a,b){for(var c=a.j.length,d=0,e=g.u(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.D?3:2,d++;else break;return d===c?c-1:d}; g.k1a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Yf=b;a.N=c;a.D=d;tX(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);b1a(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.vX(a);a.B&&f&&tX(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-CX(a),a.eb.style.height=c+"px",g.ls(a.va,"transform","translateY("+-d+"px)"),g.ls(a.progressBar,"transform","translateY("+-d+"px)")),C0a(a.B))}; BX=function(a){var b=!!a.Fb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Fb?(c=a.Fb.startTimeMs/1E3,d=a.Fb.endTimeMs/1E3):(e=c>a.C.B,f=0a.ma);g.cv(a.ag,"ytp-scrubber-button-hover",c===d&&1b||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ca*a.scale,d=DSa(a.B,a.D,b);h0a(a.bg,d,b,c,!0);a.Ea.start()}}; b2a=function(a){var b=a.j;3===a.type&&a.Ma.stop();a.api.removeEventListener("appresize",a.Ia);a.ma||b.setAttribute("title",a.C);a.C="";a.j=null}; d2a=function(a){g.V.call(this,{I:"button",La:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.QR(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",ya:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",ya:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;DUa(a);a.createClientVe(this.element,this,28665);this.Ta("click",this.onClick,this);this.T(a,"videoplayerreset",this.Pw);this.T(a,"appresize", this.rC);this.T(a,"videodatachange",this.rC);this.T(a,"presentingplayerstatechange",this.rC);this.rC();a=this.J.U();var b=g.EC("yt-player-watch-later-pending");a.D&&b?(oNa(),c2a(this)):this.Sa(2);g.cv(this.element,"ytp-show-watch-later-title",g.QR(a));bU(this.J,this.element,this)}; e2a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.QR(c)&&g.hU(a.J)&&g.EG(a.J.Xb(),128),f=c.C;return c.Fe&&240<=b.width&&!d.isAd()&&d.Fe&&!e&&!g.MT(d)&&!a.J.md()&&!f}; f2a=function(a,b){cZa(g.cS(a.J.U()),"wl_button",function(){oNa({videoId:b});window.location.reload()})}; c2a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Sa(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.hm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Sa(2);a.J.U().K&&a.J.ob("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Sa(1);a.J.U().B&&a.J.aG(a.element);a.J.U().K&&a.J.ob("WATCH_LATER_VIDEO_ADDED")}; QH(c,b).then(d,function(){a.isRequestPending=!1;a.Sa(4,"An error occurred. Please try again later.");a.J.U().K&&a.J.ob("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; g2a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=rWa();break;case 1:c=Awa();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path", Ic:!0,X:{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.cY=function(){g.oW.apply(this,arguments);this.OI=(this.Uq=g.QR(this.api.U()))&&(this.api.U().B||fC()||dC());this.gN=48;this.hN=69;this.YC=this.Bi=null;this.Lt=[];this.ZK=this.oi=this.aL=this.wv=this.ge=null;this.qG=[];this.contextMenu=this.Og=this.overflowButton=this.di=this.Zg=this.searchButton=this.qn=this.shareButton=this.Ko=this.Xg=this.title=this.channelAvatar=this.UA=this.tooltip=null;this.PM=!1;this.nF=this.lw=this.uD=this.vD=null;this.TQ=this.OP=this.tN=!1}; h2a=function(a){var b=a.api.U(),c=g.EG(a.api.Xb(),128);return b.D&&c&&!a.api.isFullscreen()}; i2a=function(a){if(a.Vg()&&!a.api.md()&&a.di){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.Ko||b&&!e2a(a.Ko)||k_a(a.di,a.Ko);!a.shareButton||b&&!u_a(a.shareButton)||k_a(a.di,a.shareButton);!a.qn||b&&!vZa(a.qn)||k_a(a.di,a.qn)}else{if(a.di){b=a.di;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Tf(a.Xg.element,a.searchButton.element)&&a.searchButton.Ja(a.Xg.element);a.Ko&&!g.Tf(a.Xg.element,a.Ko.element)&&a.Ko.Ja(a.Xg.element); a.shareButton&&!g.Tf(a.Xg.element,a.shareButton.element)&&a.shareButton.Ja(a.Xg.element);a.qn&&!g.Tf(a.Xg.element,a.qn.element)&&a.qn.Ja(a.Xg.element)}}; j2a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==os(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=j2a(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexc.nB||0>c.Xt||0>d||0>h||0>c.Dr||0>f)return mY(a,b),[];a=uQ(c.nB,c.Dr);b=c.BJ||0;return[new wQ(3,e,a,"makeSliceInfosMediaBytes",c.Xt-1,h/f,d/ f,b,a.length-b,void 0,c.Lj,c.clipId)]}if(0>c.Xt)return mY(a,b),[];var q;return(null==(q=a.manifest)?0:q.zc)?(b=e.Nj,l=b*e.info.Ob,a=(null==(h=a.wf)?0:h.gr)?c.BJ:void 0,[new wQ(3,e,void 0,"makeSliceInfosMediaBytes",c.Xt,void 0,b,a,l,!0,c.Lj,c.clipId)]):[]}; C2a=function(a,b,c){a.manifest=b;a.wf=c;b=g.u(a.bd);for(c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;for(var e=g.u(d.IR),f=e.next();!f.done;f=e.next()){f=f.value;var h=B2a(a,c,f);A2a(a,f.Fp,d,h)}}}; D2a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.getLength()}); (a=a.bd.get(c))&&!a.Ug&&(lY?(a.Dj.has(b)||a.Dj.set(b,{data:new YN,hH:0,Yz:!1}),ZN(a.Dj.get(b).data,d)):ZN(a.Ff,d),a.bytesReceived+=d.getLength(),a.iR=!0)}; u2a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b}); var c=a.bd.get(b);c&&!c.Ug&&(c.Ug=!0,c.hg&&c.hg(),E2a(a)&&a.C.nZ())}; E2a=function(a){a=g.u(a.bd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Ug)return!1;return!0}; H2a=function(a){var b=JK[a],c=F2a[b],d=G2a[a];if(!d||!c)return null;var e=new GK(d.width,d.height,d.fps);c=UPa(c,e,b);return new KK(a,c,{video:e,Ob:d.bitrate/8})}; J2a=function(a){var b=F2a[JK[a]],c=I2a[a];return c&&b?new KK(a,b,{audio:new EK(c.audioSampleRate,c.numChannels)}):null}; L2a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=K2a[d]||0;a.j&&e>a.j||c.push(d)}return c}; O2a=function(a,b,c){b.push.apply(b,g.pa(M2a[a]||[]));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.pa(N2a[a]||[]))}; T2a=function(a,b){var c=jT(a),d=a.U().G;if(oY&&!d.B)return oY;var e=[],f=[],h={},l=[].concat(g.pa(P2a));a.L("html5_early_media_for_drm")&&(l=l.concat(Q2a),a.L("allow_vp9_1080p_mq_enc")&&l.push(R2a));var m=[].concat(g.pa(S2a));c.Z&&(m[0]=["141"]);l=g.u(l);for(var n=l.next();!n.done;n=l.next()){var p=!1;n=g.u(n.value);for(var q=n.next();!q.done;q=n.next()){q=q.value;var r=H2a(q);if(r&&r.video&&!(MK(r)&&!c.Ea&&r.video.j>c.tj)){var t=g.gJ(a.U().experiments,"html5_drm_byterate_soft_cap");0t||(p?(e.push(q),O2a(q,e,a)):(r=yP(c,r,d),!0===r?(p=!0,e.push(q),O2a(q,e,a)):h[q]=r))}}}m=g.u(m);for(l=m.next();!l.done;l=m.next())for(l=g.u(l.value),p=l.next();!p.done;p=l.next())if(p=p.value,(n=J2a(p))&&n.audio&&(a.L("html5_onesie_51_audio")||!ICa(n)&&!NK(n)))if(n=yP(c,n,d),!0===n){f.push(p);O2a(p,f,a);break}else h[p]=n;c.B&&b("orfmts",h);oY={video:e,audio:f};d.B=!1;return oY}; pY=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)}; U2a=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0)); c&&(b=String.fromCharCode.apply(String,g.pa(new Uint8Array(c))));a.close()}return b}; V2a=function(){for(var a=qY.length;4>a;a++){var b=g.If("VIDEO");b.load();qY.push(new g.tV(b))}}; W2a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};var h=f.C;if(b.bj()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(b=b.nf())&&b.isView()&&(b=b.mediaElement);if(b&&12m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Va.addEventListener(g.QJ("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.PJ(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0, b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,vY(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,vY(b)+m)),h=jQa(f,l)||d,h!==d&&a.j.qa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().wj=!0;d.getVideoData().Y=!0;g.yY(d,!0);f={};a.B&&(f=g.$M(a.B.Cc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.qa("queued",f);0!==b&&d.seekTo(b+.01,{Qv:!0,vS:3,Ed:"videoqueuer_queued"});a.C=new $2a(a.N,a.app.fd(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&& (uY(c,1),c.j.subscribe("internalvideodatachange",c.Tu,c),c.B.subscribe("internalvideodatachange",c.Tu,c),c.j.subscribe("mediasourceattached",c.Tu,c),c.B.subscribe("statechange",c.yU,c),c.j.subscribe("newelementrequired",c.BZ,c),c.Tu());return a.D}; k3a=function(a){var b,c,d,e;g.H(function(f){switch(f.j){case 1:if(a.isDisposed()||!a.D||!a.j)return f.return();a.Z&&zY(a.app.fd(),!0,!1);b=null;if(!a.C){f.Ka(2);break}g.Ba(f,3);return g.z(f,e3a(a.C),5);case 5:g.Ca(f,2);break;case 3:b=c=g.Da(f);case 2:if(!a.j)return f.return();g.tY.ll("vqsp",function(){AY(a.app,a.j)}); g.tY.ll("vqpv",function(){a.app.playVideo()}); b&&(a.j?m3a(a.j,b.message):null==(d=a.B)||d.qa("gapsp",{}));e=a.D;xY(a);e&&e.resolve();return f.return(Promise.resolve())}})}; xY=function(a){if(a.B){if(a.G){var b=a.B;a.app.Va.removeEventListener(g.QJ("vqueued"),a.K);b.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(b=a.C,Infinity!==b.status.status&&1!==b.G&&b.Mg("Canceled")),a.C=null);a.D=null;a.j&&a.j!==g.XT(a.app,1)&&a.j!==a.app.fd()&&a.j.dispose();a.j=null;a.Z=!1}; n3a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1}; o3a=function(a,b,c){if(a.dw())return"qie";if(null==a.j||a.j.isDisposed()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.ye())return"vinm";if(0>=n3a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=W2a(d.policy,d.j,d.B,d.Im)?a="pge":(c=i3a(d),b=c.XR,a=g.gJ(d.qe.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=YK(c.g0.jf(),d),b=YK(b.jf(),d),a=!(0a.segments.length)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.u(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.u(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.u(f.segments),l=h.next();!l.done;l=h.next())(l=l.value.aj())&&d.push(l);f.Tf()}}}(c=b.aj())&&d.push(c);d=g.u(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}}; CY=function(a,b,c,d){if(!a.j||b>c)return!1;b=new BY(a.W,b,c,a.j,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.aj();e&&e!==a.j.aj()&&a.B.set(e,[c])}a=a.j;a.j.has(b.Bf())?a.j.get(b.Bf()).push(b):a.j.set(b.Bf(),[b]);return!0}; DY=function(a,b){return a.B.get(b)}; w3a=function(a,b,c){a.B.set(b,c)}; EY=function(a,b,c,d,e,f){return new x3a(c,c+(d||0),!d,b,a,e,f)}; y3a=function(a,b){var c=a.B.values();a=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next()){d=g.u(d.value);for(var e=d.next();!e.done;e=d.next()){var f=e.value;e="st."+f.Bf()+";";e+="et."+f.dj()+";";var h=f.aj();h&&(e+="cpn."+h+";",e+="a."+(b===h?1:0)+";");if(f=f.getVideoData())h=void 0,e+="vid."+(null!=(h=f.videoId)?h:"nvd");a.push(e)}}return a.join(",")}; x3a=function(a,b,c,d,e,f,h){g.I.call(this);this.yc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.jJ=h;this.j=new Map;DTa(f)}; z3a=function(a){if(a.j.size)for(var b=g.u(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()}; A3a=function(a){this.end=this.start=a}; g.FY=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.oa=c;this.Na=new Map;this.eb=new Map;this.Ra=new Map;this.B=new Map;this.C=[];this.N=[];this.G=new Map;this.Jc=new Map;this.Z=new Map;this.Lc=NaN;this.Db=this.tb=this.jc=null;this.Vb=new g.Ru(function(){B3a(d,d.Lc,d.jc||void 0)}); this.events=new g.DK(this);this.Pb=15E3;this.K=new g.Ru(function(){d.Ca=!0;var e=d.oa,f=d.Pb;e.qa("sdai",{aftimeout:f});e.Ae(new wK("ad.fetchtimeout",{timeout:f}));C3a(d);d.VD(!1)},this.Pb); this.Ca=!1;this.D=new Map;this.Mb=[];this.Y=null;this.bf=new Set;this.Ea=[];this.Yc=[];this.Yd=[];this.Bd=[];this.j=void 0;this.ib=0;this.Za=!0;this.Ia=!1;this.Wa=[];this.Fe=new Set;this.Qe=new Set;this.Ge=new Set;this.va=0;this.ub=new Set;this.rd=0;this.qp=this.Ld=!1;this.Ma=this.ma="";this.Cd={Kmb:function(){return d.B}, Tmb:function(){return d.C}, Lmb:function(){return d.G}, vmb:function(){d.cf=!0}, K6:function(e){d.onCueRangeEnter(d.B.get(e))}, Emb:function(e){d.onCueRangeExit(d.B.get(e))}, Gob:function(e,f){d.B.set(e,f)}, Iob:function(e){d.Ma=e}}; this.oa.getPlayerType();D3a(this.oa,this);this.Xa=this.W.Dc();this.cf=this.W.L("html5_report_ad_transition_on_skip");g.N(this,this.Vb);g.N(this,this.events);g.N(this,this.K);this.events.T(this.api,g.QJ("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.RJ("serverstitchedcuerange"),this.onCueRangeExit)}; H3a=function(a,b,c,d,e,f,h,l){var m=E3a(a,f,f+e);a.Ca&&a.oa.qa("sdai",{adaftto:1});a.qp&&a.oa.qa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.oa;h=void 0===h?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.oa.qa("sdai",{attl0d:1});f>h&&GY(a,{reason:"enterTime_greater_than_return",yc:f,ke:h});var p=1E3*n.Sd();fn&&GY(a,{reason:"parent_return_greater_than_content_duration",ke:h,nob:n}); n=null;p=g.Tb(a.N,{ke:f},function(q,r){return q.ke-r.ke}); 0<=p&&(n=a.N[p],n.ke>f&&F3a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;pd?-1*(d+2):d;return 0<=d&&(a=a.N[d],a.ke>=c)?{pn:a,DA:b}:{pn:void 0,DA:b}}; KY=function(a,b){var c="";(b=M3a(a,b))&&(c=b.getId());return c?a.G.get(c):void 0}; M3a=function(a,b){if(a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.Ma){var c=a.B.get(a.Ma);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.u(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; B3a=function(a,b,c){var d=a.Db||a.api.fd().getPlayerState();MY(a,!0);a.oa.seekTo(b,c);a=a.api.fd();b=a.getPlayerState();g.xL(d)&&!g.xL(b)?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()}; MY=function(a,b){a.Lc=NaN;a.jc=null;a.Vb.stop();a.tb&&b&&N3a(a.tb);a.Db=null;a.tb=null}; O3a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.N),f=e.next();!f.done;f=e.next())f=f.value,(f.ycc)&&d.push(f);a.N=d;d=g.u(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.oa.removeCueRange(e),a.B.delete(e.getId()),a.oa.qa("sdai",{rmAdCR:1}));d=LY(a,b/1E3);b=d.pn;d=d.DA;if(b&&(d=1E3*d-b.yc,e=b.yc+d,b.durationMs=d,b.ke=e,d=a.B.get(b.cpn))){e=g.u(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start= b.yc+b.durationMs:f.end===d.start&&(f.end=b.yc);d.start=b.yc;d.end=b.yc+b.durationMs}if(b=LY(a,c/1E3).pn){var h;d="playback_timelinePlaybackId_"+b.yd+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.yc+"_parentReturnTimeMs_"+b.ke;a.zE("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; P3a=function(a){a.Na.clear();a.eb.clear();a.Ra.clear();a.B.clear();a.C=[];a.N=[];a.G.clear();a.Jc.clear();a.Z.clear();a.D.clear();a.Mb=[];a.Y=null;a.bf.clear();a.Ea=[];a.Yc=[];a.Yd=[];a.Bd=[];a.Wa=[];a.Fe.clear();a.Qe.clear();a.Ge.clear();a.ub.clear();a.Ca=!1;a.j=void 0;a.ib=0;a.Za=!0;a.Ia=!1;a.va=0;a.rd=0;a.Ld=!1;a.qp=!1;a.ma="";a.K.isActive()&&HY(a)}; R3a=function(a,b,c,d,e,f){if(!a.qp)if(!a.W.L("html5_ssdai_use_media_time")&&g.Q3a(a,c))a.Xa&&a.oa.qa("sdai",{gdu:"undec",seg:c,itag:e});else if(b=NY(a,b,c,d,f),!(GT(a.oa.getVideoData())&&(null==b?0:b.pE)))return b}; NY=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.D.get(c));if(!f){if(f=OY(a,b))return f;var h=PY(a,c-1,null!=d?d:2);if(e)return a.oa.qa("sdai",{misscue:e,sq:c,type:d,prevsstate:null==h?void 0:h.Ky,prevrecord:a.D.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?OY(a,b-5):a.D.get(c-1);if(2===(null==h?void 0:h.Ky)&&(a.oa.qa("sdai",{adnf:1,sq:c,type:d,prevrecord:a.D.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.D.get(c-1)}return f}; OY=function(a,b){b+=a.Ys();return LY(a,b,1).pn}; S3a=function(a){if(a.Wa.length)for(var b=g.u(a.Wa),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.u(a.B.values());for(c=b.next();!c.done;c=b.next())a.oa.removeCueRange(c.value);b=g.u(a.C);for(c=b.next();!c.done;c=b.next())a.oa.removeCueRange(c.value);a.B.clear();a.C=[];a.Na.clear();a.eb.clear();a.Ra.clear();a.j||(a.Za=!0)}; J3a=function(a,b,c,d,e,f,h){b&&c?(a.Ma=c.cpn,a.api.ra("serverstitchedvideochange",c.yd,c.LC),a.oa.qa("sdai",IY("a2a",c)),a.va++,K3a(a.oa,b,c,d||0,e||0,!!f,!!h)):a.oa.qa("sdai",{misspbkonadtrans:1,enter:(null==c?void 0:c.cpn)||"",exit:(null==b?void 0:b.cpn)||"",seek:f,skip:h})}; PY=function(a,b,c){if(1===c){if(a.Na.has(b))return a.Na.get(b)}else{if(2===c&&a.eb.has(b))return a.eb.get(b);if(3===c&&a.Ra.has(b))return a.Ra.get(b)}}; U3a=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;T3a(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.oa.removeCueRange(e);if(a.Wa.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else T3a(a,b,c)}; T3a=function(a,b,c){b=I3a(b,c);c=!0;g.$b(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.oa.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.oa.addCueRange(b),b=a.oa.pD("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())}; QY=function(a,b,c){if(void 0===c||!c){c=g.u(a.Mb);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.Mb.push(new A3a(b))}}; g.Q3a=function(a,b){a=g.u(a.Mb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; F3a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",hob:b,yc:c,ke:d,Cmb:e.yd,Dmb:(null==(f=e.videoData)?void 0:f.videoId)||"",zmb:e.durationMs,Amb:e.yc,Bmb:e.ke};GY(a,b)}; GY=function(a,b){a=a.oa;a.qa("timelineerror",b);a.Ae(new wK("dai.timelineerror",b))}; V3a=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; W3a=function(a,b,c){var d=0;a=a.Z.get(c);if(!a)return-1;a=g.u(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; X3a=function(a,b){var c=[];a=a.Z.get(b);if(!a)return[];a=g.u(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}; Y3a=function(a,b){var c=0;a=a.Z.get(b);if(!a)return 0;a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.ke!==b.yc&&c++;return c}; Z3a=function(a,b,c){var d=!1;if(c&&(c=a.Z.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.ke!==e.yc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Qe.has(e)&&(a.oa.qa("sdai",{decoratedAd:e}),a.Qe.add(e)))}}; C3a=function(a){a.Xa&&a.oa.qa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.rd)+"_isTimeout_"+a.Ca})}; E3a=function(a,b,c){if(a.Ea.length)for(var d=g.u(a.Ea),e=d.next(),f={};!e.done;f={nz:void 0},e=d.next()){f.nz=e.value;e=1E3*f.nz.startSecs;var h=1E3*f.nz.yh+e;if(b>e&&be&&c=b)return c}}; g4a=function(a){var b=a.oa.getVideoData();a.Vf&&(a=a.lz.get(a.Vf))&&(b=a);return b}; h4a=function(a){a=DY(a.timeline,a.Vf);return(null==a?0:a.length)?2===a[0].getType():!1}; i4a=function(a,b,c){c=void 0===c?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Xb(e);b=g.Tb(e,b);b=d.get(e[0>b?-1*(b+2):b]);if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&!c&&b){c=g.u(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.Bf()!==b.dj())return b;return a.timeline}return b&&0b)return h;if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&c&&d.Bf()===d.dj())return e[0]}}else a.api.qa("ssap",{ctnf:1})}; $3a=function(a,b){var c;if(a.j)for(c=a.B.shift();c&&c!==a.j;)c=a.B.shift();else c=a.B.shift();if(c)return a.wk.has(c)?j4a(a,c):3===b&&(a.D.stop(),a.api.playVideo(1)),a.C.set(a.Vf,b),k4a(a,c),!1;a.D.stop();return!0}; j4a=function(a,b){b=DY(a.timeline,b);if(null==b?0:b.length)a.api.pauseVideo(),a.D.start(b[0].jJ)}; k4a=function(a,b){if(a.Vf!==b){var c=a.oa.getVideoData(),d=c.clientPlaybackNonce;a.Vf&&a.api.IB();var e=a.Vf;a.Vf=b;var f=!1;""===e&&(e=d,f=!0);b=DY(a.timeline,a.Vf);if(null==b?0:b.length){var h=b[0];b=h.getType();c=e===d?c:a.lz.get(e);var l=a.C.get(e);l?a.C.delete(e):l=f?1:2;a:{var m=a.Vf;if(!a.Wj.has(m))for(var n=g.u(a.Wj),p=n.next();!p.done;p=n.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}n=m;p=a.oa.hI();p.eh!==n&&(q=p.Cc(p.eh),m=p.Cc(n), p.eh=n,m!==q&&(q.qoe&&(n=q.qoe,n.provider.W.Dc()&&n.qa("ssap",{qoesus:"1",vid:n.provider.videoData.videoId}),isNaN(n.G)||g.JB(n.G)),m.resume()));n=a.oa.getCurrentTime();m=Math.max(0,n-RY(a,e)/1E3);n=Math.max(0,n-RY(a,a.Vf)/1E3);p=3===l;h=h.getVideoData();q=a.oa.hI();var r=e,t=a.Vf,v=a.oa.getPlayerState();if(r!==t){var x=q.Cc(r),A=q.Cc(t),E,F=r===(null==(E=x.getVideoData())?void 0:E.clientPlaybackNonce),G;E=t===(null==(G=A.getVideoData())?void 0:G.clientPlaybackNonce);var L;G=F?(null==(L=x.getVideoData())? void 0:L.videoId)||"":"nvd";var Q;L=E?(null==(Q=A.getVideoData())?void 0:Q.videoId)||"":"nvd";F&&null!=(Q=x.qoe)&&(VY(Q,4,p?4:0,t,L,m),Q.reportStats());E&&(WY(A),null!=(Q=A.qoe)&&(VY(Q,4,p?5:1,r,G,n),Q.reportStats()),l4a(A,new g.DG(v,A.Me)),m4a(A));q.j.has(r)&&(n4a(q.j.get(r)),q.j.delete(r))}var R;KXa(e,a.Vf,d,(0,g.kD)(),h,null!=(R=a.K.get(e))?R:(0,g.kD)(),c);a.K.delete(e);a.api.ra("videodatachange","newdata",h,b,f?void 0:c,l);a.wk.delete(e);a.j="";(null==h?0:h.startSeconds)&&1===b&&a.Z&&(d=h.startSeconds, e=DY(a.timeline,a.oa.getVideoData().clientPlaybackNonce),null==e?0:e.length)&&(a.oa.seekTo(d+e[0].Bf()/1E3,{gS:!0}),a.Z=!1);2===b?a.N++:a.N=0}}}; o4a=function(a,b,c){SY(a,b)||a.oa.qa("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:XY(a)})}; XY=function(a){return y3a(a.timeline,a.Vf)}; a4a=function(a){a.oa.AF(Array.from(a.Wj.values()));a.Wj.clear()}; q4a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.ma=NaN;this.G=this.D=this.Y=null;this.Z=new g.Ru(function(){p4a(d,d.ma,d.Y||void 0)}); this.va=[];this.Ca=new g.Ru(function(){var e=d.va.pop();if(e){var f=e.yd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.va.length&&g.Su(d.Ca,4500))}}); this.events=new g.DK(this);c.getPlayerType();g.N(this,this.Z);g.N(this,this.Ca);g.N(this,this.events);this.events.T(this.api,g.QJ("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Ak)}; u4a=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 YY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Sd();if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.Vc(),YY(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.yc&&eq.yc)return YY(a,"overlappingReturn",h,l),"";if(f===q.yc)return YY(a,"outOfOrder",h,l),"";e===q.ke&&(n=q)}h="cs_childplayback_"+r4a++;l={xe:ZY(d,!0),Im:Infinity,target:null};var r={yd:h,playerVars:b,playerType:c,durationMs:d,yc:e,ke:f,Js:l};a.B=a.B.concat(r).sort(function(x,A){return x.yc-A.yc}); n?s4a(a,n,{xe:ZY(n.durationMs,!0),Im:n.Js.Im,target:r}):(b={xe:ZY(e,!1),Im:e,target:r},a.K.set(b.xe,b),m.addCueRange(b.xe));b=!0;if(a.j===a.api.fd()&&(m=1E3*m.getCurrentTime(),m>=r.yc&&mb)break;if(f>b)return{pn:d,DA:b-e};c=f-d.ke/1E3}return{pn:null,DA:b-c}}; p4a=function(a,b,c){c=void 0===c?{}:c;var d=a.G||a.api.fd().getPlayerState();bZ(a,!0);b=isFinite(b)?b:a.j.Hq();var e=y4a(a,b);b=e.pn;e=e.DA;var f=b&&!$Y(a,b)||!b&&a.j!==a.api.fd(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||aZ(a);b?t4a(a,b,e,c,d):z4a(a,e,c,d)}; z4a=function(a,b,c,d){var e=a.j,f=a.api.fd();e!==f&&a.api.jx();e.seekTo(b,Object.assign({},{Ed:"application_timelinemanager"},c));A4a(a,d)}; t4a=function(a,b,c,d,e){var f=$Y(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.W.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.TS(a.W,b.playerVars);h.yd=b.yd;a.api.Gt(h,b.playerType)}h=a.api.fd();f||h.addCueRange(b.Js.xe);h.seekTo(c,Object.assign({},{Ed:"application_timelinemanager"},d));A4a(a,e)}; A4a=function(a,b){a=a.api.fd();var c=a.getPlayerState();g.xL(b)&&!g.xL(c)?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()}; bZ=function(a,b){a.ma=NaN;a.Y=null;a.Z.stop();a.D&&b&&N3a(a.D);a.G=null;a.D=null}; $Y=function(a,b){a=a.api.fd();return!!a&&a.getVideoData().yd===b.yd}; B4a=function(a){var b=a.B.find(function(e){return $Y(a,e)}); if(b){var c=a.api.fd();aZ(a);var d=new g.rL(8);b=x4a(a,b)/1E3;z4a(a,b,{},d);c.qa("forceParentTransition",{childPlayback:1});a.j.qa("forceParentTransition",{parentPlayback:1})}}; D4a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Im>=d&&l.target&&l.target.ke<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.yc>=d&&l.ke<=e){var m=a;m.N===l&&aZ(m);$Y(m,l)&&m.api.jx()}else f.push(l);a.B=f;d=y4a(a,b/1E3);b=d.pn;d=d.DA;b&&(d*=1E3,C4a(a,b,d,b.ke===b.yc+b.durationMs?b.yc+d:b.ke));(b=y4a(a,c/1E3).pn)&& YY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.yd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.yc+" parentReturnTimeMs="+b.ke+"}.Child playbacks can only have duration updated not their start."))}; C4a=function(a,b,c,d){b.durationMs=c;b.ke=d;d={xe:ZY(c,!0),Im:c,target:null};s4a(a,b,d);$Y(a,b)&&1E3*a.api.fd().getCurrentTime()>c&&(b=x4a(a,b)/1E3,c=a.api.fd().getPlayerState(),z4a(a,b,{},c))}; YY=function(a,b,c,d){a.j.qa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; F4a=function(a){a&&"web"!==a&&E4a.includes(a)}; eZ=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Ru(function(){cZ(c);dZ(c)}); g.N(this,this.j)}; G4a=function(a){cZ(a);return a.data.map(function(b){return b.value})}; cZ=function(a){var b=(0,g.kD)();a.data.forEach(function(c){c.expire=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=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.B.observe(a)}; J4a=function(a,b){a.dataset.version=b}; M4a=function(a){g.V.call(this,{I:"div",La:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.hZ.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.gz=this.Ga(g.hZ.VIDEO_CONTAINER);this.XA=new g.is(0,0,0,0);this.Fc=null;this.mK=new g.is(0,0,0,0);this.EO=this.RP=this.QP=NaN;this.HI=this.jK=this.fR=this.TV=!1;this.rN=NaN;this.rP=!1;this.DE=null;this.rQ=function(){b.element.focus({preventScroll:!0})}; this.QJ=function(){b.app.Va.ra("playerUnderlayVisibilityChange","visible");b.Fc.classList.remove(g.hZ.VIDEO_CONTAINER_TRANSITIONING);b.Fc.removeEventListener(wWa,b.QJ);b.Fc.removeEventListener("transitioncancel",b.QJ)}; 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.U();e.transparentBackground&&this.us("ytp-transparent");"0"===e.controlsType&&this.us("ytp-hide-controls");g.Zu(this.element,"ytp-exp-bottom-control-flexbox");g.Zu(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.iS(e)&&g.Zu(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Zu(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.Zu(this.element,"ytp-cairo-refresh");J4a(this.element,K4a(a));this.j0=!1;this.tD=new g.Oe(NaN,NaN);L4a(this);this.T(a.Va, "onMutedAutoplayChange",this.onMutedAutoplayChange)}; L4a=function(a){function b(){a.Fc&&iZ(a);jZ(a)!==a.rP&&a.resize()} function c(h,l){a.jt(h,l)} function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())} function e(){a.mK=new g.is(0,0,0,0);a.XA=new g.is(0,0,0,0)} var f=a.app.Va;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);a.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; O4a=function(a){var b=g.XT(a.app),c=b=b?b.getVideoData():null;if(null==b?0:g.JT(b))c=a.app.Va.getVideoData();if(c){if(g.wT(c)||g.xT(c)||g.yT(c))return 16/9;if(qTa(c)&&c.C.j)return a=c.C.videoInfos[0].video,N4a(a.width,a.height)}return(a=a.Fc)?N4a(a.videoWidth,a.videoHeight):16/9}; P4a=function(a,b,c,d){var e=c,f=N4a(b.width,b.height);a.TV?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs(Q4a*b-a)||1>Math.abs(Q4a/a-b)?Q4a:a/b}; jZ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.XT(a.app);if(!b||b.Gn())return!1;a=a.app.Va.Xb();b=!g.EG(a,2)||b&&b.getVideoData().Y;var c=g.EG(a,1024);return a&&b&&!c&&!a.isCued()}; iZ=function(a){var b="3"===a.app.U().controlsType&&!a.HI&&jZ(a)&&!a.app.zA||!1;a.Fc.controls=b;a.Fc.tabIndex=b?0:-1;b?a.Fc.removeEventListener("focus",a.rQ):a.Fc.addEventListener("focus",a.rQ)}; R4a=function(a){var b=a.Rh(),c=1,d=!1,e=P4a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=Jpa(),m=g.gJ(f.experiments,"player_underlay_min_player_width");m=h&&a.fR&&a.getPlayerSize().width>m;if(jZ(a)){var n=O4a(a);var p=isNaN(n)||g.BD||EU&&g.fD||m;AD&&!g.Tc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.is(p,0,b.width,b.height)):p=new g.is(0, 0,b.width,b.height):(c=e.aspectRatio/n,p=new g.is((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.fD&&(n=p.width-b.height*n,0Math.max(p.width-e.width,p.height-e.height));if(l||a.j0)a.Fc.style.display="";a.rP=!0}else{p=-b.height;AD?p*=window.devicePixelRatio:g.jS&&(p-=window.screen.height);p=new g.is(0,p,b.width,b.height);if(l||a.j0)a.Fc.style.display="none";a.rP=!1}js(a.mK,p)||(a.mK=p,g.WR(f)?(a.Fc.style.setProperty("width", p.width+"px","important"),a.Fc.style.setProperty("height",p.height+"px","important")):g.ws(a.Fc,p.getSize()),d=new g.Ke(p.left,p.top),g.rs(a.Fc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.is((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);js(a.XA,b)||(a.XA=b,d=!0);g.ls(a.Fc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.jK&&(m&&(a.Fc.addEventListener(wWa,a.QJ),a.Fc.addEventListener("transitioncancel",a.QJ),a.Fc.classList.add(g.hZ.VIDEO_CONTAINER_TRANSITIONING)),a.jK=m,a.app.Va.ra("playerUnderlayVisibilityChange", a.jK?"transitioning":"hidden"));return d}; S4a=function(){this.csn=g.lF();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set}; T4a=function(a){if(a.csn!==g.lF())if("UNDEFINED_CSN"===a.csn)a.csn=g.lF();else{var b=g.lF(),c=g.kF();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.KB("combine_ve_grafts")?gP(eP(),e,c):g.qB(g.yF)(void 0,b,c,e))}if(b)for(a=g.u(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.CF(b,c)}}; U4a=function(a,b){this.Dd=a;this.policy=b;this.playbackRate=1}; V4a=function(a,b){var c=Math.min(2.5,KR(a.Dd));a=kZ(a);return b-c*a}; X4a=function(a,b,c,d,e){e=void 0===e?!1:e;if(a.policy.Pl)return Math.ceil(a.policy.Pl*b);a.policy.lk&&(d=Math.abs(d));d/=a.playbackRate;var f=1/LR(a.Dd);c=Math.max(.9*(d-3),KR(a.Dd)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0e&&(a=e);return Infinity>a?a/1E3:a}; lZ=function(a,b,c,d,e){this.Aa=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.ze;this.D=null;this.C=0}; $4a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.Hn(d)||c&&c.Pa===d?(b.G=!a.Hn(d),b.ma=!a.Hn(d)):(b.G=!0,b.ma=!0)}}; b5a=function(a,b,c,d,e){if(!b.j.wg()){if(!(d=0===c||!!b.C.length&&b.C[0]instanceof mZ))a:{if(b.C.length&&(d=b.C[0],d instanceof nZ&&d.rh&&d.ri)){d=!0;break a}d=!1}d||a.policy.C||oZ(b);return c}var f=pZ(b,c);if(!isNaN(f))return f;if(a.Aa.nP(1E3*c))return c;e.XI||(b.Ok(),a.Aa.BK(!0));return d&&(a=ZK(d.jf(),c),!isNaN(a))?(qZ(b,a+a5a),c):qZ(b,c)}; e5a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.Xa||g.ig(function(){rZ(a)}); else{if(a.eg()&&a.j){var e=c5a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.ig(function(){a.Aa.qa("seekreason",{reason:"behindMinSq",tgt:e});d5a(a,e)}); return}}c?a.videoTrack.ma=!1:a.audioTrack.ma=!1;var f=a.policy.Px||!a.B;0<=pZ(a.videoTrack,a.j)&&0<=pZ(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.Aa.qa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.ig(function(){if(a.B||!a.policy.Xa)rZ(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.ja.seekCount?(a.seekCount++,a.Aa.qa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Aa.qa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G= !1,a.audioTrack.G=!1,sZ(a.Aa,h+.1,{Qv:!0,Ed:"chunkSelectorSynchronizeMedia",uq:!0})))}}})}}; c5a=function(a,b,c){if(!a.eg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Gi(a.j);return(c.Hn(a.manifest.sf)||b.Pa===a.manifest.sf)&&da.N.length){var d=new Uint8Array(2*a.N.length);d.set(a.N);a.N=d}h5a(a,Math.ceil(b)-Math.ceil(a.Z));h5a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.K/1024)))}if(a.policy.j){d=b-a.Z;var e=c-a.K;a.Vb=e;a.Ra=Math.max(a.Ra,e/(d+.01)*1E3)}a.Z=b;a.K=c;a.va&&c>a.va&&g5a(a)}; h5a=function(a,b){for(;31>=5;a.N[a.Xa++]=uZ[b]}; i5a=function(a){return a.N?g.hO(a.N.subarray(0,a.Xa)):""}; j5a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; xZ=function(a){a.isActive&&(a.isActive=!1)}; yZ=function(a,b){vZ.call(this,a,b);this.ub=this.Pb=!1;this.ma=this.G=Infinity;this.Ea=NaN;this.Mb=!1;this.eb=NaN;this.jc=0;this.oD=b.oD||1;this.SQ=b.SQ||this.oD;this.Yk=b.Yk;this.Pa=b.Pa;this.ih=b.ih;k5a(this);this.tR(this.j);this.Ma=(this.eb-this.j)/1E3}; zZ=function(a,b,c){a.Hs||(b=Math.max(b,.01),GR(a.Dd,b,c,b))}; l5a=function(a,b){return b?a.TI()?!0:2048<=b:!1}; m5a=function(a){return(a.D-a.j)/1E3}; k5a=function(a){a.Ea=a.j+1E3*a.snapshot.delay;a.Mb=!1}; p5a=function(a,b){if(a.Yk&&void 0!==a.Pa&&void 0!==a.ih){var c=Math,d=c.min,e=a.G;var f=a.Yk;var h=a.j;if(n5a(f,a.Pa))f=b;else{var l=0;f.nj&&(l=.2);f=h+1E3*(f.Oj+l)}a.G=d.call(c,e,f);c=Math;d=c.min;e=a.ma;f=a.Yk;h=a.j;l=o5a(f,a.Pa,a.ih);2!==l&&(b=l?b:h+1E3*f.Oj,f.nj&&(b+=1E3*f.Oj));a.ma=d.call(c,e,b);a.G<=a.j?k5a(a):(a.Ea=a.G,a.Mb=!0)}}; q5a=function(a,b){if(b+1<=a.totalLength){var c=cO(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=cO(a,b++);else if(2===c)c=cO(a,b++),a=cO(a,b++),a=(c&63)+64*a;else if(3===c){c=cO(a,b++);var d=cO(a,b++);a=cO(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=cO(a,b++);d=cO(a,b++);var e=cO(a,b++);a=cO(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),lIa(a,c,4)?a=mIa(a).getUint32(c-a.C,!0):(d=cO(a,c+2)+256*cO(a,c+3),a=cO(a,c)+256*(cO(a,c+ 1)+256*d)),b+=5;return[a,b]}; AZ=function(a){this.Ib=a;this.j=new YN}; BZ=function(a,b){this.info=a;this.callback=b;this.state=1;this.SA=this.QO=!1;this.og=null}; r5a=function(a){return g.Gr(a.info.fb,function(b){return 3===b.type})}; s5a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Ib=c;this.status=0;this.j=new YN;this.B=0;this.isDisposed=this.G=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.u(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.KA()}; this.xhr.onload=function(){return e.onDone()}; this.xhr.onerror=function(){return e.onError()}; this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.kD)();f-e.D>e.policy.j&&(e.Ib.Rt(f,e.B),e.D=f)},function(){},d.body||null)}; t5a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)}; tSa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j){if(!b)return f.return(b);c=CZ.ju("woe");d=new g.TN(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;CZ.Ks(c,Math.ceil(b.byteLength/16));return f.return(e)})}; zSa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j){if(!b)return f.return(b);c=CZ.ju("wod");d=new g.TN(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;CZ.Ks(c,Math.ceil(b.byteLength/16));return f.return(e)})}; u5a=function(a,b){var c=this;this.j=a;this.Ib=b;this.loaded=this.status=0;this.error="";a=tQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new YN;this.MF().then(function(){c.Ib.rr()},function(d){c.error=""+d||"unknown_err"; c.Ib.rr()})}; w5a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Ib=c;this.Y=d;this.status=0;this.response=void 0;this.Z=this.B=0;this.K=this.N=!1;this.errorMessage="";this.va=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.isDisposed()?e.C.cancel().catch(function(){}):(e.G=f.headers,e.Ib.Rw(),v5a(e)); else e.onDone();else e.onError(Error("null_response"))}; this.ma=function(f){var h=(0,g.kD)();e.isDisposed()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),v5a(e),f=(0,g.kD)(),f-e.Z>e.policy.j&&(e.Z=f,e.Ib.Rt(h,e.B))))}; this.onError=function(f){e.errorMessage=String(f);e.N=!0;e.onDone()}; this.j=new YN;this.D=window.AbortController?new AbortController:void 0;this.start(a)}; v5a=function(a){a.C.read().then(a.ma,a.onError).then(void 0,Qqa)}; x5a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Ib=b;this.B=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.KA(f)}; a=IO(function(f){d.onDone(f)}); this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",IO(function(f){d.hg(f)}),!1)}; y5a=function(a,b,c,d,e){if(IP(a.base))return new u5a(a,c);a=a.Ve();return d?sNa()?new s5a(a,b,c,e):new w5a(a,b,c,e):new x5a(a,c,e)}; DZ=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.I.call(this);this.Ib=a;this.policy=b;this.me=c;this.resource=d;this.timing=e;this.logger=f;this.D=h;this.Sw=l;this.G=m;this.lastError=null;this.j=0;this.C=!1;this.B=new g.Ru(this.gca,this.policy.Wi,this)}; z5a=function(a){a.Ib.Mn()||(a.resource.Z=(0,g.kD)(),a=EZ(a),a.B=(0,g.kD)(),a.started+=1)}; A5a=function(a,b,c){a.timing.cQ((0,g.kD)(),b,c);if(!a.Ib.Mn()&&(b=a.resource,b.C=0,b.G=0,b.K=0,XOa(EZ(a)),null!=(b=a.Sw)&&(a=a.me.base,!((0,g.kD)()this.policy.CA?!1:!0:!1)b=null,this.policy.Kz&& this.policy.Zj?b=[1]:h&&(b=[]),null!=b&&(this.policy.sC&&b.push(2),this.me.set("defsel",b.join(",")));this.Jd=new DZ(this,this.policy,this.me,this.info.resource,this.timing,this.logger,d,p);this.iF=f||null;this.SA=C5a(this);z5a(this.Jd);d=void 0;if(this.policy.HC||this.El||this.policy.Ca)d={method:"POST"},f=(0,g.HZ)([120,0]),p={},this.policy.Rr&&this.ri&&(p.videoPlaybackUstreamerConfig=this.ri),this.policy.Ca&&(b=this.info.D)&&Object.assign(p,b),0a.D&&(a.D=NaN,a.G=NaN);if(a.j&&a.j.Pa===d){e=a.j;var f=e.dh,h=c.Nt(f);d=b.fb[0].Pa;a.qa("sdai",{onqevt:f.event,sq:d,gab:h});if(h)"predictStart"!==f.event?e.ZD?MZ(a,4,"cue"):(a.D=b.fb[0].Pa,a.G=b.fb[0].C,a.qa("sdai",{joinad:a.B,sg:a.D,st:a.G.toFixed(3)}),a.Z=Date.now(),MZ(a,2,"join"),c.wI(e.dh)):(a.C=b.fb[0].Pa+ Math.max(Math.ceil(-f.j/5E3),1),a.qa("sdai",{onpred:b.fb[0].Pa,est:a.C}),a.Z=Date.now(),MZ(a,3,"predict"),c.wI(e.dh));else if(1===a.B){b=b.fb[0].C;var l;(null==(l=a.K)?0:l.HN(b))?(c6a(a.Aa,b,b,d),MZ(a,4,"sk2had")):MZ(a,5,"nogab")}else"predictStart"===f.event&&0c||c===a.D)&&!isNaN(a.G)?a.G:b}; f6a=function(a,b){if(a.j){var c=a.j.dh.yh-(b.startTime+a.N-a.j.dh.startSecs);0>=c||(c=new TP(a.j.dh.startSecs-(isNaN(a.N)?0:a.N),c,a.j.dh.context,a.j.dh.identifier,"stop",a.j.dh.j+1E3*b.duration),a.qa("cuepointdiscontinuity",{segNum:b.Pa}),LZ(a,c,b.Pa))}}; MZ=function(a,b,c){a.B!==b&&(a.qa("sdai",{setsst:b,old:a.B,r:c}),a.B=b)}; NZ=function(a,b,c,d){(void 0===d?0:d)?MZ(a,1,"sk2h"):0=n+100?h=!0:p+100=f){var n=0;if(a.jd){var p=TY(a.jd,1E3*l);p&&(n=p.Zk/1E3)}p=Object.assign({},a.Md[e]);var q=a.Md[e].formatId;q=a.manifest.N.get(q.itag+";"+(q.lmt||0)+";"+q.xtags);f=Math.max(l,f);l=q.index.Gi(f+.1-n);var r=q.index.getStartTime(l)+n,t=l+ +(.1=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.Gm,h=b.Zi;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Gm=c.Gm;b.Uw=c.durationMs;b.Zi=c.Zi;c.formatId=a;c.startTimeMs=e;c.Vw=e;c.durationMs=d-e;c.Uw=c.durationMs; c.Gm=f;c.Zi=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.Uw=b.durationMs);return!1}; k6a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.zc||b.lmt===c.lmt}; o6a=function(a,b,c){if(a.logger&&a.policy.Pm){for(var d=[],e=0;e=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0=a.j.getLength())throw Error();return cO(a.j,a.offset++)}; G6a=function(a,b){b=void 0===b?!1:b;var c=F6a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=F6a(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+F6a(a),d*=128;return b?c:c-d}; H6a=function(a){try{var b=G6a(a,!0),c=G6a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}}; I6a=function(a){for(var b=new UZ(a),c=-1,d=0,e=0;!d||!e;){var f=H6a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.im()}else if(186===h){if(2!==f)return;e=b.im()}374648427===h?c=b.im()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=bO(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new YN([b]);ZN(d,a);return d}; K6a=function(a,b,c){var d=this;this.Aa=a;this.policy=b;this.K=c;this.logger=new g.qU("dash");this.B=[];this.j=null;this.Ca=-1;this.Y=0;this.Ea=NaN;this.ma=0;this.C=NaN;this.Z=this.Na=0;this.Xa=-1;this.Ma=this.G=this.D=this.Ia=null;this.Za=this.Wa=NaN;this.N=this.va=this.eb=this.ib=null;this.tb=!1;this.Ra=this.timestampOffset=0;this.Cd={kX:function(){return d.B}}; if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.Ra&&a.qa("atv",{ap:this.policy.Ra});this.N=new r6a(this.policy,e,function(h,l,m){VZ(a,new TZ(d.policy.D,2,{mF:new E6a(f,h,e.info,l,m)}))}); this.N.Z.promise.then(function(h){d.N=null;1===h?VZ(a,new TZ(d.policy.D,h)):d.Aa.qa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); h instanceof RZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Aa.qa("offlinenwerr",{em:l}),J6a(d),VZ(a,new TZ(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Aa.qa("dldbwerr",{em:l}),J6a(d),VZ(a,new TZ(d.policy.D,4,{II:!0})))})}}; L6a=function(a){return a.B.length?a.B[0]:null}; S6a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.Zb+a.G.B;if(0=Math.abs(e.C-f.C)&&e.Pa===f.Pa?0:FOa(e,f)))||M6a(a,"d")}else if(0=a.Ca&&0===a.Y){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8e&&(f=-1)}else{h=new UZ(h);for(m=l=!1;;){n=h.im();var p=H6a(h),q=p.id;p=p.size;if(!(0f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.im()+p);if(160===q){0>f&&(e=f=h.im()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ca=f;a.Y=e-f}if(a.Ca>d)break;a.Ca?(d=P6a(a,a.Ca),d.G&&Q6a(a,d),N6a(a,b,d),R6a(a,d),a.Ca=0):a.Y&&(d=P6a(a,0>a.Y?Infinity:a.Y),a.Y-=d.j.getLength(),R6a(a,d))}}a.j&&a.j.info.rf&&(R6a(a,a.j),a.j=null)}; O6a=function(a,b){!b.info.j.tm()&&0===b.info.Zb&&(g.OK(b.info.j.info)||b.info.j.info.We())&&wPa(b);if(1===b.info.type)try{Q6a(a,b),T6a(a,b)}catch(e){g.oF(e);var c=BQ(b.info);c.hms="1";a.Aa.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.JO(b);a.N&&w6a(a.N,b);if(c.wg()&&a.policy.C)a:{a=a.Aa.manifest;b=b.info.clipId;c=QK(c.info,a.zc);if(b){var d=RPa(a,c);if(a.Ea[d])break a;a.Ea[d]=b}a.Ia.push(c)}}; J6a=function(a){var b;null==(b=a.N)||b.dispose();a.N=null}; U6a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.getLength()},0); a.j&&(b+=a.j.j.getLength());return b}; V6a=function(a){if(a.va&&!a.policy.Po){var b=a.Aa;b.manifest.isManifestless&&dR(b.manifest,a.va.Pa,!!a.K.info.video)}a.va=null;a.D=null;a.G=a.ib;a.C=a.G?a.C-a.ma:NaN;WZ(a)}; P6a=function(a,b){var c=a.j;b=Math.min(b,c.j.getLength());if(b===c.j.getLength())return a.j=null,c;c=pPa(c,b);a.j=c[1];return c[0]}; Q6a=function(a,b){b.j.getLength();var c=SQ(b);if(HCa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new eQ(c);gQ(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;LK(d)&&!HCa(d)&&(d=SQ(b),(new eQ(d)).Nn(),kQ([408125543,374648427,174,224],21936,d));b.info.j.info.Hg()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.OK(d.info)?d.B=kOa(c):d.info.We()&&(d.B=uOa(c)))); b.info.j.info.We()&&b.info.Hg()&&(c=SQ(b),(new eQ(c)).Nn(),kQ([408125543,374648427,174,224],30320,c)&&kQ([408125543,374648427,174,224],21432,c));if(a.policy.xC&&b.info.j.info.We()){c=SQ(b);var e=new eQ(c);if(gQ(e,[408125543,374648427,174,29637])){d=jQ(e,!0);e=e.start+e.pos;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=QP(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.Ia&&!!a.Ia.K.D)if(b=c.info.Hg())b=uPa(c),h=a.Ia,XZ?(l=1/b,b=YZ(a,b)>=YZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&W6a(c)&&(b=a.Ia,XZ?(l=uPa(c),h=1/l,l=YZ(a,l),b=YZ(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,jOa(SQ(c),b))}else{h=!1;a.D||(wPa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.j,f.G="updateWithEmsg",f.Pa=d,f=c.B,f.D&&(a.K.index.B=!f.D),f=c.info.j.info,d=SQ(c),g.OK(f)?pOa(d,1701671783):f.We()&&kQ([408125543],307544935,d)));a:if((f=UQ(c,a.policy.ib))&&vPa(c))l=X6a(a,c),a.Z+=l,f-=l,a.ma+=f,a.C=a.policy.wj?a.C+f:NaN;else{if(a.policy.Dx){if(d=m=a.Aa.uq(qPa(c),1),0<=a.C&&7!==c.info.type){if(a.policy.wj&&isNaN(a.Wa)){g.pF(new g.LC("Missing duration while processing previous chunk", c.info.Od()));a.Aa.isOffline()&&!a.policy.Vi||Y6a(a,c,d);M6a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.Ma?a.Ma.Pa:-1,t=a.Za,v=a.Wa,x=a.policy.Tm&&n>a.policy.Tm,A=10Math.abs(a.C-d);if(1E-4=a.policy.Sm&&(a.Ra=0,a.Aa.Bo({resetForRewrites:"count"})), a.policy.Um&&a.Z>a.policy.Um&&a.Aa.Bo({resetForRewrites:"threshold"}))}a.Ma=c.info;a.Wa=tPa(c);0<=c.C&&(a.Za=c.C);if(h&&a.D){h=Z6a(a,!0);POa(c.info,h);a.j&&POa(a.j.info,h);b=g.u(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Pa!==(null==(e=a.D)?void 0:e.j)||POa(l,h);(c.info.rf||a.j&&a.j.info.rf)&&7!==c.info.type||(a.va=h,b=a.Aa,b.manifest.isManifestless&&$6a(b,h,null,!!a.K.info.video),a.policy.rd||a7a(a))}}T6a(a,c);a.timestampOffset&&sPa(c,a.timestampOffset)}; R6a=function(a,b){if(b.info.rf){a.ib=b.info;if(a.D){var c=a.D,d=Z6a(a,!1),e=null;if(a.D.ZD()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=eOa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.u(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.u(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n= m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.u(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new A6a(e,f,h,l,g.fOa(c),g.gOa(c))}a.Aa.DQ(a.K,d,e);a.va||a.policy.rd||a7a(a);a.va=null}WZ(a)}a.N&&w6a(a.N,b);if(c=a.jo())if(c=TQ(c,b,a.policy.il)){a.B.pop();a.B.push(c);return}a.B.push(b)}; WZ=function(a){a.j=null;a.Ca=-1;a.Y=0;a.D=null;a.Ea=NaN;a.ma=0;a.va=null}; M6a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.Ma?a.Ma.Pa:-1};a.C=NaN;a.Z=0;a.Xa=-1;a.Ma=null;a.Za=NaN;a.Wa=NaN;a.eb=null;a.Aa.qa("mdstm",b)}; T6a=function(a,b){if(a.K.info.ue){if(b.info.j.info.We()){var c=new eQ(SQ(b));if(gQ(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=jQ(c,!0);c=16!==d?null:tOa(c,d)}else c=null;d="webm"}else b.info.N=y6a(SQ(b)),c=z6a(b.info.N),d="cenc";c&&c.length&&(c=new SZ(c,d),a.policy.UB&&g.OK(b.info.j.info)&&(d=rOa(SQ(b)))&&(c.B=d),c.We=b.info.j.info.We(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.C&&(c.j=b.B.C),a.Aa.Nw(c))}}; a7a=function(a){var b=a.D,c=cOa(b);c&&(c.startSecs+=a.Ea,a.Aa.CQ(a.K,c,b.j,b.ZD()))}; Z6a=function(a,b){var c,d=a.D;if(c=cOa(d))c.startSecs+=a.Ea;return new LP(d.j,a.Ea,b?d.Nj:a.ma,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)}; Y6a=function(a,b,c){if(!rPa(b,c))return b=BQ(b.info),b.smst="1",a.Aa.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ea)&&(a.Ea=c);return!0}; X6a=function(a,b,c){var d=0;if(b.info.j.info.We()&&!vPa(b))return 0;if(a.Ia&&!a.Ch()){var e=0;c&&g.OK(b.info.j.info)?e=c-a.C:b.info.j.info.We()&&(e=a.Z);var f=b.info.Pa;c=UQ(b,a.policy.ib);var h=a.Ia;var l=h.Xa;h=h.Z;var m=.02l&&f>a.Xa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.OK(b.info.j.info))jOa(SQ(b),d);else if(b.info.j.info.We()&&(f=e-h,!g.OK(b.info.j.info)&&(b.info.j.info.We(),d=new eQ(SQ(b)),l=b.G?d:new eQ(new DataView(b.info.j.j.buffer)),UQ(b,!0)))){var n= 1E3*f,p=pQ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||qQ(d))if(iQ(d,160))if(jQ(d,!0),iQ(d,155)){if(f=d.pos,m=jQ(d,!0),d.pos=f,n=1E9*n/p,p=lQ(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=UQ(b,a.policy.ib);d=c-d}d&&b.info.j.info.We()&&a.Aa.qa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d}; W6a=function(a){return a.info.j.tm()&&a.info.Pa===a.info.j.index.Hd()}; YZ=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()}; b7a=function(a,b){0>b||(a.B.forEach(function(c){sPa(c,b)}),a.timestampOffset=b)}; mZ=function(a,b,c,d,e){BZ.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.gg=d;this.lastError=null;this.j=new g.Ru(function(){f.isComplete()||(f.lastError="net.timeout",f.Hc(5))},this.policy.TB); this.hg=function(){f.isDisposed()||(f.gg.bd.has(f.formatId)?(f.isComplete()||f.j.start(),nY(f.gg,f.formatId)&&f.BA(2),f.gg.Ug(f.formatId)&&(y2a(f.gg,f.formatId)?f.Hc(4):(f.lastError="net.closed",f.Hc(5)))):(f.lastError="player.exception",f.Hc(5)))}; this.j.start();t2a(this.gg,this.formatId,this.hg);g.ig(this.hg)}; c7a=function(a,b,c,d){var e=this;this.Aa=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.qU("dash");this.C=[];this.va=[];this.B=this.ac=null;this.Ia=!1;this.Ea=this.Ma=0;this.K=-1;this.ma=!1;this.Ca=-1;this.Y=NaN;this.Cd={qO:function(){return e.D}, snb:function(){return e.C}, Pmb:function(){return e.Z}}; this.D=new K6a(a,b,c);this.policy.C&&(this.Z=new h6a(this.D,this.Aa.fX(),this.policy,function(f){e.Aa.qa("buftl",f)})); this.Ob=c.info.Ob;this.N=c.lE();this.isManifestless=c.lE();this.G=this.N}; ZZ=function(a,b,c){c=void 0===c?!1:c;b&&XZ&&b7a(a.D,b.BO());if(!c){var d;null==(d=a.Z)||p6a(d)}a.ac=b;null!=(b=a.Z)&&(b.ac=a.ac)}; $Z=function(a){var b=a.ac&&a.ac.gI();if(a.policy.Eu){if(null==(a=a.Z))a=void 0;else{var c;a=null==(c=a.B)?void 0:c.info}return a||null}return b}; d7a=function(a){for(var b={},c=0;cb&&c.B.pop();h7a(a);a.B&&b=b&&(e.B.pop(),e.C-=UQ(l,e.policy.ib),f=l.info)}f&&(e.G=0c?qZ(a,d):a.B=a.j.hs(b-1,!1).fb[0]}; g_=function(a,b){var c;for(c=0;c=a.Ca:c}; h_=function(a){var b;return b_(a)||d_(a,null==(b=a.D.jo())?void 0:b.info)}; l7a=function(a){var b=[],c=$Z(a);c&&b.push(c);b=g.Kb(b,a.D.Bn());c=g.u(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.fb),f=e.next(),h={};!f.done;h={GF:void 0},f=e.next())h.GF=f.value,d.QO&&(b=g.pt(b,function(l){return function(m){return!NOa(m,l.GF)}}(h))),(zQ(h.GF)||4===h.GF.type)&&b.push(h.GF)}a.B&&!EOa(a.B,g.Bb(b),a.B.j.tm())&&b.push(a.B); return b}; k7a=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:k7a(a,c?b:0)?a[b].startTime:NaN}; i_=function(a){return!(!a.B||a.B.j===a.j)}; r7a=function(a){return i_(a)&&a.j.wg()&&a.B.j.info.Obb&&d.Db)return!0;var c=a.Hd();return bb)return 1;c=a.Hd();return bd)return 0;a=GQ(c,$Oa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2}; C7a=function(a,b,c){if(!(b.Wo&&a.isComplete()&&a.canRetry()&&FQ(a.info.resource,b,c)))return 0;a=GQ(c,$Oa(a.info.resource,!1,b));return a.B+b.Wo*YOa(a,!0)>(0,g.kD)()?0:1}; k_=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=void 0===t?null:t;g.I.call(this);var v=this;this.Aa=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.Y=q;this.WK=r;this.ri=t;this.ma=!1;this.tF="";this.Yk=null;this.ih=NaN;this.Ca=!1;this.B=null;this.rh=this.Z=NaN;this.va=this.K=0;this.logger=new g.qU("dash");this.Cd={oP:function(x,A){return v.oP(x,A)}}; 0h&&(d=c.j.Zx(c,e-f.B)))),c=d):(0>d.Pa&&(c=BQ(d),c.pr=""+b.C.length,a.Aa.eg()&&(c.sk="1"),c.snss=d.G,a.Aa.qa("nosq",c)), c=f.mC(d));if(a.policy.va)for(d=g.u(c.fb),e=d.next();!e.done;e=d.next())e.value.type=7}else d.j.tm()?(c=X4a(a.G,b.j.info.Ob,c.j.info.Ob,0),c=d.j.Zx(d,c)):c=d.j.mC(d);if(a.B){var l=c.fb[0].j.info.id;d=a.j;e=c.fb[0].Pa;d=0>e&&!isNaN(d.D)?d.D:e;e=e6a(a.j,c.fb[0].C,d);var m=b===a.audioTrack?1:2;h=c.fb[0].j.info.sb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.dh.event;if(n.j.Pa===d){n="predictStart"===p?void 0:n.j.dh.event;break a}if(n.j.Pa===d-1){n="start"===p||"continue"===p?p:void 0;break a}}n= void 0}if(a.policy.Ca&&0!==a.j.B){var q=a.B.uI(e,d,l,m,h,n);0>d&&2===m&&NZ(a.j,0,0,!0);if(q){var r;l=(null==(r=q.nx)?void 0:r.Gs)||"";var t;r=(null==(t=q.nx)?void 0:t.m0)||-1;a.Aa.qa("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:f,f:h,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.yz(e,d,l,m,h,n),0>d&&2===m&&NZ(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.yC&&b.isRequestPending(d-1)){a.Aa.qa("sdai",{wt_daistate_on_sg:d-1});return}a.Aa.qa("sdai",r);t&&(c.j=new g.FP(t));a.policy.B&&(t=c.resource.B.get("id")|| "",r=(null==(q=c.j)?void 0:q.get("id"))||"",t!==r&&a.Aa.qa("stmidmismatch",{cid:t,aid:r}))}else 5!==a.j.B&&a.Aa.qa("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.zl&&-1!==c.fb[0].Pa&&c.fb[0].Pa=e.C?(e.qa("sdai",{haltrq:f+1,est:e.C}),d=!1):d=2!==e.B;if(!d||!aPa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.Aa.isSuspended&&(!MR(a.schedule)||a.Aa.EH))return!1;if(a.policy.D&&5<=KS)return g.Su(a.Aa.BE),!1;if(a.manifest.isManifestless){if(0=a.policy.Rm||!a.policy.VB&&0=a.policy.Vm)return!1;d=b.B;if(!d)return!0;4===d.type&&d.j.wg()&&(b.B=g.Bb(d.j.iB(d)),d=b.B); if(!xQ(d)&&!d.j.gs(d))return!1;f=a.manifest.ze||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.Hd();var h=c.j.index.Hd();f=Math.min(f,h);if(0=f)return b.Ca=f,c.Ca=f,!1}if(d.j.info.audio&&4===d.type||xQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.D,e=!!(c.B&&!d_(c,c.B)&&c.B.DG7a(a,b)?(G7a(a,b),!1):(a=b.ac)&&a.isLocked()?!1:!0}; G7a=function(a,b){var c=a.j;c=c.j?c.j.dh:null;if(a.policy.va&&c)return c.startSecs+c.yh+15;b=m_(a.Aa,b);0f){if(a.policy.B){var n=e.timing.ls();n.rst=e.state;n.strm=e.xhr.EB();n.cncl=e.xhr&&e.Jd.C?1:0;e.Mn()&&(n.shost=HP(e.me.base),n.pb=e.info.C);a.Aa.qa("rqs",n)}e.W_&&a.Aa.qa("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){$5a(a.timing,e,h);var p=a.Aa;a.rh&&e.iH&&p&&(a.rh=NaN,a.Aa.UR(e.iH),a.Aa.jN(),a.Aa.qa("cabrUtcSeek",{mediaTimeSeconds:e.iH}));e.mB&&(0=b&&d.video.j<=c})}; M7a=function(a){var b=null;if(b=a.wf.Ar?HVa(a.j,a.Ca):g.Db(a.Z,function(c){var d;return!(null==(d=c.uc)||!d.isDefault)}))a.D=[b]}; V7a=function(a,b){return a.map(function(c){return RK(c,b)})}; W7a=function(a){var b;if(null==(b=a.B)?0:b.isLocked())return a.videoInfos;var c=uU(a.j);b=g.pt(a.videoInfos,function(d){return d.Ob>a.wf.Ob?!1:!c.has(d.id)}); GVa(a.j)&&(b=g.pt(b,function(d){return 854>=d.video.width&&480>=d.video.height})); return b}; X7a=function(a,b){return(null==a?void 0:a.maxWidth)>=(null==b?void 0:b.maxWidth)&&(null==a?void 0:a.maxHeight)>(null==b?void 0:b.maxHeight)||(null==a?void 0:a.maxWidth)>(null==b?void 0:b.maxWidth)&&(null==a?void 0:a.maxHeight)>=(null==b?void 0:b.maxHeight)}; Y7a=function(a,b){for(var c=g.u(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),0!==d.length){g.Xb(d,function(l,m){return m.maxFramerate-l.maxFramerate}); for(var e=[d[0]],f=0,h=1;ht)&&!0===yP(e,r,l)){h.push({w1:Z7a[JK[q]],maxWidth:r.video.width,maxHeight:r.video.height,maxFramerate:r.video.fps});break}}}}f=g.u(f);for(n=f.next();!n.done;n=f.next())for(n=g.u(n.value),p=n.next();!p.done;p=n.next())if(p=p.value,(q=J2a(p))&&q.audio&&(d.L("html5_onesie_51_audio")||!ICa(q)&&!NK(q))&&!0===yP(e,q,l)){m.push({audioCodec:$7a[JK[p]],numChannels:q.audio.numChannels});break}b.mediaCapabilities={oL:h,dH:m}}var v;if(null==(v=a.wf)?0:v.C&&v.Nl){v=d.G;l=[];h=[];m=new Map;if((f= v.j)&&0n.Lp&&(n.Lp=r))}p=q+"_"+p.jE;q=m.get(p)||[];q.push(n);m.set(p,q)}l=Y7a(l,m);b.mediaCapabilities={oL:l,dH:h,m8:3}}var x;if(null==(x=a.wf)?0:x.C){b.po= e.po;var A;b.tj=null==(A=a.wf)?void 0:A.tj}if(d.L("html5_enable_drc_toggle_api")){var E;b.vW=null==(E=a.wf)?void 0:E.tb}else d.L("html5_enable_drc")&&(b.vW=!0);b.eR=a.aD;a.Zq&&(b.kda=(0,g.kD)()-a.Zq);a.isPrefetch&&d.L("html5_report_prefetch_requests")&&(b.isPrefetch=!0);vR||(b.p9=!0);d=1E3*KR(d.schedule);0a.Dw&&(b.Dw=a.Dw);c=c.getPlaybackRate();1!==c&&(b.playbackRate=c);var G;(null==(G=a.wf)?0:G.ub)&&a.Vp&&(b.Zu=a.Zu,b.Ax=a.Ax,b.Vp=a.Vp); return b}; d8a=function(a,b,c,d){b={playbackCookie:null==b?void 0:b.playbackCookie};d&&(b.kR=d);b.iL=[];if(g.JT(a)&&0a;a++)u_[a]=255>=a?9:7;n8a.length=32;n8a.fill(5);v_.length=286;v_.fill(0);for(a=261;285>a;a++)v_[a]=Math.floor((a-261)/4);w_[257]=3;for(a=258;285>a;a++){var b=w_[a-1];b+=1<a;a++)o8a[a]=3>=a?0:Math.floor((a-2)/2);for(a=x_[0]=1;30>a;a++)b=x_[a-1],b+=1<a.output.length&&(a.output=new Uint8Array(2*a.C),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output}; t8a=function(a,b,c){b=r8a(b);c=r8a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){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.B=m,256a.j){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<>4;for(u8a(a,7);0>c;)c=b[y_(a,1)-c];return c>>4}; y_=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<>=b;a.j-=b;return c}; u8a=function(a,b){a.j-=b;a.register>>=b}; r8a=function(a){for(var b=[],c=g.u(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}; x8a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.H(function(v){switch(v.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=XV.ll(b.j?"gza":"gzw",function(){return 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 v.return(h)}catch(x){g.oF(x),b.reload()}if(!("DecompressionStream"in window))return XV.isActive()?v.return(XV.ll("gzj",function(){return g.v8a(new g.p8a(a))})):v.return(g.v8a(new g.p8a(a))); l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new YN([]);if(XV.isActive())return v.return(XV.ll("gzn",function(){var x,A,E;return g.H(function(F){if(1==F.j)return g.z(F,n.read(),5);if(4!=F.j){x=F.B;A=x.value;if(E=x.done)return F.Ka(4);p.append(A);return F.Ka(1)}return F.return(aO(p))})})); case 2:return g.z(v,n.read(),5);case 5:q=v.B;r=q.value;if(t=q.done){v.Ka(4);break}p.append(r);v.Ka(2);break;case 4:return v.return(aO(p))}})}; y8a=function(a){rU.call(this,"onesie");this.ud=a;this.j={};this.D=!0;this.C=null;this.queue=new m8a(this);this.G={}}; z8a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.u(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.JX){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||t_(e)}}}; B8a=function(a,b){var c=b.getLength(),d=!1;switch(a.C){case 0:a.GQ(b,a.D).then(function(f){var h=a.ud;h.Xd("oprr");h.playerResponse=f;h.NP||(h.JF=!1);z_(h)},function(f){a.ud.xj(f)}); break;case 2:a.Xd("ormk");b=aO(b);var e;a.queue.decrypt(b,!A8a(a.ud),null==(e=a.ud.U())?void 0:e.Ra);break;default:d=!0}a.ud.mm&&a.ud.qa("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null}; C8a=function(a){return new Promise(function(b){setTimeout(b,a)})}; D8a=function(a,b){var c=wR(b.W.experiments,"debug_bandaid_hostname");if(c)b=fY(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=CR(a.videoId);a=[];if(b)for(b=g.u(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}}; E8a=function(a,b,c){c=void 0===c?0:c;var d,e;return g.H(function(f){if(1==f.j)return d=[],d.push(b.load()),0=a.policy.Ld){if(a.D===a.policy.Ld){var d={reason:"toomanyrequests"};d.limit=a.D;a.Aa.handleError("player.exception",d);a.D+=1}return!1}}else a.va=c,a.D=0}b=!b&&!MR(a.Dd);if(a.Aa.isSuspended&&(a.Aa.EH||b)||a.Z&&(0,g.kD)()e;e=f>e;if((!h||!e)&&a.policy.B&&a.policy.cf){var l=a.Aa.qc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.C.targetAudioReadaheadMs; l.tvr=a.C.targetVideoReadaheadMs;a.Aa.qa("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.j)&&(a=a.Aa,a.Qa&&a.Qa.j&&a.Qa.B&&a.dc&&!eR(a.manifest)?(d=a.getCurrentTime(),c=a.Qa.j.jf(),b=a.Qa.B.jf(),c=c?ZK(c,d):d,d=b?ZK(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=UY(a.dc),d=d>=a-.01)):d=!1);return d?!1:!0}; S8a=function(a,b,c){var d={Dd:a.Dd,hx:function(m,n){a.oa.yF(m,n)}, kp:a.policy.Mm,KN:a.policy.B},e=P5a(b,a.policy,a.G)?2:1;e!==a.N&&(a.N=e,V8a(a));c=U8a(a,c);if(a.policy.j&&a.policy.B&&c.nm){for(var f=e="",h=g.u(c.nm),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.Aa.qa("sabrbldrqs",{ctxts:e,misctxts:f})}!f8a(b,c,a.Aa.Hi())&&a.policy.j&&a.Aa.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);b=new JZ(a.policy,b,a.manifest,a.G,a,d,a.Aa.Gz());KZ(a.timing);return b}; X8a=function(a,b){if(!b.isDisposed()&&!a.isDisposed()){if(a.policy.B&&b.isComplete()&&b instanceof JZ){var c=a.Aa,d=c.qa;var e=Object.assign(b.Pe.ls(),{rst:b.state,strm:b.xhr.EB(),d:i5a(b.Pe),cncl:b.xhr&&b.Jd.C?1:0});e=Object.assign(h8a(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.cw())b.dispose();else{if(b.pY())b instanceof JZ&&a.videoData.L("html5_sabr_handle_request_resource_timing")&&$5a(a.timing,b),V8a(a),W8a(a);else if(b.qm())a.gt(b);else{if(a.Aa.isSuspended&&!b.isComplete())return;W8a(a)}b.isDisposed()|| b instanceof B_||(b.isComplete()?c=C7a(b,a.policy,a.G):(c=B7a(b,a.policy,a.G),1===c&&(a.Ia=!0)),0!==c&&(b=new q_(1,b.info.resource),b.j=2===c,S8a(a,b)))}}a.Aa.zf()}; W8a=function(a){for(;a.j.length&&a.j[0].RX(a.ye());){var b=a.j.shift();Y8a(a,b);a.policy.Yc&&b instanceof JZ&&b.dispose()}a.j.length&&Y8a(a,a.j[0])}; Y8a=function(a,b){if(a.policy.Wf){var c=new Set(b.Eq(a.ye()));c=g.u(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof B_))){var f=a.B,h=f.manifest.zc;d=V7a(f.D,h);f=V7a(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Bn(e,a.ye()),b instanceof JZ&&a.videoData.L("html5_sabr_handle_request_resource_timing")&&$5a(a.timing,b,d[0].j),b.bl(e,a.ye()))){e=b.Hk(e,a.ye());if(a.policy.j&&(f=d[0].j.info,(h=a.Aa.Hi())&&f)){var l=b.RW();l!==h.oa.getVideoData().clientPlaybackNonce&& (h=DY(h.timeline,l))&&(h=h[0].getVideoData())&&(f.Ch()?h.D=f:h.B=f)}e=g.u(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.B&&b instanceof B_&&a.Aa.qa("omblss",{s:f.info.Od()});h=f.info.j.info.Ch();l=f.info.j;if(a.videoData.L("html5_log_request_identifier_on_format_change"))if(h){var m=void 0,n=a.B,p=null==(m=b.vO(a.ye()))?void 0:m.token;l!==n.C&&(n.C=l,n.QE(l,n.audioTrack,p))}else m=void 0,O7a(a.B,l,null==(m=b.vO(a.ye()))?void 0:m.token);else h?(m=a.B,l!==m.C&&(m.C=l,m.QE(l,m.audioTrack))): O7a(a.B,l);l=h?a.audioTrack:a.videoTrack;b instanceof B_&&(l.N=!1,b instanceof B_&&(h?T5a(a.timing):S5a(a.timing)));a_(l,d,f)}}}}else for(d=b.QW()||CU(a.Y),c=new Set(b.Eq(a.ye())),a.policy.j?e=c:e=[(null==(f=d.video)?void 0:RK(f.info,a.manifest.zc))||"",(null==(h=d.audio)?void 0:RK(h.info,a.manifest.zc))||""],d=g.u(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.bl(e,a.ye()))for(f=b.Hk(e,a.ye()),f=g.u(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.B&&b instanceof B_&&a.Aa.qa("omblss", {s:h.info.Od()}),l=b.Bn(e,a.ye()),n=(m=h.info.j.info.Ch())?a.audioTrack:a.videoTrack,b instanceof B_&&(n.N=!1,b instanceof B_&&(m?T5a(a.timing):S5a(a.timing))),a_(n,l,h)}; Z8a=function(a,b){for(var c=[],d=0;d=e.length||l.isDisposed()||(l=l.j,l.array.sort(l.j))}b.api.qa("ssap",{tu:y3a(b.timeline,b.Vf)})}else b.api.qa("ssap",{tnu:1});b=!0}else b.api.qa("ssap",{htsm:h?0:1}),b=!1}b?((b=c.context)&&b.type&&(a.videoData.sabrContextUpdates.set(b.type,b),b.sendByDefault&&a.nm.add(b.type)),a.videoData.Cy=c.version||""):a.Aa.qa("ssap",{v:c.version,tlnu:1})}; V8a=function(a){a.nm.clear();if(0=a.policy.Ix,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e=a.policy.zj&&!a.C;if(!f&&!c&&g9a(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.kD)()/1E3-(a.bz.cj()||0)-a.N.B-a.policy.Mb;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){D_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.yj;d=f.C&&d<=f.D){d=!0;break a}d=!1}if(!d)return a.qa("ostmf",{ct:a.currentTime,a:b.j.info.Ch()}),!1;null!=(a=a.Ca)&&(a.bd.get(c).KC=!0);return!0}; m9a=function(a){if(!a.manifest.zc)return!0;var b=a.oa.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&F_(a.oa)||b.L("html5_skip_live_preroll_onesie_post_live")&&F_(a.oa)&&(b.ze||b.isPremiere))return a.qa("ombpa",{}),!1;var c,d;if(a.policy.yy&&!!(null==(c=a.va)?0:null==(d=c.FY)?0:d.Fba)!==a.manifest.ze)return a.qa("ombplmm",{}),!1;c=b.Db||b.liveUtcStartSeconds||b.jk;if(a.manifest.ze&&c)return a.qa("ombplst",{}),!1;if(a.manifest.Z)return a.qa("ombab",{}),!1;c=Date.now();return eR(a.manifest)&& !isNaN(a.Ia)&&c-a.Ia>1E3*a.policy.FG?(a.qa("ombttl",{}),!1):a.manifest.sf&&a.manifest.C||!a.policy.FC&&a.manifest.isPremiere||lT(b)?!1:!0}; n9a=function(a,b){var c=b.j,d=a.manifest.zc;if(m9a(a))if(a.Ca&&a.Ca.bd.has(RK(c.info,d))){if(d=RK(c.info,d),l9a(a,b)){var e=new CQ(a.Ca.Bn(d)),f=function(h){try{if(h.qm())a.handleError(h.gh(),h.Fq()),g_(b,h),EQ(h.info)&&n_(a.D,b,c,!0),a.zf();else if(K7a(a.D,h)){var l;null==(l=a.G)||d6a(l,h.info,a.Y);a.zf()}}catch(m){h=yK(m),a.handleError(h.errorCode,h.details,h.severity),a.Ok()}}; c.C=!0;QOa(e)&&(e7a(b,new mZ(a.policy,d,e,a.Ca,f)),KZ(a.timing))}}else a.qa("ombfmt",{})}; G_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=o_,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Gi(b)||0;e.Ea!==b&&(e.Ma={},e.Ea=b,zU(e,e.j));b=!e.j.isLocked()&&-1b.j&&"b"===b.reason;d||e||c?(a.oa.Bo({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.C.j.B=!1):I_(a)}}else if(!OVa(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j}); c=a.j.j;u9a(a,QVa(a.j,b));G_(a);d=b.isLocked()&&"m"===b.reason&&a.j.Ca;e=a.policy.bf&&"l"===b.reason&&i_(a.videoTrack);c=c.j>b.j&&"b"===b.reason;var f=a.j.eb&&!eL();d||e||c||f?a.oa.Bo({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):I_(a)}}; w9a=function(a,b,c){if((!a.Qa||iL(a.Qa)&&!a.policy.Hl)&&!a.B.eg()&&(TV(a.policy)||i_(b)&&b.j.wg()&&a.j.va)){var d=a.currentTime+Y4a(a.Z,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)}); o7a(b,d)}}; u9a=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+UK(b.video.info)}),x9a(a.oa,new xU(b.video,b.reason))); if(a.j.Xa){var c=CU(a.j,"a");a.oa.Mw(new xU(c.audio,c.reason))}}; I_=function(a){g.Su(a.tb)}; y9a=function(a,b){var c=(0,g.kD)()-b,d=1E3*e_(a.audioTrack,!0),e=1E3*e_(a.videoTrack,!0);a.logger.debug(function(){return"Appends paused for "+c}); if(a.policy.B&&(a.qa("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),UV(a.policy))){var f=GU(a.Z);a.qa("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:Z4a(a.Z,a.Hp,f),bw:f.toFixed(),js:a.eg(),re:+a.Hp,ps:(a.policy.YB||"").toString(),rn:(a.policy.WB||"").toString()})}}; z9a=function(a){if(a.policy.j&&j_(a.videoTrack)&&j_(a.audioTrack))return"ssap";if(x7a(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(h_(a.audioTrack)||h_(a.videoTrack)&&"f"!==a.videoTrack.j.info.sb)return"";if(a.B.eg()){var b=a.Z;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.Ui;UV(b.policy)&&(e=Z4a(b,!1,GU(b)));b=e;c=e_(d,!0)>=b&&e_(c,!0)>=b}else c.C.length||d.C.length?(e=c.j.info.Ob+d.j.info.Ob,e=10*(1-GU(b)/e),b=Math.max(e,b.policy.Ui), c=e_(d,!0)>=b&&e_(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(0a.currentTime||360t7a(f.Y))return a.B.eg()&&I_(a),!1;B9a(a,b,c,d.info);if(a.manifest.B&&0===d.info.Zb){if(e=C9a(b,c,d))f=$Z(b),a.qa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Pa});f=g.OK(d.info.j.info);a.policy.Vb&&f&&!e&&xPa(d)}e= a.K&&!!a.K.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&0!==d.info.Zb||f&&!e)&&D9a(a,c,d))return!0;if(e)return!1;e=m_(a,b);if(d.info.C>a.currentTime+e)return a.policy.C&&!a.Ma&&(a.Ma=(0,g.kD)()),!1;a.Ma&&(a.Ma=0);var h;a.policy.jc&&c===(null==(h=a.Qa)?void 0:h.j)&&a.Wa&&(0===c.vI()?(a.Wa=!1,a.policy.jc=!1):a.Xa=c.vI());if(!E9a(a,c,d))return!1;b.Yt(d);TVa(a.j,d.info);a.logger.debug(function(){return"Appended "+d.info.Od()+", buffered: "+WK(c.jf())}); return!0}; E9a=function(a,b,c){var d=a.policy.Ia?(0,g.kD)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=G9a(a,c,f)||f);var h=aO(f);f=a.policy.Ia?(0,g.kD)():0;e=H9a(a,b,h,c.info,e);a.policy.Ia&&(!c.info.Zb||c.info.rf||10>c.info.C)&&(b=b.qc({as:c.info.Od(),pdur:Math.round(f-d),adur:Math.round((0,g.kD)()-f)}),b.omt=(a.getCurrentTime()+a.Vc()).toFixed(3),b.to=a.Vc(),a.qa("sba",b));if("s"===e)return a.Na&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Na=!1,a.ib=!1),a.Za=0,!0;if("i"===e||"x"===e)return I9a(a, "checked",e,c.info),!1;if("q"===e){if(!a.Na)return a.logger.debug("QuotaExceeded, retrying."),a.Na=!0,!1;if(!a.ib)return a.ib=!0,a.oa.seekTo(a.currentTime,{Ed:"quotaExceeded",uq:!0}),!1;c.info.Hg()?(b=a.policy,b.ma=Math.floor(.8*b.ma),b.Lc=Math.floor(.8*b.Lc),b.Y=Math.floor(.8*b.Y)):(b=a.policy,b.Wa=Math.floor(.8*b.Wa),b.Y=Math.floor(.8*b.Y));TV(a.policy)?tU(a.C.j,c.info.j,!1):BU(a.j,c.info.j)}a.oa.Bo({reattachOnAppend:e});return!1}; G9a=function(a,b,c){var d;if(d=a.policy.Fx&&a.Qa&&!a.Qa.ma&&!a.oa.KH())b=b.info.j.info,d=b.We()&&LK(b)&&b.video&&3840>b.video.width&&b.video.width>b.video.height;if(d&&(a.Qa.ma=!0,CK('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=I6a(c),a.policy.B&&a.qa("sp4k",{s:!!c}),c}; I9a=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",TV(a.policy)?!d.j.info.video||0a.Za?(a.Za++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=BQ(d);var h;d.mrs=null==(h=a.Qa)?void 0:nL(h);d.origin=b;d.reason=c;a.handleError(e,d,f)}; $6a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=SK(f.j[p].info.mimeType)||f.j[p].info.Hg();if(d===m)if(m=f.j[p].index,m.Hn(b.Pa)){if(!f.Ra){h=m;m=b;var n=h.xn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.bM(m),h=!0):h=!1}h&&(l=b.Pa)}else m.bM(b),h=!0}if(0<=l){var p={};f.ra("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;e5a(a.B,b,d,f);a.G.DQ(b,c,d,e);b.Pa===a.manifest.sf&&f&&bR(a.manifest)&&b.startTime>bR(a.manifest)&&(a.manifest.Za=b.startTime+(isNaN(a.timestampOffset)? 0:a.timestampOffset),a.B.eg()&&a.B.j=b&&k9a(a,d.startTime,!1)}); return c&&c.startTimea.getCurrentTime())return c.start/1E3;return Infinity}; R9a=function(a){var b=$Z(a.videoTrack),c=$Z(a.audioTrack);return b&&!z7a(a.videoTrack)?b.startTime:c&&!z7a(a.audioTrack)?c.startTime:NaN}; g.K_=function(a){this.jd=a}; L_=function(){g.IF.apply(this,arguments)}; M_=function(a,b,c,d){L_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.Ru(this.G,0,this);g.N(this,this.D);this.B=new g.Ru(function(){e.isDisposed()||(e.D.start(Math.random()*c),e.B.start(b))},a,this); g.N(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)}; S9a=function(a){if(!(28>=a.length))for(var b=(0,g.HZ)([60,0,75,0,73,0,68,0,62,0]),c=28;cd;++d)b[d]=a[c+2*d];a=fO(b);a=Fg(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++}}; N_=function(a,b){L_.call(this);var c=this;this.C=a;this.j=[];this.B=new g.Ru(function(){c.ra("log_qoe",{wvagt:"timer",reqlen:c.j?c.j.length:-1});if(c.j){if(0d;d++)c[2*d]=''.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new Q_(null,null,null,null,a)}; z$a=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c}; w$a=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 M_(b,c,c-b-a,this)):c=null;break a;case "widevine":c=new N_(c,this);break a;default:c=null}if(this.G=c)g.N(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.vV,this),this.G.subscribe("log_qoe",this.sj,this);sQa(this.W.experiments);this.sj({cks:this.j.Qh()})}; B$a=function(a){var b=a.D.MM();b?b.then(IO(function(){D$a(a)}),IO(function(c){if(!a.isDisposed()){g.oF(c); var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ra("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.sj({mdkrdy:1}),a.Y=!0); a.ma&&(b=a.ma.MM())}; F$a=function(a,b,c){a.Ra=!0;c=new SZ(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));E$a(a,c)}; E$a=function(a,b){if(!a.isDisposed()){a.sj({onInitData:1});if(a.W.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.sj({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Ea&&!a.videoData.isLivePlayback)T_(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.We)){a.Ea=!0;c=b.cryptoPeriodIndex;var d=b.j;C6a(b);b.We||(d&&b.j!==d?a.ra("ctmp","cpsmm", {emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ra("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ra("widevine_set_need_key_info",b)}}else a.vV(b)}}; D$a=function(a){if(!a.isDisposed())if(a.W.L("html5_drm_set_server_cert")&&!g.tJ(a.W)||oR(a.j)){var b=a.D.setServerCertificate();b?b.then(IO(function(c){a.W.Dc()&&a.ra("ctmp","ssc",{success:c})}),IO(function(c){a.ra("ctmp","ssce",{n:c.name, m:c.message})})).then(IO(function(){G$a(a)})):G$a(a)}else G$a(a)}; G$a=function(a){a.isDisposed()||(a.Y=!0,a.sj({onmdkrdy:1}),T_(a))}; H$a=function(a){return"widevine"===a.j.flavor&&a.videoData.L("html5_drm_cpi_license_key")}; T_=function(a){if((a.Ra||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Ia){for(;a.C.length;){var b=a.C[0],c=H$a(a)?D6a(b):g.Dg(b.initData);if(oR(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if("fairplay"!==a.j.flavor||oR(a.j)){a.C.shift();continue}else a.B.delete(c);C6a(b);break}}a.C.length&&a.createSession(a.C[0])}}; I$a=function(a){var b;if(b=g.ZB()){var c;b=!(null==(c=a.D.B)||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.hO(b),a.ra("ctmp","drm",{metrics:b}))}; J$a=function(a){g.I.call(this);var b=this;this.oa=a;this.Ha=this.oa.U();this.videoData=this.oa.getVideoData();this.vE=0;this.G=this.B=!1;this.D=0;this.C=g.gJ(this.Ha.experiments,"html5_delayed_retry_count");this.j=new g.Ru(function(){U_(b.oa)},g.gJ(this.Ha.experiments,"html5_delayed_retry_delay_ms")); g.N(this,this.j)}; N$a=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.oa.Ck.D&&d&&"22"===d.itag)return a.oa.Ck.D=!0,a.Ae("qoe.restart",{reason:"fmt.unplayable.22"}),V_(a.oa),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.Rba)c.mimeType=f.type,a.qa("3pp",{url:f.url});c.ns="3pp";a.oa.Bg(b,1,"VIDEO_UNAVAILABLE",vK((new wK(b,c,1)).details));return!0}var h=a.vE+3E4<(0,g.kD)()||a.j.isActive();if(a.Ha.L("html5_empty_src")&& a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Ae("auth",c),!0;h||kXa(a.oa.En())||(c.nonfg="paused",h=!0,a.oa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:ICa(e)||NK(e))&&(PQa(a.Ha.G,e.sb),c.acfallexp=e.sb,f=h=!0);!h&&0=a.Ha.Vb)return!1;b.exiled=""+a.Ha.Vb;a.Ae("qoe.start15s",b);a.oa.ra("playbackstalledatstart");return!0}; L$a=function(a){return a.B?!0:"yt"===a.Ha.va?a.videoData.Ea?25>a.videoData.Vb:!a.videoData.Vb:!1}; M$a=function(a){if(!a.B){a.B=!0;var b=a.oa.getPlayerState();b=b.isPaused()||b.isSuspended();a.oa.zo();b&&!HT(a.videoData)||a.oa.ra("signatureexpired")}}; O$a=function(a,b){if((a=a.oa.nf())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.gh();b.details.merr=c?c.toString():"0";b.details.mmsg=a.Cf()}}; P$a=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)}; Q$a=function(a,b){return a.Ha.L("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}; S$a=function(a,b){if(!Q$a(a,b)&&!a.B)return!1;b.details.sts="19795";if(L$a(a))return xK(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new wK("qoe.restart",b)),a.Ae(b.errorCode,b.details),M$a(a),!0;6048E5<(0,g.kD)()-a.Ha.ag&&R$a(a,"signature");return!1}; R$a=function(a,b){try{window.location.reload(),a.Ae("qoe.restart",{detail:"pr."+b})}catch(c){}}; T$a=function(a,b){var c=a.Ha.G;c.K=!1;c.B=!0;a.Ae("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});U_(a.oa,!0)}; U$a=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e}; V$a=function(a,b,c){this.W=a;this.bG=b;this.oa=c;this.Z=this.K=this.j=this.C=this.N=this.B=0;this.D=!1;this.Y=g.gJ(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.G=new Map}; X$a=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.tJ(a.W)&&(c=c.compose(W$a(a,b)));return c}; Z$a=function(a,b){var c,d=Y$a(a,null==(c=b.j)?void 0:c.videoInfos);c=a.oa.getPlaybackRate();return 1(0,g.kD)()-a.C?0:f||0a.Y||!e||g.tJ(a.W))return!1;a.j=(60e?a.j+1:0;if(3!==a.j)return!1;bab(a,b.videoData.B);a.oa.qa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},dab()));return!0}; bab=function(a,b){var c=a.W,d=b.sb,e=b.video.fps,f=b.video.j-1,h=a.G;b=""+d+(49=h){d=h;break}}return new pP(0,d,!1,"b")}; gab=function(a,b){var c=a.oa.En();return c.isInline()&&!b.EL?new pP(0,480,!1,"v"):!(c.isBackground()&&60e?(c&&(d=hab(a,c,d)),new pP(0,d,!1,"e")):SS}; hab=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;ba.B)){var b=g.$M(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.yL(a.playerState)&&!g.EG(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; mab=function(a){var b;switch(null==(b=a.W.playerCanaryStage)?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; oab=function(a,b){b?nab.test(a):(a=g.xB(a),Object.keys(a).includes("cpn"))}; qab=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(AB(a)&&BB()){if(h){var n;2!==(null==(n=pab.uaChPolyfill)?void 0:n.state.type)?h=null:(h=pab.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.mB("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]= d:g.mB("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.mB("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ca)&&!hS(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Nl&&b.datasyncId&&(m["X-Yt-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&nab.test(a)&&(l.withCredentials=!0)}0h;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(52*Math.random())];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b}; uab=function(a,b){xO(a,1,b.elapsedTimeMs);AO(a,3,b.videoDecoderName)}; wab=function(a,b){AO(a,1,b.cpn);xO(a,2,b.sequenceNumber);AO(a,3,b.serializedWatchEndpointLoggingContext);var c;if(b.decoderInfo)for(c=0;ca.C.iZ+100&&a.C){var d=a.C,e=d.isAd;c=1E3*c-d.iZ;a.Ra=1E3*b-d.pca-c-d.Zba;c=(0,g.kD)()-c;b=a.Ra;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=c-b;MH(f,h);g.LH({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);NH("pbs",c,f)}else c=a.provider.oa.Fi(),c.K!==d.clientPlaybackNonce? (c.G=d.clientPlaybackNonce,c.B=b):d.Pn()||g.pF(new g.LC("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.qa("gllat",{l:a.Ra.toFixed(),prev_ad:+e});delete a.C}}; a0=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.$M(a.provider);var c=a.provider.oa.QD(),d=c.Or-(a.Xa||0);0a.j)&&2=a.provider.videoData.Mb;return!!b}; Xab=function(a){a.provider.videoData.remarketingUrl&&!a.Ia&&(j0(a,a.provider.videoData.remarketingUrl),a.Ia=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Ma&&(j0(a,a.provider.videoData.youtubeRemarketingUrl),a.Ma=!0);a.provider.videoData.googleRemarketingUrl&&!a.va&&(j0(a,a.provider.videoData.googleRemarketingUrl),a.va=!0);a.provider.videoData.ppvRemarketingUrl&&!a.Ca&&(j0(a,a.provider.videoData.ppvRemarketingUrl),a.Ca=!0);a.xu()}; dbb=function(a){if(!a.isDisposed()&&a.C){a.K="paused";var b=l0(a);b.isFinal=!0;b.send();a.dispose()}}; ebb=function(a,b){if(!a.isDisposed())if(g.EG(b.state,2)||g.EG(b.state,512)){if(a.K="paused",g.GG(b,2)||g.GG(b,512))g.GG(b,2)&&(a.j.previouslyEnded=!0),a.C&&(k0(a),l0(a).send(),a.G=NaN)}else if(g.EG(b.state,8)){a.K="playing";var c=a.C&&isNaN(a.D)?i0(a):NaN;!isNaN(c)&&(0>FG(b,64)||0>FG(b,512))&&(a=cbb(a,!1),a.G=c,a.send())}else a.K="paused"}; j0=function(a,b){var c=a.provider.W;g.oS(a.provider.W,g.FT(a.provider.videoData)).then(function(d){var e=a.provider.W.pageId,f=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.W.L("vss_pings_using_networkless")||a.provider.W.L("kevlar_woffle"),l=a.provider.W.L("allow_skip_networkless");d=qab(b,c,e,f,d);rab(b,d,{token:a.provider.videoData.G,uS:a.provider.videoData.Lm,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})}; fbb=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1}; m0=function(a,b,c){this.videoData=a;this.W=b;this.oa=c;this.j=void 0}; g.$M=function(a){return gbb(a)()}; gbb=function(a){if(!a.j){var b=g.jb(function(d){var e=(0,g.kD)();d&&631152E6>=e&&(a.oa.qa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.W.L("html5_validate_yt_now")),c=b(); a.j=function(){return Math.round(b()-c)/1E3}; a.oa.IQ()}return a.j}; abb=function(a){var b=a.oa.Mq()||{};b.fs=a.oa.iE();b.volume=a.oa.getVolume();b.muted=a.oa.isMuted()?1:0;b.mos=b.muted;b.inview=a.oa.GD();b.size=a.oa.wD();b.clipid=a.oa.xz();if(a.videoData.L("embeds_web_enable_shorts_mode_playback_style_logging")){var c;b.playerheight=(null==(c=a.oa.getPlayerSize())?void 0:c.height)||0;var d;b.playerwidth=(null==(d=a.oa.getPlayerSize())?void 0:d.width)||0}a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId; c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.vl&&(c.infringe=1);(a.ag?0:a.Yg)&&(c.splay=1);(d=pT(a))&&(c.live=d);a.Xp&&(c.sautoplay=1);a.al&&(c.autoplay=1);a.Ay&&(c.sdetail=a.Ay);a.Ma&&(c.partnerid=a.Ma);a.osid&&(c.osid=a.osid);a.ZB&&(c.cc=g.WRa(a.ZB));return Object.assign(b,c)}; yab=function(a){if(navigator.connection&&navigator.connection.type)return hbb[navigator.connection.type]||hbb.other;if(g.tJ(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0}; d0=function(a){var b=new fbb,c;b.G=(null==(c=abb(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.oa.getPlaybackRate();c=a.oa.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.Mb&&(b.B=1);b.C=a.videoData.Yq;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.oa.getAudioTrack();c.uc&&c.uc.id&&"und"!==c.uc.id&&(b.D=c.uc.id);b.connectionType=yab(a);b.volume=a.oa.getVolume();b.muted=a.oa.isMuted();b.clipId=a.oa.xz()||"-";b.j=a.videoData.EU||"-";return b}; g.n0=function(a,b){g.I.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Me=new g.rL;this.Cd={unb:function(){return c.qoe}, Gnb:function(){return c.j}, enb:function(){return c.B}}; this.provider.videoData.Le()&&!this.provider.videoData.Ml&&(this.j=new g0(this.provider),g.N(this,this.j),this.qoe=new g.$_(this.provider,b),g.N(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.eh=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.eh,this.j));if("canary"===a.W.playerCanaryState||"holdback"===a.W.playerCanaryState)this.B=new X_(this.provider),g.N(this,this.B)}; WY=function(a){a.B&&kab(a.B);a.qoe&&Hab(a.qoe)}; ibb=function(a){if(a.qoe){a=a.qoe;for(var b=g.u(a.provider.W.wh),c=b.next();!c.done;c=b.next())b0(a,c.value);a.provider.videoData.wh&&b0(a,a.provider.videoData.wh);if(a.provider.W.L("html5_qoe_categories_manifestless_post_live")?a.provider.videoData.zc():a.provider.videoData.isLivePlayback)b=a.provider.videoData.j,cT(a.provider.videoData)&&b0(a,"manifestless"),b&&cR(b)&&b0(a,"live-segment-"+cR(b).toFixed(1));bT(a.provider.videoData)&&b0(a,"sabr");a.provider.videoData.gatewayExperimentGroup&&(b=a.provider.videoData.gatewayExperimentGroup, "EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"===b?b="spkadtrt":"EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"===b&&(b="spkadctrl"),b0(a,b));"yt"!==a.provider.W.va&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!HT(a.provider.videoData)&&a.sK(!0);a.provider.W.Dc()&&(b=U2a())&&a.qa("cblt",{m:b});lT(a.provider.videoData)&&(a.provider.oa.getProximaLatencyPreference()?b0(a,"proximaui"):b0(a,"proximaexp"))}}; m4a=function(a){if(a.provider.oa.Hi()){if(a.D)return;a.D=!0}a.j&&Yab(a.j);if(a.B){a=a.B;var b=g.$M(a.provider);0>a.j&&(a.j=b,a.delay.start());a.B=b;a.D=b}}; l4a=function(a,b){if(g.GG(b,1024)||g.GG(b,512)||g.GG(b,4)){if(a.B){var c=a.B;0<=c.B||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.eh){var d;null==(d=a.C.get(a.eh))||ebb(d,b)}else a.j&&ebb(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.$M(d.provider),f=d.getPlayerState(b.state);if(f!==d.Me){e=d.playTimeSecs&&(d.provider.oa.OE(), d.j.qoealert=["1"],d.tb=!0)),"B"!==f||"PL"!==d.Me&&"PB"!==d.Me||(d.Ia=!0),d.D=e);"PL"===d.Me&&("B"===f||"S"===f)||d.provider.W.Dc()?a0(d,e):(d.ub||"PL"!==f||(d.ub=!0,zab(d,e,d.provider.oa.QD())),xab(d,e));"PL"===f&&g.Su(d.Ld);var h=[f],l=b.state.seekSource;"S"===f&&l&&h.push("ss."+l);g.Z_(d,e,"vps",h);d.Me=f;d.Db=e;d.D=e;d.K=!0}f=c.Tg;g.EG(c,128)&&f&&(f.pK=f.pK||"",Dab(d,e,f.errorCode,f.PH,f.pK));(g.EG(c,2)||g.EG(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(0<=d.B&&(d.j.user_intent=[d.B.toString()]), d.N=!0);Bab(d)}a.B&&(d=a.B,lab(d),d.playerState=b.state,0<=d.B&&g.GG(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.oa.Hi()&&(a.Me=b.state)}; jbb=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.eh){var b;null!=(b=a.C.get(a.eh))&&e0(b.j)}else a.j&&e0(a.j.j)}; n4a=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.K){"PL"===b.Me&&(b.Me="N");var c=g.$M(b.provider);g.Z_(b,c,"vps",[b.Me]);b.N||(0<=b.B&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.Dc()&&b.qa("finalized",{});b.Ma=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.C.values()),c=b.next();!c.done;c=b.next())dbb(c.value);else a.j&&dbb(a.j);a.dispose()}; kbb=function(a,b,c,d){c.adFormat=c.Bd;var e=b.oa;b=new g0(new m0(c,b.W,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, bj:function(){return e.bj()}, Hi:function(){return e.Hi()}, QD:function(){return e.QD()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, UD:function(){return e.UD()}, getVisibilityState:function(){return e.getVisibilityState()}, Fi:function(){return e.Fi()}, Mq:function(){return e.Mq()}, getVolume:function(){return e.getVolume()}, isMuted:function(){return e.isMuted()}, iE:function(){return e.iE()}, xz:function(){return e.xz()}, GD:function(){return e.GD()}, wD:function(){return e.wD()}, getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()}, IQ:function(){e.IQ()}, OE:function(){e.OE()}, qa:function(f,h){e.qa(f,h)}})); b.B=d;g.N(a,b);return b}; lbb=function(){this.Xu=0;this.C=this.uu=this.Or=this.B=NaN;this.j={};this.bandwidthEstimate=NaN}; o0=function(a,b,c){g.I.call(this);var d=this;this.W=a;this.oa=b;this.B=c;this.j=new Map;this.eh="";this.Cd={yp:function(){return Array.from(d.j.keys())}}}; mbb=function(){this.j=g.jBa;this.array=[]}; obb=function(a,b,c){var d=[];for(b=nbb(a,b);bc)break}return d}; pbb=function(a,b){var c=[];a=g.u(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}; qbb=function(a){return a.array.slice(nbb(a,0x7ffffffffffff),a.array.length)}; nbb=function(a,b){a=Vb(a.array,function(c){return b-c.start||1}); return 0>a?-(a+1):a}; rbb=function(a,b){var c=NaN;a=g.u(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.startb&&a.D.start()))}; vbb=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.Y(g.QJ(d.namespace),d):a.Y(g.RJ(d.namespace),d)}}; wbb=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.tJ(a)&&(this.C=.01)}; q0=function(a,b){return b>a.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1}; xbb=function(a,b){this.videoData=a;this.j=b}; ybb=function(a,b,c){return ATa(b,c).then(function(){return SB(new xbb(b,b.C))},function(d){d instanceof Error&&g.pF(d); var e=AK('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=CK('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.KQa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Mv(),d:!!b.Yc,drm:b.Cj(),f18:0<=b.Yf.indexOf("itag=18"),c18:e};b.j&&(b.Cj()?(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=CK('video/mp4; codecs="avc1.42001E"'), e.cVP9=CK('video/webm; codecs="vp9"'));b.K&&(e.drmsys=b.K.keySystem,f=0,b.K.j&&(f=Object.keys(b.K.j).length),e.drmst=f);return new wK(d,e,h)})}; zbb=function(a){this.G=a;this.C=this.B=0;this.D=new uV(50)}; s0=function(a,b,c){g.IF.call(this);this.videoData=a;this.experiments=b;this.Z=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new Abb;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.tb?c.B=3:g.uT(a)&&(c.B=2);"NORMAL"===a.latencyClass&&(c.G=!0);var d=g.gJ(b,"html5_liveness_drift_proxima_override");if(lT(a)&&d){c.j=d;var e;(null==(e=a.j)?0:KPa(e))&&c.j--}if(g.XB("trident/")||g.XB("edge/"))c.C=Math.max(c.C,g.gJ(b,"html5_platform_minimum_readahead_seconds")||3);g.gJ(b,"html5_minimum_readahead_seconds")&& (c.C=g.gJ(b,"html5_minimum_readahead_seconds"));g.gJ(b,"html5_maximum_readahead_seconds")&&(c.K=g.gJ(b,"html5_maximum_readahead_seconds"));b.jb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.gJ(b,"html5_liveness_drift_chunk_override"))c.j=b;kT(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.N=1!==this.policy.B;this.j=r0(this,Bbb(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))}; Cbb=function(a,b){if(b)return b=a.videoData,b=Bbb(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),r0(a,b);if(a.B.length){if(1=c-a}; Ebb=function(a,b,c){b=u0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.N=2===a.policy.B||3===a.policy.B&&a.C}; Fbb=function(a,b){b=u0(a,b);a.G!==b&&a.ra("livestatusshift",b);a.G=b}; Bbb=function(a,b,c){c.tb&&b--;kT(c)&&(b=1);if(lT(c)&&(a=g.gJ(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;(null==(d=c.j)?0:KPa(d))&&b++}return b}; t0=function(a){return a.videoData.j?cR(a.videoData.j)||5:5}; r0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/t0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/t0(a))),b)}; Abb=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1}; x0=function(a){g.I.call(this);this.oa=a;this.W=this.oa.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.Ru(this.zf,1E3,this);this.Za=new v0({delayMs:g.gJ(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Ia=new v0({delayMs:g.gJ(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.ib=w0(this,"html5_seek_set_cmt");this.Na=w0(this,"html5_seek_jiggle_cmt");this.Wa=w0(this,"html5_seek_new_elem");this.Db=w0(this,"html5_unreported_seek_reseek");this.va=w0(this,"html5_long_rebuffer_jiggle_cmt"); this.Ca=new v0({delayMs:2E4});this.Ra=w0(this,"html5_seek_new_elem_shorts");this.eb=w0(this,"html5_seek_new_media_source_shorts_reuse");this.Xa=w0(this,"html5_seek_new_media_element_shorts_reuse");this.Ma=w0(this,"html5_reseek_after_time_jump");this.Z=w0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.ma=w0(this,"html5_gapless_slow_seek");this.Y=w0(this,"html5_gapless_slice_append_stuck");this.N=w0(this,"html5_ads_preroll_lock_timeout");this.tb=new v0({delayMs:g.gJ(this.W.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,kz:!this.W.L("html5_report_slow_ads_as_error")});this.ub=new v0({delayMs:g.gJ(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,kz:!this.W.L("html5_skip_slow_buffering_ad")});this.Mb=new v0({delayMs:g.gJ(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.Ea=w0(this,"html5_slow_start_no_media_source");this.B={};g.N(this,this.G)}; w0=function(a,b){var c=g.gJ(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new v0({delayMs:c,kz:a})}; Gbb=function(a,b){a.j=b}; y0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Ae(e,b,h),b.kz||f()):(b.xK&&b.B&&!b.D?(c=(0,g.kD)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.xK,c=b.j&&c-b.j>b.rR||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.qc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.oa.qa("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))}; v0=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.rR?1E3:b.rR,d=void 0===b.xK?3E4:b.xK;b=void 0===b.kz?!1:b.kz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.rR=c;this.xK=d;this.kz=b}; Kbb=function(a){g.I.call(this);var b=this;this.oa=a;this.W=this.oa.U();this.videoData=this.oa.getVideoData();this.policy=new Hbb;this.va=new x0(this.oa);this.K=this.B=this.Aa=this.mediaElement=this.playbackData=null;this.j=NaN;this.D=0;this.Ma=NaN;this.C=null;this.Na=NaN;this.G=this.Y=null;this.ma=!1;this.Za=NaN;this.tb=0;this.N=!1;this.Ea=new g.Ru(function(){Ibb(b,!1)},2E3); this.ub=new g.Ru(function(){z0(b)}); this.Wa=new g.Ru(function(){b.ma=!0;Jbb(b,{})}); this.timestampOffset=0;this.Ca=!0;this.Ra=0;this.ib=NaN;this.Ia=new g.Ru(function(){var c=b.W.Xf;c.j+=1E4/36E5;c.j-c.C>1/6&&(dRa(c),c.C=c.j);b.Ia.start()},1E4); this.Xa=this.Mb=!1;this.Z=0;this.eb=!1;g.N(this,this.va);g.N(this,this.Ea);g.N(this,this.Wa);g.N(this,this.ub);g.N(this,this.Ia)}; Mbb=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new zbb(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(cT(a.videoData)&&a.Aa){var c=a.Aa.sH.cj()||0;break a}if(a.videoData.j){c=a.videoData.j.va;break a}}c=0}return c}),a.B=new s0(a.videoData,a.W.experiments,function(){return a.Se(!0)})); Lbb(a)||(a.D=a.D||(g.JT(a.videoData)?0:a.videoData.startSeconds)||0)}; Obb=function(a,b){(a.Aa=b)?Nbb(a,!0):A0(a)}; Pbb=function(a,b){g.Su(a.va.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.Su(a.Ia):a.Ia.stop());if(a.mediaElement)if(8===b.EA.state&&hDa(b.state)&&g.yL(b.state)){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Ph();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?XK(c,Math.max(b-3.5,0)):XK(c,b-3.5);0<=d&&b>c.end(d)-1.1&&d+1c.start(d+1)-c.end(d)&&(d=c.start(d+1)+.2,.2>Math.abs(a.ib-d)||(a.oa.qa("seekover",{b:WK(c,"_"),cmt:b}),a.ib= d,a.seekTo(d,{Qv:!0,Ed:"seektimeline_postLiveDisc"})))}else(null==(c=b.state)?0:8===c.state)&&!a.Xa&&((a.W.L("embeds_enable_muted_autoplay")||g.lC(g.ZR(a.W)))&&0=e.B&&ce.D||3E3>g.kb()-e.K||(e.K=g.kb(),e.B.push(f),50=a.getCurrentTime()-a.Za,c=1E3<=a.tb,b||c||(b=a.oa.Cc(),b.qoe&&(b=b.qoe,c=g.$M(b.provider), g.Z_(b,c,"lh",[d?"1":"0"])),a.Mb=d,a.tb++,a.Za=a.getCurrentTime()))}; Ibb=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!u0(c,d)&&c.Wq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=dMath.abs(b)))if(b=a.L("html5_live_seek_timeline_timestamps")&&IT(a.videoData)?a.j-a.timestampOffset:a.j,b=a.mediaElement.getCurrentTime()-b,Math.abs(b)<=a.Ra|| a.L("html5_enable_new_seek_timeline_logic")&&.005>Math.abs(b))a.C&&a.C.resolve(a.mediaElement.getCurrentTime());else{if(a.videoData.cC)a.videoData.cC=!1;else if(!aT(a.videoData)&&a.j>=a.Se()-.1){a.j=a.Se();a.C.resolve(a.Se());zY(a.oa);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.va.j=c;a.Na=c;a.D=a.j;a.L("html5_enable_new_seek_timeline_logic")&&(a.N=!1)}catch(d){}}}}; Xbb=function(a){if(!a.mediaElement||0===a.mediaElement.Ik()||a.mediaElement.hasError())return!1;var b=0a.Se()||cMath.random())try{g.pF(new g.LC("b/152131571",btoa(f)))}catch(R){}return v.return(Promise.reject(new wK(r,{backend:"gvi"},t)))}})}; lcb=function(a,b){function c(A){return d(A.xhr)} function d(A){if(!a.isDisposed()){A=A?A.status:-1;var E=0,F=((0,g.kD)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var G="manifest.net.connect";429===A?(G="auth",E=2):200r.j&&3!==r.provider.oa.getVisibilityState()&&kab(r)}q.qoe&&(q=q.qoe,q.eb&&0>q.B&&q.provider.W.Yf&& Hab(q),q.provider.L("html5_flush_vis_to_qoe")&&a0(q));p.Aa&&E0(p);p.W.Wo&&!p.videoData.backgroundable&&p.mediaElement&&!p.Th()&&(p.isBackground()&&p.mediaElement.TG()?(p.qa("bgmobile",{suspend:1}),p.zo(!0,!0)):p.isBackground()||F0(p)&&p.qa("bgmobile",{resume:1}))}; this.Cd={Np:function(q){p.Np(q)}, Lob:function(q){p.Ie=q}, nnb:function(){return p.nA}, hI:function(){return p.oA}, Omb:function(){return p.cH}, U:function(){return p.W}, nf:function(){return p.mediaElement}, job:function(q){p.RJ(q)}}; this.logger.debug(function(){return"creating, type "+b}); this.Oh=new p0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.QJ("endcr")||g.EG(p.playerState,32)||zY(p); e(q,r,p.playerType)}); g.N(this,this.Oh);g.N(this,this.pd);qcb(this,m);this.videoData.subscribe("dataupdated",this.lba,this);this.videoData.subscribe("dataloaded",this.fN,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.qa,this);this.videoData.subscribe("ctmpstr",this.eB,this);this.xN();r3a(this.jg);this.visibility.subscribe("visibilitystatechange",this.jg)}; lL=function(a){return a.L("html5_not_reset_media_source")&&!a.Cj()&&!a.videoData.isLivePlayback&&g.CT(a.videoData)&&!a.W.supportsGaplessShorts()}; qcb=function(a,b){if(2===a.playerType||a.W.pp)b.C0=!0;var c=$Ra(b.Bd,b.sz,a.W.D,a.W.K);c&&(b.adFormat=c);2===a.playerType&&(b.al=!0);if(a.isFullscreen()||a.W.D)c=g.EC("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&B0(a,b.endSeconds)}; scb=function(a){if(a.videoData.Y){var b=a.qe.fd();a.videoData.Ar=a.videoData.Ar||(null==b?void 0:b.eO());a.videoData.Rr=a.videoData.Rr||(null==b?void 0:b.iO())}if(LTa(a.videoData)||!XTa(a.videoData))b=a.videoData.errorDetail,a.Bg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.vn||void 0);a.videoData.Zf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&rcb(a)}; tcb=function(a){n4a(a.nA);g.vb(a.nA);for(var b=a.oA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())n4a(d.value);b.j.clear();g.vb(a.oA)}; ucb=function(a){return a.mediaElement&&a.mediaElement.Lu()?a.mediaElement.Kb():null}; H0=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.Le())return!0;a.Bg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.yY=function(a,b){(b=void 0===b?!1:b)||g.JT(a.videoData)||WY(a.Cc());a.zt=b;!H0(a)||a.Rp.At()?g.tJ(a.W)&&a.videoData.isLivePlayback&&a.Rp.At()&&!a.Rp.j&&!a.zt&&a.fN():(a.Rp.start(),b=a.Cc(),g.$M(b.provider),b.qoe&&Cab(b.qoe),a.fN())}; vcb=function(a){var b=a.videoData;ocb(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=yK(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Bg(c.errorCode,2,unescape(a.videoData.errorReason),vK(c.details),a.videoData.errorDetail,a.videoData.vn||void 0):a.handleError(c))})}; D3a=function(a,b){a.jd=b;a.Aa&&M9a(a.Aa,new g.K_(b))}; xcb=function(a){if(!g.EG(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.Qp=g.Lb(a.videoData.Ia),g.rT(a.videoData)){a.Sb.tick("bpd_s");I0(a).then(function(){a.Sb.tick("bpd_c");if(!a.isDisposed()){a.zt&&(a.Gc(uL(uL(a.playerState,512),1)),F0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&B0(a,c.endSeconds);a.Rp.j=!0;J0(a,"dataloaded");a.yr.At()&&wcb(a);jab(a.Ck,a.Sf)}}); a.L("html5_log_media_perf_info")&&a.qa("loudness",{v:a.videoData.Wf.toFixed(3)},!0);var b=YTa(a.videoData);b&&a.qa("playerResponseExperiment",{id:b},!0);a.LM()}else J0(a,"dataloaded")}; I0=function(a){K0(a);a.Sf=null;var b=ybb(a.W,a.videoData,a.Th());a.fF=b;a.fF.then(function(c){ycb(a,c)},function(c){a.isDisposed()||(c=yK(c),a.visibility.isBackground()?(L0(a,"vp_none_avail"),a.fF=null,a.Rp.reset()):(a.Rp.j=!0,a.Bg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",vK(c.details))))}); return b}; V_=function(a){a.logger.debug("Updating for format change");I0(a).then(function(){return F0(a)}); g.xL(a.playerState)&&a.playVideo()}; ycb=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.logger.debug("finished building playback data");a.Sf=b;Mbb(a.pd,a.Sf);if(a.videoData.isLivePlayback){var c=H4a(a.qe.Jt,a.videoData.videoId)||a.Aa&&!isNaN(a.Aa.Ia);c=a.L("html5_onesie_live")&&c;0gRa(b.W.Xf,"sticky-lifetime")?"auto":sP[mP()]:d=sP[mP()],d=g.qP("auto",d,!1,"s");if(rP(d)){d=W$a(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.u(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.B)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Epa()&&!g.tJ(b.W)&&LK(c.j.videoInfos[0])&& (f=Math.min(f,g.FK.large));h=g.gJ(b.W.experiments,"html5_chipset_soft_cap");0h&&0!==h&&b.j===h)){var l;f=Y$a(c,null==(l=e.j)?void 0:l.videoInfos);l=c.oa.getPlaybackRate();1n&&(n+=l.j);for(var p=0;pa.Qa.getDuration()&&a.Qa.wl(f)}else a.Qa.wl(e);s9a(a.Aa,a.Qa,c,d);a.ra("mediasourceattached")}}; x9a=function(a,b){Ccb(a,b.reason,b.j.info,b.token,b.videoId)}; U_=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d,e,f;return g.H(function(h){if(1==h.j){a.Aa&&a.Aa.Lv();a.Aa&&a.Aa.isDisposed()&&K0(a);if(a.L("html5_enable_vp9_fairplay")&&a.Cj()&&null!=(d=a.videoData.j)){var l=d,m;for(m in l.j)l.j.hasOwnProperty(m)&&(l.j[m].j=null,l.j[m].C=!1)}a.Gc(uL(a.playerState,2048));a.ra("newelementrequired");return b?g.z(h,I0(a),2):h.Ka(2)}a.videoData.zc()&&(null==(e=a.Aa)?0:e.Ia)&&((f=a.isAtLiveHead())&&aT(a.videoData)?a.seekTo(Infinity,{Ed:"videoPlayer_getNewElement"}): a.videoData.ze&&a.Aa&&(l=a.Aa,l.manifest.zc&&(l.manifest.ze||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{Ed:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):eR(l.manifest)&&J_(l))));c&&a.seekTo(0);g.EG(a.playerState,8)&&a.playVideo();g.Aa(h)})}; Ncb=function(a,b){a.videoData.Y=!1;b&&U_(a);a.Aa&&p9a(a.Aa)}; m3a=function(a,b){a.qa("newelem",{r:b});U_(a)}; Ocb=function(a,b){a.Sb.D.iQ();g.EG(a.playerState,32)||(a.Gc(uL(a.playerState,32,null==b?void 0:b.seekSource)),g.EG(a.playerState,8)&&a.pauseVideo(!0),a.ra("beginseeking",a));a.Rc()}; N3a=function(a,b){b=null==b?void 0:b.seekSource;g.EG(a.playerState,32)?(a.Gc(wL(a.playerState,16,32,b)),a.ra("endseeking",a)):g.EG(a.playerState,2)||a.Gc(uL(a.playerState,16,b));a.Sb.D.oQ(a.videoData,a.playerState.isPaused())}; oXa=function(a){var b=0,c="";if(a.jd){if(a.jd.qp)return"D,";b=a.jd.dO();c=a.jd.gO().substring(0,4)}else a.dc&&(b=a.dc.dO(),c=a.dc.gO().substring(0,4));return 0a.vY+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&gQa(a.videoData.j))){var b=a.Cc();if(b.qoe){b=b.qoe;var c=b.provider.oa.QD(),d=g.$M(b.provider);zab(b,d,c);c=c.C;isNaN(c)||g.Z_(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.rJ(b.U())?!0:"TVHTML5"===g.uR(b.U())?"6"===b.Sm:!1):b=g.rJ(a.W);b&&a.qa("rawlat",{l:xV(a.lS,"rawlivelatency").toFixed(3)});a.vY=Date.now()}a.videoData.B&&PK(a.videoData.B)&&(b=ucb(a))&& b.videoHeight!==a.yP&&(a.yP=b.videoHeight,Ccb(a,"a",Ecb(a,a.videoData.ib)))}; Ecb=function(a,b){if("auto"===b.j.video.quality&&PK(b.Qh())&&a.videoData.rd)for(var c=g.u(a.videoData.rd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.yP&&"auto"!==d.j.video.quality)return d.Qh();return b.Qh()}; pcb=function(a){if(!aT(a.videoData))return NaN;var b=0;a.Aa&&a.videoData.j&&(b=cT(a.videoData)?a.Aa.sH.cj()||0:a.videoData.j.va);return(0,g.kD)()/1E3-a.mf()-b}; Wcb=function(a){a.mediaElement&&a.mediaElement.Th()&&(a.aJ=(0,g.kD)());a.W.gr?g.GB(function(){Vcb(a)},0):Vcb(a)}; Vcb=function(a){var b;if(null==(b=a.Qa)||!b.pm()){if(a.mediaElement)try{a.fK=a.mediaElement.playVideo()}catch(d){L0(a,"err."+d)}if(a.fK){var c=a.fK;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d}); if(!g.EG(a.playerState,4)&&!g.EG(a.playerState,256)&&a.fK===c)if(d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message}); else{var e="promise";d&&d.name&&(e+=";m."+d.name);L0(a,e);a.FV=!0;a.videoData.ag=!0}})}}}; L0=function(a,b){g.EG(a.playerState,128)||(a.Gc(wL(a.playerState,1028,9)),a.qa("dompaused",{r:b}),a.ra("onAutoplayBlocked"))}; F0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=Kcb(a);var d;null==(d=a.Aa)||d.resume()}else K0(a),a.videoData.ib&&(c=a.videoData.ib.nC());b=c;d=a.mediaElement.TG();c=!1;d&&null!==b&&b.resource===d.resource||(Xcb(a,b),c=!0);g.EG(a.playerState,2)||(b=a.pd,b.G||!(0=Math.abs(b-c)||1E-6>=Math.abs(b-d)||b>=c&&b<=d}; Jdb=function(a){var b,c=null==(b=g.XT(a))?void 0:b.Aa;a.xb&&hT(a.getVideoData())&&c&&c.policy.Na&&(b=g.gJ(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=1E3*Hdb(a)-b,a.L("html5_gapless_new_slr")?(a=a.pL,Idb(a.app,"gaplessshortslooprange"),b=new g.PJ(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.fd())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))}; Kdb=function(a){if(!(g.EG(a.zb.getPlayerState(),64)&&a.Rd().isLivePlayback&&5E3>a.Fb.startTimeMs)){if("repeatChapter"===a.Fb.type){var b,c=null==(b=wUa(a.Bb()))?void 0:b.Ei(),d;b=null==(d=a.getVideoData())?void 0:d.il;c instanceof g.oW&&b&&(d=b[SW(b,a.Fb.startTimeMs)],c.BF(0,d.title));isNaN(Number(a.Fb.loopCount))?a.Fb.loopCount=0:a.Fb.loopCount++;1===a.Fb.loopCount&&a.Va.ob("innertubeCommand",a.getVideoData().J8)}c={Ed:"application_loopRangeStart"};if("clips"===a.Fb.type||"shortsLoop"===a.Fb.type)c.seekSource= 58;a.zb.seekTo(.001*a.Fb.startTimeMs,c)}}; kdb=function(a,b){var c=a.Va.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}; Hdb=function(a,b){b=g.XT(a,b);if(!b)return 0;b=V0(a,b);return f1(a,vY(b),b)}; f1=function(a,b,c){if(a.Nf(c)){c=c.getVideoData();if(g1(a))c=b;else{a=a.jd;for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.yd===e.yd){b+=e.yc/1E3;break}d=b;a=g.u(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.yd===e.yd)break;var f=e.yc/1E3;if(fd?e=!0:1d.length||(d[0]in keb&&(f.clientName=keb[d[0]]),d[1]in leb&&(f.platform=leb[d[1]]),f.applicationState=h,f.clientVersion=2=d?f():(a.actionType=a.G?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.D=!0,KH("_start",a.actionType)&&Feb(a)))}; Heb=function(a,b){a=g.u(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){NH("ad_i");g.LH({isMonetized:!0});break}}; q1=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||null!=b&&b.Ea)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),MH("video_to_ad",b)}; BDa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});MH("ad_to_video",b);Feb(a)}; Feb=function(a){if(a.D)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.C&&"video_to_ad"===a.actionType)JH("video_to_ad");else if(a.J.L("web_csi_via_jspb")){var b=new XA;b=S(b,8,2);var c=new YA;c=S(c,21,Ieb(a.C));c=S(c,7,4);b=Sj(c,XA,22,b);b=S(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&P(b,76,a.contentCpn),a.videoId&&P(b,78,a.videoId)):(a.adCpn&&P(b,76,a.adCpn),a.adVideoId&&P(b,78,a.adVideoId));a.adFormat&&P(b,12,a.adFormat);a.contentCpn&&P(b, 8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&P(b,28,a.adCpn);a.adVideoId&&P(b,20,a.adVideoId);g.qB(GH)(b,a.actionType)}else b={adBreakType:iDa(a.C),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.LH(b,a.actionType)}; Ieb=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}}; r1=function(a){g.I.call(this);this.J=a;this.j=new Map;this.B=new yC(this);g.N(this,this.B);this.B.T(this.J,g.QJ("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.RJ("ad"),this.onCueRangeExit,this)}; Keb=function(a,b){(b=a.j.get(b))&&Jeb(a,b)}; Jeb=function(a,b){a.J.Ao([b.xe],b.Ho);a.j.delete(b.xe.id)}; Leb=function(a,b,c,d,e){g.PJ.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; s1=function(a){this.J=a}; t1=function(a){this.J=a}; u1=function(a){return a.J.U().L("enable_active_view_web_shorts_video")||a.J.U().L("enable_active_view_lr_shorts_video")}; v1=function(a){var b,c;return null!=(c=null==(b=a.J.getVideoData(1))?void 0:g.JT(b))?c:!1}; UM=function(a,b){return a.J.U().L(b)}; Meb=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")}; ZM=function(a){var b,c,d;return(null==(b=a.J.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1}; eHa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")}; Neb=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")}; HFa=function(a){return a.J.U().experiments.jb("enable_desktop_player_underlay")}; Oeb=function(a){return a.J.U().experiments.jb("html5_load_empty_player_in_media_break_sub_lra")}; DL=function(a){return a.J.U().experiments.jb("html5_load_ads_instead_of_cue")}; EL=function(a){return a.J.U().experiments.jb("html5_preload_ads")}; w1=function(a){return a.J.U().experiments.jb("html5_rebase_video_to_ad_timeline")}; Peb=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}}; Qeb=function(){g.IF.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.u(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; x1=function(){if(null===Reb){Reb=new Qeb;Gq(Fu).B="b";var a=Gq(Fu),b="h"==yu(a)||"b"==yu(a),c=!(Mr(),!1);b&&c&&(a.D=!0,a.G=new Cja)}return Reb}; Seb=function(a,b,c){a.j[b]=c}; Teb=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; y1=function(a,b,c){this.Fa=a;this.J=b;this.Da=c;this.j=new Map;x1().subscribe("adactiveviewmeasurable",this.Jw,this);x1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Iw,this);x1().subscribe("adviewableimpression",this.Kw,this);x1().subscribe("adaudioaudible",this.Gw,this);x1().subscribe("adaudiomeasurable",this.Hw,this)}; A1=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?CG("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),vq(Mr().Mc,"fmd",1),Mka(Gq(Fu),c),Seb(x1(),b,{lO:function(){if(!d)return{};if(u1(a.Da.get())){var f=a.J.getPresentingPlayerType(!0),h;return null!=(h=a.J.getVideoData(f))&&h.isAd()?{currentTime:a.Fa.get().getCurrentTimeSec(f,!1),duration:d,isPlaying:z1(a.Fa.get(),f).isPlaying(),isVpaid:!1,isYouTube:!0,volume:a.Fa.get().isMuted()?0:a.Fa.get().getVolume()/100}:{}}return{currentTime:a.Fa.get().getCurrentTimeSec(2, !1),duration:d,isPlaying:2===a.Fa.get().getPresentingPlayerType()&&z1(a.Fa.get(),2).isPlaying(),Snb:!1,Tnb:!0,volume:a.Fa.get().isMuted()?0:a.Fa.get().getVolume()/100}}}))}; B1=function(a,b){a.j.has(b)?(a.j.delete(b),delete x1().j[b]):CG("Unexpected unregistration of layout in LidarApi")}; Web=function(a,b){var c={};Ueb(a,c,b);Veb(c);c.LACT=C1(function(){return EE().toString()}); c.VIS=C1(function(){return a.getVisibilityState().toString()}); c.SDKV="h.3.0";c.VOL=C1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()}); c.VED="";return c}; Xeb=function(a,b){var c={};if(b)return c;if(!a.kind)return g.oF(Error("AdPlacementConfig without kind")),c;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.oF(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=C1(Rd(Math.round(jf(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=C1(Rd("0"));return c}; C1=function(a){return{toString:function(){return a()}}}; Yeb=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)} function e(l,m){(m=c[m])&&(f[l]=h(m))} if(!c||g.md(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l}; e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f}; Ueb=function(a,b,c){b.CPN=C1(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.pF(Error("Video data is null.")),d=null);return d}); b.AD_MT=C1(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()}); b.MT=C1(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()}); b.P_H=C1(function(){return a.qb().Rh().height.toString()}); b.P_W=C1(function(){return a.qb().Rh().width.toString()}); b.PV_H=C1(function(){return a.qb().getVideoContentRect().height.toString()}); b.PV_W=C1(function(){return a.qb().getVideoContentRect().width.toString()})}; Veb=function(a){a.CONN=C1(Rd("0"));a.WT=C1(function(){return Date.now().toString()})}; Zeb=function(){}; $eb=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,v,x;g.H(function(A){switch(A.j){case 1:f=!!b.scrubReferrer;h=g.Gu(b.baseUrl,Yeb(c,f,d));l={};if(!b.headers){A.Ka(2);break}m=a.B();if(!m.j){n=m.getValue();A.Ka(3);break}return g.z(A,m.j,4);case 4:n=A.B;case 3:p=n;q=g.u(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.mB("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.mB("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.mB("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]= g.mB("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(v=a.C())&&(l["X-Goog-PageId"]=v);break;case "AUTH_USER":x=a.j();!p&&x&&(l["X-Goog-AuthUser"]=x);break;case "ATTRIBUTION_REPORTING_ELIGIBLE":l["Attribution-Reporting-Eligible"]="event-source"}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.eE(h,void 0,f,0!==Object.keys(l).length?l:void 0,"",!0,e),g.Aa(A)}})}; afb=function(a,b,c){this.B=a;this.C=b;this.j=c}; bfb=function(a){this.j=a}; D1=function(a,b,c,d){var e=void 0===e?new afb(function(){var f=a.U(),h=a.getVideoData(1);return g.oS(f,h?g.FT(h):"")},function(){return a.U().pageId},function(){return a.U().Ca},function(){return a.U().experiments}):e; this.J=a;this.B=b;this.wb=c;this.Ua=d;this.D=e;this.mG=null;this.j=new Map;this.C=new bfb(e)}; cfb=function(a,b,c,d,e){var f=ABa(a.B.get(),c);f?(c=iK(a,BBa(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):CG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; xBa=function(a,b){return iK(a,b)}; KL=function(a,b){g.XC("adsClientStateChange",b)}; dfb=function(a,b){a.j.has(b.Cz())?CG("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Cz(),b)}; efb=function(a,b){a.j.delete(b.Cz())||CG("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; BBa=function(a){var b=bJ(a.Ba,"metadata_type_ad_placement_config");a=bJ(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,VY:a}}; iK=function(a,b,c,d,e,f){var h=c?ffb(a):{},l=c?gfb(a,c.layoutId):{},m=hfb(a),n,p=null!=e?e:null==(n=a.Ua.get().Te(2))?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=a.Ua.get().Te(1).clientPlaybackNonce);e={};a=Object.assign({},Web(a.J,d),Xeb(b.adPlacementConfig,void 0!==(null==c?void 0:c.renderingContent)),l,h,m,(e.FINAL=C1(function(){return"1"}),e.AD_CPN=C1(function(){return p||""}),e)); void 0!==(null==c?void 0:c.renderingContent)||(a.SLOT_POS=C1(function(){return(b.VY||0).toString()})); c={};f=Object.assign({},a,f);a=g.u(Object.values(ifb));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],null!=h&&null!=h.toString()&&(c[d]=h.toString());return c}; ffb=function(a){var b={},c,d=null==(c=a.mG)?void 0:c.lj/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=C1(function(){return Math.round(1E3*d).toString()})); b.SURVEY_LOCAL_TIME_EPOCH_S=C1(function(){return Math.round(Date.now()/1E3).toString()}); return b}; gfb=function(a,b){a=a.j.get(b);if(!a)return{};a=a.YN();if(!a)return{};b={};return b.YT_ERROR_CODE=a.rL.toString(),b.ERRORCODE=a.yG.toString(),b.ERROR_MSG=a.errorMessage,b}; hfb=function(a){var b={},c=a.J.getVideoData(1);b.ASR=C1(function(){var d;return null!=(d=null==c?void 0:c.Gx)?d:null}); b.EI=C1(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null}); return b}; E1=function(a,b,c){g.I.call(this);this.J=a;this.De=b;this.Da=c;this.listeners=[];this.DP=null;this.GM=new Map;b=new g.DK(this);g.N(this,b);b.T(a,"videodatachange",this.kba);b.T(a,"serverstitchedvideochange",this.Faa);this.vv=this.Te()}; kfb=function(a,b,c){var d=jfb(a,b,c);a.vv=d;a.listeners.forEach(function(e){e.MJ(d)})}; jfb=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.yd,l=b.title,m=b.Ek,n=b.rl,p=b.isMdxPlayback,q=b.Lm,r=b.mdxEnvironment,t=b.isAutonav,v=b.Xp,x=b.al,A=b.gp,E=b.videoId||"",F=b.profilePicture||"",G=b.Gl||"",L=b.Pn()||!1;b=b.hv||void 0;h=a.De.get().j.get(h)||{layoutId:null,slotId:null};var Q=a.J.getVideoData(1),R=Q.zc();Q=Q.getPlayerResponse();c=1E3*a.J.getDuration(c);a=1E3*a.J.getDuration(1);var aa,na,ta=(null==Q?void 0:null==(aa=Q.playerConfig)?void 0:null==(na=aa.daiConfig)? void 0:na.enableDai)||!1,la,va;aa=(null==Q?void 0:null==(la=Q.playerConfig)?void 0:null==(va=la.daiConfig)?void 0:va.enablePreroll)||!1;return Object.assign({},h,{videoId:E,author:d,clientPlaybackNonce:e,Bba:c,Ds:a,daiEnabled:ta,nW:aa,isListed:f,zc:R,profilePicture:F,title:l,Gl:G,Ek:m,rl:n,hv:b,isMdxPlayback:p,Lm:q,mdxEnvironment:r,isAutonav:t,Xp:v,al:x,gp:A,Pn:L})}; lfb=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4}}; F1=function(a,b,c){g.I.call(this);this.J=a;this.Ua=b;this.Da=c;this.listeners=[];this.XC=[];this.j=function(){CG("Called 'doUnlockPreroll' before it's initialized.")}; b=new yC(this);c=new g.DK(this);g.N(this,c);g.N(this,b);b.T(a,"progresssync",this.daa);b.T(a,"presentingplayerstatechange",this.U$);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.lh);b.T(a,"overlayvisibilitychange",this.Fj);b.T(a,"shortsadswipe",this.Hj);b.T(a,"resize",this.Yb);c.T(a,g.QJ("appad"),this.Ej)}; G1=function(a){v1(a.Da.get())||a.j()}; mfb=function(a,b){a.XC=a.XC.filter(function(c){return c!==b})}; nfb=function(a,b){var c;b=null!=(c=a.Ua.get().GM.get(b))?c:null;if(null===b)return CG("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a=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{j6:new xv(b,c),z8:new TP(b,c-b,a.context,a.identifier,a.event,a.j)}}; vfb=function(){this.j=[]}; FDa=function(a,b,c){var d=g.Tb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; P1=function(a,b,c){g.I.call(this);this.J=a;this.Da=b;this.Oa=c;this.listeners=[];this.D=!1;this.eL=[];this.B=null;this.G=new O1(this,Neb(b.get()));this.C=new vfb;this.j=null}; wfb=function(a,b){a.eL.push(b);for(var c=!1,d=g.u(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.AZ(b)||c;a.D=c}; yfb=function(a,b){KL(a.Oa.get(),{cuepointTrigger:{event:xfb(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.yh,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})}; xfb=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Te(a,"Unexpected cuepoint event")}}; Q1=function(a){this.J=a}; zfb=function(a,b){a.J.cueVideoByPlayerVars(b,2)}; R1=function(a){this.J=a}; S1=function(a){this.J=a}; Afb=function(a){this.J=a}; Bfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=CJ(function(){return new uN}); g.N(this,this.gb);this.Cb=CJ(function(){return new vN(f.gb,f.Da)}); g.N(this,this.Cb);this.hd=CJ(function(){return new fN}); g.N(this,this.hd);this.Rb=CJ(function(){return new dN(a)}); g.N(this,this.Rb);this.Lb=CJ(function(){return new wN(f.gb,f.Cb,f.Da)}); g.N(this,this.Lb);this.De=CJ(function(){return new AN}); g.N(this,this.De);this.uf=CJ(function(){return new L1(b.U())}); g.N(this,this.uf);this.vc=CJ(function(){return new M1(b)}); g.N(this,this.vc);this.Ab=CJ(function(){return new DJ(e)}); g.N(this,this.Ab);this.Bc=CJ(function(){return new p1(b)}); g.N(this,this.Bc);this.wc=CJ(function(){return new r1(b)}); g.N(this,this.wc);this.Nd=CJ(function(){return new Q1(b)}); g.N(this,this.Nd);this.kd=CJ(function(){return new s1(b)}); g.N(this,this.kd);this.Da=CJ(function(){return new t1(b)}); g.N(this,this.Da);this.cg=CJ(function(){return new K1(d)}); g.N(this,this.cg);this.Wb=CJ(function(){return new hJ(f.Da)}); g.N(this,this.Wb);this.He=CJ(function(){return new WM(f.gb,f.Lb,f.Cb,f.Da,f.Wb,"SLOT_TYPE_ABOVE_FEED",f.Yj)}); g.N(this,this.He);this.Df=CJ(function(){return new R1(b)}); g.N(this,this.Df);this.Tn=CJ(function(){return new GJ}); g.N(this,this.Tn);this.Ua=CJ(function(){return new E1(b,f.De,f.Da)}); g.N(this,this.Ua);this.kc=new zN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.If=CJ(function(){return new P1(b,f.Da,f.Oa)}); g.N(this,this.If);this.Sc=CJ(function(){return new S1(b)}); g.N(this,this.Sc);this.Fa=CJ(function(){return new F1(b,f.Ua,f.Da)}); g.N(this,this.Fa);this.Ye=CJ(function(){return new HJ}); this.wb=CJ(function(){return new y1(f.Fa,b,f.Da)}); g.N(this,this.wb);this.Oa=CJ(function(){return new D1(b,f.hd,f.wb,f.Ua)}); g.N(this,this.Oa);this.Oi=new bN(aN,T1,function(l,m,n,p){return OM(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua); g.N(this,this.Oi);this.od=new cN(this.Rb,this.He,c,this.Da,a,this.Ua,this.Fa,this.Bc);g.N(this,this.od);var h=new o1(b,this.od,this.Fa,this.Ua,this.If);this.Dg=CJ(function(){return h}); this.Mt=h;this.Yj=new YM(this.Rb,this.Lb,this.Dg,this.If,this.Fa,this.Da,this.Oa,this.Sc);g.N(this,this.Yj);this.Gf=new eN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Gf);this.wd=new HM(this.Da,this.Rb,this.Lb,this.He,this.Ua,this.Gf,c);g.N(this,this.wd);this.xi=CJ(function(){return new SJ(f.cg,f.Cb,f.Wb,f.Da,f.Oa,f.Fa,f.Sc)}); g.N(this,this.xi);this.le=CJ(function(){return new TJ}); g.N(this,this.le);this.dg=new jN(a,this.vc,this.Da);g.N(this,this.dg);this.Nb=new kN(a);g.N(this,this.Nb);this.fv=new lN(a);g.N(this,this.fv);this.vg=new nN(a,this.Dg);g.N(this,this.vg);this.lf=new oN(a,this.wc,this.Fa,this.Ua);g.N(this,this.lf);this.uw=new pN(a,this.Ua);g.N(this,this.uw);this.Oe=new qN(a);g.N(this,this.Oe);this.oe=new tN(a);g.N(this,this.oe);this.Mi=new rN(a);g.N(this,this.Mi);this.Bx=new sN(a);g.N(this,this.Bx);this.oe=new tN(a);g.N(this,this.oe);this.je=CJ(function(){return new gN}); g.N(this,this.je);this.Pi=CJ(function(){return new hN(f.Fa)}); g.N(this,this.Pi);this.pV=CJ(function(){return new dCa(f.vc,f.Oa,a,f.hd,f.wb,f.Ab,f.Da)}); g.N(this,this.pV);this.wi=CJ(function(){return new mK(f.wd,f.Rb,f.gb)}); g.N(this,this.wi);this.Di=CJ(function(){return new oK(f.Da,f.Oa,f.Oe,f.wb)}); g.N(this,this.Di);this.Ni=CJ(function(){return new eEa(a,f.oe,f.Oe,f.Ua,f.Sc,f.Fa,f.Oa,f.De,f.If,f.wb,f.Ye,f.Nd,f.wc,f.Bc,f.kd,f.uf,f.Ab,f.Df,f.Da,f.hd)}); g.N(this,this.Ni);this.bR=CJ(function(){return new xCa(f.Fa,f.Oa,f.Da,f.wb)}); g.N(this,this.bR);this.In=CJ(function(){return new oEa(f.vc,f.Fa,f.Oa,f.hd,f.wb,f.fv,f.Bx,f.Ab,f.Da,c)}); g.N(this,this.In);this.W0=CJ(function(){return new fCa(f.vc)}); g.N(this,this.W0);this.CM=new J1(a,this.Tn,this.gb);g.N(this,this.CM);this.Wg={Tw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Yj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.od],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gf]]),Dq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xi],["SLOT_TYPE_ABOVE_FEED",this.le],["SLOT_TYPE_FORECASTING", this.le],["SLOT_TYPE_IN_PLAYER",this.le],["SLOT_TYPE_PLAYER_BYTES",this.le],["SLOT_TYPE_PLAYER_UNDERLAY",this.le],["SLOT_TYPE_PLAYBACK_TRACKING",this.le],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.le]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.dg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Nb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.fv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.lf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.lf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.lf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.lf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.lf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Bx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oe]]),Kr:new Map([["SLOT_TYPE_ABOVE_FEED",this.je],["SLOT_TYPE_AD_BREAK_REQUEST",this.je],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.Pi],["SLOT_TYPE_PLAYER_UNDERLAY",this.je],["SLOT_TYPE_PLAYBACK_TRACKING",this.je],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.je]]),er:new Map([["SLOT_TYPE_ABOVE_FEED", this.pV],["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.Di],["SLOT_TYPE_PLAYER_BYTES",this.Ni],["SLOT_TYPE_PLAYBACK_TRACKING",this.bR],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.bR],["SLOT_TYPE_IN_PLAYER",this.In],["SLOT_TYPE_PLAYER_UNDERLAY",this.W0]])};this.listeners=[this.hd.get()];this.nw={wd:this.wd,dk:this.Da.get(),kb:this.Ab.get(),Yw:this.Fa.get(),od:this.od,qt:this.gb.get(),jA:this.Tn.get(),zm:this.dg,nk:this.hd.get(),oo:this.Ua.get()}}; Cfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=CJ(function(){return new uN}); g.N(this,this.gb);this.Cb=CJ(function(){return new vN(f.gb,f.Da)}); g.N(this,this.Cb);this.hd=CJ(function(){return new fN}); g.N(this,this.hd);this.Rb=CJ(function(){return new dN(a)}); g.N(this,this.Rb);this.Lb=CJ(function(){return new wN(f.gb,f.Cb,f.Da)}); g.N(this,this.Lb);this.De=CJ(function(){return new AN}); g.N(this,this.De);this.uf=CJ(function(){return new L1(b.U())}); g.N(this,this.uf);this.vc=CJ(function(){return new M1(b)}); g.N(this,this.vc);this.Ab=CJ(function(){return new DJ(e)}); g.N(this,this.Ab);this.Bc=CJ(function(){return new p1(b)}); g.N(this,this.Bc);this.wc=CJ(function(){return new r1(b)}); g.N(this,this.wc);this.Nd=CJ(function(){return new Q1(b)}); g.N(this,this.Nd);this.kd=CJ(function(){return new s1(b)}); g.N(this,this.kd);this.Da=CJ(function(){return new t1(b)}); g.N(this,this.Da);this.cg=CJ(function(){return new K1(d)}); g.N(this,this.cg);this.Wb=CJ(function(){return new hJ(f.Da)}); g.N(this,this.Wb);this.He=CJ(function(){return new WM(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,f.Yj)}); g.N(this,this.He);this.Df=CJ(function(){return new R1(b)}); g.N(this,this.Df);this.Tn=CJ(function(){return new GJ}); g.N(this,this.Tn);this.Ua=CJ(function(){return new E1(b,f.De,f.Da)}); g.N(this,this.Ua);this.kc=new zN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.If=CJ(function(){return new P1(b,f.Da,f.Oa)}); this.Fa=CJ(function(){return new F1(b,f.Ua,f.Da)}); g.N(this,this.Fa);this.wb=CJ(function(){return new y1(f.Fa,b,f.Da)}); g.N(this,this.wb);this.Oa=CJ(function(){return new D1(b,f.hd,f.wb,f.Ua)}); g.N(this,this.Oa);this.Ye=CJ(function(){return new HJ}); g.N(this,this.Ye);this.Oi=new bN(aN,T1,function(l,m,n,p){return OM(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua); g.N(this,this.Oi);this.od=new cN(this.Rb,this.He,c,this.Da,a,this.Ua,this.Fa,this.Bc);g.N(this,this.od);var h=new o1(b,this.od,this.Fa,this.Ua,this.If);this.Dg=CJ(function(){return h}); this.Mt=h;this.Yj=new YM(this.Rb,this.Lb,this.Dg,this.If,this.Fa,this.Da,this.Oa);g.N(this,this.Yj);this.Gf=new eN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Gf);this.wd=new HM(this.Da,this.Rb,this.Lb,this.He,this.Ua,this.Gf,c);g.N(this,this.wd);this.xi=CJ(function(){return new SJ(f.cg,f.Cb,f.Wb,f.Da,f.Oa,f.Fa)}); g.N(this,this.xi);this.le=CJ(function(){return new TJ}); g.N(this,this.le);this.dg=new jN(a,this.vc,this.Da);g.N(this,this.dg);this.Nb=new kN(a);g.N(this,this.Nb);this.fv=new lN(a);g.N(this,this.fv);this.vg=new nN(a,this.Dg);g.N(this,this.vg);this.lf=new oN(a,this.wc,this.Fa,this.Ua);g.N(this,this.lf);this.Oe=new qN(a);g.N(this,this.Oe);this.Mi=new rN(a);g.N(this,this.Mi);this.Bx=new sN(a);g.N(this,this.Bx);this.Sc=CJ(function(){return new S1(b)}); g.N(this,this.Sc);this.oe=new tN(a);g.N(this,this.oe);this.je=CJ(function(){return new gN}); g.N(this,this.je);this.Pi=CJ(function(){return new hN(f.Fa)}); g.N(this,this.Pi);this.wi=CJ(function(){return new mK(f.wd,f.Rb,f.gb)}); g.N(this,this.wi);this.Di=CJ(function(){return new oK(f.Da,f.Oa,f.Oe,f.wb)}); g.N(this,this.Di);this.In=CJ(function(){return new pEa(f.vc,f.Fa,f.Oa,f.hd,f.wb,f.fv,f.Bx,f.Ab,f.Da,c)}); g.N(this,this.In);this.Ni=CJ(function(){return new ML(a,f.oe,f.Oe,f.Oa,f.wb,f.Ye,f.Nd,f.Ua,f.Fa,f.wc,f.Bc,f.kd,f.uf,f.Ab,f.Df,f.Da,f.Sc)}); g.N(this,this.Ni);this.CM=new J1(a,this.Tn,this.gb);g.N(this,this.CM);this.Wg={Tw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Yj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.od],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gf]]),Dq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xi],["SLOT_TYPE_FORECASTING",this.le],["SLOT_TYPE_IN_PLAYER", this.le],["SLOT_TYPE_PLAYER_BYTES",this.le]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Nb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.fv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.lf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Bx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oe]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.je],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.Pi]]),er:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.Di],["SLOT_TYPE_IN_PLAYER",this.In],["SLOT_TYPE_PLAYER_BYTES",this.Ni]])};this.listeners=[this.hd.get()];this.nw={wd:this.wd,dk:this.Da.get(),kb:this.Ab.get(),Yw:this.Fa.get(),od:this.od,qt:this.gb.get(),jA:this.Tn.get(), zm:this.dg,nk:this.hd.get(),oo:this.Ua.get()}}; Dfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=CJ(function(){return new uN}); g.N(this,this.gb);this.Cb=CJ(function(){return new vN(f.gb,f.Da)}); g.N(this,this.Cb);this.hd=CJ(function(){return new fN}); g.N(this,this.hd);this.Rb=CJ(function(){return new dN(a)}); g.N(this,this.Rb);this.Lb=CJ(function(){return new wN(f.gb,f.Cb,f.Da)}); g.N(this,this.Lb);this.De=CJ(function(){return new AN}); g.N(this,this.De);this.uf=CJ(function(){return new L1(b.U())}); g.N(this,this.uf);this.vc=CJ(function(){return new M1(b)}); g.N(this,this.vc);this.Ab=CJ(function(){return new DJ(e)}); g.N(this,this.Ab);this.Bc=CJ(function(){return new p1(b)}); g.N(this,this.Bc);this.wc=CJ(function(){return new r1(b)}); g.N(this,this.wc);this.Nd=CJ(function(){return new Q1(b)}); g.N(this,this.Nd);this.kd=CJ(function(){return new s1(b)}); g.N(this,this.kd);this.Da=CJ(function(){return new t1(b)}); g.N(this,this.Da);this.cg=CJ(function(){return new K1(d)}); g.N(this,this.cg);this.Wb=CJ(function(){return new hJ(f.Da)}); g.N(this,this.Wb);this.He=CJ(function(){return new WM(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,null)}); g.N(this,this.He);this.Df=CJ(function(){return new R1(b)}); g.N(this,this.Df);this.Ua=CJ(function(){return new E1(b,f.De,f.Da)}); g.N(this,this.Ua);this.kc=new zN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.Fa=CJ(function(){return new F1(b,f.Ua,f.Da)}); g.N(this,this.Fa);this.wb=CJ(function(){return new y1(f.Fa,b,f.Da)}); g.N(this,this.wb);this.Oa=CJ(function(){return new D1(b,f.hd,f.wb,f.Ua)}); g.N(this,this.Oa);this.Ye=CJ(function(){return new HJ}); g.N(this,this.Ye);this.Oi=new bN(aN,T1,function(l,m,n,p){return OM(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua); g.N(this,this.Oi);this.od=new cN(this.Rb,this.He,c,this.Da,a,this.Ua,this.Fa,this.Bc);g.N(this,this.od);var h=new o1(b,this.od,this.Fa,this.Ua);this.Dg=CJ(function(){return h}); this.Mt=h;this.Gf=new eN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Gf);this.wd=new HM(this.Da,this.Rb,this.Lb,this.He,this.Ua,this.Gf,c);g.N(this,this.wd);this.xi=CJ(function(){return new SJ(f.cg,f.Cb,f.Wb,f.Da,f.Oa,f.Fa)}); g.N(this,this.xi);this.le=CJ(function(){return new TJ}); g.N(this,this.le);this.dg=new jN(a,this.vc,this.Da);g.N(this,this.dg);this.Nb=new kN(a);g.N(this,this.Nb);this.vg=new nN(a,this.Dg);g.N(this,this.vg);this.lf=new oN(a,this.wc,this.Fa,this.Ua);g.N(this,this.lf);this.Oe=new qN(a);g.N(this,this.Oe);this.Mi=new rN(a);g.N(this,this.Mi);this.Sc=CJ(function(){return new S1(b)}); g.N(this,this.Sc);this.oe=new tN(a);g.N(this,this.oe);this.je=CJ(function(){return new gN}); g.N(this,this.je);this.Pi=CJ(function(){return new hN(f.Fa)}); g.N(this,this.Pi);this.wi=CJ(function(){return new mK(f.wd,f.Rb,f.gb)}); g.N(this,this.wi);this.Di=CJ(function(){return new oK(f.Da,f.Oa,f.Oe,f.wb)}); g.N(this,this.Di);this.ZZ=CJ(function(){return new tCa(f.vc,f.Fa,f.Oa,f.hd,c,f.Da)}); g.N(this,this.ZZ);this.Ni=CJ(function(){return new ML(a,f.oe,f.Oe,f.Oa,f.wb,f.Ye,f.Nd,f.Ua,f.Fa,f.wc,f.Bc,f.kd,f.uf,f.Ab,f.Df,f.Da,f.Sc)}); g.N(this,this.Ni);this.Wg={Tw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.od],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gf]]),Dq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xi],["SLOT_TYPE_FORECASTING",this.le],["SLOT_TYPE_IN_PLAYER",this.le],["SLOT_TYPE_PLAYER_BYTES",this.le]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.lf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oe]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.je],["SLOT_TYPE_ABOVE_FEED",this.je],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.Pi]]),er:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.Di],["SLOT_TYPE_IN_PLAYER", this.ZZ],["SLOT_TYPE_PLAYER_BYTES",this.Ni]])};this.listeners=[this.hd.get()];this.nw={wd:this.wd,dk:this.Da.get(),kb:this.Ab.get(),Yw:this.Fa.get(),od:this.od,qt:this.gb.get(),jA:null,zm:this.dg,nk:this.hd.get(),oo:this.Ua.get()}}; Efb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=CJ(function(){return new uN}); g.N(this,this.gb);this.Cb=CJ(function(){return new vN(f.gb,f.Da)}); g.N(this,this.Cb);this.hd=CJ(function(){return new fN}); g.N(this,this.hd);this.Rb=CJ(function(){return new dN(a)}); g.N(this,this.Rb);this.Lb=CJ(function(){return new wN(f.gb,f.Cb,f.Da)}); g.N(this,this.Lb);this.De=CJ(function(){return new AN}); g.N(this,this.De);this.uf=CJ(function(){return new L1(b.U())}); g.N(this,this.uf);this.vc=CJ(function(){return new M1(b)}); g.N(this,this.vc);this.Ab=CJ(function(){return new DJ(e)}); g.N(this,this.Ab);this.Bc=CJ(function(){return new p1(b)}); g.N(this,this.Bc);this.wc=CJ(function(){return new r1(b)}); g.N(this,this.wc);this.Nd=CJ(function(){return new Q1(b)}); g.N(this,this.Nd);this.kd=CJ(function(){return new s1(b)}); g.N(this,this.kd);this.Da=CJ(function(){return new t1(b)}); g.N(this,this.Da);this.cg=CJ(function(){return new K1(d)}); g.N(this,this.cg);this.Wb=CJ(function(){return new hJ(f.Da)}); g.N(this,this.Wb);this.He=CJ(function(){return new WM(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,null)}); g.N(this,this.He);this.Df=CJ(function(){return new R1(b)}); g.N(this,this.Df);this.Ua=CJ(function(){return new E1(b,f.De,f.Da)}); g.N(this,this.Ua);this.kc=new zN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.Fa=CJ(function(){return new F1(b,f.Ua,f.Da)}); g.N(this,this.Fa);this.wb=CJ(function(){return new y1(f.Fa,b,f.Da)}); g.N(this,this.wb);this.Oa=CJ(function(){return new D1(b,f.hd,f.wb,f.Ua)}); g.N(this,this.Oa);this.Ye=CJ(function(){return new HJ}); g.N(this,this.Ye);this.Oi=new bN(aN,T1,function(l,m,n,p){return OM(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua); g.N(this,this.Oi);this.od=new cN(this.Rb,this.He,c,this.Da,a,this.Ua,this.Fa,this.Bc);g.N(this,this.od);var h=new o1(b,this.od,this.Fa,this.Ua);this.Dg=CJ(function(){return h}); this.Mt=h;this.Gf=new eN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Gf);this.wd=new HM(this.Da,this.Rb,this.Lb,this.He,this.Ua,this.Gf,c);g.N(this,this.wd);this.xi=CJ(function(){return new SJ(f.cg,f.Cb,f.Wb,f.Da,f.Oa,f.Fa)}); g.N(this,this.xi);this.le=CJ(function(){return new TJ}); g.N(this,this.le);this.dg=new jN(a,this.vc,this.Da);g.N(this,this.dg);this.Nb=new kN(a);g.N(this,this.Nb);this.vg=new nN(a,this.Dg);g.N(this,this.vg);this.lf=new oN(a,this.wc,this.Fa,this.Ua);g.N(this,this.lf);this.Oe=new qN(a);g.N(this,this.Oe);this.Mi=new rN(a);g.N(this,this.Mi);this.Sc=CJ(function(){return new S1(b)}); g.N(this,this.Sc);this.oe=new tN(a);g.N(this,this.oe);this.je=CJ(function(){return new gN}); g.N(this,this.je);this.Pi=CJ(function(){return new hN(f.Fa)}); g.N(this,this.Pi);this.wi=CJ(function(){return new mK(f.wd,f.Rb,f.gb)}); g.N(this,this.wi);this.Di=CJ(function(){return new oK(f.Da,f.Oa,f.Oe,f.wb)}); g.N(this,this.Di);this.In=CJ(function(){return new tCa(f.vc,f.Fa,f.Oa,f.hd,c,f.Da)}); g.N(this,this.In);this.Ni=CJ(function(){return new ML(a,f.oe,f.Oe,f.Oa,f.wb,f.Ye,f.Nd,f.Ua,f.Fa,f.wc,f.Bc,f.kd,f.uf,f.Ab,f.Df,f.Da,f.Sc)}); g.N(this,this.Ni);this.Wg={Tw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.od],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gf]]),Dq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xi],["SLOT_TYPE_FORECASTING",this.le],["SLOT_TYPE_IN_PLAYER",this.le],["SLOT_TYPE_PLAYER_BYTES",this.le]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED", this.Oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oe]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.je],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.Pi]]),er:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.Di],["SLOT_TYPE_IN_PLAYER",this.In],["SLOT_TYPE_PLAYER_BYTES",this.Ni]])};this.listeners=[this.hd.get()]; this.nw={wd:this.wd,dk:this.Da.get(),kb:this.Ab.get(),Yw:this.Fa.get(),od:this.od,qt:this.gb.get(),jA:null,zm:this.dg,nk:this.hd.get(),oo:this.Ua.get()}}; Ffb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=CJ(function(){return new uN}); g.N(this,this.gb);this.Cb=CJ(function(){return new vN(f.gb,f.Da)}); g.N(this,this.Cb);this.hd=CJ(function(){return new fN}); g.N(this,this.hd);this.Rb=CJ(function(){return new dN(a)}); g.N(this,this.Rb);this.Lb=CJ(function(){return new wN(f.gb,f.Cb,f.Da)}); g.N(this,this.Lb);this.De=CJ(function(){return new AN}); g.N(this,this.De);this.cn=CJ(function(){return new Afb(b)}); g.N(this,this.cn);this.uf=CJ(function(){return new L1(b.U())}); g.N(this,this.uf);this.vc=CJ(function(){return new M1(b)}); g.N(this,this.vc);this.Ab=CJ(function(){return new DJ(e)}); g.N(this,this.Ab);this.Bc=CJ(function(){return new p1(b)}); g.N(this,this.Bc);this.wc=CJ(function(){return new r1(b)}); g.N(this,this.wc);this.Nd=CJ(function(){return new Q1(b)}); g.N(this,this.Nd);this.kd=CJ(function(){return new s1(b)}); g.N(this,this.kd);this.Da=CJ(function(){return new t1(b)}); g.N(this,this.Da);this.cg=CJ(function(){return new K1(d)}); g.N(this,this.cg);this.Wb=CJ(function(){return new hJ(f.Da)}); g.N(this,this.Wb);this.He=CJ(function(){return new WM(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,null)}); g.N(this,this.He);this.Df=CJ(function(){return new R1(b)}); g.N(this,this.Df);this.Ua=CJ(function(){return new E1(b,f.De,f.Da)}); g.N(this,this.Ua);this.kc=new zN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.Fa=CJ(function(){return new F1(b,f.Ua,f.Da)}); g.N(this,this.Fa);this.wb=CJ(function(){return new y1(f.Fa,b,f.Da)}); g.N(this,this.wb);this.Oa=CJ(function(){return new D1(b,f.hd,f.wb,f.Ua)}); g.N(this,this.Oa);this.Ye=CJ(function(){return new HJ}); g.N(this,this.Ye);this.Oi=new bN(lHa,T1,function(l,m,n,p){return FHa(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua); g.N(this,this.Oi);this.od=new cN(this.Rb,this.He,c,this.Da,a,this.Ua,this.Fa,this.Bc);g.N(this,this.od);var h=new o1(b,this.od,this.Fa,this.Ua);this.Dg=CJ(function(){return h}); this.Mt=h;this.Gf=new eN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Gf);this.wd=new HM(this.Da,this.Rb,this.Lb,this.He,this.Ua,this.Gf,c);g.N(this,this.wd);this.xi=CJ(function(){return new SJ(f.cg,f.Cb,f.Wb,f.Da,f.Oa,f.Fa)}); g.N(this,this.xi);this.le=CJ(function(){return new TJ}); g.N(this,this.le);this.dg=new jN(a,this.vc,this.Da);g.N(this,this.dg);this.Nb=new kN(a);g.N(this,this.Nb);this.vg=new nN(a,this.Dg);g.N(this,this.vg);this.lf=new oN(a,this.wc,this.Fa,this.Ua);g.N(this,this.lf);this.Oe=new qN(a);g.N(this,this.Oe);this.Mi=new rN(a);g.N(this,this.Mi);this.Sc=CJ(function(){return new S1(b)}); g.N(this,this.Sc);this.oe=new tN(a);g.N(this,this.oe);this.je=CJ(function(){return new gN}); g.N(this,this.je);this.Pi=CJ(function(){return new hN(f.Fa)}); g.N(this,this.Pi);this.wi=CJ(function(){return new mK(f.wd,f.Rb,f.gb)}); g.N(this,this.wi);this.Di=CJ(function(){return new oK(f.Da,f.Oa,f.Oe,f.wb)}); g.N(this,this.Di);this.Ni=CJ(function(){return new ML(a,f.oe,f.Oe,f.Oa,f.wb,f.Ye,f.Nd,f.Ua,f.Fa,f.wc,f.Bc,f.kd,f.uf,f.Ab,f.Df,f.Da,f.Sc)}); g.N(this,this.Ni);this.C1=CJ(function(){return new rEa(f.vc,f.Fa,f.Oa,f.hd,f.cn,c,f.Ua)}); g.N(this,this.C1);this.Wg={Tw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.od],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gf]]),Dq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xi],["SLOT_TYPE_FORECASTING",this.le],["SLOT_TYPE_IN_PLAYER",this.le],["SLOT_TYPE_PLAYER_BYTES",this.le]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.lf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oe]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.je],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.Pi]]),er:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.Di],["SLOT_TYPE_IN_PLAYER",this.C1],["SLOT_TYPE_PLAYER_BYTES", this.Ni]])};this.listeners=[this.hd.get()];this.nw={wd:this.wd,dk:this.Da.get(),kb:this.Ab.get(),Yw:this.Fa.get(),od:this.od,qt:this.gb.get(),jA:null,zm:this.dg,nk:this.hd.get(),oo:this.Ua.get()}}; Gfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=CJ(function(){return new uN}); g.N(this,this.gb);this.Cb=CJ(function(){return new vN(f.gb,f.Da)}); g.N(this,this.Cb);this.hd=CJ(function(){return new fN}); g.N(this,this.hd);this.Rb=CJ(function(){return new dN(a)}); g.N(this,this.Rb);this.Lb=CJ(function(){return new wN(f.gb,f.Cb,f.Da)}); g.N(this,this.Lb);this.De=CJ(function(){return new AN}); g.N(this,this.De);this.cn=CJ(function(){return new Afb(b)}); g.N(this,this.cn);this.uf=CJ(function(){return new L1(b.U())}); g.N(this,this.uf);this.vc=CJ(function(){return new M1(b)}); g.N(this,this.vc);this.Ab=CJ(function(){return new DJ(e)}); g.N(this,this.Ab);this.Bc=CJ(function(){return new p1(b)}); g.N(this,this.Bc);this.wc=CJ(function(){return new r1(b)}); g.N(this,this.wc);this.Nd=CJ(function(){return new Q1(b)}); g.N(this,this.Nd);this.kd=CJ(function(){return new s1(b)}); g.N(this,this.kd);this.Da=CJ(function(){return new t1(b)}); g.N(this,this.Da);this.cg=CJ(function(){return new K1(d)}); g.N(this,this.cg);this.Wb=CJ(function(){return new hJ(f.Da)}); g.N(this,this.Wb);this.He=CJ(function(){return new WM(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,f.Yj,3)}); g.N(this,this.He);this.Df=CJ(function(){return new R1(b)}); g.N(this,this.Df);this.Ua=CJ(function(){return new E1(b,f.De,f.Da)}); g.N(this,this.Ua);this.kc=new zN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.If=CJ(function(){return new P1(b,f.Da,f.Oa)}); g.N(this,this.If);this.Sc=CJ(function(){return new S1(b)}); g.N(this,this.Sc);this.Fa=CJ(function(){return new F1(b,f.Ua,f.Da)}); g.N(this,this.Fa);this.Ye=CJ(function(){return new HJ}); this.wb=CJ(function(){return new y1(f.Fa,b,f.Da)}); g.N(this,this.wb);this.Oa=CJ(function(){return new D1(b,f.hd,f.wb,f.Ua)}); g.N(this,this.Oa);this.od=new cN(this.Rb,this.He,c,this.Da,a,this.Ua,this.Fa,this.Bc);g.N(this,this.od);var h=new o1(b,this.od,this.Fa,this.Ua,this.If);this.Dg=CJ(function(){return h}); this.Mt=h;this.Oi=new bN(mHa,T1,function(l,m,n,p){return FHa(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua); g.N(this,this.Oi);this.Yj=new YM(this.Rb,this.Lb,this.Dg,this.If,this.Fa,this.Da,this.Oa,this.Sc);g.N(this,this.Yj);this.Gf=new eN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Gf);this.wd=new HM(this.Da,this.Rb,this.Lb,this.He,this.Ua,this.Gf,c);g.N(this,this.wd);this.xi=CJ(function(){return new SJ(f.cg,f.Cb,f.Wb,f.Da,f.Oa,f.Fa,f.Sc)}); g.N(this,this.xi);this.le=CJ(function(){return new TJ}); g.N(this,this.le);this.dg=new jN(a,this.vc,this.Da);g.N(this,this.dg);this.Nb=new kN(a);g.N(this,this.Nb);this.vg=new nN(a,this.Dg);g.N(this,this.vg);this.lf=new oN(a,this.wc,this.Fa,this.Ua);g.N(this,this.lf);this.uw=new pN(a,this.Ua);g.N(this,this.uw);this.Oe=new qN(a);g.N(this,this.Oe);this.Mi=new rN(a);g.N(this,this.Mi);this.oe=new tN(a);g.N(this,this.oe);this.je=CJ(function(){return new gN}); g.N(this,this.je);this.Pi=CJ(function(){return new hN(f.Fa)}); g.N(this,this.Pi);this.wi=CJ(function(){return new mK(f.wd,f.Rb,f.gb)}); g.N(this,this.wi);this.Di=CJ(function(){return new oK(f.Da,f.Oa,f.Oe,f.wb)}); g.N(this,this.Di);this.Ni=CJ(function(){return new eEa(a,f.oe,f.Oe,f.Ua,f.Sc,f.Fa,f.Oa,f.De,f.If,f.wb,f.Ye,f.Nd,f.wc,f.Bc,f.kd,f.uf,f.Ab,f.Df,f.Da,f.hd)}); g.N(this,this.Ni);this.In=CJ(function(){return new sEa(f.vc,f.Fa,f.Oa,f.hd,f.cn,c,f.Da,f.Ua)}); g.N(this,this.In);this.Wg={Tw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Yj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.od],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gf]]),Dq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xi],["SLOT_TYPE_FORECASTING",this.le],["SLOT_TYPE_IN_PLAYER",this.le],["SLOT_TYPE_PLAYER_BYTES",this.le]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.dg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Nb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Nb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Nb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Nb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Nb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.lf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Oe],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.oe]]),Kr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.je],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES", this.Pi]]),er:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.Di],["SLOT_TYPE_PLAYER_BYTES",this.Ni],["SLOT_TYPE_IN_PLAYER",this.In]])};this.listeners=[this.hd.get()];this.nw={wd:this.wd,dk:this.Da.get(),kb:this.Ab.get(),Yw:this.Fa.get(),od:this.od,qt:this.gb.get(),jA:null,zm:this.dg,nk:this.hd.get(),oo:this.Ua.get()}}; Ifb=function(a,b,c,d){g.I.call(this);var e=this;this.j=Hfb(function(){return e.B},a,b,c,d); g.N(this,this.j);this.B=(new OAa(this.j)).C();g.N(this,this.B)}; U1=function(a){return a.j.nw}; Hfb=function(a,b,c,d,e){try{var f=b.U();if(g.gS(f))var h=new Bfb(a,b,c,d,e);else if(g.iS(f))h=new Cfb(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===g.uR(f))h=new Efb(a,b,c,d,e);else if(bS(f))h=new Dfb(a,b,c,d,e);else if(g.VG(f))h=new Ffb(a,b,c,d,e);else if(g.WR(f))h=new Gfb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),CG("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,Onb:h.j.cver,Nnb:h.j.ctheme, Mnb:h.j.cplayer,tob:h.playerStyle}),new rfb(a,b,c,d,e)}}; Jfb=function(a){qG.call(this,a)}; Kfb=function(a,b,c,d,e){uG.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.va=this.Ga("ytp-ad-timed-pie-countdown");this.D=this.Ga("ytp-ad-timed-pie-countdown-container"); this.B=this.Ga("ytp-ad-timed-pie-countdown-inner");this.G=this.Ga("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(10*Math.PI);this.hide()}; Lfb=function(a,b,c,d,e,f){RF.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{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.dS=e;this.PK=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ea=this.Ga("ytp-ad-action-interstitial-instream-info");this.va=this.Ga("ytp-ad-action-interstitial-image-container");this.Y=new hG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-image");g.N(this,this.Y);this.Y.Ja(this.va);this.Xa=this.Ga("ytp-ad-action-interstitial-headline-container"); this.G=new tG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-headline");g.N(this,this.G);this.G.Ja(this.Xa);this.Wa=this.Ga("ytp-ad-action-interstitial-description-container");this.C=new tG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,"ytp-ad-action-interstitial-description");g.N(this,this.C);this.C.Ja(this.Wa);this.Za=this.Ga("ytp-ad-action-interstitial-background-container");this.Na=new hG(this.api,this.layoutId,this.interactionLoggingClientData, this.kb,"ytp-ad-action-interstitial-background",!0);g.N(this,this.Na);this.Na.Ja(this.Za);this.ib=this.Ga("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ga("ytp-ad-action-interstitial-slot");this.Hf=this.Ga("ytp-ad-action-interstitial-card");this.D=new yC;g.N(this,this.D);this.hide()}; Mfb=function(a){var b=g.Af("html5-video-player");b&&g.cv(b,"ytp-ad-display-override",a)}; Qfb=function(a,b,c,d){RF.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.Y=[];this.ib=this.Ea=this.D=this.Za=this.Wa=null;this.Xa=!1;this.G=null;this.va=0;a=this.Ga("ytp-ad-overlay-container");this.Na=new AG(a,45E3,6E3,.3,.4);g.N(this,this.Na);this.C=Nfb(this);g.N(this,this.C);this.C.Ja(a);this.B=Ofb(this);g.N(this,this.B);this.B.Ja(a);this.j=Pfb(this);g.N(this,this.j);this.j.Ja(a);this.hide()}; Nfb=function(a){var b=new g.QF({I:"div",S:"ytp-ad-text-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[$F(Rfb)]}]},{I:"div",S:"ytp-ad-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",ya:"{{description}}"},{I:"div",La:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ya:"{{displayUrl}}"}]});a.T(b.Ga("ytp-ad-overlay-title"),"click",function(c){V1(a,b.element,c)}); a.T(b.Ga("ytp-ad-overlay-link"),"click",function(c){V1(a,b.element,c)}); a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.GL);b.hide();return b}; Ofb=function(a){var b=new g.QF({I:"div",La:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[$F(Rfb)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",ya:"{{description}}"},{I:"div",La:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], ya:"{{displayUrl}}"}]});a.T(b.Ga("ytp-ad-overlay-title"),"click",function(c){V1(a,b.element,c)}); a.T(b.Ga("ytp-ad-overlay-link"),"click",function(c){V1(a,b.element,c)}); a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.GL);a.T(b.Ga("ytp-ad-overlay-text-image"),"click",a.Waa);b.hide();return b}; Pfb=function(a){var b=new g.QF({I:"div",S:"ytp-ad-image-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[$F(Rfb)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ga("ytp-ad-overlay-image"),"click",function(c){V1(a,b.element,c)}); a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.GL);b.hide();return b}; Sfb=function(a,b){if(b){var c=g.U(b,DM)||null;if(null==c)g.oF(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Af("video-ads ytp-ad-module")||null,null==b)g.oF(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ea=new g.QF({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.N(a,a.Ea),a.Ea.Ja(b),b=new sG(a.api,a.layoutId,a.interactionLoggingClientData,a.kb,a.Ea.element,!1),g.N(a,b),b.init(GF("ad-info-hover-text-button"), c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.D9,a);b.subscribe("e",a.FQ,a);a.T(a.G,"click",a.E9);var d=g.Af("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.U(null==(e=g.U(c.button,g.FM))?void 0:e.serviceEndpoint,rxa))a.Xa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.ib=b}else g.oF(Error("Ad info button container within overlay ad was not present."))}else g.pF(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; Ufb=function(a,b){if(Tfb(a,W1)||a.api.xg())return!1;var c=SF(b.title),d=SF(b.description);if(g.fc(c)||g.fc(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",SF(b.title));a.C.updateValue("description",SF(b.description));a.C.updateValue("displayUrl",SF(b.displayUrl));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.C.show();a.Na.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.va++}); return!0}; Vfb=function(a,b){if(Tfb(a,W1)||a.api.xg())return!1;var c=SF(b.title),d=SF(b.description);if(g.fc(c)||g.fc(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",SF(b.title));a.B.updateValue("description",SF(b.description));a.B.updateValue("displayUrl",SF(b.displayUrl));a.B.updateValue("imageUrl",xwa(b.image));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.Za=b.imageNavigationEndpoint||null;a.B.show();a.Na.start();a.logVisibility(a.B.element,!0);a.T(a.B.element, "mouseover",function(){a.va++}); return!0}; Wfb=function(a,b){if(a.api.xg())return!1;var c=ywa(b.image),d=c;c.widthdocument.documentMode)c=nv;else{var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=lla(d.style)}b=new g.me([c,Oba(pgb,b)].map(Mba).join(""),Ge);a.style.cssText=ne(b)}}; rgb=function(a){var b=g.Af("html5-video-player");b&&g.cv(b,"ytp-ad-display-override",a)}; d2=function(a,b,c,d,e,f){f=void 0===f?0:f;uG.call(this,a,{I:"div",S:"ytp-preview-ad",V:[{I:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var h=this;this.va=f;this.B=0;this.D=-1;this.C=this.Ga("ytp-preview-ad__text");switch(this.va){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.xG(this,400,!1,100,function(){h.hide()}); g.N(this,this.transition);this.hide()}; e2=function(a,b,c,d){RF.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()}; sgb=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; f2=function(a,b,c,d){RF.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()}; ugb=function(a){this.content=a.content;if(a.commandRuns){a=g.u(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.U(b,tgb),b.onTap&&(this.interaction={onTap:b.onTap})}}; g2=function(a,b,c,d){RF.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()}; vgb=function(a,b,c,d,e){uG.call(this,a,{I:"div",La:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new e2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.adAvatar);Qf(this.element,this.adAvatar.element,0);this.headline=new g2(this.api,this.layoutId,this.interactionLoggingClientData, this.kb);g.N(this,this.headline);this.headline.Ja(this.Ga("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new g2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.description);this.description.Ja(this.Ga("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new f2(this.api,this.layoutId,this.interactionLoggingClientData, this.kb);g.N(this,this.adButton);this.adButton.Ja(this.element);this.hide()}; wgb=function(a,b,c,d){RF.call(this,a,{I:"button",S:"ytp-skip-ad-button",V:[{I:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Ga("ytp-skip-ad-button__text");this.transition=new g.xG(this,500,!1,100,function(){e.hide()}); g.N(this,this.transition);this.j=new AG(this.element,15E3,5E3,.5,.5,!0);g.N(this,this.j);this.hide()}; xgb=function(a,b,c,d,e){uG.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new d2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.j);g.N(this,this.B);this.B.Ja(this.element);this.C=new wgb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);g.N(this,this.C);this.C.Ja(this.element);this.hide()}; h2=function(a,b,c,d){RF.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()}; i2=function(a,b,c,d,e){RF.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.D=this.Ga("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Ga("ytp-ad-player-overlay-layout__ad-info-container");this.G=this.Ga("ytp-ad-player-overlay-layout__skip-or-preview-container"); this.hide()}; j2=function(a,b,c){qG.call(this,a);this.api=a;this.kb=b;this.B={};a=new g.V({I:"div",La:["video-ads","ytp-ad-module"]});g.N(this,a);OR&&g.Zu(a.element,"ytp-ads-tiny-mode");this.G=new yE(a.element);g.N(this,this.G);g.kU(this.api,a.element,4);HFa(c)&&(c=new g.V({I:"div",La:["ytp-ad-underlay"]}),g.N(this,c),this.C=new yE(c.element),g.N(this,this.C),g.kU(this.api,c.element,0));g.N(this,Zwa())}; ygb=function(a,b){a=g.nd(a.B,b.id,null);null==a&&g.pF(Error("Component not found for element id: "+b.id));return a||null}; zgb=function(a){g.NV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new xeb(this.player):new n1(this.player);this.D=function(){if(null!=b.B)return b.B;var d=new Eeb({zm:U1(b.j).zm,oo:U1(b.j).oo,J:b.player,dk:U1(b.j).dk,Oa:b.j.j.Oa,nk:U1(b.j).nk,kd:b.j.j.kd});b.B=d.z2;return b.B}; this.j=new Ifb(this.player,this,this.C,this.D);g.N(this,this.j);var c=a.U();!sJ(c)||g.WR(c)||bS(c)||(g.N(this,new j2(a,U1(this.j).kb,U1(this.j).dk)),g.N(this,new Jfb(a)))}; Agb=function(a){a.created!==a.loaded&&CG("Created and loaded are out of sync")}; Dgb=function(a){g.NV.prototype.load.call(a);var b=U1(a.j).dk;try{a.player.getRootNode().classList.add("ad-created")}catch(l){CG(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.jb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((null==e?void 0:e.adSlots)||[]).map(function(l){return g.U(l,IM)}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.zc();b=Bgb(f,h,b,U1(a.j).qt);f=c&&c.clientPlaybackNonce||"";c=c&&c.gp||!1;h=1E3*a.player.getDuration(1);Cgb(a);a.j.j.Mt.yk(f,h,c,b.bK,b.uV,b.bK,e,d)}; Cgb=function(a){var b,c;if(c=!((null==(b=a.player.getVideoData(1))?0:b.gp)||g.mB("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=sJ(b)&&!g.rJ(b)&&"desktop-polymer"===b.playerStyle;c&&(a=CUa(a.player),a.addEventListener("updateKevlarOrC3Companion",Pxa),a.addEventListener("updateEngagementPanelAction",Rxa),a.addEventListener("changeEngagementPanelVisibility",Txa),window.addEventListener("yt-navigate-start",Vxa))}; k2=function(a,b){b===a.qs&&(a.qs=void 0)}; Egb=function(a){var b=U1(a.j).od,c=b.B().xO("SLOT_TYPE_PLAYER_BYTES",1);b=b.Ua.get().Te(1).clientPlaybackNonce;var d=!1;c=g.u(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 WL?e.slotEntryTrigger.Qr:void 0;f&&f===b&&(d&&CG("More than 1 preroll playerBytes slot detected",e),d=!0)}d||G1(U1(a.j).Yw)}; Fgb=function(a){if(v1(U1(a.j).dk))return!0;var b="";a=g.u(U1(a.j).nk.Mj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.Ya)return!0;b+=c.slotType+" "}.01>Math.random()&&CG("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1}; Ggb=function(a){a=g.u(U1(a.j).nk.Mj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; eFa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=U1(a.j).dk,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.zc();c=Bgb(b,c,f,U1(a.j).qt);iFa(U1(a.j).wd,d,c.bK,c.uV,b,e)}; Bgb=function(a,b,c,d){b={bK:[],uV:b};a=g.u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.U(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,VM)?(h=g.U(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,VM),h=BHa(h,p),g.vF(f.sandwichedLinearAdRenderer.adVideoStart,VM,h)):g.U(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,VM)&& (m=g.U(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,VM),h=BHa(m,p),g.vF(f.linearAdSequenceRenderer.adStart,VM,h))}b.bK.push(e)}return b}; Hgb=function(){if(!g.Cf)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}}; g.l2=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=fma(a);return b.parseFromString(g.pe(a),"application/xml")}if(Igb){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.m2=function(a){g.I.call(this);this.callback=a;this.j=new vv(0,0,.4,0,.2,1,1,1);this.delay=new g.Pu(this.next,window,this);g.N(this,this.delay)}; g.Jgb=function(a){var b=a.U();return b.Yd&&!b.C&&g.QR(b)?a.md()?(a=a.Cn(),315<=Math.min(a.width,a.height)):!a.Vg():!1}; g.n2=function(a){g.V.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.DK(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.V({I:"h2",S:"ytp-related-title",ya:"{{title}}"});this.previous=new g.V({I:"button",La:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},V:[g.VF()]});this.N=new g.m2(function(c){b.suggestions.element.scrollLeft=-c}); this.next=new g.V({I:"button",La:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},V:[g.WF()]});g.N(this,this.D);this.K=a.U().D;g.N(this,this.title);this.title.Ja(this.element);this.suggestions=new g.V({I:"div",S:"ytp-suggestions"});g.N(this,this.suggestions);this.suggestions.Ja(this.element);g.N(this,this.previous);this.previous.Ja(this.element);this.previous.Ta("click",this.B2,this);g.N(this,this.N);Kgb(this);g.N(this,this.next);this.next.Ja(this.element);this.next.Ta("click", this.A2,this);this.D.T(this.api,"appresize",this.Yb);this.D.T(this.api,"fullscreentoggled",this.Lw);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.Yb(this.api.qb().getPlayerSize());this.onVideoDataChange()}; Kgb=function(a){for(var b={Pz:0};16>b.Pz;b={Pz:b.Pz},++b.Pz){var c=new g.V({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",ya:"{{title}}"},{I:"div",S:"ytp-suggestion-author",ya:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration", ya:"{{duration}}"}]}]});g.N(a,c);var d=c.Ga("ytp-suggestion-link");g.ls(d,"transitionDelay",b.Pz/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.Pz;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.Sk(),l={},g.EUa(a.api,l,"emb_rel_pause"),h=g.bn(h,l),g.XU(h,a.api,f)):g.WU(f,a.api,a.K,m||void 0)&&a.api.Lo(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b)); c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}}; Lgb=function(a){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.C[b].element,!0)}; g.o2=function(a){var b=a.api.Dh()?32:16;b=a.Y/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.G+8);g.cv(a.element,"ytp-scroll-min",0<=b);g.cv(a.element,"ytp-scroll-max",b<=c)}; Ngb=function(a){for(var b=a.suggestionData.length,c=0;cb)for(;16>b;++b)c=a.C[b].Ga("ytp-suggestion-link"),g.ls(c,"display","none");g.o2(a)}; aaa=[];ka="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.ha=caa(this);ma("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;ka(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}); ma("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}}); ma("Set",function(a){function b(c){this.j=new Map;if(c){c=g.u(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.u([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}); ma("Array.prototype.entries",function(a){return a?a:function(){return Ka(this,function(b,c){return[b,c]})}}); ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=La(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}}); ma("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); ma("String.prototype.repeat",function(a){return a?a:function(b){var c=La(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); ma("Array.prototype.values",function(a){return a?a:function(){return Ka(this,function(b,c){return c})}}); ma("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); ma("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}}); ma("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}}); ma("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}}); ma("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}}); ma("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push(b[d]);return c}}); ma("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); ma("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);c>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}}); ma("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c; })})}}); ma("String.prototype.padStart",function(a){return a?a:function(b,c){var d=La(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0c?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}}); ma("Int8Array.prototype.copyWithin",Ra);ma("Uint8Array.prototype.copyWithin",Ra);ma("Uint8ClampedArray.prototype.copyWithin",Ra);ma("Int16Array.prototype.copyWithin",Ra);ma("Uint16Array.prototype.copyWithin",Ra);ma("Int32Array.prototype.copyWithin",Ra);ma("Uint32Array.prototype.copyWithin",Ra);ma("Float32Array.prototype.copyWithin",Ra);ma("Float64Array.prototype.copyWithin",Ra);ma("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}}); ma("Int8Array.prototype.findLastIndex",Sa);ma("Uint8Array.prototype.findLastIndex",Sa);ma("Uint8ClampedArray.prototype.findLastIndex",Sa);ma("Int16Array.prototype.findLastIndex",Sa);ma("Uint16Array.prototype.findLastIndex",Sa);ma("Int32Array.prototype.findLastIndex",Sa);ma("Uint32Array.prototype.findLastIndex",Sa);ma("Float32Array.prototype.findLastIndex",Sa);ma("Float64Array.prototype.findLastIndex",Sa); ma("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}}); ma("Number.parseInt",function(a){return a||parseInt}); ma("String.raw",function(a){return a?a:function(b,c){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h>>0);maa=0;g.k=sb.prototype;g.k.x5=function(a){var b=g.Ia.apply(1,arguments),c=this.bO(b);c?c.push(new paa(a)):this.X_(a,b)}; g.k.X_=function(a){this.j.set(this.TT(g.Ia.apply(1,arguments)),[new paa(a)])}; g.k.bO=function(){var a=this.TT(g.Ia.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0}; g.k.e7=function(){var a=this.bO(g.Ia.apply(0,arguments));return a&&a.length?a[0]:void 0}; g.k.clear=function(){this.j.clear()}; g.k.TT=function(){var a=g.Ia.apply(0,arguments);return a?a.join(","):"key"};g.w(tb,sb);tb.prototype.B=function(a){var b=g.Ia.apply(1,arguments),c=0,d=this.e7(b);d&&(c=d.j);this.X_(c+a,b)};g.w(ub,sb);ub.prototype.Lg=function(a){this.x5(a,g.Ia.apply(1,arguments))};g.k=g.I.prototype;g.k.Yx=!1;g.k.isDisposed=function(){return this.Yx}; g.k.dispose=function(){this.Yx||(this.Yx=!0,this.xa())}; g.k.addOnDisposeCallback=function(a,b){this.Yx?void 0!==b?a.call(b):a():(this.jn||(this.jn=[]),this.jn.push(void 0!==b?(0,g.ib)(a,b):a))}; g.k.xa=function(){if(this.jn)for(;this.jn.length;)this.jn.shift()()};g.ob(yb,Error);yb.prototype.name="CustomError";var aca;g.ob(zb,yb);zb.prototype.name="AssertionError";g.Ab.prototype.stopPropagation=function(){this.B=!0}; g.Ab.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,Hr,Bs;saa=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.bc=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,Jaa=/"/g,Kaa=/'/g,Laa=/\x00/g,Faa=/[\x00&<>"']/;var tc,Wgb=g.Ta.navigator;tc=Wgb?Wgb.userAgentData||null:null;Pc[" "]=function(){};var ms,EU,$db,Xgb,Ygb,Zgb,NR,OR,$gb;g.PR=zc();g.Cf=Bc();g.BD=xc("Edge");g.jS=g.BD||g.Cf;ms=xc("Gecko")&&!(jc(g.pc(),"WebKit")&&!xc("Edge"))&&!(xc("Trident")||xc("MSIE"))&&!xc("Edge");g.Vc=jc(g.pc(),"WebKit")&&!xc("Edge");EU=Oc();$db=Saa();g.eC=Raa();Xgb=Ic();Ygb=xc("iPad");Zgb=xc("iPod");NR=Nc();OR=jc(g.pc(),"KaiOS"); a:{var ahb="",bhb=function(){var a=g.pc();if(ms)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.BD)return/Edge\/([\d\.]+)/.exec(a);if(g.Cf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Vc)return/WebKit\/(\S+)/.exec(a);if(g.PR)return/(?:Version)[ \/]?(\S+)/.exec(a)}(); bhb&&(ahb=bhb?bhb[1]:"");if(g.Cf){var chb=Vaa();if(null!=chb&&chb>parseFloat(ahb)){$gb=String(chb);break a}}$gb=ahb}var Sc=$gb,Taa={},dhb;if(g.Ta.document&&g.Cf){var ehb=Vaa();dhb=ehb?ehb:parseInt(Sc,10)||void 0}else dhb=void 0;var Waa=dhb;var hZa=Xaa("AnimationEnd"),wWa=Xaa("TransitionEnd");g.ob(Xc,g.Ab);var fhb={2:"touch",3:"pen",4:"mouse"}; Xc.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)?ms&&(Rc(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:fhb[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j= a;a.defaultPrevented&&Xc.Uf.preventDefault.call(this)}; Xc.prototype.stopPropagation=function(){Xc.Uf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0}; Xc.prototype.preventDefault=function(){Xc.Uf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Yaa="closure_listenable_"+(1E6*Math.random()|0);var Zaa=0;var eba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=sd.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=zd(a,b,d,e);-1>>0);g.ob(g.Ld,g.I);g.Ld.prototype[Yaa]=!0;g.k=g.Ld.prototype;g.k.addEventListener=function(a,b,c,d){g.Bd(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){lba(this,a,b,c,d)}; g.k.dispatchEvent=function(a){var b=this.VQ;if(b){var c=[];for(var d=1;b;b=b.VQ)c.push(b),++d}b=this.r5;d=a.type||a;if("string"===typeof a)a=new g.Ab(a,b);else if(a instanceof g.Ab)a.target=a.target||b;else{var e=a;a=new g.Ab(d,b);g.rd(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&0<=f;f--){var h=a.currentTarget=c[f];e=Md(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Md(h,d,!0,a)&&e,a.B||(e=Md(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&fzh.length&&zh.push(this)}; bh.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.ZG=!1}; bh.prototype.reset=function(){this.j=this.D}; var zh=[];Ah.prototype.free=function(){this.j.clear();this.B=this.D=-1;100>p2.length&&p2.push(this)}; Ah.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1}; var p2=[];var Ida,Lda;Gh.prototype.length=function(){return this.j.length}; Gh.prototype.end=function(){var a=this.j;this.j=[];return a};var q2;q2="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;Math.max.apply(Math,g.pa(Object.values({AJa:1,uJa:2,lJa:4,XYa:8,WYa:16,bVa:32,Nta:64,wdb:128,jGa:256,gGa:512,vJa:1024,KFa:2048,mab:4096,LFa:8192})));var ij=q2?function(a,b){a[q2]|=b}:function(a,b){void 0!==a.Jn?a.Jn|=b:Object.defineProperties(a,{Jn:{value:b, configurable:!0,writable:!0,enumerable:!1}})},Dj=q2?function(a,b){a[q2]&=~b}:function(a,b){void 0!==a.Jn&&(a.Jn&=~b)},ki=q2?function(a){return a[q2]|0}:function(a){return a.Jn|0},gj=q2?function(a){return a[q2]}:function(a){return a.Jn},Ph=q2?function(a,b){a[q2]=b; return a}:function(a,b){void 0!==a.Jn?a.Jn=b:Object.defineProperties(a,{Jn:{value:b, configurable:!0,writable:!0,enumerable:!1}});return a};var aj={},Tda={},lhb,Cj,mhb=[];Ph(mhb,55);Cj=Object.freeze(mhb);var ni,Nea;Object.freeze(new function(){}); Object.freeze(new function(){});var aea=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var bj,dj,jea;g.k=T.prototype;g.k.toJSON=function(){return lhb?Dk(this,this.ea,!1):Dk(this,fj(this.ea,oea,void 0,void 0,!1),!0)}; g.k.Gk=function(){lhb=!0;try{return JSON.stringify(this.toJSON(),lea)}finally{lhb=!1}}; g.k.clone=function(){var a=this.ea;return cj(this.constructor,hj(a,gj(a),!1))}; g.k.Vv=function(){return!!(ki(this.ea)&2)}; g.k.rJ=aj;g.k.toString=function(){return Dk(this,this.ea,!1).toString()};var Kea=Symbol(),Gk,Hk,Kk=Symbol(),Sea=Symbol(),Nk=Symbol(),Ok=Symbol(),nhb=Pk(function(a,b,c){if(1!==a.B)return!1;Rk(b,c,xh(a.j));return!0},sl),ohb=Pk(function(a,b,c){if(1!==a.B)return!1; a=xh(a.j);Rk(b,c,0===a?void 0:a);return!0},sl),phb=Pk(function(a,b,c,d){if(1!==a.B)return!1; Oj(b,c,d,xh(a.j));return!0},sl),qhb=Pk(function(a,b,c){if(0!==a.B)return!1; Rk(b,c,eh(a.j));return!0},tl),rhb=Pk(function(a,b,c){if(0!==a.B)return!1; a=eh(a.j);Rk(b,c,0===a?void 0:a);return!0},tl),shb=Pk(function(a,b,c,d){if(0!==a.B)return!1; Oj(b,c,d,eh(a.j));return!0},tl),thb=Pk(function(a,b,c){if(0!==a.B)return!1; Rk(b,c,fh(a.j));return!0},ul),uhb=Pk(function(a,b,c){if(0!==a.B)return!1; a=fh(a.j);Rk(b,c,0===a?void 0:a);return!0},ul),vhb=Pk(function(a,b,c,d){if(0!==a.B)return!1; Oj(b,c,d,fh(a.j));return!0},ul),whb=Pk(function(a,b,c){if(1!==a.B)return!1; Rk(b,c,wh(a.j));return!0},function(a,b,c){Qda(a,c,gea(b))}),xhb=Qk(function(a,b,c){if(1!==a.B&&2!==a.B)return!1; b=Ej(b,gj(b),c,2,!1);if(2==a.B)for(c=fh(a.j)>>>0,c=a.j.j+c;a.j.j>>0);return!0},function(a,b,c){b=vi(b); null!=b&&null!=b&&(Kh(a,c,0),Hh(a.j,b))}),Ehb=Pk(function(a,b,c){if(0!==a.B)return!1; Rk(b,c,fh(a.j));return!0},function(a,b,c){b=ui(b); null!=b&&(b=parseInt(b,10),Kh(a,c,0),Oda(a.j,b))});g.w(xl,T);xl.yb=[1,2,3,4];g.w(yl,T);var El=[1,2,3],Fhb=[0,El,Bhb,vhb,zhb];var Ghb=[0,s2,[0,nhb,qhb]];g.w(zl,T);var Dl=[1,2,3],Hhb=[0,Dl,shb,phb,t2,Ghb];g.w(Al,T);Al.yb=[1];var Ihb=[0,s2,Fhb,Hhb];var Jhb=[0,[1,2,3],t2,[0,r2,-1,yhb],t2,[0,r2,-1,thb,yhb],t2,[0,r2]];g.w(Bl,T);Bl.prototype.Gq=function(){var a=Bea(this,3,3,void 0,!0);Vda(a);return a[void 0]}; Bl.yb=[3,6,4];Bl.prototype.j=dfa([0,r2,Jhb,Ahb,s2,Ihb,whb,xhb]);g.w(Cl,T);Cl.yb=[1];var kfa={};g.k=Fl.prototype;g.k.isEnabled=function(){if(!g.Ta.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{EE: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.tca;d=c.P_||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.EE}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.man?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Y=0}; l=function(m,n){var p=zea(e,Em);var q=Wj(e,14);g.Nl(c.D);c.j.setInterval(c.D.getValue());401===m&&f&&(c.va=f);q&&(c.G+=q);void 0===n&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.eD||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Y}; c.network&&c.network.send(d,h,l)}}}}; g.k.QN=function(){vfa(this.B,!0);this.flush();vfa(this.B,!1)}; g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a}; Hm.prototype.TF=function(a){this.j.TF(a);return this}; Hm.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;c=void 0===c?0:c;if(Bj(Lm(this),ym,11)){var h=Mm(this);vk(h,3,c)}Bj(Lm(this),ym,11)&&(c=Mm(this),vk(c,4,e));Bj(Lm(this),ym,11)&&(e=Mm(this),vk(e,5,f));f=this.j.clone();e=Date.now().toString();f=Aj(f,4,yi(e));a=Uj(f,Em,3,a);d&&(f=new Kl,d=vk(f,13,d),f=new Ll,d=Sj(f,Kl,2,d),f=new Dm,d=Sj(f,Ll,1,d),d=S(d,2,9),Sj(a,Dm,18,d));b&&xk(a,14,b);return a};Nm.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t,v,x;return g.H(function(A){switch(A.j){case 1:return f=(e=d.q5?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.Ba(A,2,3),h=Object.assign({},{method:a.requestType, headers:Object.assign({},a.hB)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.z(A,fetch(a.url,h),5);case 5:l=A.B;if(200!==l.status){null==(m=c)||m(l.status);A.Ka(3);break}if(null==(n=b)){A.Ka(7);break}q=p=n;return g.z(A,l.text(),8);case 8:q(A.B);case 7:case 3:g.Ea(A);clearTimeout(f);g.Fa(A,0);break;case 2:r=g.Da(A);switch(null==(t=r)?void 0:t.name){case "AbortError":null==(v=c)||v(408);break;default:null==(x=c)||x(400)}A.Ka(3)}})}; Nm.prototype.sI=function(){return 4};xfa.prototype.Gk=function(a){var b=[];Pm(this,a,b);return b.join("")}; var Afa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},zfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Qm.prototype.C=null;Qm.prototype.getOptions=function(){return this.C||(this.C=this.D())};var Lhb;g.ob(Rm,Qm);Rm.prototype.j=function(){var a=Cfa(this);return a?new ActiveXObject(a):new XMLHttpRequest}; Rm.prototype.D=function(){var a={};Cfa(this)&&(a[0]=!0,a[1]=!0);return a}; Lhb=new Rm;var Um=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Jfa=/#|$/,Kfa=/[?&]($|#)/;g.ob(g.Jn,g.Ld);var Tfa=/^https?$/i,Mhb=["POST","PUT"],Mfa=[];g.k=g.Jn.prototype;g.k.X5=function(){this.dispose();g.Ib(Mfa,this)}; g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.ma+"; newUri="+a);b=b?b.toUpperCase():"GET";this.ma=a;this.D="";this.B=0;this.Ia=!1;this.C=!0;this.j=this.Z?this.Z.j():Lhb.j();this.Ca=this.Z?this.Z.getOptions():Lhb.getOptions();this.j.onreadystatechange=(0,g.ib)(this.KZ,this);try{this.getStatus(),this.Ea=!0,this.j.open(b,String(a),!0),this.Ea=!1}catch(h){this.getStatus();Qfa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)=== Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.u(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()}); e=g.Ta.FormData&&a instanceof g.Ta.FormData;!g.Fb(Mhb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.u(c);for(d=b.next();!d.done;d=b.next())c=g.u(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Ma&&(this.j.responseType=this.Ma);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Sfa(this),0Math.random()?new Nm:new Rn);var a=new Jm({logSource:this.logSource,yD:this.yD?this.yD:nfa,sessionIndex:this.sessionIndex,Gda:this.B,gw:this.C,eD:!1,rW:this.D,GV:this.GV,network:this.network?this.network:void 0});g.N(this,a);if(this.j){var b=this.j,c=Km(a.B);P(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.cB&&(a.cB=this.cB);this.pageId&&(a.pageId=this.pageId);this.Wy&&((c=this.Wy)?(a.experimentIds||(a.experimentIds=new Il), b=a.experimentIds,c=c.Gk(),P(b,4,c)):a.experimentIds&&Aj(a.experimentIds,4));wfa(a.B);this.network.TF&&this.network.TF(this.logSource);this.network.Ica&&this.network.Ica(a);return a};g.w(Tn,g.I);Tn.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Cl,c=[],d=0;d>>3;1!=f.C&&2!=f.C&&15!=f.C&&Hp(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0} function c(m){f.D++;5==f.D&&m&240&&Hp(f,h,l,"message length too long");f.B|=(m&127)<<7*(f.D-1);m&128||(f.j=2,f.Z=0,"undefined"!==typeof Uint8Array?f.G=new Uint8Array(f.B):f.G=Array(f.B),0==f.B&&e())} function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()} function e(){if(15>f.C){var m={};m[f.C]=f.G;f.N.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?Op(this,7):7==c?Op(this,8):d||Op(this,3)),this.B||(this.B=Lga(this.j),null==this.B&&Op(this,5)),2this.C){var h=a.length;c=[];try{if(this.B.XG())for(var l=0;lthis.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);null!=n&&this.G&&this.G(n)}catch(p){Op(this,5);Pp(this);break a}}4==b?(0!=e.length|| this.Y?Op(this,2):Op(this,4),Pp(this)):Op(this,1)}}}catch(p){Op(this,6),Pp(this)}};g.k=Mga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[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.B[a];c&&g.Ib(c,b);(a=this.j[a])&&g.Ib(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.e$=function(a){var b=this.B.data;b&&Nga(a,b);(b=this.j.data)&&Nga(a,b);this.j.data=[]}; g.k.Qaa=function(){switch(this.C.getStatus()){case 1:Qp(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Qp(this,"error");break;case 8:Qp(this,"close");break;case 2:Qp(this,"end")}};Oga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Pga(function(h){var l=h.iI(),m=h.getMetadata(),n=Sga(e,!1);m=Tga(e,m,n,f+l.getName());var p=Uga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,uga(d,b,c))};Sp.prototype.create=function(a,b){return Rp(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},Qhb)}; Sp.prototype.ping=function(a,b){return Rp(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},Shb)};var Zhb=1,Zp=new WeakMap;g.w(Tp,g.I);Tp.prototype.signal=function(){var a=new Vp(!1);this.signals.add(a);g.N(this,a);return a}; Tp.prototype.fA=function(a){this.signals.has(a);return a.fA()}; g.w(Vp,g.I);g.k=Vp.prototype;g.k.MM=function(){var a=this,b=Zhb++;Wp(function(){Wga(a,b)}); return b}; g.k.detach=function(a){var b=this;Wp(function(){var c=b.slots.get(a);c&&c.pW()})}; g.k.value=function(a){return this.promise(!0,a)}; g.k.fA=function(){return this.yY}; g.k.next=function(a){return this.promise(!1,a)}; g.k.promise=function(a,b){var c=this,d=tca();Wp(function(){if(c.isDisposed())d.reject(new wg("Signal initially disposed"));else if(b&&b.isDisposed())d.reject(new wg("Owner initially disposed"));else if(a&&c.MV&&c.LX)d.resolve(c.yY);else if(c.jB.add(d),vg(d.promise,function(){c.jB.delete(d)}),b){var e=function(){d.reject(new wg("Owner asynchronously disposed"))}; vg(d.promise,function(){var f=Zp.get(b);f&&g.Ib(f,e)}); $ga(b,e)}}); return d.promise}; g.k.xa=function(){var a=this;g.I.prototype.xa.call(this);Wp(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.pW,c();a.slots.clear();b=g.u(a.jB);for(c=b.next();!c.done;c=b.next())c.value.reject(new wg("Signal asynchronously disposed"));a.jB.clear()})}; var Xp=[],Yp=!1;g.w($p,g.I);$p.prototype.start=function(){var a=this;if(this.isDisposed())throw new bq("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=0=this.ma&&this.D.resolve();var b=cq(a,this.logger),c=new Xn(this.logger,"C"),d=this.Z(b);c.done();if(void 0===d)throw new eq(17,"YNJ:Undefined");if(!(d instanceof Uint8Array))throw new eq(18,"ODM:Invalid");var e;if(null==(e=a.Ry)?0:e.Wca)try{var f;null==(f=this.N())||fga(f,b,d,a.Ry.LV,this.K)}catch(h){dq(new eq(24,"ELX:write",h),this.logger,this.onError)}return d}; g.w(iq,fq);iq.prototype.j=function(){return this.K}; g.w(jq,fq);jq.prototype.j=function(){return Fg(this.K)}; jq.prototype.G=function(){return this.K}; g.w(kq,fq);kq.prototype.j=function(){if(this.K)return this.K;this.K=fha(this,function(a){return"_"+iga(a)}); return fha(this,function(a){return a})}; g.w(lq,fq);lq.prototype.j=function(a){var b=cq(a,this.logger);if(118>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;dd)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.C;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};Ir.prototype.setInterval=function(a,b){return Cq.setInterval(a,b)}; Ir.prototype.clearInterval=function(a){Cq.clearInterval(a)}; Ir.prototype.setTimeout=function(a,b){return Cq.setTimeout(a,b)}; Ir.prototype.clearTimeout=function(a){Cq.clearTimeout(a)};g.w(Kr,T);Kr.prototype.j=dfa([0,ohb,rhb,-2,uhb]);var Uha={e1a:1,l5:2,MUa:3};Wha.prototype.hR=function(a){if("string"===typeof a&&0!=a.length){var b=this.Mc;if(b.B){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};gs.prototype.Kb=function(){return this.N};var aib={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},It={d5:"start",n2:"firstquartile",U4:"midpoint",f5:"thirdquartile",V1:"complete",ERROR:"error",T4:"metric",PAUSE:"pause",a5:"resume",b5:"skip",k5:"viewable_impression",W4:"mute",j5:"unmute",o2:"fullscreen",m2:"exitfullscreen",T1:"bufferstart",S1:"bufferfinish",q2:"fully_viewable_audible_half_duration_impression",S4:"measurable_impression",L1:"abandon",l2:"engagedview",v2:"impression",X1:"creativeview",R4:"loaded",I2a:"progress", CLOSE:"close",sta:"collapse",c_a:"overlay_resize",d_a:"overlay_unmeasurable_impression",e_a:"overlay_unviewable_impression",g_a:"overlay_viewable_immediate_impression",f_a:"overlay_viewable_end_of_session_impression",Z1:"custom_metric_viewable",O1:"audio_audible",Q1:"audio_measurable",P1:"audio_impression"},Jka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Kka=["start","firstquartile","midpoint","thirdquartile"],Aja=["abandon"],bu={UNKNOWN:-1,d5:0,n2:1,U4:2,f5:3,V1:4,T4:5, PAUSE:6,a5:7,b5:8,k5:9,W4:10,j5:11,o2:12,m2:13,q2:14,S4:15,L1:16,l2:17,v2:18,X1:19,R4:20,Z1:21,T1:22,S1:23,P1:27,Q1:28,O1:29};var kia={Wea:"addEventListener",QFa:"getMaxSize",RFa:"getScreenSize",SFa:"getState",TFa:"getVersion",L3a:"removeEventListener",GJa:"isViewable"};g.k=g.is.prototype;g.k.clone=function(){return new g.is(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.Ke?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.getSize=function(){return new g.Oe(this.width,this.height)}; g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var oia={};xia.prototype.update=function(a){a&&a.document&&(this.N=hs(!1,a,this.isMobileDevice),this.j=hs(!0,a,this.isMobileDevice),zia(this,a),yia(this,a))};Fs.prototype.cancel=function(){Jr().clearTimeout(this.j);this.j=null}; Fs.prototype.schedule=function(){var a=this,b=Jr(),c=Mr().j.j;this.j=b.setTimeout(Lr(c,Xr(143,function(){a.B++;a.C.sample()})),iia())};g.k=Gs.prototype;g.k.jC=function(){return!1}; g.k.initialize=function(){return this.isInitialized=!0}; g.k.zz=function(){return this.j.Ea}; g.k.YD=function(){return this.j.ma}; g.k.xj=function(a,b){if(!this.ma||(void 0===b?0:b))this.ma=!0,this.Ea=a,this.Z=0,this.j!=this||Is(this)}; g.k.getName=function(){return this.j.Ra}; g.k.Ts=function(){return this.j.aX()}; g.k.aX=function(){return{}}; g.k.Nq=function(){return this.j.Z}; g.k.VT=function(){var a=Cs();a.j=hs(!0,this.C,a.isMobileDevice)}; g.k.XT=function(){yia(Cs(),this.C)}; g.k.pX=function(){return this.D.j}; g.k.sample=function(){}; g.k.isActive=function(){return this.j.K}; g.k.Iz=function(a){var b=this.j;this.j=a.Nq()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,Is(this)):this.K!==this.j.K&&(this.K=this.j.K,Is(this))}; g.k.kt=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&Cia(this)}}; g.k.Wp=function(){return this.Y}; g.k.dispose=function(){this.Ia=!0}; g.k.isDisposed=function(){return this.Ia};g.k=Js.prototype;g.k.XL=function(){return!0}; g.k.PG=function(){}; g.k.dispose=function(){if(!this.isDisposed()){var a=this.B;g.Ib(a.G,this);a.Y&&this.Wp()&&Bia(a);this.PG();this.ma=!0}}; g.k.isDisposed=function(){return this.ma}; g.k.Ts=function(){return this.B.Ts()}; g.k.Nq=function(){return this.B.Nq()}; g.k.zz=function(){return this.B.zz()}; g.k.YD=function(){return this.B.YD()}; g.k.Iz=function(){}; g.k.kt=function(){this.ys()}; g.k.Wp=function(){return this.va};g.k=Ks.prototype;g.k.Nq=function(){return this.j.Nq()}; g.k.zz=function(){return this.j.zz()}; g.k.YD=function(){return this.j.YD()}; g.k.create=function(a,b,c){var d=null;this.j&&(d=this.QG(a,b,c),Hs(this.j,d));return d}; g.k.ZT=function(){return this.kC()}; g.k.kC=function(){return!1}; g.k.init=function(a){return this.j.initialize()?(Hs(this.j,this),this.D=a,!0):!1}; g.k.Iz=function(a){0==a.Nq()&&this.D(a.zz(),this)}; g.k.kt=function(){}; g.k.Wp=function(){return!1}; g.k.dispose=function(){this.G=!0}; g.k.isDisposed=function(){return this.G}; g.k.Ts=function(){return{}};Ls.prototype.add=function(a,b,c){++this.C;a=new Dia(a,b,c);this.j.push(new Dia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Iia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Ns(this.j);0=h;h=!(0=h)||c;this.j[e].update(f&&l,d,!f||h)}};Vs.prototype.update=function(a,b,c,d){this.N=-1!=this.N?Math.min(this.N,b.Je):b.Je;this.va=Math.max(this.va,b.Je);this.Ca=-1!=this.Ca?Math.min(this.Ca,b.Fk):b.Fk;this.Ea=Math.max(this.Ea,b.Fk);this.Za.update(b.Fk,c.Fk,b.j,a,d);this.B.update(b.Je,c.Je,b.j,a,d);c=d||c.Wv!=b.Wv?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ra.update(c,a,b)}; Vs.prototype.Xq=function(){return this.Ra.C>=this.eb};if(Ds&&Ds.URL){var bib=Ds.URL,cib;if(cib=!!bib){var dib;a:{if(bib){var eib=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var x2=eib.exec(decodeURIComponent(bib));if(x2){dib=x2[1]&&1=(this.Wv()?.3:.5),this.HS(f,a,d),this.Jp=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 ds(0,0,0,0):a;a=this.B.D;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.nY(c)?c=new ds(0,0,0,0):(d=Cs().D,b=new ds(0,d.height,d.width,0),d=ht(c,this.j),e=ht(c,Cs().j),b=ht(c,b)));c=c.top>=c.bottom||c.left>=c.right?new ds(0,0,0, 0):fs(c,-this.j.left,-this.j.top);Es()||(e=d=0);this.N=new gs(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.B.getName()};var jib=new ds(0,0,0,0);g.w(Bt,At);g.k=Bt.prototype;g.k.XL=function(){this.C();return!0}; g.k.kt=function(){At.prototype.ys.call(this)}; g.k.OV=function(){}; g.k.XM=function(){}; g.k.ys=function(){this.C();At.prototype.ys.call(this)}; g.k.Iz=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Cs().j=new ds(0,0,0,0),this.j=new ds(0,0,0,0),this.D=new ds(0,0,0,0),this.timestamp=-1));this.K=a};var B2={},xja=(B2.firstquartile=0,B2.midpoint=1,B2.thirdquartile=2,B2.complete=3,B2);g.w(Dt,it);g.k=Dt.prototype;g.k.Wp=function(){return!0}; g.k.Qn=function(){return 2==this.rk}; g.k.gX=function(a){return Zia(this,a,Math.max(1E4,this.C/3))}; g.k.Sa=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.rd(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Ra=m.isYouTube||this.Ra;Jr();this.tb=!1;e=pja(this,b);1===oja(this)&&(f=e);it.prototype.Sa.call(this,a,b,c,d,m,f,h);this.ir&&this.ir.C&&g.bc(this.K,function(n){n.B(l)})}; g.k.HS=function(a,b,c){it.prototype.HS.call(this,a,b,c);Gt(this).update(a,b,this.Wh,c);this.ib=mt(this.Wh)&&mt(b);-1==this.Ea&&this.Za&&(this.Ea=this.Aj().C.j);this.Sg.C=0;a=this.Xq();b.isVisible()&&rt(this.Sg,"vs");a&&rt(this.Sg,"vw");As(b.volume)&&rt(this.Sg,"am");mt(b)?rt(this.Sg,"a"):rt(this.Sg,"mut");this.Tz&&rt(this.Sg,"f");-1!=b.B&&(rt(this.Sg,"bm"),1==b.B&&(rt(this.Sg,"b"),mt(b)&&rt(this.Sg,"umutb")));mt(b)&&b.isVisible()&&rt(this.Sg,"avs");this.ib&&a&&rt(this.Sg,"avw");0this.j.Z&&(this.j=this,Is(this)),this.Z=a);return 2==a};Wt.prototype.sample=function(){Zt(this,Ot(),!1)}; Wt.prototype.D=function(){var a=Es(),b=Zr();a?(as||(bs=b,g.bc(Nt.j,function(c){var d=c.Aj();d.Na=vt(d,b,1!=c.rk)})),as=!0):(this.N=Zja(this,b),as=!1,yja=b,g.bc(Nt.j,function(c){c.iD&&(c.Aj().Z=b)})); Zt(this,Ot(),!a)}; var Xt=Gq(Wt);var aka=null,wu="",vu=!1;var dka=cka().jp,au=cka().mp;var gka={tDa:"visible",Loa:"audible",Ybb:"time",bcb:"timetype"},hka={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)}}; fka.prototype.setTime=function(a,b,c){"ms"==b?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=void 0===c?"tos":c;return this};g.w(eu,wt);eu.prototype.getId=function(){return this.N}; eu.prototype.K=function(){return!0}; eu.prototype.j=function(a){var b=a.Aj(),c=a.getDuration();return Bs(this.Z,function(d){if(void 0!=d.j)var e=jka(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0=d);return d})};g.w(fu,ija);fu.prototype.j=function(a){var b=new hja;b.j=qt(a,gib);b.B=qt(a,iib);return b};g.w(gu,wt);gu.prototype.j=function(a){return rja(a)};g.w(hu,nja);g.w(iu,wt);iu.prototype.j=function(a){return a.Aj().Xq()};g.w(ju,xt);ju.prototype.j=function(a){var b=g.Fb(this.N,wq(Mr().Mc,"ovms"));return!a.ut&&(0!=a.rk||b)};g.w(ku,hu);ku.prototype.B=function(){return new ju(this.j)}; ku.prototype.C=function(){return[new iu("viewable_impression",this.j),new gu(this.j)]};g.w(lu,Bt);lu.prototype.C=function(){var a=g.Wa("ima.admob.getViewability"),b=wq(this.Mc,"queryid");"function"===typeof a&&b&&a(b)}; lu.prototype.getName=function(){return"gsv"};g.w(mu,Ks);mu.prototype.getName=function(){return"gsv"}; mu.prototype.kC=function(){var a=Cs();Mr();return a.B&&!1}; mu.prototype.QG=function(a,b,c){return new lu(this.j,b,c)};g.w(nu,Bt);nu.prototype.C=function(){var a=this,b=g.Wa("ima.bridge.getNativeViewability"),c=wq(this.Mc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.md(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=via(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?jib.clone():via(e);a.timestamp=d.opt_nativeTime||-1;Cs().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; nu.prototype.getName=function(){return"nis"};g.w(ou,Ks);ou.prototype.getName=function(){return"nis"}; ou.prototype.kC=function(){var a=Cs();Mr();return a.B&&!1}; ou.prototype.QG=function(a,b,c){return new nu(this.j,b,c)};g.w(pu,Gs);g.k=pu.prototype;g.k.jC=function(){return null!=this.B.Un}; g.k.aX=function(){var a={};this.Ma&&(a.mraid=this.Ma);this.Ca&&(a.mlc=1);a.mtop=this.B.Pca;this.N&&(a.mse=this.N);this.Na&&(a.msc=1);a.mcp=this.B.compatibility;return a}; g.k.Wt=function(a){var b=g.Ia.apply(1,arguments);try{return this.B.Un[a].apply(this.B.Un,b)}catch(c){Yr(538,c,.01,function(d){d.method=a})}}; g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.YD();this.isInitialized=!0;if(2===this.B.compatibility)return this.N="ng",this.xj("w"),!1;if(1===this.B.compatibility)return this.N="mm",this.xj("w"),!1;Cs().Z=!0;this.C.document.readyState&&"complete"==this.C.document.readyState?nka(this):ft(this.C,"load",function(){Jr().setTimeout(Xr(292,function(){return nka(a)}),100)},292); return!0}; g.k.VT=function(){var a=Cs(),b=ska(this,"getMaxSize");a.j=new ds(0,b.width,b.height,0)}; g.k.XT=function(){Cs().D=ska(this,"getScreenSize")}; g.k.dispose=function(){pka(this);Gs.prototype.dispose.call(this)};var Rha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=ru.prototype;g.k.CH=function(a){jt(a,!1);Mja(a)}; g.k.tI=function(){}; g.k.zF=function(a,b,c,d){var e=this;a=new Dt(Cq,a,c?b:-1,7,this.yN(),this.iW());a.ij=d;mha(a.Mc);vq(a.Mc,"queryid",a.ij);a.hR("");bja(a,function(){return e.zX.apply(e,g.pa(g.Ia.apply(0,arguments)))},function(){return e.a8.apply(e,g.pa(g.Ia.apply(0,arguments)))}); (d=Gq(Pt).j)&&Yia(a,d);a.Xj.Ht&&Gq(Vja);return a}; g.k.Iz=function(a){switch(a.Nq()){case 0:if(a=Gq(Pt).j)a=a.j,g.Ib(a.G,this),a.Y&&this.Wp()&&Bia(a);uu();break;case 2:Yt()}}; g.k.kt=function(){}; g.k.Wp=function(){return!1}; g.k.a8=function(a,b){a.ut=!0;switch(a.Ap()){case 1:yka(a,b);break;case 2:this.sR(a)}}; g.k.j8=function(a){var b=a.N(a);b&&(b=b.volume,a.ub=As(b)&&0a&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)}; Ku.prototype.get=function(a){return!!this.data[a]};var Mu;g.ob(g.Pu,g.I);g.k=g.Pu.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Wka(this),b=Xka(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.Bd(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(nba(this.C),20)}; g.k.stop=function(){if(this.isActive()){var a=Wka(this),b=Xka(this);a&&!b&&this.B.mozRequestAnimationFrame?Fd(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null}; g.k.isActive=function(){return null!=this.j}; g.k.S3=function(){this.D&&this.j&&Fd(this.j);this.j=null;this.K.call(this.G,g.kb())}; g.k.xa=function(){this.stop();g.Pu.Uf.xa.call(this)};g.ob(g.Ru,g.I);g.k=g.Ru.prototype;g.k.lC=0;g.k.xa=function(){g.Ru.Uf.xa.call(this);this.stop();delete this.j;delete this.B}; g.k.start=function(a){this.stop();this.lC=g.yg(this.C,void 0!==a?a:this.gj)}; g.k.stop=function(){this.isActive()&&g.Ta.clearTimeout(this.lC);this.lC=0}; g.k.isActive=function(){return 0!=this.lC}; g.k.bU=function(){this.lC=0;this.j&&this.j.call(this.B)};Vu.prototype[Symbol.iterator]=function(){return this}; Vu.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};g.ob(g.dv,g.Ld);g.k=g.dv.prototype;g.k.isPlaying=function(){return 1==this.j}; g.k.isPaused=function(){return-1==this.j}; g.k.EJ=function(){this.Yl("begin")}; g.k.qr=function(){this.Yl("end")}; g.k.onFinish=function(){this.Yl("finish")}; g.k.Yl=function(a){this.dispatchEvent(a)};var pib=Td(function(){if(g.Cf)return!0;var a=g.If("DIV"),b=g.Vc?"-webkit":ms?"-moz":g.Cf?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!hhb.test("div"))throw Error("");if("DIV"in jhb)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!hhb.test(n))throw Error("");var e=c[n];if(null!=e){var f=void 0;var h=n;if(e instanceof g.Zd)e=$d(e);else if("style"==h.toLowerCase()){if(!g.bb(e))throw Error(""); if(!(e instanceof g.me)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];null!=m&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.me(l,Ge):nv}e=ne(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in ihb)if(e instanceof g.be)e=g.ce(e).toString();else if(e instanceof g.ge)e=g.he(e);else if("string"===typeof e)e=(uba(e)||Cba).toString();else throw Error(""); }f=h+'="'+hc(String(e))+'"';d+=" "+f}}var n="":(b=Fba(b),n+=">"+g.pe(b).toString()+"");n=g.qe(n);g.Qba(a,n);return""!=g.ns(a.firstChild,"transition")});g.ob(ev,g.dv);g.k=ev.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.EJ();this.Yl("play");this.startTime=g.kb();this.j=1;if(pib())return g.ls(this.B,this.K),this.C=g.yg(this.Aba,void 0,this),!0;this.YL(!1);return!1}; g.k.Aba=function(){g.xs(this.B);ala(this.B,this.N);g.ls(this.B,this.D);this.C=g.yg((0,g.ib)(this.YL,this,!1),1E3*this.G)}; g.k.stop=function(){this.isPlaying()&&this.YL(!0)}; g.k.YL=function(a){g.ls(this.B,"transition","");g.Ta.clearTimeout(this.C);g.ls(this.B,this.D);this.endTime=g.kb();this.j=0;if(a)this.Yl("stop");else this.onFinish();this.qr()}; g.k.xa=function(){this.stop();ev.Uf.xa.call(this)}; g.k.pause=function(){};var dla={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};fv("Element","attributes")||fv("Node","attributes");fv("Element","innerHTML")||fv("HTMLElement","innerHTML");fv("Node","nodeName");fv("Node","nodeType");fv("Node","parentNode");fv("Node","childNodes");fv("HTMLElement","style")||fv("Element","style");fv("HTMLStyleElement","sheet");var jla=fla("getPropertyValue"),kla=fla("setProperty");fv("Element","namespaceURI")||fv("Node","namespaceURI");var ila={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var ola,Mgb,nla,mla,pla;ola=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]");Mgb=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.qib=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.ov=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]");nla=/^http:\/\/.*/;g.rib=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");mla=/\s+/;pla=/[\d\u06f0-\u06f9]/;qv.prototype.Kk=function(){return new rv(this.B())}; qv.prototype[Symbol.iterator]=function(){return new tv(this.B())}; qv.prototype.j=function(){return new tv(this.B())}; g.w(rv,g.kt);rv.prototype.next=function(){return this.B.next()}; rv.prototype[Symbol.iterator]=function(){return new tv(this.B)}; rv.prototype.j=function(){return new tv(this.B)}; g.w(tv,qv);tv.prototype.next=function(){return this.C.next()};vv.prototype.clone=function(){return new vv(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};xv.prototype.clone=function(){return new xv(this.start,this.end)}; xv.prototype.getLength=function(){return this.end-this.start};(function(){if($db){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.pc()))?a[1]:"0"}return EU?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.pc()))?a[0].replace(/_/g,"."):"10"):g.eC?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.pc()))?a[1]:""):Xgb||Ygb||Zgb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.pc()))?a[1].replace(/_/g,"."):""):""})();var rla=function(){if(g.qR)return yv(/Firefox\/([0-9.]+)/);if(g.Cf||g.BD||g.PR)return Sc;if(g.BK){if(Nc()||Oc()){var a=yv(/CriOS\/([0-9.]+)/);if(a)return a}return yv(/Chrome\/([0-9.]+)/)}if(g.fD&&!Nc())return yv(/Version\/([0-9.]+)/);if(bC||cC){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.pc()))return a[1]+"."+a[2]}else if(g.nRa)return(a=yv(/Android\s+([0-9.]+)/))?a:yv(/Version\/([0-9.]+)/);return""}();g.ob(g.Av,g.I);g.k=g.Av.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e}; g.k.unsubscribe=function(a,b,c){if(a=this.B[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.B[b];0!=this.D?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Ib(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; g.k.ra=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)return g.y2;var e=c.key(b++);if(a)return g.lt(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.lt(e)}; return d}; g.k.clear=function(){Hv(this);this.j.clear()}; g.k.key=function(a){Hv(this);return this.j.key(a)};g.ob(Iv,Gv);g.ob(xla,Gv);g.k=g.Jv.prototype;g.k.jm=function(){Lv(this);for(var a=[],b=0;b2*this.size&&Lv(this),!0):!1}; g.k.get=function(a,b){return Kv(this.B,a)?this.B[a]:b}; g.k.set=function(a,b){Kv(this.B,a)||(this.size+=1,this.j.push(a),this.Au++);this.B[a]=b}; g.k.forEach=function(a,b){for(var c=this.yp(),d=0;d=d.j.length)return g.y2;var f=d.j[b++];return g.lt(a?f:d.B[f])}; return e};g.ob(Nv,Fv);var yla={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Mv=null;g.k=Nv.prototype;g.k.isAvailable=function(){return!!this.j}; g.k.set=function(a,b){this.j.setAttribute(Ov(a),b);Pv(this)}; g.k.get=function(a){a=this.j.getAttribute(Ov(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; g.k.remove=function(a){this.j.removeAttribute(Ov(a));Pv(this)}; g.k.Kk=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.kt;d.next=function(){if(b>=c.length)return g.y2;var e=c[b++];if(a)return g.lt(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.lt(e)}; return d}; g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0>1;if(b[d].j>c.j)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.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.jm=function(){for(var a=this.j,b=[],c=a.length,d=0;d>>16&65535|0;for(var f;0!==c;){f=2E3D2;D2++){C2=D2;for(var xib=0;8>xib;xib++)C2=C2&1?3988292384^C2>>>1:C2>>>1;wib[D2]=C2}vw=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^wib[(a^b[d])&255];return a^-1};var kw={};kw={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 dw=[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],gw=[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],Wla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Lla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ow=Array(576);Wv(ow);var pw=Array(60);Wv(pw);var fw=Array(512);Wv(fw);var cw=Array(256);Wv(cw);var ew=Array(29);Wv(ew);var hw=Array(30);Wv(hw);var Tla,Ula,Vla,Sla=!1;var Aw;Aw=[new zw(0,0,0,0,function(a,b){var c=65535;for(c>a.Cm-5&&(c=a.Cm-5);;){if(1>=a.pc){ww(a);if(0===a.pc&&0===b)return 1;if(0===a.pc)break}a.Eb+=a.pc;a.pc=0;var d=a.Nk+c;if(0===a.Eb||a.Eb>=d)if(a.pc=a.Eb-d,a.Eb=d,qw(a,!1),0===a.Ce.Re)return 1;if(a.Eb-a.Nk>=a.pj-262&&(qw(a,!1),0===a.Ce.Re))return 1}a.Ah=0;if(4===b)return qw(a,!0),0===a.Ce.Re?3:4;a.Eb>a.Nk&&qw(a,!1);return 1}), new zw(4,4,8,4,xw),new zw(4,5,16,8,xw),new zw(4,6,32,32,xw),new zw(4,4,16,16,yw),new zw(8,16,32,32,yw),new zw(8,16,128,128,yw),new zw(8,32,128,256,yw),new zw(32,128,258,1024,yw),new zw(32,258,258,4096,yw)];var Rla={};Rla=function(){this.input=null;this.Cx=this.uj=this.Ew=0;this.output=null;this.wS=this.Re=this.AA=0;this.msg="";this.state=null;this.CN=2;this.Zd=0};var Xla=Object.prototype.toString; Bw.prototype.push=function(a,b){var c=this.Ce,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=Ala(a):"[object ArrayBuffer]"===Xla.call(a)?c.input=new Uint8Array(a):c.input=a;c.Ew=0;c.uj=c.input.length;do{0===c.Re&&(c.output=new Vv.Jx(d),c.AA=0,c.Re=d);a=Qla(c,e);if(1!==a&&0!==a)return this.qr(a),this.ended=!0,!1;if(0===c.Re||0===c.uj&&(4===e||2===e))if("string"===this.options.to){var f=Vv.eS(c.output,c.AA);b=f;f=f.length;if(65537>f&&(b.subarray&& vib||!b.subarray))b=String.fromCharCode.apply(null,Vv.eS(b,f));else{for(var h="",l=0;lc;c++)b+=this.B[c]||0;3<=b&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}}; xC.prototype.xa=function(){g.JB(this.Z);g.vC(this.va)};g.w(yC,g.I);yC.prototype.T=function(a,b,c,d,e){c=g.qB((0,g.ib)(c,d||this.tb));c={target:a,name:b,callback:c};var f;e&&tqa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c}; yC.prototype.Tc=function(a){for(var b=0;b=Q.fn)||A.j.version>=R||A.j.objectStoreNames.contains(L)||F.push(L)}m=F;if(0===m.length){x.Ka(5);break}n=Object.keys(c.options.lr); p=l.objectStoreNames();if(c.Gc.options.version+1)throw r.close(),c.C=!1,xra(c,t);return x.return(r);case 8:throw b(), q instanceof Error&&!g.KB("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Xqa(q,c.name,"",null!=(v=c.options.version)?v:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.C)throw xra(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,eda:b,upgrade:this.options.upgrade};return this.j=d=a()};var yra=new xD("YtIdbMeta",{lr:{databases:{fn:1}},upgrade:function(a,b){b(1)&&g.lD(a,"databases",{keyPath:"actualName"})}});var Era,Cra=new function(){}(new function(){});new g.ho;g.w(ED,xD);ED.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?Jra:Ira)(a,b,Object.assign({},c))}; ED.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?Nra:Kra)(this.name,a)};var Vkb={},Pra=g.FD("ytGcfConfig",{lr:(Vkb.coldConfigStore={fn:1},Vkb.hotConfigStore={fn:1},Vkb),shared:!1,upgrade:function(a,b){b(1)&&(g.rD(g.lD(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.rD(g.lD(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.w(Vra,g.I);Vra.prototype.xa=function(){for(var a=g.u(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);0<=b&&c.splice(b,1)}this.B.length=0;g.I.prototype.xa.call(this)};LD.prototype.Er=function(a){this.hotHashData=a;g.Va("yt.gcf.config.hotHashData",this.hotHashData||null)};var Wkb="undefined"!==typeof TextEncoder?new TextEncoder:null,Lsa=Wkb?function(a){return Wkb.encode(a)}:function(a){a=g.Cg(a); for(var b=new Uint8Array(a.length),c=0;c=b?!1:!0}; g.k.DK=function(){var a=this;if(!$D(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Eh.hX("QUEUED",this.Jf).then(function(b){b&&!a.zK(b,a.z_)?a.Rn.Xi(function(){return g.H(function(c){if(1==c.j)return void 0===b.id?c.Ka(2):g.z(c,a.Eh.AR(b.id,a.Jf),2);a.DK();g.Aa(c)})}):a.kh.Uh()&&a.GB()})};var cE;var Vua={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,vrCowatchPartyEvent:492,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,apiTest: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,tvhtml5StabilityTraceEvent:478, 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,lockModeTimeoutEvent:483,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,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496};var Ykb={},cta=g.FD("ServiceWorkerLogsDatabase",{lr:(Ykb.SWHealthLog={fn:1},Ykb),shared:!0,upgrade:function(a,b){b(1)&&g.rD(g.lD(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var jta={},ita=0;fE.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; fE.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.B?!0:null}; fE.prototype.removeParams=function(a){return a.split("?")[0]}; fE.prototype.removeParams=fE.prototype.removeParams;fE.prototype.isEndpointCFR=fE.prototype.isEndpointCFR;fE.prototype.requestComplete=fE.prototype.requestComplete;fE.getInstance=gE;var lta;g.w(iE,g.Ld);g.k=iE.prototype;g.k.Uh=function(){return this.j.Uh()}; g.k.Cw=function(a){this.j.j=a}; g.k.F7=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; g.k.G6=function(){this.B=!0}; g.k.Ta=function(a,b){return this.j.Ta(a,b)}; g.k.IK=function(a){a=Hu(this.j,a);a.then(function(b){g.KB("use_cfr_monitor")&&gE().requestComplete("generate_204",b)}); return a}; iE.prototype.sendNetworkCheckRequest=iE.prototype.IK;iE.prototype.listen=iE.prototype.Ta;iE.prototype.enableErrorFlushing=iE.prototype.G6;iE.prototype.getWindowStatus=iE.prototype.F7;iE.prototype.networkStatusHint=iE.prototype.Cw;iE.prototype.isNetworkAvailable=iE.prototype.Uh;iE.getInstance=nta;g.w(g.jE,g.Ld);g.jE.prototype.Uh=function(){var a=g.Wa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0}; g.jE.prototype.Cw=function(a){var b=g.Wa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)}; g.jE.prototype.IK=function(a){var b=this,c;return g.H(function(d){c=g.Wa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.KB("skip_network_check_if_cfr")&&gE().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Cw((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Uh())})):c?d.return(c(a)):d.return(!0)})};var pta;g.w(kE,aE);kE.prototype.writeThenSend=function(a,b){b||(b={});b=tta(a,b);g.NC()||(this.j=!1);aE.prototype.writeThenSend.call(this,a,b)}; kE.prototype.sendThenWrite=function(a,b,c){b||(b={});b=tta(a,b);g.NC()||(this.j=!1);aE.prototype.sendThenWrite.call(this,a,b,c)}; kE.prototype.sendAndWrite=function(a,b){b||(b={});b=tta(a,b);g.NC()||(this.j=!1);aE.prototype.sendAndWrite.call(this,a,b)}; kE.prototype.awaitInitialization=function(){return this.C.promise};var uta=g.Ta.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Va("ytNetworklessLoggingInitializationOptions",uta);g.mE.prototype.isReady=function(){!this.config_&&hsa()&&(this.config_=g.ND());return!!this.config_};var Zkb,pE,rE;Zkb=g.Ta.ytPubsubPubsubInstance||new g.Av;pE=g.Ta.ytPubsubPubsubSubscribedKeys||{};rE=g.Ta.ytPubsubPubsubTopicToKeys||{};g.qE=g.Ta.ytPubsubPubsubIsSynchronous||{};g.Av.prototype.subscribe=g.Av.prototype.subscribe;g.Av.prototype.unsubscribeByKey=g.Av.prototype.Jh;g.Av.prototype.publish=g.Av.prototype.ra;g.Av.prototype.clear=g.Av.prototype.clear;g.Va("ytPubsubPubsubInstance",Zkb);g.Va("ytPubsubPubsubTopicToKeys",rE);g.Va("ytPubsubPubsubIsSynchronous",g.qE); g.Va("ytPubsubPubsubSubscribedKeys",pE);var zta=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Ata=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Dta={};g.w(xE,g.I);xE.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Kb();this.Kb().appendChild(a)}; g.w(yE,xE);yE.prototype.Kb=function(){return this.j};g.w(Ita,g.I);var zE=Date.now().toString();var Nta={};var HE=Symbol("injectionDeps");FE.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Ota.prototype.resolve=function(a){return a instanceof GE?IE(this,a.key,[],!0):IE(this,a,[])};var Rta;var KE=window;var LE=g.KB("web_enable_lifecycle_monitoring")&&0!==Sta(),aua=g.KB("web_enable_lifecycle_monitoring");Wta.prototype.cancel=function(){for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.jobId||b.nK||this.scheduler.Tj(b.jobId),b.nK=!0;this.B.resolve()};g.k=ME.prototype;g.k.install=function(a){this.plugins.push(a);return this}; g.k.uninstall=function(){var a=this;g.Ia.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);-1Math.pow(5,2))b.D=!0}; g.k.T3=function(a){if(this.Ca){var b=this.Ca,c=a.changedTouches;c&&b.N&&1==b.B&&!b.D&&!b.G&&!b.K&&Jta(b,c)&&(b.ma=a,b.j.start());b.B=a.touches.length;0===b.B&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}}; g.k.NF=function(a){this.layoutId?this.kb.executeCommand(a,this.layoutId):g.oF(new g.LC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)}; g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)}; g.k.xa=function(){this.clear(null);this.Tc(this.tb);for(var a=g.u(this.Ia),b=a.next();!b.done;b=a.next())this.Tc(b.value);g.QF.prototype.xa.call(this)};g.w(aG,RF); aG.prototype.init=function(a,b,c){RF.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.pF(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.Zu(this.element,a);null!=b.text&&(a=g.TF(b.text),g.fc(a)||(this.element.setAttribute("aria-label",a),this.C=new g.QF({I:"span",S:"ytp-ad-button-text",ya:a}),g.N(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&& b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.fc(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=$F(b.icon),null!=b&&(this.B=new g.QF({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.N(this,this.B)),this.D?Qf(this.element,this.B.element,0):this.B.Ja(this.element))}}; aG.prototype.clear=function(){this.hide()}; aG.prototype.onClick=function(a){RF.prototype.onClick.call(this,a);a=g.u(Ywa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.kb.executeCommand(b,this.layoutId):g.oF(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(bG,g.I);bG.prototype.xa=function(){this.B&&g.vC(this.B);this.j.clear();cG=null;g.I.prototype.xa.call(this)}; bG.prototype.register=function(a,b){b&&this.j.set(a,b)}; var cG=null;g.w(fG,RF); fG.prototype.init=function(a,b,c){RF.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.U(b.button,g.FM)||null;null==b?g.oF(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new aG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.button),this.button.init(GF("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.TF(a)),this.button.Ja(this.element),this.G&&!g.Yu(this.button.element,"ytp-ad-clickable")&&g.Zu(this.button.element, "ytp-ad-clickable"),a&&(this.B=new g.QF({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.QF({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.N(this,b)),g.N(this,this.B),this.B.Ja(this.element),b=dG(a),Qf(this.B.element,b,0)),this.show())}; fG.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();RF.prototype.hide.call(this)}; fG.prototype.show=function(){this.button&&this.button.show();RF.prototype.show.call(this)};g.w(hG,RF); hG.prototype.init=function(a,b,c){RF.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&gG(a)||"";g.fc(c)?.01>Math.random()&&g.pF(Error("Found AdImage without valid image URL")):(this.j?g.ls(this.element,"backgroundImage","url("+c+")"):Bf(this.element,{src:c}),Bf(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())}; hG.prototype.clear=function(){this.hide()};g.w(iG,RF);g.k=iG.prototype;g.k.hide=function(){RF.prototype.hide.call(this);this.C&&this.C.focus()}; g.k.show=function(){this.C=document.activeElement;RF.prototype.show.call(this);this.D.focus()}; g.k.init=function(a,b,c){RF.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.oF(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.oF(Error("ConfirmDialogRenderer.cancelLabel was not set.")):bxa(this,b):g.oF(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.AC(this.j);this.hide()}; g.k.kQ=function(){this.hide()}; g.k.ZL=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.oF(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.k.lQ=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.kb.executeCommand(a,this.layoutId):g.oF(Error("Missing layoutId for confirm dialog.")));this.hide()};g.w(jG,RF);g.k=jG.prototype; g.k.init=function(a,b,c){RF.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.oF(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.oF(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.Zu(this.D,a)}a={};b.defaultText? (c=g.TF(b.defaultText),g.fc(c)||(a.buttonText=c,this.api.U().experiments.jb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.jb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.ys(this.Ea,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=$F(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.va= !0,c=$F(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.ys(this.Y,!0),g.ys(this.G,!1)),g.ys(this.j,!1)):g.ys(this.B,!1);g.md(a)||this.update(a);b.isToggled&&(g.Zu(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));cxa(this);this.T(this.element,"change",this.cU);this.show()}}; g.k.onClick=function(a){0a&&g.oF(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ib&&(this.D?g.Zu(this.B.element,"modern-countdown-next-to-thumbnail"):g.Zu(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Na=null==a||0===a?this.j.gm():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview); this.C.init(GF("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Jl&&b.thumbnail?this.G.init(GF("ad-image"),b.thumbnail,c):(this.va.hide(),this.D&&this.ib&&g.Zu(this.C.element,"ytp-ad-preview-text-modern-postroll"))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.B.hide();this.C.hide();this.G.hide();wG(this);uG.prototype.hide.call(this)}; g.k.show=function(){vG(this);this.B.show();this.C.show();this.G.show();uG.prototype.show.call(this)}; g.k.Up=function(){this.hide()}; g.k.qo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Xa&&a>=this.Na?(this.Ea.hide(),this.Xa=!0,this.ra("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Na-a)/1E3)),a!=this.Za&&(uxa(this.C,{TIME_REMAINING:String(a)}),this.Za=a)))}};g.w(wxa,uG);g.k=wxa.prototype; g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.U(b.actionButton,g.FM))&&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.Ea&&(wG(this),g.av(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}}; g.k.Up=function(){this.clear()}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.eU.bind(this))}; g.k.show=function(){this.B&&this.B.show();uG.prototype.show.call(this)}; g.k.hide=function(){this.B&&this.B.hide();uG.prototype.hide.call(this)}; g.k.eU=function(a){"hidden"==a?this.show():this.hide()};g.w(xxa,RF);g.k=xxa.prototype; g.k.init=function(a,b,c){RF.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.U(this.j.likeButton,J2),b=this.j.dislikeButton&&g.U(this.j.dislikeButton,J2),this.C.init(GF("toggle-button"),a,c),this.B.init(GF("toggle-button"),b,c),this.T(this.element,"change",this.fU),this.D.show(100),this.show(),c=g.u(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.kb.executeCommand(a,this.layoutId):g.oF(Error("Missing layoutId for instream user sentiment."))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.C.hide();this.B.hide();RF.prototype.hide.call(this)}; g.k.show=function(){this.C.show();this.B.show();RF.prototype.show.call(this)}; g.k.fU=function(){$ka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.ob("onYtShowToast",this.j.postMessageAction);this.D.hide()}; g.k.onClick=function(a){0=this.G&&Fxa(this,!0)};g.w(Gxa,aG);Gxa.prototype.init=function(a,b,c){aG.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.TF(b.text),a=!g.fc(a));a?null==b.navigationEndpoint?g.pF(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.pF(Error("Button style was not a link-style type in renderer,")):this.show():g.pF(Error("No visit advertiser text was present in the renderer."))};g.w(KG,RF); KG.prototype.init=function(a,b,c){RF.prototype.init.call(this,a,b,c);a=b.text;g.fc(SF(a))?g.pF(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.U(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new tG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),a.init(GF("simple-ad-badge"),b,c),a.Ja(this.element),g.N(this,a)),this.api.U().experiments.jb("enable_unified_ad_badge_style_fix")&&this.C&& this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())}; KG.prototype.clear=function(){this.hide()};g.w(LG,HF);g.w(MG,g.IF);g.k=MG.prototype;g.k.gm=function(){return this.durationMs}; g.k.stop=function(){this.j&&this.Id.Tc(this.j)}; g.k.Rc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ra("h")}; g.k.getProgressState=function(){return this.B}; g.k.W3=function(a){g.GG(a,2)&&this.ra("g")};g.w(NG,g.IF);g.k=NG.prototype;g.k.gm=function(){return this.durationMs}; g.k.start=function(){this.j||(this.j=!0,this.tf.start())}; g.k.stop=function(){this.j&&(this.j=!1,this.tf.stop())}; g.k.Rc=function(){this.lj+=100;var a=!1;this.lj>this.durationMs&&(this.lj=this.durationMs,this.tf.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.lj/1E3};this.ra("h");a&&this.ra("g")}; g.k.getProgressState=function(){return this.B};g.w(QG,uG);g.k=QG.prototype;g.k.init=function(a,b,c){uG.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.pF(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new tG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb);this.B.init(GF("ad-text"),a,{});this.B.Ja(this.element);g.N(this,this.B)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){wG(this);uG.prototype.hide.call(this)}; g.k.Up=function(){this.hide()}; g.k.qo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.j instanceof MG?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof NG?a.seekableEnd:this.api.getDuration(2,!1))-a.current,uxa(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.OG(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; g.k.show=function(){vG(this);uG.prototype.show.call(this)};g.w(Ixa,tG);Ixa.prototype.onClick=function(a){tG.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};RG.prototype.getLength=function(){return this.j-this.B};g.w(TG,g.QF);TG.prototype.Rc=function(){var a=this.B.getProgressState();a=SG(new RG(a.seekableStart,a.seekableEnd),a.current,0);this.progressBar.style.width=100*a+"%"}; TG.prototype.onStateChange=function(){g.WR(this.api.U())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.B.subscribe("h",this.Rc,this),this.Rc()):-1!==this.j&&(this.hide(),this.B.Jh(this.j),this.j=-1))};g.w(UG,RF); UG.prototype.init=function(a,b,c,d){RF.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.U(c,LL),c=g.U(c,EM),a?(c=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,this.Y),c.Ja(this.G),c.init(GF("skip-button"),a,this.macros),g.N(this,c)):c&&(a=new zG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!1),a.Ja(this.G),a.init(GF("ad-preview"),c,this.macros),vxa(a),g.N(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer, c=new xxa(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),c.Ja(this.va),c.init(GF("instream-user-sentiment"),a,this.macros),g.N(this,c));if(a=g.U(b,Aib))if(a=g.U(a,Aib))c=new wxa(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,!!b.showWithoutLinkedMediaLayout),g.N(this,c),c.Ja(this.C),c.init(GF("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 KG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.N(this,c),c.Ja(this.j),c.init(GF("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new QG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d),g.N(this,d),d.Ja(this.j),d.init(GF("ad-duration-remaining"), a,this.macros));b.adInfoRenderer&&(d=g.U(b.adInfoRenderer,DM))&&(a=new sG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,a),a.Ja(this.j),a.init(GF("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.U(b.visitAdvertiserRenderer,g.FM))&&(a=Jxa(this)&&this.D?this.D:this.j)&&(b=new Gxa(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,b),b.Ja(a),b.init(GF("visit-advertiser"),d,this.macros),Lu(b.element),d=Ou(b.element), Nu(b.element,d+" This link opens in new tab"));(b=this.api.U())&&!g.UR(b)&&"3"==b.controlsType&&(b=new TG(this.api,this.B),b.Ja(this.Ea),g.N(this,b));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Zu(this.element,"ytp-ad-player-overlay-updated-focus-style");this.api.U().L("enable_unified_ad_badge_style_fix")&&(this.C.classList.add("ytp-ad-player-overlay-flyout-cta-unified"),this.j.classList.add("ytp-ad-player-overlay-instream-info-unified"));this.show()}; UG.prototype.clear=function(){this.hide()};XG.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)}; XG.prototype.get=function(a){return this.j.get(a)}; XG.prototype.remove=function(a){this.j.remove(a)};var Oxa=null,Qxa=null,Sxa=null,Uxa=null;g.Va("yt.www.ads.eventcache.getLastCompanionData",function(){return Oxa}); g.Va("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Va("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Qxa}); g.Va("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Sxa}); g.Va("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Uxa});var Wxa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);$G.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Gp.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)}; $G.prototype.replace=function(a,b){a=g.u(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Yxa(this,b)};var clb=window.location.hostname.split(".").slice(-2).join("."),Q2;aH.getInstance=function(){Q2=g.Wa("yt.clientLocationService.instance");Q2||(Q2=new aH,g.Va("yt.clientLocationService.instance",Q2));return Q2}; g.k=aH.prototype; g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)}; g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.mB("INNERTUBE_CLIENT_NAME")?(this.localStorage=Zxa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.VB("YT_CL",JSON.stringify({loctok:a}),15552E3,clb,!0))}; g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=Zxa(this))&&this.localStorage.remove("yt-location-playability-token"):g.xpa("YT_CL")}; g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.mB("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b, maximumAge:0,timeout:c})})}; g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b}; g.k.createLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);return b};var R2={},eya=(R2.WEB_UNPLUGGED="^unplugged/",R2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",R2.WEB_UNPLUGGED_OPS="^unplugged/",R2.WEB_UNPLUGGED_PUBLIC="^unplugged/",R2.WEB_CREATOR="^creator/",R2.WEB_KIDS="^kids/",R2.WEB_EXPERIMENTS="^experiments/",R2.WEB_MUSIC="^music/",R2.WEB_REMIX="^music/",R2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",R2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",R2);gya.prototype.G=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?OD:c;var d={context:g.bH(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.dH(this.C());(e=null==(f=g.U(a.commandMetadata,g.F2))?void 0:f.apiUrl)&&(b=e);f=Apa(zpa(b));a=Object.assign({},{command:a},void 0);d={input:f,Vt:Bpa(f),Gp:d,config:a};d.config.Uu?d.config.Uu.identity=c:d.config.Uu={identity:c};return d}g.oF(new g.LC("Error: Failed to create Request from Command.",a))}; g.ha.Object.defineProperties(gya.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.w(eH,gya);g.w(fH,eH);fH.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Vt:Bpa("/getDatasyncIdsEndpoint","GET"),Gp:{}}}; fH.prototype.C=function(){return[]}; fH.prototype.B=function(){}; fH.prototype.j=function(){};var dlb={},Vya=(dlb.GET_DATASYNC_IDS=cH(fH),dlb);var S2={},nya=(S2.auto_search="LATENCY_ACTION_AUTO_SEARCH",S2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",S2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",S2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",S2.app_startup="LATENCY_ACTION_APP_STARTUP",S2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",S2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",S2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",S2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS", S2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",S2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",S2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",S2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",S2["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",S2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",S2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",S2["asset.metadata"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",S2["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",S2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",S2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",S2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",S2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",S2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",S2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS", S2["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",S2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",S2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",S2.browse="LATENCY_ACTION_BROWSE",S2.cast_splash="LATENCY_ACTION_CAST_SPLASH",S2.channels="LATENCY_ACTION_CHANNELS",S2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",S2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",S2["channel.comments"]= "LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",S2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",S2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",S2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",S2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",S2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",S2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",S2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", S2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",S2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",S2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",S2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",S2.chips="LATENCY_ACTION_CHIPS",S2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",S2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",S2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT", S2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",S2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",S2.embed="LATENCY_ACTION_EMBED",S2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",S2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",S2.explore="LATENCY_ACTION_EXPLORE",S2.favorites="LATENCY_ACTION_FAVORITES",S2.home="LATENCY_ACTION_HOME",S2.inboarding="LATENCY_ACTION_INBOARDING",S2.library="LATENCY_ACTION_LIBRARY",S2.live= "LATENCY_ACTION_LIVE",S2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",S2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",S2.onboarding="LATENCY_ACTION_ONBOARDING",S2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",S2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",S2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",S2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",S2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",S2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS", S2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",S2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",S2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",S2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",S2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",S2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",S2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",S2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY", S2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",S2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",S2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",S2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",S2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",S2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",S2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",S2["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",S2.parent_profile_settings= "LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",S2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",S2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",S2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",S2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",S2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",S2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",S2.prebuffer="LATENCY_ACTION_PREBUFFER",S2.prefetch="LATENCY_ACTION_PREFETCH",S2.profile_settings= "LATENCY_ACTION_KIDS_PROFILE_SETTINGS",S2.profile_switcher="LATENCY_ACTION_LOGIN",S2.reel_watch="LATENCY_ACTION_REEL_WATCH",S2.results="LATENCY_ACTION_RESULTS",S2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",S2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",S2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",S2.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",S2.search_ui="LATENCY_ACTION_SEARCH_UI",S2.search_suggest="LATENCY_ACTION_SUGGEST",S2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE", S2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",S2.seek="LATENCY_ACTION_PLAYER_SEEK",S2.settings="LATENCY_ACTION_SETTINGS",S2.store="LATENCY_ACTION_STORE",S2.tenx="LATENCY_ACTION_TENX",S2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",S2.watch="LATENCY_ACTION_WATCH",S2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",S2["watch,watch7"]="LATENCY_ACTION_WATCH",S2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",S2["watch,watch7ad"]="LATENCY_ACTION_WATCH",S2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH", S2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",S2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",S2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",S2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",S2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",S2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",S2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",S2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",S2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC", S2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",S2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",S2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",S2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",S2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",S2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",S2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",S2.cast_load_by_entity_to_watch= "LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",S2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",S2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",S2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",S2);var W={LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE:269,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COSTREAM_JOIN_FLOW:280,LATENCY_ACTION_COSTREAM_INVITE_FLOW:279, LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER:277,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170, LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158, LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138, LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81, LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45, LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136, LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE:275,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO:274,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO:273,LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO:278,LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD:267,LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET:251, LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION:262,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155, LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING:264,LATENCY_ACTION_SHORTS_RECOMPOSITION:263,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239,LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE:250,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242, LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71, LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38, LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33, LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST:265,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202, LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES:252,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES:261, LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY:253,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES:254,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY:282, LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211, LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49, LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54, LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_PLAYLIST_AGGREGATION:266,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8, LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_NETWORK_INSTRUMENTATION:281,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INFRASTRUCTURE_CONTAINER:276,LATENCY_ACTION_INBOARDING:284,LATENCY_ACTION_FAVORITES:283,LATENCY_ACTION_INLINE_TO_WATCH:232, LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE"; W[W.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";W[W.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";W[W.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";W[W.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";W[W.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";W[W.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR"; W[W.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";W[W.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";W[W.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";W[W.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";W[W.LATENCY_ACTION_COSTREAM_JOIN_FLOW]="LATENCY_ACTION_COSTREAM_JOIN_FLOW";W[W.LATENCY_ACTION_COSTREAM_INVITE_FLOW]="LATENCY_ACTION_COSTREAM_INVITE_FLOW";W[W.LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER]="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER"; W[W.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";W[W.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";W[W.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";W[W.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";W[W.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";W[W.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";W[W.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC"; W[W.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";W[W.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";W[W.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";W[W.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";W[W.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC"; W[W.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";W[W.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";W[W.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";W[W.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";W[W.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";W[W.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC"; W[W.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";W[W.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";W[W.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";W[W.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";W[W.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";W[W.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC"; W[W.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";W[W.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";W[W.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";W[W.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";W[W.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";W[W.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";W[W.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW"; W[W.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";W[W.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";W[W.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";W[W.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";W[W.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";W[W.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";W[W.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY"; W[W.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";W[W.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";W[W.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";W[W.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";W[W.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";W[W.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION"; W[W.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";W[W.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";W[W.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";W[W.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";W[W.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";W[W.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";W[W.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP"; W[W.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";W[W.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";W[W.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";W[W.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";W[W.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";W[W.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT"; W[W.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";W[W.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";W[W.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";W[W.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";W[W.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";W[W.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";W[W.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH"; W[W.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";W[W.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";W[W.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";W[W.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";W[W.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";W[W.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";W[W.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED"; W[W.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";W[W.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";W[W.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";W[W.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";W[W.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";W[W.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";W[W.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";W[W.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE"; W[W.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";W[W.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD"; W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO";W[W.LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO]="LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO";W[W.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD"; W[W.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";W[W.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";W[W.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";W[W.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";W[W.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";W[W.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION"; W[W.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";W[W.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";W[W.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";W[W.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";W[W.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD"; W[W.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";W[W.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";W[W.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";W[W.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";W[W.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";W[W.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";W[W.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA"; W[W.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";W[W.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";W[W.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";W[W.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";W[W.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";W[W.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE"; W[W.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";W[W.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";W[W.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";W[W.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";W[W.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";W[W.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD"; W[W.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";W[W.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";W[W.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";W[W.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";W[W.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS"; W[W.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";W[W.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";W[W.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";W[W.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";W[W.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";W[W.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";W[W.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";W[W.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER"; W[W.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";W[W.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";W[W.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";W[W.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";W[W.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";W[W.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";W[W.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH"; W[W.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";W[W.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";W[W.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";W[W.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";W[W.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";W[W.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION"; W[W.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";W[W.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";W[W.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT"; W[W.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";W[W.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";W[W.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";W[W.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT"; W[W.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";W[W.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";W[W.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";W[W.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";W[W.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";W[W.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT"; W[W.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";W[W.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";W[W.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";W[W.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";W[W.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES"; W[W.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";W[W.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";W[W.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";W[W.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";W[W.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";W[W.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD"; W[W.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";W[W.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";W[W.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";W[W.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";W[W.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY"; W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP"; W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA"; W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS"; W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS"; W[W.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";W[W.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";W[W.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS"; W[W.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";W[W.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";W[W.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";W[W.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";W[W.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";W[W.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT"; W[W.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";W[W.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";W[W.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE"; W[W.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";W[W.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";W[W.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";W[W.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";W[W.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";W[W.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT"; W[W.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";W[W.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";W[W.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";W[W.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";W[W.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";W[W.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";W[W.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";W[W.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME"; W[W.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";W[W.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";W[W.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";W[W.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";W[W.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";W[W.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";W[W.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL"; W[W.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";W[W.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";W[W.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";W[W.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";W[W.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";W[W.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";W[W.LATENCY_ACTION_NETWORK_INSTRUMENTATION]="LATENCY_ACTION_NETWORK_INSTRUMENTATION";W[W.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD"; W[W.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";W[W.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";W[W.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";W[W.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";W[W.LATENCY_ACTION_INFRASTRUCTURE_CONTAINER]="LATENCY_ACTION_INFRASTRUCTURE_CONTAINER";W[W.LATENCY_ACTION_INBOARDING]="LATENCY_ACTION_INBOARDING";W[W.LATENCY_ACTION_FAVORITES]="LATENCY_ACTION_FAVORITES"; W[W.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";W[W.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";W[W.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";W[W.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";W[W.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";W[W.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";W[W.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";W[W.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";W[W.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME"; W[W.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";W[W.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";W[W.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";W[W.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";W[W.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var wH={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};wH[wH.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";wH[wH.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI"; wH[wH.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var xH={CONN_INVALID:31,CONN_WIRED:30,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};xH[xH.CONN_INVALID]="CONN_INVALID";xH[xH.CONN_WIRED]="CONN_WIRED";xH[xH.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";xH[xH.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA"; xH[xH.CONN_WIFI_METERED]="CONN_WIFI_METERED";xH[xH.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";xH[xH.CONN_DISCO]="CONN_DISCO";xH[xH.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";xH[xH.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";xH[xH.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";xH[xH.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";xH[xH.CONN_WIFI]="CONN_WIFI";xH[xH.CONN_NONE]="CONN_NONE";xH[xH.CONN_UNKNOWN]="CONN_UNKNOWN";xH[xH.CONN_DEFAULT]="CONN_DEFAULT"; var yH={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113, DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};yH[yH.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA"; yH[yH.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";yH[yH.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";yH[yH.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";yH[yH.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";yH[yH.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";yH[yH.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN"; yH[yH.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";yH[yH.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";yH[yH.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";yH[yH.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";yH[yH.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";yH[yH.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";yH[yH.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";yH[yH.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B"; yH[yH.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";yH[yH.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";yH[yH.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";yH[yH.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";yH[yH.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";yH[yH.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";yH[yH.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";yH[yH.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA"; yH[yH.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";yH[yH.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";yH[yH.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";yH[yH.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var zH={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0}; zH[zH.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";zH[zH.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";zH[zH.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";zH[zH.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";zH[zH.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";zH[zH.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";zH[zH.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";zH[zH.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN"; var AH={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};AH[AH.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";AH[AH.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";AH[AH.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";AH[AH.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var BH={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0}; BH[BH.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";BH[BH.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var CH={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};CH[CH.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";CH[CH.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";CH[CH.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP"; CH[CH.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";CH[CH.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";CH[CH.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var DH={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};DH[DH.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";DH[DH.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";DH[DH.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";DH[DH.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED"; var EH={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};EH[EH.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";EH[EH.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";EH[EH.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var FH={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};FH[FH.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN"; FH[FH.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";FH[FH.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var rya="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo startupInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata".split(" ");g.w(oya,PD);var Iya=new QD("aft-recorded",oya);var pH=g.Ta.ytLoggingLatencyUsageStats_||{};g.Va("ytLoggingLatencyUsageStats_",pH);nH.prototype.tick=function(a,b,c,d){qH(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.KB("web_csi_via_jspb")?(d=new Aoa,P(d,1,a),P(d,2,b),a=g.KB("jspb_sparse_encoded_pivot")?new iB([{}]):new iB,Tj(a,Aoa,5,hF,d),gF("latencyActionTicked",a,c)):g.XC("latencyActionTicked",{tickName:a,clientActionNonce:b},c))}; nH.prototype.info=function(a,b,c){var d=Object.keys(a).join("");qH(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.XC("latencyActionInfo",a,{cttAuthInfo:c}))}; nH.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=this.start&&(aFG(a,4)&&!(0>FG(a,2))&&this.bb.Pr("resume"))}; g.k.Ki=function(){}; g.k.mQ=function(a){hK(this.bb)&&fK(this.bb,1E3*a,!1);0llb.length)jlb=void 0;else{var mlb=klb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);jlb=mlb&&6===mlb.length?Number(mlb[5].replace("_",".")):0}var XS=jlb,fW=0<=XS;var BCa=!1;g.w(g.DK,yC);g.DK.prototype.T=function(a,b,c,d,e){return yC.prototype.T.call(this,a,b,c,d,e)};var W2={},VPa=(W2.FAIRPLAY="fairplay",W2.PLAYREADY="playready",W2.WIDEVINE="widevine",W2.CLEARKEY=null,W2.FLASHACCESS=null,W2.UNKNOWN=null,W2.WIDEVINE_CLASSIC=null,W2);EK.prototype.isMultiChannelAudio=function(){return 2this.xD()?(this.ac.appendWindowEnd=b,this.ac.appendWindowStart=a):(this.ac.appendWindowStart=a,this.ac.appendWindowEnd=b))}; g.k.BO=function(){return this.timestampOffset}; g.k.Zp=function(a){XZ?this.timestampOffset=a:this.supports(1)&&(this.ac.timestampOffset=a)}; g.k.Vc=function(){return XZ?this.timestampOffset:this.supports(1)?this.ac.timestampOffset:0}; g.k.jf=function(a){if(void 0===a?0:a)return this.UC||this.hk()||(this.WM=this.jf(!1),this.UC=!0),this.WM;try{return this.ac?this.ac.buffered:this.Ag?this.Ag.webkitSourceBuffered(this.id):VK([0],[Infinity])}catch(b){return VK([],[])}}; g.k.hk=function(){var a;return(null==(a=this.ac)?void 0:a.updating)||!1}; g.k.pm=function(){return this.rH}; g.k.hP=function(){return!this.rH&&this.hk()}; g.k.Vy=function(){this.rH=!1}; g.k.hw=function(a){var b=null==a?void 0:a.sb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.sb&&a===this.containerType}; g.k.Cv=function(){return this.tE}; g.k.eI=function(){return this.zP}; g.k.FS=function(a,b){this.containerType!==a&&(this.supports(4),eL()&&this.ac.changeType(b));this.containerType=a}; g.k.gI=function(){return this.Pf}; g.k.isView=function(){return!1}; g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.ac)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.ac)||!c.appendBuffer);case 2:var d;return!(null==(d=this.ac)||!d.remove);case 3:var e,f;return!!((null==(e=this.ac)?0:e.addEventListener)&&(null==(f=this.ac)?0:f.removeEventListener));case 4:return!(!this.ac||!this.ac.changeType);default:return!1}}; g.k.mH=function(){return!this.hk()}; g.k.isLocked=function(){return!1}; g.k.qc=function(a){a.to=this.Vc();a.up=this.hk();var b,c=(null==(b=this.ac)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.ac)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=WK(this.jf())}catch(e){}return a}; g.k.vI=function(){var a;return(null==(a=this.ac)?void 0:a.writeHead)||0}; g.k.fI=function(){for(var a={},b=0;bXS&&(a=Math.max(.1,a)),this.setCurrentTime(a))}; g.k.zo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;kL(this,{l:"mer",sr:null==(a=this.oa)?void 0:lL(a),rs:nL(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.LC("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.oF(a),this.stopVideo()}else this.stopVideo()}; g.k.stopVideo=function(){var a=this;if(!this.B){var b;null==(b=this.Qa)||WCa(b);if(zlb){if(!this.C){var c=new oL;c.then(void 0,function(){}); this.C=c;Alb&&this.pause();g.GB(function(){a.C===c&&(dDa(a),c.resolve())},200)}}else dDa(this)}}; g.k.Dz=function(){var a=this.Ph();return 0<$K(a)&&this.getDuration()?ZK(a,this.getCurrentTime()):0}; g.k.Fv=function(){var a=this.getDuration();return Infinity===a?1:a?this.Dz()/a:0}; g.k.qc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:WK(this.Iv(),",",3),vbu:WK(this.Ph()),vpa:""+ +this.isPaused(),vsk:""+ +this.eg(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Ik(),vns:""+this.kI(),vec:""+this.gh(),vemsg:this.Cf(),vvol:""+this.getVolume(),vdom:""+ +this.iP(),vsrc:""+ +!!this.Kf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}}; g.k.hasError=function(){return 0performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((null==c?0:c.pm())||b<=((null==c?void 0:c.N)||0)){var d;kL(this,{l:"mede",sr:null==(d=this.oa)?void 0:lL(d),et:a.type});return!1}if(this.JI)return kL(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.N=performance.now(),this.JI=!1),!1}return this.D.dispatchEvent(a)}; g.k.IN=function(){this.K=!1}; g.k.FN=function(){this.K=!0;this.rB(!0)}; g.k.YV=function(){this.K&&!this.jI()&&this.rB(!0)}; g.k.xa=function(){this.N&&this.removeEventListener("volumechange",this.YV);zlb&&dDa(this);g.I.prototype.xa.call(this)}; var zlb=!1,Alb=!1,ylb=!1,cDa=!1;g.k=g.rL.prototype;g.k.isPaused=function(){return g.EG(this,4)}; g.k.isPlaying=function(){return g.EG(this,8)&&!g.EG(this,512)&&!g.EG(this,64)&&!g.EG(this,2)}; g.k.isCued=function(){return g.EG(this,64)&&!g.EG(this,8)&&!g.EG(this,4)}; g.k.isError=function(){return g.EG(this,128)}; g.k.isSuspended=function(){return g.EG(this,512)}; g.k.nE=function(){return g.EG(this,64)&&g.EG(this,4)}; g.k.toString=function(){return"PSt."+this.state.toString(16)}; var b3={},c3=(b3.BUFFERING="buffering-mode",b3.CUED="cued-mode",b3.ENDED="ended-mode",b3.PAUSED="paused-mode",b3.PLAYING="playing-mode",b3.SEEKING="seeking-mode",b3.UNSTARTED="unstarted-mode",b3);g.w(BL,g.I);g.k=BL.prototype;g.k.xc=function(){return this.slot}; g.k.rb=function(){return this.layout}; g.k.init=function(){var a=bJ(this.layout.Ba,"metadata_type_video_length_seconds"),b=bJ(this.layout.Ba,"metadata_type_active_view_traffic_type");aK(this.layout.Gb)&&A1(this.wb.get(),this.layout.layoutId,b,a,this);dfb(this.Oa.get(),this);this.Sv()}; g.k.release=function(){aK(this.layout.Gb)&&B1(this.wb.get(),this.layout.layoutId);efb(this.Oa.get(),this);this.ix()}; g.k.wr=function(){}; g.k.Br=function(){}; g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.HB.xf(this.slot,a,new ZI("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");else{this.Qc="rendering_start_requested";var b=this.uf.get();b.W.experiments.jb("disable_safari_ui_status_check")||(b.W.B&&g.fD?0:b.W.B||g.rJ(b.W)||g.tJ(b.W)||bS(b.W)|| !g.fD)?b=!0:(b=g.Af("video-ads"),b=null!=b&&"none"!==os(b,"display"));b?(this.qF(-1),this.xx(a),this.Kd()||this.eH(!1)):this.Fw("ui_unstable",new ZI("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.Ec=function(a,b){if(b.layoutId===this.layout.layoutId){this.Qc="rendering";this.qE=this.Fa.get().isMuted()||0===this.Fa.get().getVolume();this.hc("impression");this.hc("start");if(this.Fa.get().isMuted()){this.Pr("mute");var c;a=(null==(c=AL(this))?void 0:c.muteCommands)||[];EJ(this.Ab.get(),a,this.layout.layoutId)}if(this.Fa.get().isFullscreen()){this.Hh("fullscreen");var d;c=(null==(d=AL(this))?void 0:d.fullscreenCommands)||[];EJ(this.Ab.get(),c,this.layout.layoutId)}this.Kd()||(d=this.Bc.get(), d.D&&!d.B&&(d.G=!1,d.B=!0,"ad_to_video"!==d.actionType&&(d.J.L("html5_no_video_to_ad_on_preroll")?OH("pbs",void 0,d.actionType):NH("pbs",void 0,d.actionType),g.KB("finalize_all_timelines")&&Nya(d.actionType))));this.qF(1);this.zZ(b);var e;b=(null==(e=AL(this))?void 0:e.impressionCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId)}}; g.k.Fw=function(a,b,c){this.Ou={rL:3,yG:"load_timeout"===a?402:400,errorMessage:b.message};this.hc("error");var d;a=(null==(d=AL(this))?void 0:d.errorCommands)||[];EJ(this.Ab.get(),a,this.layout.layoutId);this.Kd()||this.HB.xf(this.slot,this.layout,b,c)}; g.k.xI=function(){this.Kd()&&CG("Unexpected ad player in SSAP",this.slot,this.layout);this.wH()}; g.k.FX=function(){this.wH()}; g.k.xX=function(){if("rendering"===this.Qc){this.Pr("pause");var a,b=(null==(a=AL(this))?void 0:a.pauseCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId);this.qF(2)}}; g.k.yX=function(){if("rendering"===this.Qc){this.Pr("resume");var a,b=(null==(a=AL(this))?void 0:a.resumeCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId)}}; g.k.Hz=function(a,b){b=void 0===b?!1:b;if("rendering"===this.Qc){fK(this.bb,1E3*a,b);this.qE||fK(this.bb,1E3*a,void 0===b?!1:b);var c=this.Bz();if(c&&(c/=1E3,(a>=.25*c||b)&&this.hc("first_quartile"),(a>=.5*c||b)&&this.hc("midpoint"),(a>=.75*c||b)&&this.hc("third_quartile"),b=this.Pba,a*=1E3,c=b.G())){for(;b.DFG(a,4)&&!(0>FG(a,2))&&this.yX()}}; g.k.Jw=function(){if("rendering"===this.Qc){this.bb.hc("active_view_measurable");var a,b=(null==(a=AL(this))?void 0:a.activeViewMeasurableCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId)}}; g.k.Iw=function(){if("rendering"===this.Qc){this.bb.hc("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=AL(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId)}}; g.k.Kw=function(){if("rendering"===this.Qc){this.bb.hc("active_view_viewable");var a,b=(null==(a=AL(this))?void 0:a.activeViewViewableCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId)}}; g.k.Gw=function(){if("rendering"===this.Qc){this.bb.hc("audio_audible");var a,b=(null==(a=AL(this))?void 0:a.activeViewAudioAudibleCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId)}}; g.k.Hw=function(){if("rendering"===this.Qc){this.bb.hc("audio_measurable");var a,b=(null==(a=AL(this))?void 0:a.activeViewAudioMeasurableCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId)}}; g.k.eH=function(a){this.Bc.get().eH(bJ(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.L0,!1)}; g.k.onFullscreenToggled=function(a){if("rendering"===this.Qc)if(a){this.Hh("fullscreen");var b,c=(null==(b=AL(this))?void 0:b.fullscreenCommands)||[];EJ(this.Ab.get(),c,this.layout.layoutId)}else this.Hh("end_fullscreen"),b=(null==(c=AL(this))?void 0:c.endFullscreenCommands)||[],EJ(this.Ab.get(),b,this.layout.layoutId)}; g.k.onVolumeChange=function(){if("rendering"===this.Qc)if(this.Fa.get().isMuted()){this.Pr("mute");var a,b=(null==(a=AL(this))?void 0:a.muteCommands)||[];EJ(this.Ab.get(),b,this.layout.layoutId)}else this.Pr("unmute"),a=(null==(b=AL(this))?void 0:b.unmuteCommands)||[],EJ(this.Ab.get(),a,this.layout.layoutId)}; g.k.lh=function(){}; g.k.Fj=function(){}; g.k.hj=function(){}; g.k.Ej=function(){}; g.k.Hj=function(){}; g.k.Hh=function(a){this.bb.Hh(a,!this.qE)}; g.k.hc=function(a){this.bb.hc(a,!this.qE)}; g.k.Pr=function(a){this.bb.Pr(a,!this.qE)}; g.k.Kd=function(){var a=bJ(this.slot.Ba,"metadata_type_eligible_for_ssap");return void 0===a?(CG("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Da.get().Kd(a)};g.w(kDa,BL);g.k=kDa.prototype;g.k.Sv=function(){}; g.k.ix=function(){var a=this.Oa.get();a.mG===this&&(a.mG=null);this.tf.stop()}; g.k.xx=function(){this.Kd()?this.Oa.get().mG=this:(jDa(this),pfb(this.Fa.get()),this.Oa.get().mG=this,KH("pbp")||KH("pbs")||OH("pbp"),KH("pbp","watch")||KH("pbs","watch")||OH("pbp",void 0,"watch"));this.pN()}; g.k.zZ=function(a){if(UM(this.Da.get(),"h5_enable_ad_mbs")&&!this.Kd()){this.Bc.get();var b=bJ(a.Ba,"metadata_type_ad_placement_config").kind,c=0===this.position;a=bJ(a.Ba,"metadata_type_linked_in_player_layout_type");a={adBreakType:iDa(b),adType:tDa(a)};var d=void 0;c?"AD_PLACEMENT_KIND_START"!==b&&(d="video_to_ad"):d="ad_to_ad";NH("ad_mbs",void 0,d);g.LH(a,d)}nDa(this)}; g.k.AX=function(){}; g.k.wr=function(){this.tf.stop();BL.prototype.xX.call(this)}; g.k.Br=function(){nDa(this);BL.prototype.yX.call(this)}; g.k.Bz=function(){return bJ(this.rb().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.yx=function(){this.tf.stop()}; g.k.Rc=function(){var a=Date.now(),b=a-this.CP;this.CP=a;this.lj+=b;this.lj>=this.Bz()?(this.lj=this.Bz(),this.Hz(this.lj/1E3,!0),mDa(this,this.lj),this.Kd()?this.HB.HF(this.xc(),this.rb(),"normal"):this.wH()):(this.Hz(this.lj/1E3),mDa(this,this.lj))}; g.k.JJ=function(){}; g.k.Ki=function(){};g.w(FL,BL);g.k=FL.prototype;g.k.Sv=function(){bJ(this.rb().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=bJ(this.rb().Ba,"metadata_type_shrunken_player_bytes_config")}; g.k.ix=function(){bJ(this.rb().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.ov&&this.wc.get().removeCueRange(this.ov);this.ov=void 0;var a;null==(a=this.qJ)||a.dispose();this.uA&&this.uA.dispose()}; g.k.xx=function(a){var b=DL(this.Da.get()),c=EL(this.Da.get());if(b&&c&&!this.Kd()){c=bJ(a.Ba,"metadata_type_preload_player_vars");var d=g.gJ(this.Da.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.uA&&this.uA.start(1E3*d)}c=bJ(a.Ba,"metadata_type_ad_video_id");d=bJ(a.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.Df.get().J.U().Na.add(c,{oH:d});(c=bJ(a.Ba,"metadata_type_sodar_extension_data"))&&QAa(this.Ye.get(),c);qfb(this.Fa.get(),!1);if(this.Kd())this.pN();else{jDa(this); b?(c=this.Nd.get(),a=bJ(a.Ba,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):zfb(this.Nd.get(),bJ(a.Ba,"metadata_type_player_vars"));var e;null==(e=this.qJ)||e.start();b||this.Nd.get().J.playVideo(2)}}; g.k.zZ=function(){var a;null==(a=this.qJ)||a.stop();this.ov="adcompletioncuerange:"+this.rb().layoutId;this.wc.get().addCueRange(this.ov,0x7ffffffffffff,0x8000000000000,!1,this,2,2);(this.adCpn=this.WH())||CG("Media layout confirmed started, but ad CPN not set.");this.kd.get().ax("onAdStart",this.adCpn);this.tV=Date.now()}; g.k.AX=function(){this.wH()}; g.k.Bz=function(){var a;return null==(a=this.Ua.get().Te(2))?void 0:a.Bba}; g.k.wK=function(){this.bb.Hh("clickthrough")}; g.k.yx=function(){var a;null==(a=this.qJ)||a.stop();this.uA&&this.uA.stop();qfb(this.Fa.get(),!0);var b;(null==(b=this.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&this.Fa.get().wB(!1)}; g.k.onCueRangeEnter=function(a){a!==this.ov?CG("Received CueRangeEnter signal for unknown layout.",this.xc(),this.rb(),{cueRangeId:a}):(this.wc.get().removeCueRange(this.ov),this.ov=void 0,a=bJ(this.rb().Ba,"metadata_type_video_length_seconds"),this.Hz(a,!0),this.hc("complete"))}; g.k.JJ=function(a,b){"abandoned"!==b&&this.kd.get().ax("onAdComplete");this.kd.get().ax("onAdEnd",this.adCpn)}; g.k.onCueRangeExit=function(){}; g.k.Ki=function(a){"rendering"===this.Qc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Fa.get().wB(!0),this.Hz(a))}; g.k.Hz=function(a,b){BL.prototype.Hz.call(this,a,void 0===b?!1:b);if(5<=a&&!this.KX){b=Date.now()-this.tV;a*=1E3;var c={contentCpn:this.Qk(),adCpn:this.WH()},d=1E3>b?0:1;Axa(d,"i.k_",{metadata:c,u5:b,v5:Math.floor(a/1E3)});lB("IKDSTAT",d);this.KX=!0}};g.w(qDa,g.I);g.k=qDa.prototype;g.k.xc=function(){return this.Pd.xc()}; g.k.rb=function(){return this.Pd.rb()}; g.k.init=function(){var a=bJ(this.rb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sv()}; g.k.Sv=function(){this.Pd.init()}; g.k.release=function(){var a=bJ(this.rb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.ix()}; g.k.ix=function(){this.Pd.release()}; g.k.wr=function(){this.Pd.wr()}; g.k.Br=function(){this.Pd.Br()}; g.k.OA=function(a,b){CG("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.xc(),this.rb(),{requestingSlot:a,requestingLayout:b})}; g.k.startRendering=function(a){a.layoutId!==this.rb().layoutId?this.callback.xf(this.xc(),a,new ZI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.rb().layoutId+("and LayoutType: "+this.rb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Fa.get().addListener(this),iJ(this.Uc(),this),w1(this.Da.get())&&q1(this.Bc.get()),Oeb(this.Da.get())||pfb(this.Fa.get()),w1(this.Da.get())||q1(this.Bc.get()),this.xx(a))}; g.k.xx=function(a){this.Pd.startRendering(a)}; g.k.Ze=function(a,b){this.Rv=!0;this.yx(a,b);this.Fa.get().J.jx();zfb(this.Nd.get(),{});a=z1(this.Fa.get(),1);a.isPaused()&&!g.EG(a,2)&&this.Fa.get().playVideo();this.Fa.get().removeListener(this);this.Rv&&this.IP()}; g.k.yx=function(a,b){this.Pd.Ze(a,b)}; g.k.Ec=function(a,b){this.Pd.Ec(a,b)}; g.k.Wc=function(a,b,c){this.JJ(b,c);this.Pd.Wc(a,b,c);b.layoutId===this.rb().layoutId&&BDa(this.Bc.get())}; g.k.JJ=function(a){a.layoutId===this.rb().layoutId&&(this.Rv=!1,jJ(this.Uc(),this))}; g.k.IP=function(){this.Pd.xI()}; g.k.Ki=function(a){this.Pd.Ki(a)}; g.k.Li=function(a){if(a.state.isError()){var b,c;this.IO(null==(b=a.state.Tg)?void 0:b.errorCode,new ZI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Tg)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Pd.Li(a)}; g.k.IO=function(a,b,c){this.Pd.Fw(a,b,c)}; g.k.onFullscreenToggled=function(a){this.Pd.onFullscreenToggled(a)}; g.k.lh=function(a){this.Pd.lh(a)}; g.k.hj=function(a){this.Pd.hj(a)}; g.k.onVolumeChange=function(){this.Pd.onVolumeChange()}; g.k.Fj=function(){}; g.k.oh=function(){}; g.k.ai=function(){}; g.k.Xh=function(){}; g.k.Qf=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(){}; g.k.Kg=function(){}; g.k.nh=function(){}; g.k.Ej=function(){}; g.k.Hj=function(){};g.w(rDa,g.I);g.k=rDa.prototype;g.k.init=function(){var a=bJ(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ua.get().addListener(this);this.Pd.init();(a=bJ(this.Pd.rb().Ba,"metadata_type_player_vars"))&&this.Nd.get().addPlayerResponseForAssociation(a)}; g.k.release=function(){this.Ua.get().removeListener(this);this.Pd.release()}; g.k.MJ=function(){}; g.k.TJ=function(a,b,c){if(this.layout.layoutId===a)if(void 0!==this.j){var d=this.j;3!==c&&CG("Unexpected transition reason when core initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c});this.callback.Wc(this.slot,this.layout,d);this.j=void 0}else this.B&&CG("Expected a video to exit at most once",this.slot,this.layout),this.B=!0,2===c?IL(this.Oe,this.layout):4===c?(a=new ZI("Non video ad expired during SSAP single layout.",{playerErrorCode:"non_video_expired"}, "ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),this.Pd.Fw("non_video_expired",a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),this.callback.xf(this.slot,this.layout,a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")):CG("Unexpected transition reason when player initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c})}; g.k.SJ=function(a){this.layout.layoutId===a&&AHa(this.oe,this.slot.slotId)}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.xf(this.xc(),a,new ZI("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.Fa.get().addListener(this),iJ(this.Uc(),this),this.Pd.startRendering(this.layout),this.callback.Ec(this.slot,this.layout))}; g.k.Ze=function(a,b){this.Pd.Ze(this.layout,b);this.Fa.get().removeListener(this);this.B?(this.callback.Wc(this.slot,this.layout,b),this.B=!1):(void 0!==this.j&&CG("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.j=b,this.Sc.get().finishSegmentByCpn(this.layout.layoutId,this.Ua.get().Te(1).clientPlaybackNonce))}; g.k.xc=function(){return this.slot}; g.k.rb=function(){return this.layout}; g.k.wr=function(){this.Pd.wr()}; g.k.Br=function(){this.Pd.Br()}; g.k.OA=function(a,b){CG("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})}; g.k.Ec=function(a,b){this.Pd.Ec(a,b)}; g.k.Wc=function(a,b,c){b.layoutId===this.layout.layoutId&&jJ(this.Uc(),this);this.Pd.Wc(a,b,c)}; g.k.oh=function(){}; g.k.ai=function(){}; g.k.Xh=function(){}; g.k.Qf=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(){}; g.k.Kg=function(){}; g.k.nh=function(){}; g.k.Ki=function(a){this.Pd.Ki(a)}; g.k.Li=function(a){if(a.state.isError()){var b,c=new ZI("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.Tg)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.Pd.Fw(null==(d=a.state.Tg)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.callback.xf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Pd.Li(a)}; g.k.onFullscreenToggled=function(a){this.Pd.onFullscreenToggled(a)}; g.k.lh=function(a){this.Pd.lh(a)}; g.k.hj=function(a){this.Pd.hj(a)}; g.k.onVolumeChange=function(){this.Pd.onVolumeChange()}; g.k.Ej=function(){}; g.k.Hj=function(){}; g.k.Fj=function(){};g.w(uDa,g.I);g.k=uDa.prototype;g.k.xc=function(){return this.slot}; g.k.rb=function(){return this.layout}; g.k.MJ=function(){}; g.k.TJ=function(a,b){var c=this,d=this.Ad[this.zd];d&&this.OO&&(d.rb().layoutId!==a&&CG("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.VV=function(e){e.layoutId!==a&&CG("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.Ad.some(function(f){return f.rb().layoutId===b})||(c.zd=c.Ad.length,IL(c.zk,c.layout))},d.FX())}; g.k.SJ=function(a){var b=this.Ad.findIndex(function(c){return c.rb().layoutId===a}); -1!==b&&(-1===this.zd&&AHa(this.oe,this.slot.slotId),CDa(this,b))}; g.k.wr=function(a,b){var c=this.Ad[this.zd];b.layoutId!==GL(c,a,b)?CG("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.wr()}; g.k.Br=function(a,b){var c=this.Ad[this.zd];b.layoutId!==GL(c,a,b)?CG("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Br()}; g.k.OA=function(a,b){var c=this.Ad[this.zd];this.zd===this.Ad.length-1&&CG("Unexpected skip requested during the last sublayout",c.xc(),c.rb(),{requestingSlot:a,requestingLayout:b});b.layoutId!==GL(c,a,b)?CG("onSkipRequested for a PlayerBytes layout that is not currently active",c.xc(),c.rb(),{requestingSlot:a,requestingLayout:b}):ADa(this,c.xc(),c.rb(),"skipped")}; g.k.Raa=function(a,b){uAa(this.iG,a,b)}; g.k.Ec=function(a,b){var c=this.Ad[this.zd];c&&c.Ec(a,b)}; g.k.Wc=function(a,b,c){b.layoutId===this.rb().layoutId&&(this.Rv=!1,jJ(this.Uc(),this));var d=this.Ad[this.zd];d&&d.Wc(a,b,c)}; g.k.IP=function(){var a=this.Ad[this.zd];a&&a.xI()}; g.k.Ki=function(a){var b=this.Ad[this.zd];b&&b.Ki(a)}; g.k.IO=function(a,b,c){-1===this.zd&&(this.callback.Ec(this.slot,this.layout),this.zd++);var d=this.Ad[this.zd];d?(d.Fw(a,b,c),this.Kd()&&this.callback.xf(this.slot,this.layout,b,c)):CG("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.zd),layoutId:this.rb().layoutId})}; g.k.onFullscreenToggled=function(a){var b=this.Ad[this.zd];if(b)b.onFullscreenToggled(a)}; g.k.lh=function(a){var b=this.Ad[this.zd];b&&b.lh(a)}; g.k.hj=function(a){var b=this.Ad[this.zd];b&&b.hj(a)}; g.k.onVolumeChange=function(){var a=this.Ad[this.zd];if(a)a.onVolumeChange()}; g.k.Taa=function(a,b,c){this.Kd()?yDa(this,b,c):ADa(this,a,b,c)}; g.k.HF=function(a,b,c){vDa(this,b,this.zd+1,c)}; g.k.Saa=function(a,b,c,d){this.Kd()?this.callback.xf(this.slot,this.layout,c,d):ADa(this,a,b,"error")}; g.k.init=function(){var a=bJ(this.rb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ua.get().Te(1).daiEnabled&&CG("Unexpected VOD LRA on DAI content",this.slot,this.layout);if(1>this.Ad.length)throw new $I("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Ad.length)});if(a=bJ(this.rb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.u(this.Ad);for(var b=a.next();!b.done;b=a.next())b= b.value,b.init(),rAa(this.iG,this.slot,b.rb()),sAa(this.iG,this.slot,b.rb());if(this.Kd())for(this.Ua.get().addListener(this),a=g.u(this.Ad),b=a.next();!b.done;b=a.next()){b=b.value.rb();var c=bJ(b.Ba,"metadata_type_player_vars");c?("LAYOUT_TYPE_MEDIA"!==b.layoutType&&CG("Non-video ad contains playerVars",this.slot,b),this.Nd.get().addPlayerResponseForAssociation(c)):(bJ(b.Ba,"metadata_type_ad_placement_config"),bJ(b.Ba,"metadata_type_linked_in_player_layout_type"))}}; g.k.release=function(){var a=bJ(this.rb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=bJ(this.rb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.u(this.Ad);for(var b=a.next();!b.done;b=a.next())b=b.value,tAa(this.iG,this.slot,b.rb()),b.release();this.Kd()&&this.Ua.get().removeListener(this)}; g.k.startRendering=function(a){a.layoutId!==this.rb().layoutId?this.callback.xf(this.xc(),a,new ZI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.rb().layoutId+("and LayoutType: "+this.rb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Fa.get().addListener(this),iJ(this.Uc(),this),w1(this.Da.get())&&!this.Kd()&&q1(this.Bc.get()),Oeb(this.Da.get())||this.Kd()||pfb(this.Fa.get()),w1(this.Da.get())|| this.Kd()||q1(this.Bc.get()),this.Kd()||-1===this.zd&&zDa(this,this.zd+1))}; g.k.Ze=function(a,b){var c=this;this.Kd()?(this.zd===this.Ad.length?this.callback.Wc(this.slot,this.layout,b):(a=this.Ad[this.zd],a.Ze(a.rb(),b),this.XO=function(){c.callback.Wc(c.slot,c.layout,b)},this.Sc.get().finishSegmentByCpn(a.rb().layoutId,this.Ua.get().Te(1).clientPlaybackNonce)),this.Fa.get().removeListener(this)):(this.Rv=!0,this.zd===this.Ad.length?this.callback.Wc(this.slot,this.layout,b):(a=this.Ad[this.zd],a.Ze(a.rb(),b),this.XO=function(){c.callback.Wc(c.slot,c.layout,b)}),this.Fa.get().J.jx(), zfb(this.Nd.get(),{}),a=z1(this.Fa.get(),1),a.isPaused()&&!g.EG(a,2)&&this.Fa.get().playVideo(),this.Fa.get().removeListener(this),this.Rv&&this.IP())}; g.k.Li=function(a){if(a.state.isError()){var b,c;this.IO(null==(b=a.state.Tg)?void 0:b.errorCode,new ZI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Tg)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Ad[this.zd])&&b.Li(a)}; g.k.Kd=function(){var a=bJ(this.xc().Ba,"metadata_type_eligible_for_ssap");return void 0===a?(CG("Expected SSAP eligibility in PlayerBytes slots",this.xc(),this.rb()),!1):this.Da.get().Kd(a)}; g.k.Fj=function(){}; g.k.oh=function(){}; g.k.ai=function(){}; g.k.Xh=function(){}; g.k.Qf=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(){}; g.k.Kg=function(){}; g.k.nh=function(){}; g.k.Ej=function(){}; g.k.Hj=function(){};g.k=JL.prototype;g.k.xc=function(){return this.slot}; g.k.rb=function(){return this.layout}; g.k.init=function(){this.If.get().addListener(this);this.Fa.get().addListener(this);this.Sv();var a=bJ(this.layout.Ba,"metadata_type_layout_enter_ms"),b=bJ(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ua.get().vv)?void 0:c.clientPlaybackNonce;c=this.layout.lc.adClientDataEntry;KL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.If.get();e=FDa(e.C,a,b);null!==e&&(KL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Sc.get().Uy(e,b))}; g.k.release=function(){this.ix();this.If.get().removeListener(this);this.Fa.get().removeListener(this)}; g.k.startRendering=function(){this.xx();this.callback.Ec(this.slot,this.layout)}; g.k.Ze=function(a,b){this.yx(b);null!==this.driftRecoveryMs&&(HDa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(GDa(this)-bJ(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Fa.get().J.Iq()).toString()}),this.driftRecoveryMs=null);this.callback.Wc(this.slot,this.layout,b)}; g.k.AZ=function(){return!1}; g.k.vZ=function(a){var b=bJ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=bJ(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&aa.width&&mN(this.D,this.layout)}; g.k.onVolumeChange=function(){}; g.k.Ki=function(){}; g.k.onFullscreenToggled=function(){}; g.k.lh=function(){}; g.k.Fj=function(){}; g.k.Li=function(){}; g.k.Ej=function(){}; g.k.Hj=function(){}; g.k.xa=function(){XJ.prototype.xa.call(this)}; g.k.release=function(){XJ.prototype.release.call(this);this.Fa.get().removeListener(this)};oEa.prototype.build=function(a,b,c,d){if(b=tK(a,c,d,this.vc,this.Fa,this.Oa,this.D,this.j,this.Da))return b;if(lK(d,lEa()))return new RL(c,d,this.Oa,this.wb,this.vc,a,this.B,this.C,this.Fa,this.Ab,this.Da,this.j,new SL(this.Fa));if(lK(d,kEa()))return new QL(c,d,this.Oa,this.wb,this.vc,a,this.B,this.Fa,this.Ab,this.Da,this.j,new SL(this.Fa));if(lK(d,{Qd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Xe:["LAYOUT_TYPE_SURVEY"]}))return new nEa(c,d,a,this.vc,this.B,this.Fa,this.Da);if(lK(d, {Qd:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Xe:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new NL(c,d,a,this.vc,this.Oa);if(lK(d,rCa()))return new qK(c,d,a,this.vc,this.Fa,this.Da);throw new ZI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+cJ(d.Ba)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};pEa.prototype.build=function(a,b,c,d){if(b=tK(a,c,d,this.vc,this.Fa,this.Oa,this.D,this.j,this.Da))return b;if(lK(d,lEa()))return new RL(c,d,this.Oa,this.wb,this.vc,a,this.B,this.C,this.Fa,this.Ab,this.Da,this.j,new SL(this.Fa));if(lK(d,kEa()))return new QL(c,d,this.Oa,this.wb,this.vc,a,this.B,this.Fa,this.Ab,this.Da,this.j,new SL(this.Fa));throw new ZI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+cJ(d.Ba)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(TL,pK);TL.prototype.startRendering=function(a){pK.prototype.startRendering.call(this,a);if(a.renderingContent?kCa(a,this.Ua.get().Te(2)||void 0):bJ(this.layout.Ba,"metadata_ad_video_is_listed"))a=a.renderingContent?jCa(a,this.Ua.get().Te(2)||void 0):bJ(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.cn.get().J.ob("onAdMetadataAvailable",a)};rEa.prototype.build=function(a,b,c,d){if(lK(d,qEa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===d.layoutType&&void 0!==g.U(d.renderingContent,rK))return new TL(a,c,d,this.vc,this.Fa,this.Oa,this.B,this.cn,this.j,this.Ua);throw new ZI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+cJ(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};sEa.prototype.build=function(a,b,c,d){if(lK(d,qEa()))return new TL(a,c,d,this.vc,this.Fa,this.Oa,this.B,this.cn,this.j,this.Ua);if(a=tK(a,c,d,this.vc,this.Fa,this.Oa,this.B,this.j,this.Da))return a;throw new ZI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+cJ(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};jM.prototype.clone=function(a){var b=this;return new jM(function(){return b.triggerId},a)};kM.prototype.clone=function(a){var b=this;return new kM(function(){return b.triggerId},a)};lM.prototype.clone=function(a){var b=this;return new lM(function(){return b.triggerId},a)};mM.prototype.clone=function(a){var b=this;return new mM(function(){return b.triggerId},a)};nM.prototype.clone=function(a){var b=this;return new nM(function(){return b.triggerId},a)};oM.prototype.clone=function(a){var b=this;return new oM(function(){return b.triggerId},a)};g.w(HM,g.I);var RFa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Zc:[],layoutExitUserInputSubmittedTriggers:[]};var uGa={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15, "i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var $R={sQa:1,tQa:2,uQa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.w(YM,g.I);g.k=YM.prototype;g.k.AZ=function(a){if(!this.j){var b;null==(b=this.Sc)||b.get().Qt(a.identifier);return!1}iHa(this,this.j,a);return!0}; g.k.vZ=function(){}; g.k.yk=function(a){this.j&&this.j.contentCpn!==a&&(CG("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)}; g.k.Wn=function(a){this.j&&this.j.contentCpn!==a&&CG("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.xa=function(){g.I.prototype.xa.call(this);this.j=null};var T1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Blb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.w(bN,g.I);g.k=bN.prototype;g.k.Ec=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&(XI(b,this.C)||XI(b,Blb))){var d=this.Ua.get().Te(2),e=this.j(b,d||void 0);e?UJ(this.Rb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[GFa(c.Lb.get(),e.contentCpn,e.eq,function(h){return c.B(h.slotId,"core",e,fJ(c.Wb.get(),h))},e.inPlayerSlotId)]; e.instreamAdPlayerUnderlayRenderer&&HFa(c.Da.get())&&f.push(nHa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):CG("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; g.k.oh=function(){}; g.k.ai=function(){}; g.k.Qf=function(){}; g.k.Xh=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(){}; g.k.Kg=function(){}; g.k.nh=function(){}; g.k.Wc=function(){};g.w(cN,g.I);cN.prototype.yk=function(a,b,c,d,e,f,h){var l=this,m=this.Ua.get().Te(1);m.gp?G1(this.Fa.get()):(Heb(this.Bc.get(),d),UJ(this.Rb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return hFa(l.He.get(),d,e,f,a,b,h,m,"")}),Egb(this.j))}; cN.prototype.Wn=function(){};g.w(dN,g.I);g.w(eN,g.I);eN.prototype.onCueRangeEnter=function(){}; eN.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.wc.get().removeCueRange(a),UJ(this.Rb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Lb.get();d=VJ(d.gb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?HHa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:IHa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:IHa(c.slotId,d,c.slotExpirationTriggers)})]}, c.slotId))}; eN.prototype.yk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.wc.get().removeCueRange(b);this.j.clear()}; eN.prototype.Wn=function(){};g.w(fN,g.I);g.k=fN.prototype;g.k.oh=function(){}; g.k.ai=function(a){var b=this;g.QC(g.SC(),function(){var c=b.j.get(a);c&&CG("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.pa(c)).map(function(d){return d.layoutType})})},0)}; g.k.Qf=function(){}; g.k.Xh=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)}; g.k.Kg=function(a,b){this.Mj.has(a)&&this.Mj.get(a)===b&&CG("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):CG("Trying to unscheduled a Layout that was not scheduled.",a,b)}else CG("Trying to unscheduled a Layout that was not scheduled.",a,b)}; g.k.Ec=function(a,b){this.Mj.set(a,b)}; g.k.Wc=function(a){this.Mj.delete(a)}; g.k.nh=function(){};g.k=pHa.prototype;g.k.init=function(){}; g.k.xc=function(){return this.slot}; g.k.NH=function(){this.callback.Qf(this.slot)}; g.k.QH=function(){this.callback.Rf(this.slot)}; g.k.release=function(){};gN.prototype.build=function(a,b){return new pHa(a,b)};g.k=qHa.prototype;g.k.init=function(){}; g.k.xc=function(){return this.slot}; g.k.NH=function(){H1(this.Fa.get(),"ad-showing");this.callback.Qf(this.slot)}; g.k.QH=function(){this.callback.Rf(this.slot);I1(this.Fa.get(),"ad-showing")}; g.k.release=function(){};g.k=rHa.prototype;g.k.init=function(){}; g.k.xc=function(){return this.slot}; g.k.NH=function(){H1(this.Fa.get(),"ad-showing");H1(this.Fa.get(),"ad-interrupting");this.B=this.Fa.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Qf(this.slot)}; g.k.QH=function(){I1(this.Fa.get(),"ad-showing");I1(this.Fa.get(),"ad-interrupting");var a=this.B?Infinity:this.Fa.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Fa.get().J.seekTo(a,void 0,void 0,1);this.callback.Rf(this.slot)}; g.k.release=function(){};g.k=sHa.prototype;g.k.init=function(){}; g.k.xc=function(){return this.slot}; g.k.NH=function(){H1(this.Fa.get(),"ad-showing");H1(this.Fa.get(),"ad-interrupting");this.callback.Qf(this.slot)}; g.k.QH=function(){G1(this.Fa.get());I1(this.Fa.get(),"ad-showing");I1(this.Fa.get(),"ad-interrupting");this.callback.Rf(this.slot)}; g.k.release=function(){G1(this.Fa.get())};hN.prototype.build=function(a,b){if(dJ(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new qHa(a,b,this.Fa);if(b.slotEntryTrigger instanceof dM&&dJ(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new rHa(a,b,this.Fa);if(dJ(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new sHa(a,b,this.Fa);throw new $I("Unsupported slot with type "+b.slotType+" and client metadata: "+(cJ(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.w(iN,g.I);iN.prototype.j=function(a){for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof iM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?uJ(this.aM(),b):CG("Mute requested but no registered triggers can be activated.")};g.w(jN,iN);g.k=jN.prototype;g.k.Fg=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof iM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&uJ(this.aM(),a)}else UM(this.Da.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&tHa(this,b):"survey-submit"===a?tHa(this,b):"survey-single-select-answer-button"===a&&tHa(this,b)}; g.k.KO=function(a){iN.prototype.j.call(this,a)}; g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new $I("Tried to register duplicate trigger for slot.");if(!(b instanceof pM||b instanceof iM))throw new $I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ub.set(b.triggerId,new rM(a,b,c,d))}; g.k.Fl=function(a){this.Ub.delete(a.triggerId)}; g.k.HO=function(){}; g.k.GO=function(){}; g.k.yI=function(){};g.w(kN,g.I);g.k=kN.prototype; g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new $I("Tried to register duplicate trigger for slot.");if(!(b instanceof jM||b instanceof kM||b instanceof lM||b instanceof mM||b instanceof nM||b instanceof oM||b instanceof zEa||b instanceof $L||b instanceof bM||b instanceof aM||b instanceof eM||b instanceof ZL))throw new $I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new rM(a,b,c,d);this.Ub.set(b.triggerId,a);b instanceof nM&&this.G.has(b.triggeringSlotId)&&uJ(this.j(),[a]);b instanceof jM&&this.C.has(b.triggeringSlotId)&&uJ(this.j(),[a]);b instanceof $L&&this.B.has(b.triggeringLayoutId)&&uJ(this.j(),[a])}; g.k.Fl=function(a){this.Ub.delete(a.triggerId)}; g.k.oh=function(a){this.G.add(a.slotId);for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof nM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0FG(a,16)){a=g.u(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; g.k.oh=function(){}; g.k.ai=function(){}; g.k.Xh=function(){}; g.k.Qf=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(){}; g.k.Kg=function(){}; g.k.Ec=function(a,b){a=g.u(this.Ub.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.Yu.trigger;c=c.uv;if(vHa(d)&&d.layoutId===b.layoutId){var e=1E3*this.Fa.get().getCurrentTimeSec(1,!1);d instanceof hM?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.wc.get().addCueRange(c,d,e,!1,this)}}}; g.k.Wc=function(a,b,c){var d=this;a=g.u(this.Ub.values());for(var e=a.next(),f={};!e.done;f={zH:void 0,wu:void 0},e=a.next())e=e.value,f.wu=e.Yu.trigger,f.zH=e.uv,vHa(f.wu)&&f.wu.layoutId===b.layoutId?Keb(this.wc.get(),f.zH):f.wu instanceof cM&&f.wu.layoutId===b.layoutId&&"user_cancelled"===c&&(this.wc.get().removeCueRange(f.zH),g.QC(g.SC(),function(h){return function(){d.wc.get().addCueRange(h.zH,h.wu.j.start,h.wu.j.end,h.wu.visible,d)}}(f)))}; g.k.nh=function(){}; g.k.Ki=function(){}; g.k.onFullscreenToggled=function(){}; g.k.lh=function(){}; g.k.Fj=function(){}; g.k.hj=function(){}; g.k.onVolumeChange=function(){}; g.k.Ej=function(){}; g.k.Hj=function(){};g.w(pN,g.I);g.k=pN.prototype; g.k.ql=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new $I("Tried to re-register the trigger.");a=new rM(a,b,c,d);if(a.trigger instanceof wEa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof vEa)this.C.set(a.trigger.triggerId,a);else throw new $I("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&uJ(this.D(),[a])}; g.k.Fl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)}; g.k.MJ=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.pa(yHa(this.C,this.j)));null!=a&&b.push.apply(b,g.pa(yHa(this.B,a)));this.j=a;b.length&&uJ(this.D(),b)}}; g.k.TJ=function(){}; g.k.SJ=function(){};g.w(qN,g.I);g.k=qN.prototype;g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new $I("Tried to register duplicate trigger for slot.");if(!(b instanceof fM))throw new $I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ub.set(b.triggerId,new rM(a,b,c,d))}; g.k.Fl=function(a){this.Ub.delete(a.triggerId)}; g.k.Ec=function(){}; g.k.Wc=function(){}; g.k.oh=function(){}; g.k.ai=function(){}; g.k.Xh=function(){}; g.k.Qf=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(){}; g.k.Kg=function(){}; g.k.nh=function(){};g.w(rN,g.I);g.k=rN.prototype;g.k.nh=function(a,b){for(var c=[],d=g.u(this.Ub.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&&uJ(this.j(),c)}; g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new $I("Tried to register duplicate trigger for slot.");if(!(b instanceof SAa))throw new $I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ub.set(b.triggerId,new rM(a,b,c,d))}; g.k.Fl=function(a){this.Ub.delete(a.triggerId)}; g.k.oh=function(){}; g.k.ai=function(){}; g.k.Xh=function(){}; g.k.Qf=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(){}; g.k.Kg=function(){}; g.k.Ec=function(){}; g.k.Wc=function(){};g.w(sN,g.I);g.k=sN.prototype;g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new $I("Tried to register duplicate trigger for slot.");if(!(b instanceof qM))throw new $I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ub.set(b.triggerId,new rM(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.Fl=function(a){this.Ub.delete(a.triggerId);if(!(a instanceof qM))throw new $I("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)}; g.k.oh=function(){}; g.k.ai=function(){}; g.k.Xh=function(){}; g.k.Qf=function(){}; g.k.Rf=function(){}; g.k.Yh=function(){}; g.k.Zh=function(){}; g.k.Fh=function(){}; g.k.Kg=function(){}; g.k.nh=function(){}; g.k.Ec=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.u(a);var d=a.next();for(b={};!d.done;b={dL:void 0},d=a.next())b.dL=d.value,d=new g.Ru(function(e){return function(){var f=c.Ub.get(e.dL.triggerId);uJ(c.C(),[f])}}(b),b.dL.durationMs),d.start(),this.B.set(b.dL.triggerId,d)}}; g.k.Wc=function(){};g.w(tN,g.I);tN.prototype.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new $I("Tried to register duplicate trigger for slot.");if(!(b instanceof UL))throw new $I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Ub.set(b.triggerId,new rM(a,b,c,d))}; tN.prototype.Fl=function(a){this.Ub.delete(a.triggerId)};g.w(yN,g.I);yN.prototype.logEvent=function(a){this.j(a)}; yN.prototype.j=function(a,b,c,d,e,f,h,l,m,n,p){var q=this;p=void 0===p?0:p;UM(this.Da.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"Opportunity:",{opportunityType:b,associatedSlotId:c,Yob:d,cpb:h,adSlotLoggingData:l,adLayoutLoggingData:m});try{var r=function(){if(!q.Da.get().J.U().L("html5_disable_client_tmp_logs")&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==a||q.aS())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==a){a||CG("Empty PACF event type",e,f);var t=lAa(q.B.get()),v={eventType:a, eventOrder:++q.eventCount},x={};e&&(x.slotData=hAa(t,e));f&&(x.layoutData=iAa(t,f));h&&(x.triggerData=eJ(h.trigger,h.category));b&&(x.opportunityData=jAa(t,b,c,d));t={organicPlaybackContext:{contentCpn:q.Ua.get().Te(1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=q.Ua.get().Te(1).zc;var A;t.organicPlaybackContext.isMdxPlayback=null==(A=q.Ua.get().Te(1))?void 0:A.isMdxPlayback;var E;if(null==(E=q.Ua.get().Te(1))?0:E.daiEnabled)t.organicPlaybackContext.isDaiContent=!0;var F;if(A=null== (F=q.Ua.get().Te(2))?void 0:F.clientPlaybackNonce)t.adVideoPlaybackContext={adVideoCpn:A};t&&(x.externalContext=t);v.adClientData=x;l&&(v.serializedSlotAdServingData=l.serializedSlotAdServingDataEntry);m&&(v.serializedAdServingData=m.serializedAdServingDataEntry);n&&(v.errorInfo=n);g.XC("adsClientStateChange",{adsClientEvent:v})}}; p&&0this.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 PHa=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f=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{GI:b,Hm:c}}; g.k.isFocused=function(a){return a>=this.C&&aTlb){h3=Tlb;break a}}var Ulb=i3.match("("+Object.keys(Rlb).join("|")+")");h3=Ulb?Rlb[Ulb[0]]:0}else h3=void 0}var TR=h3,oRa=0<=TR;var pab=window;var WMa=Td(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var YMa;g.jP=new bI;YMa=0;var kP={bg:function(a,b){a.splice(0,b)}, qD:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}, CV:function(a){a.reverse()}};var kcb=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var lRa={lja:"adunit",lwa:"detailpage",Ywa:"editpage",gxa:"embedded",bNa:"leanback",y1a:"previewpage",H2a:"profilepage",cV:"unplugged",E0a:"playlistoverview",v9a:"sponsorshipsoffer",j6a:"shortspage",dGa:"handlesclaiming",OHa:"immersivelivepage",Cua:"creatormusic",PHa:"immersivelivepreviewpage"};var PSa={xwa:1,Axa:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var vR=sNa()?!0:"function"===typeof window.fetch&&window.ReadableStream&&window.AbortController&&!g.BD?!0:!1;g.oP.prototype.getLanguageInfo=function(){return this.uc}; g.oP.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1a.Pa&&this.index.zn()<=a.Pa+1}; g.k.update=function(a,b,c){this.index.append(a);XNa(this.index,c);this.index.B=b}; g.k.wg=function(){return this.bA()?!0:IQ.prototype.wg.call(this)}; g.k.hs=function(a,b){var c=this.index.pI(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.dI=function(){return this.Ep}; g.k.wz=function(a){if(!this.hn)return g.MP.prototype.wz.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Oj+1);else{b=Vb(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.Pa-b.Pa-1))+1)+b.Pa}return this.xn(b)}; g.k.xn=function(a){if(!this.hn)return g.MP.prototype.xn.call(this,a);if(!this.segments.length)return null;var b=NQ(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Oj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new LP(a,d,b,0,"sq/"+a,void 0,void 0, !0)};g.w(OQ,JQ);g.k=OQ.prototype;g.k.lE=function(){return!0}; g.k.wg=function(){return!0}; g.k.gs=function(a){return this.Xv()&&a.B&&!a.rf||!a.j.index.pP(a.Pa)}; g.k.Gv=function(){}; g.k.Kq=function(a,b){return"number"!==typeof a||isFinite(a)?JQ.prototype.Kq.call(this,a,void 0===b?!1:b):new CQ([new wQ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Nj,void 0,this.Nj*this.info.Ob)],"")}; g.k.hs=function(a,b){var c=void 0===c?!1:c;if(this.index.Hn(a))return JQ.prototype.hs.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Nj*this.info.Ob),f=this.Nj;b&&(f=e=0);return new CQ([new wQ(c?7:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};g.w(QQ,IQ);g.k=QQ.prototype;g.k.tm=function(){return!1}; g.k.Xv=function(){return!1}; g.k.lE=function(){return!1}; g.k.Gv=function(){return new CQ([new wQ(1,this,void 0,"otfInit")],this.G)}; g.k.Zx=function(){return null}; g.k.mC=function(a){this.gs(a);return nPa(this,GOa(a),!1)}; g.k.Kq=function(a,b){b=void 0===b?!1:b;a=this.index.Gi(a);b&&(a=Math.min(this.index.Hd(),a+1));return nPa(this,a,!0)}; g.k.JO=function(a){1===a.info.type&&(this.j||(this.j=bO(a.j)),a.B&&"http://youtube.com/streaming/otf/durations/112015"===a.B.uri&&oPa(this,a.B))}; g.k.gs=function(a){return 0===a.B?!0:this.index.Hd()>a.Pa&&this.index.zn()<=a.Pa+1}; g.k.rO=function(){return 0}; g.k.ZQ=function(){return!1};g.k=g.zPa.prototype;g.k.Hn=function(a){return a<=this.Hd()}; g.k.im=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.Gh[a]/this.j}; g.k.aI=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.k.rI=da(2);g.k.mf=function(){return NaN}; g.k.getDuration=function(a){a=this.UW(a);return 0<=a?a/this.j:-1}; g.k.UW=function(a){return a+1=this.Hd())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,APa(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.Gh;this.Gh=new Float64Array(a+1);for(a=0;a=b+c)break}e.length||g.oF(new g.LC("b189619593",""+a,""+b,""+c));return new CQ(e)}; g.k.iU=function(a){for(var b=this.iB(a.info),c=a.info.range.start+a.info.Zb,d=[],e=0;e=this.index.im(c+1);)c++;return this.OD(c,b,a.B).fb}; g.k.gs=function(a){xQ(a);return this.wg()?!0:a.range.end+1this.info.contentLength&&(b=new sQ(b.start,this.info.contentLength-1)),new CQ([new wQ(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.iB(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Zb+a.B;3===a.type&&(xQ(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.OD(c,d,b)}; g.k.mC=function(){return null}; g.k.Kq=function(a,b,c){b=void 0===b?!1:b;a=this.index.Gi(a);b&&(a=Math.min(this.index.Hd(),a+1));return this.OD(a,this.index.im(a),0,c)}; g.k.tm=function(){return!0}; g.k.Xv=function(){return!0}; g.k.lE=function(){return!1}; g.k.rO=function(){return this.indexRange.length+this.initRange.length}; g.k.ZQ=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var k3={},TPa=(k3.COLOR_PRIMARIES_BT709="bt709",k3.COLOR_PRIMARIES_BT2020="bt2020",k3.COLOR_PRIMARIES_UNKNOWN=null,k3.COLOR_PRIMARIES_UNSPECIFIED=null,k3),l3={},DPa=(l3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",l3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",l3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",l3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",l3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,l3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,l3);g.WQ.prototype.getName=function(){return this.name}; g.WQ.prototype.getId=function(){return this.id}; g.WQ.prototype.getIsDefault=function(){return this.isDefault}; g.WQ.prototype.toString=function(){return this.name}; g.WQ.prototype.getName=g.WQ.prototype.getName;g.WQ.prototype.getId=g.WQ.prototype.getId;g.WQ.prototype.getIsDefault=g.WQ.prototype.getIsDefault;var IPa=/action_display_post/;var JPa;g.w(YQ,g.IF);g.k=YQ.prototype;g.k.isLoading=function(){return 1===this.state}; g.k.qm=function(){return 3===this.state}; g.k.rba=function(a){var b=a.getElementsByTagName("Representation");if(0=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.Xl=!0}; ER.prototype.cj=function(){return this.K?(FR(this,this.D-this.K)+FR(this,this.D)+FR(this,this.D+this.K))/3:FR(this,this.D)};g.w(VQa,g.I);VQa.prototype.Ra=function(){var a;null==(a=this.Ea)||a.start();if(MR(this)&&this.policy.Z){var b;null==(b=this.qe)||b.KE()}};g.w(eRa,g.I);var mRa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),vRa={Gna:"caoe",gqa:"cbrand",pqa:"cbr",qqa:"cbrver",Ssa:"cchip",qta:"ccappver",rta:"ccrv",HDa:"cfrmver",zIa:"c",CIa:"cver",BIa:"ctheme",AIa:"cplayer",LUa:"cmodel",zVa:"cnetwork",WZa:"cos",XZa:"cosver",Q_a:"cplatform",Q3a:"crqyear"};g.w(tRa,g.I);g.k=tRa.prototype;g.k.L=function(a){return this.experiments.jb(a)}; g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.k.getVideoUrl=function(a,b,c,d,e,f){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.cS(this);e="www.youtube.com"===c;!f&&d&&e?f="https://youtu.be/"+a:g.WR(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),AD&&(a=Qoa())&&(b.ebc=a));return g.bn(f,b)}; g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.cS(this)+"/embed/"+b;d&&(b=g.bn(b,{list:d}));d=c.width;c=c.height;b=g.$e(b);a=g.$e(null!=a?a:"YouTube video player");return'')}; g.k.supportsGaplessAudio=function(){return g.BK&&!AD&&74<=Cpa()||g.qR&&g.Tc(68)?!0:!1}; g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.eb||g.fD?!1:!0}; g.k.getPlayerType=function(){return this.j.cplayer}; g.k.Dc=function(){return this.Zf}; g.k.Pt=function(){this.L("html5_enable_lawnmower_messaging")}; var BRa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],uRa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],yRa=[19];g.k=pS.prototype;g.k.Qh=function(){return this.j}; g.k.nC=function(){return null}; g.k.VW=function(){var a=this.nC();return a?(a=g.xB(a.resource),Number(a.expire)):NaN}; g.k.KR=function(){}; g.k.getHeight=function(){return this.j.video.height};CRa.prototype.build=function(){GRa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.u(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.uc){if(e.uc.getIsDefault()){c=e.uc.getId();break a}c||(c=e.uc.getId())}}d=g.u(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.uc||e.uc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.u(e);for(var 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.uc){p=f.uc;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=ERa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(FRa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.u(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=cmb,d=(h=d.uc)?'#EXT-X-MEDIA:URI="'+ERa(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}; QS.prototype.G=function(a,b,c,d){return new g.PS(a,b,c,d)};g.w(ISa,g.PS);g.k=ISa.prototype;g.k.cI=function(){return this.B.Fz()}; g.k.WG=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Hd();a=c.Gi(a);return a>d-b?-1:a}; g.k.ey=function(){return this.B.Hd()}; g.k.cM=function(){return this.B.zn()}; g.k.jU=function(a){this.B=a};g.w(RS,QS);RS.prototype.B=function(a,b){return QS.prototype.B.call(this,"$N|"+a,b)}; RS.prototype.G=function(a,b,c){return new ISa(a,b,c,this.isLive)};var fTa=[],eTa=new Set;g.w(g.TS,g.IF);g.k=g.TS.prototype;g.k.U=function(){return this.Ha}; g.k.L=function(a){return this.Ha.L(a)}; g.k.Vh=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Qe)||!a.tb)}; g.k.wZ=function(){this.isDisposed()||(this.j.B||this.j.unsubscribe("refresh",this.wZ,this),this.WV(-1))}; g.k.WV=function(a){if(!this.isLivePlayback||!this.K||"fairplay"!=this.K.flavor){var b=ZPa(this.j,this.HC);if(0d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Vh(),clipEnd:b.clipEnd, clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:q,offset:c,viewerLivestreamJoinMediaTime:d}}; g.k.isInline=function(){return this.app.isInline()}; g.k.setInline=function(a){this.app.setInline(a)}; g.k.C7=function(){return g.XT(this.app,1).qc(!0)}; g.k.toggleSubtitles=function(){var a=g.YV(this.app.Bb());a&&a.lda()}; g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; g.k.wakeUpControls=function(){var a=g.ZT(this);a&&a.vu()}; g.k.setCenterCrop=function(a){this.app.qb().setCenterCrop(a)}; g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; var tUa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), uUa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var q3={},yUa=(q3["api.invalidparam"]=2,q3.auth=150,q3["drm.auth"]=150,q3["heartbeat.net"]=150,q3["heartbeat.servererror"]=150,q3["heartbeat.stop"]=150,q3["html5.unsupportedads"]=5,q3["fmt.noneavailable"]=5,q3["fmt.decode"]=5,q3["fmt.unplayable"]=5,q3["html5.missingapi"]=5,q3["html5.unsupportedlive"]=5,q3["drm.unavailable"]=5,q3["mrm.blocked"]=151,q3);g.w(g.$T,sUa);g.k=g.$T.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.ma[a]&&b&&KJ(b,glb,hlb))}; g.k.getBandwidthEstimate=function(){return LR(this.app.U().schedule)}; g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.XT(this.app);b&&(a={gpu:(0,g.c0)(),d:a},b.handleError(new wK("feedback",a)))}; g.k.getInternalApi=function(){return Object.assign({},this.state.B)}; g.k.getInternalApiInterface=function(){return g.id(this.state.B)}; 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.Fi().D.j=(0,g.kD)()}; g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=void 0===b?!0:b;var f=g.XT(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Vc()&&(h=f.getStreamTimeOffset());l1(e,a-h,b,c,1,d)}; g.k.getStreamTimeOffset=function(){var a=g.XT(this.app,1);return a?a.getStreamTimeOffset():0}; g.k.seekToLiveHead=function(a,b){var c=g.XT(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&l1(this.app,Infinity,a,b,1)}; g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.XT(this.app,1);c&&c.xR(a,b)}; g.k.setVolume=function(a,b){this.OK(a,void 0===b?!0:b)}; g.k.mute=function(a){this.yJ(void 0===a?!0:a)}; g.k.unMute=function(a){this.hL(void 0===a?!0:a)}; g.k.syncVolume=function(){var a=hdb(this.app);d1(this.app,{volume:a.volume,muted:a.muted},!1)}; g.k.getAvailableQualityLabels=function(){var a=g.XT(this.app,1);return a?g.Fr(a.Qs(),function(b){return b.qualityLabel}):[]}; g.k.channelSubscribed=function(){this.ob("SUBSCRIBE",this.app.Rd().Gl)}; g.k.channelUnsubscribed=function(){this.ob("UNSUBSCRIBE",this.app.Rd().Gl)}; g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)}; g.k.getCurrentPlaylistSequence=function(){return g.XT(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.k.getPlaylistSequenceForTime=function(a){return g.XT(this.app).getPlaylistSequenceForTime(a)}; g.k.shouldSendVisibilityState=function(){return!0}; g.k.confirmYpcRental=function(){var a=g.XT(this.app,1);a&&a.Ng("ypc_clickwrap")}; g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a}; g.k.setConnectedRemoteApps=function(a){this.app.U().jk=a}; g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=hC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,sRa)}; g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=void 0===a?!1:a}; g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.k.addUtcCueRange=function(a,b,c,d,e){return Vdb(this.app,a,b,c,d,e)}; g.k.z7=function(a){a=void 0===a?1:a;var b=this.qX(a);if(a=g.XT(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.va;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?jf(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?jf(a.progressBarEndPosition.utcTimeMillis): null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.mca;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=ETa(a);b.paidContentOverlayDurationMs=FTa(a);a.j&&wP(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}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.XT(this.app,1))?a.getPlayerState():null)?a.Tg:null;return!!(a&&b&&g.EG(a,128)&&5===zUa(b.errorCode))}; g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()}; g.k.supportsGaplessShorts=function(){return this.app.U().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.Ei=function(){return g.ZT(this)}; g.k.sendAbandonmentPing=function(){var a=g.XT(this.app);a&&a.sendAbandonmentPing()}; g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Rd(),null==b?0:hTa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.UB=b.autonavState);else if(void 0!==b.UB)a=b.UB,b.UB=void 0;else return}beb(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.XT(this.app,1))||!a.hasSupportedAudio51Tracks())}; g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.XT(this.app,1);c&&c.setUserAudio51Preference(a,b)}; g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.XT(this.app,1))?void 0:a.getUserAudio51Preference())?b:1}; g.k.setProximaLatencyPreference=function(a){var b=g.XT(this.app,1);b&&b.setProximaLatencyPreference(a)}; g.k.getProximaLatencyPreference=function(){var a=g.XT(this.app,1);return a?a.getProximaLatencyPreference():0}; g.k.isProximaLatencyEligible=function(){var a=g.XT(this.app,1);return a?a.isProximaLatencyEligible():!1}; g.k.getAppState=function(){return this.app.getAppState()}; g.k.updateLastActiveTime=function(){CE()}; g.k.setBlackout=function(a){this.app.setBlackout(a)}; g.k.setUserEngagement=function(a){this.app.U().Ol!==a&&(this.app.U().Ol=a,(a=g.XT(this.app,1))&&M0(a))}; g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.YV(this.app.Bb()).l1(a,b)}; g.k.getCaptionWindowContainerId=function(){var a=g.YV(this.app.Bb());return a?a.getCaptionWindowContainerId():""}; g.k.toggleSubtitlesOn=function(){var a=g.YV(this.app.Bb());a&&a.K0()}; g.k.isSubtitlesOn=function(){var a=g.YV(this.app.Bb());return a?a.isSubtitlesOn():!1}; g.k.getPlayerResponse=function(a){return(a=g.XT(this.app,a))?a.getVideoData().getPlayerResponse():null}; g.k.r7=function(){return this.getPlayerResponse(1)}; g.k.getEmbeddedPlayerResponse=function(){var a=g.XT(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null}; g.k.getWatchNextResponse=function(a){return(a=g.XT(this.app,a))?a.getVideoData().getWatchNextResponse():null}; g.k.E7=function(){return this.getWatchNextResponse(1)}; g.k.getHeartbeatResponse=function(a){return(a=g.XT(this.app,a))?a.getVideoData().getHeartbeatResponse():null}; g.k.m7=function(){return this.getHeartbeatResponse(1)}; g.k.getStoryboardFrame=function(a,b){var c=this.app.fk();if(!c)return null;b=c.levels[b];return b?(a=g.OS(b,a))?{column:a.column,columns:a.columns,height:a.Aw,row:a.row,rows:a.rows,url:a.url,width:a.GE}:null:null}; g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.fk();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Vc();return b.WG(a)}; g.k.getStoryboardLevel=function(a){var b=this.app.fk();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.ey(),minFrameIndex:b.cM()}:null:null}; g.k.getNumberOfStoryboardLevels=function(){var a=this.app.fk();return a?a.levels.length:0}; g.k.Z6=function(){return this.getAudioTrack(1)}; g.k.getAudioTrack=function(a){return(a=g.XT(this.app,a))?a.getAudioTrack():this.app.getVideoData().zl}; g.k.setAudioTrack=function(a,b){3===this.nI()&&gU(this.app.Bb()).PE("control_set_audio_track",a);var c=g.XT(this.app,this.playerType);if(c)if(c.isDisposed()||g.EG(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j){d=b?c.getCurrentTime()-c.Vc():NaN;if(b){var e=Qbb(c.pd);c.qa("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.Aa.setAudioTrack(a,d,b)}else if(Gcb(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d=b.rd.length)b=!1;else{d=g.u(b.rd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof rS)){b=!1;break b}var f=a.uc.getId();e.B&&(DRa(e.B,f),e.resource=null)}b.Qo=a;b=!0}b&&F0(c)&&(c.ra("internalaudioformatchange",c.videoData,!0),c.qa("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a}; g.k.c7=function(){return this.getAvailableAudioTracks(1)}; g.k.getAvailableAudioTracks=function(a){return g.XT(this.app,a).getAvailableAudioTracks()}; g.k.getMaxPlaybackQuality=function(){var a=g.XT(this.app,1);return a&&a.getVideoData().B?tP(a.Sf?X$a(a.Ck,a.Sf,a.Ev()):SS):"unknown"}; g.k.getUserPlaybackQualityPreference=function(){var a=g.XT(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"}; g.k.getSubtitlesUserSettings=function(){var a=g.YV(this.app.Bb());return a?a.w7():null}; g.k.resetSubtitlesUserSettings=function(){g.YV(this.app.Bb()).jca()}; g.k.setMinimized=function(a){this.app.setMinimized(a)}; g.k.setOverlayVisibility=function(a){this.ra("overlayvisibilitychange",a)}; g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)}; g.k.setSqueezeback=function(a){this.app.setSqueezeback(a)}; g.k.setGlobalCrop=function(a){this.app.qb().setGlobalCrop(a)}; g.k.getVisibilityState=function(){var a=this.xg();return this.app.getVisibilityState(this.Th(),this.isFullscreen()||g.UR(this.app.U()),a,this.isInline(),this.app.vt(),this.app.Xz(),this.app.cA())}; g.k.isMutedByMutedAutoplay=function(){return this.app.zA}; g.k.setInternalSize=function(a,b){this.app.qb().setInternalSize(new g.Oe(a,b))}; g.k.Vc=function(){var a=g.XT(this.app);return a?a.Vc():0}; g.k.xg=function(){return this.app.xg()}; g.k.Th=function(){var a=g.XT(this.app,this.playerType);return!!a&&a.Th()}; g.k.setSafetyMode=function(a){this.app.U().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.Ci=gC(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.KV(b).videoId||(a.index=b.index)):Z0(this.app,{list:a.list,index:a.index,playlist_length:d.length});RXa(this.app.getPlaylist(),a);this.Ac("onPlaylistUpdate")}else this.app.updatePlaylist()}; g.k.updateVideoData=function(a,b){var c=g.XT(this.app,this.playerType||1);c&&g.WS(c.getVideoData(),a,b)}; g.k.updateEnvironmentData=function(a){qRa(this.app.U(),a,!1)}; g.k.Aca=function(a){this.app.sendVideoStatsEngageEvent(a,1)}; g.k.productsInVideoVisibilityUpdated=function(a){this.ra("changeProductsInVideoVisibility",a)}; g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; g.k.getVideoAspectRatio=function(){return this.app.qb().getVideoAspectRatio()}; g.k.getPreferredQuality=function(){var a=g.XT(this.app);return a?a.getPreferredQuality():"unknown"}; g.k.getPlaybackQualityLabel=function(a){if(a=g.XT(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.XT(this.app,this.playerType);d&&g.Dcb(d,g.qP(a,b||a,!0,"m"),!0,c)}; g.k.onAdUxClicked=function(a,b){this.ra("aduxclicked",a,b)}; g.k.showAirplayPicker=function(){this.app.showAirplayPicker()}; g.k.dispatchReduxAction=function(a){g.gT.dispatch(a)}; g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Ge.includes(e)||(c.Ge.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Ib(c.Ge,e)&&(d=!0)}); d&&this.ra("updatemarkervisibility")}; g.k.highlightSettingsMenuItem=function(a){this.ra("highlightSettingsMenu",a)}; g.k.openSettingsMenuItem=function(a){this.ra("openSettingsMenuItem",a)}; g.k.B5=function(a,b){this.state.j.subscribe(a,b)}; g.k.aca=function(a,b){this.state.j.unsubscribe(a,b)}; g.k.m6=function(a,b){this.cueVideoByPlayerVars(a,void 0===b?1:b)}; g.k.S8=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,void 0===c?1:c,d)}; g.k.Iba=function(a,b,c,d){this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,d)}; g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; g.k.Dh=function(){return g.ZT(this).Dh()}; g.k.Vg=function(){return g.ZT(this).Vg()}; g.k.wm=function(){return g.ZT(this).wm()}; g.k.Ue=function(){return this.Ei().Ue()}; g.k.Vl=function(){var a=g.Ia.apply(0,arguments),b;(b=this.Ue()).Vl.apply(b,g.pa(a))}; g.k.Nh=function(){this.Ue().Nh()}; g.k.UO=function(){this.Ue().UO()}; g.k.Sh=function(){this.Ue().hide()}; g.k.UK=function(a,b,c,d,e,f,h,l){this.Ue().UK(a,b,c,d,e,f,h,l)}; g.k.aG=function(a,b){this.Ue().aG(a,b)}; g.k.St=function(a,b,c,d,e){this.Ei().St(a,b,c,d,e)}; g.k.VF=function(a){this.Ue().qB(a)}; g.k.My=function(a){this.Ei().My(a)}; g.k.kD=function(a,b){this.Ei().kD(a,b)}; g.k.rz=function(a,b){this.Ei().rz(a,b)}; g.k.Aq=function(){this.Ei().Aq()}; g.k.QR=function(a,b){this.Ei().QR(a,b)}; g.k.sB=da(6);g.k.tB=da(8);g.k.Hr=da(11);g.k.Gr=da(14);g.k.BF=function(a,b){this.Ei().BF(a,b)}; g.k.Av=function(){this.Ei().Av()}; g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()}; g.k.notifyShortsAdSwipeEvent=function(){this.ra("shortsadswipe")};g.w(g.dU,g.$T);g.k=g.dU.prototype;g.k.Lo=function(a,b,c,d,e,f,h){return this.app.Lo(a,b,c,d,e,f,h)}; g.k.AD=function(){return this.app.AD()}; g.k.Ps=da(16);g.k.Bb=function(){return this.app.Bb()}; g.k.Mf=function(){var a=this.Bb().Ne.get("endscreen");return!!a&&a.Mf()}; g.k.getRootNode=function(){return this.qb().element}; g.k.U=function(){return this.app.U()}; g.k.Ez=da(18);g.k.hm=function(a){return this.app.hm(a)}; g.k.zp=function(){var a;return(null==(a=g.ZT(this))?void 0:a.zp())||null}; g.k.Xb=function(a){return this.app.Xb(a)}; g.k.qb=function(){return this.app.qb()}; g.k.getPlaylist=function(){return this.app.getPlaylist()}; g.k.getVideoData=function(a){var b=g.XT(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a||g.JT(b)&&!a){var d=this.app;a=d.getVideoData();d.Be?(b=d.Be,d=d.getCurrentTime(),b=b.qp?void 0:null==(c=KY(b,1E3*d))?void 0:c.videoData,a=b||a):d.dc&&d.xb&&(a=g4a(d.dc)||a);c=a}else c=b;return c}; g.k.fk=function(a){return this.app.fk(a)}; g.k.jw=function(){return this.app.jw()}; g.k.isHdr=function(){var a=g.XT(this.app);return a?a.isHdr():!1}; g.k.qP=function(){return this.app.qP()}; g.k.md=function(){var a=g.ZT(this),b=this.getVideoData();a=a?a.LI:this.getPlayerSize();var c=!!this.getPlaylist();if(this.L("embeds_web_enable_shorts_mode_playback_style_logging"))return!(!b||!b.md(new g.Oe(a.width,a.height),c));var d=this.U();if(!g.QR(d)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(d.Ia||"EMBEDDED_PLAYER_MODE_DEFAULT")||c)return!1;var e;return!!(b&&(null==(e=b.embeddedPlayerConfig)?0:e.isShortsExperienceEligible)&&a.width<=a.height)}; g.k.vB=function(a){this.app.vB(a)}; g.k.Bg=function(a,b,c,d,e){this.app.Mg(a,b,c,d,e)}; g.k.Ir=function(a,b){this.app.Ir(a,b)}; g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){gU(this.app.Bb()).PE("control_play");return}if(!a&&2===this.getPresentingPlayerType()){var b=aW(this.app.Bb());if(b&&Ggb(b))return}}catch(c){g.oF(c)}this.app.playVideo(a)}; g.k.stopVideo=function(a){g.XT(this.app,a).stopVideo()}; g.k.zo=function(a){g.XT(this.app,a).zo()}; g.k.addEventListener=function(a,b){this.state.C.subscribe(a,b)}; g.k.removeEventListener=function(a,b){this.state.C.unsubscribe(a,b)}; g.k.pF=function(a){this.app.pF(a)}; g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)}; g.k.Qs=function(){var a={},b=g.XT(this.app).Qs();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a}; g.k.BD=function(){return g.XT(this.app).BD()}; g.k.KD=da(22);g.k.yK=function(a){this.app.yK(a);a&&beb(this.app,a)}; g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)}; g.k.LD=da(24);g.k.Xn=da(28);g.k.xo=function(a){var b=g.XT(this.app);b&&b.xo(a)}; g.k.mA=function(a,b){this.Bb().mA(a,b)}; g.k.Mk=function(){var a=g.dW(this.Bb());return!!a&&a.Mk()}; g.k.fp=function(){var a=g.dW(this.Bb());return!!a&&a.fp()}; g.k.pB=function(a,b,c){var d=g.dW(this.Bb());d&&d.pB(a,b,c)}; g.k.oB=da(29);g.k.Io=function(){var a=g.XT(this.app);a&&a.Io()}; g.k.JK=function(a){this.Ac("onVideoAreaChange");this.Ac(a?"onShowControls":"onHideControls")}; g.k.Cn=function(a,b){var c=g.ZT(this);if(c)return c.Cn(a,b);a=this.app.qb().Rh();return new g.is(0,0,a.width,a.height)}; g.k.En=function(){return this.app.En()}; g.k.mE=function(){var a=this.Bb().Ne.get("heartbeat");return!!a&&a.mE()}; g.k.Vh=function(){var a=this.U();if(a.Wa||a.disableSeek)return!1;var b=g.XT(this.app);if(!b)return!1;var c=b.getVideoData();return!c.Le()||g.uT(c)||2===this.getPresentingPlayerType()&&!this.app.Nf()||GT(c)&&2===this.getPresentingPlayerType(!0)||b.Gn()&&3!==this.getPresentingPlayerType()||g.lC(g.ZR(a))&&!c.Pm||g.WT(this.app)?!1:!0}; g.k.hE=function(){var a;return(null==(a=g.XT(this.app))?void 0:a.hE)||!1}; g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; g.k.au=function(){var a=g.XT(this.app);a&&a.au()}; g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)}; g.k.Af=function(a,b,c){this.app.Ly(a,b,c)}; g.k.Ao=function(a,b){this.app.AF(a,b)}; g.k.Ef=function(a,b){Idb(this.app,a,b)}; g.k.IB=function(){this.app.IB()}; g.k.Ng=function(a,b){(b=g.XT(this.app,b))&&b.Ng(a)}; g.k.Gn=function(){var a=g.XT(this.app);return a?a.Gn():!0}; g.k.Mv=function(){var a=this.getVideoData();return!!a&&(a.Mv()||!!a.hlsFormats||!!a.Yc)}; g.k.getPlaybackRate=function(){return g.XT(this.app,1).getPlaybackRate()}; g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)}; g.k.nf=function(){return this.app.nf()}; g.k.Fi=function(){return this.app.Fi()}; g.k.ej=function(a){return this.app.ej(a)}; g.k.createClientVe=function(a,b,c,d){this.U().ib&&this.app.Tq.createClientVe(a,b,c,void 0===d?!1:d)}; g.k.createServerVe=function(a,b,c){this.U().ib&&this.app.Tq.createServerVe(a,b,void 0===c?!1:c)}; g.k.setTrackingParams=function(a,b){this.U().ib&&this.app.Tq.setTrackingParams(a,b)}; g.k.logClick=function(a,b){this.U().ib&&(this.app.Tq.click(a,b),this.ra("veClickLogged",a))}; g.k.logVisibility=function(a,b,c){if(this.U().ib){var d=this.app.Tq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.lF(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.DF(e,[f]):g.EF(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.CF(e,f,void 0,c),d.C.add(a))}}; g.k.hasVe=function(a){return this.U().ib?this.app.Tq.hasVe(a):!1}; g.k.destroyVe=function(a){this.U().ib&&this.app.Tq.destroyVe(a)}; g.k.fd=function(){return g.XT(this.app)}; g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)}; g.k.jx=function(){this.app.jx()}; g.k.mz=function(a,b){return this.app.mz(a,b)}; g.k.Yp=function(a){this.app.Yp(a)}; g.k.pA=function(){this.app.pA()}; g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)}; g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)}; g.k.MC=function(a,b,c,d,e,f,h){return this.app.MC(a,b,c,d,e,f,h)}; g.k.eE=function(a,b,c,d,e,f,h){return this.app.eE(a,b,c,d,e,f,h)}; g.k.Zz=function(){return this.app.Zz()}; g.k.Qt=function(a){this.app.Qt(a)}; g.k.Uy=function(a,b){b=void 0===b?Infinity:b;this.app.Uy(void 0===a?-1:a,b)}; g.k.jL=function(a){var b;null==(b=g.YV(this.Bb()))||b.jL(a)}; g.k.vG=function(a,b,c){this.app.vG(a,b,c)}; g.k.Iq=function(){return this.app.Iq()}; g.k.MH=function(a,b,c){this.app.MH(a,b,void 0===c?0:c)}; g.k.dw=function(){return this.app.dw()}; g.k.Nf=function(){return this.app.Nf()}; g.k.Gt=function(a,b,c){return this.app.Gt(a,b,c)}; g.k.qa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.XT(this.app,d))||e.qa(a,b,c)}; g.k.gQ=function(a,b){this.ra("aduxmouseover",a,b)}; g.k.fQ=function(a,b){this.ra("aduxmouseout",a,b)}; g.k.FQ=function(a,b){this.ra("muteadaccepted",a,b)}; g.k.oE=function(){return this.app.qb().oE()}; g.k.wB=function(a){this.app.qb().wB(a)}; g.k.Jr=function(a){return a?this.app.hS():(a=g.XT(this.app))?a.Jr():!1}; g.k.SR=function(a){this.app.SR(a)}; g.k.mJ=function(a){var b,c=null==(b=g.XT(this.app))?void 0:b.Aa;c&&c.mJ(a)}; g.k.xu=function(){g.XT(this.app,1).xu()}; g.k.zO=function(){var a=g.XT(this.app);return a?a.zO():0}; g.k.MK=function(a){var b=g.XT(this.app);b&&b.MK(a)};var IUa;g.w(HUa,HC);HUa.prototype.zD=function(a,b){a=HC.prototype.zD.call(this,a,b);return Object.assign({},a,this.hB)};var KUa=!1;g.qU.prototype.info=function(){}; g.qU.prototype.debug=function(){}; var EVa=new Map;rU.prototype.PA=function(a,b){b.getLength();switch(a){case 20:a=new kO(b);a={Fp:nO(a,1),videoId:qO(a,2),itag:nO(a,3),lmt:nO(a,4),xtags:qO(a,5),nB:nO(a,6),Nn:oO(a,8),Xt:nO(a,9),qmb:nO(a,10),startMs:nO(a,11),durationMs:nO(a,12),Dr:nO(a,14),timeRange:rO(a,15,dVa),Lj:nO(a,16),BJ:nO(a,17),clipId:qO(a,1E3)};this.BQ(a);break;case 21:this.zQ(b,!1);break;case 22:this.Op(b);break;case 31:a=uO(b,$Ua);this.JA(a);break;case 52:emb?(a=uO(b,uVa),this.LA(a)):this.HJ(a,b);break;default:this.HJ(a,b)}}; rU.prototype.BQ=function(){}; rU.prototype.HJ=function(){}; var emb=!1;g.w(sU,g.I);sU.prototype.Fo=function(a,b,c){c=void 0===c?{}:c;this.policy.tj=rQa(a,c,this.D,void 0===b?!1:b)};IVa.prototype.IJ=function(a){var b=this;if(this.policy.Ay){var c=new Set(a);c.size===this.Y.size&&[].concat(g.pa(c)).every(function(d){return b.Y.has(d)})||(this.Aa.qa("lwnmow",{itagDenylist:[].concat(g.pa(a)).join(",")}),this.Aa.lx(!!c.size),this.ma=-1,this.Y=c,zU(this,this.j),this.Ra=!0)}}; IVa.prototype.Fo=function(a,b,c){c=void 0===c?{}:c;var d=this.policy.tj;this.G.Fo(a,void 0===b?!1:b,c);if(d!==this.policy.tj){zU(this,this.j);AU(this);var e,f;d>this.policy.tj&&(null==(e=this.C)?0:MK(e.info))&&(null==(f=this.nextVideo)||!MK(f.info))&&(this.va=!0)}}; var FU=!1;g.w(g.HU,g.QF);g.k=g.HU.prototype;g.k.show=function(){var a=this.gk();g.QF.prototype.show.call(this);this.Ia&&(this.N.T(window,"blur",this.Qb),this.N.T(document,"click",this.Y3));a||this.ra("show",!0)}; g.k.hide=function(){var a=this.gk();g.QF.prototype.hide.call(this);$Va(this);a&&this.ra("show",!1)}; g.k.xd=function(a,b){this.B=a;this.ma.show();b?(this.Y||(this.Y=this.N.T(this.J,"appresize",this.wV)),this.wV()):this.Y&&(this.N.Tc(this.Y),this.Y=void 0)}; g.k.NW=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())}; g.k.wV=function(){var a=g.ZT(this.J);this.B&&a.St(this.element,this.B)}; g.k.Qb=function(){var a=this.gk();$Va(this);this.ma.hide();a&&this.ra("show",!1)}; g.k.Y3=function(a){var b=wC(a);b&&(g.Tf(this.element,b)||this.B&&g.Tf(this.B,b)||!g.PG(a))||this.Qb()}; g.k.gk=function(){return this.Jb&&4!==this.ma.state};g.w(aWa,g.HU);aWa.prototype.xd=function(){g.HU.prototype.xd.call(this);this.dialog.focus()};g.w(g.KU,g.QF);g.KU.prototype.updateValue=function(a,b){g.QF.prototype.updateValue.call(this,a,b);this.ra("size-change")};var vWa={tM:14,yL:13,RU:12,UU:11,oM:10,uM:9,vL:8,uL:7,sM:6,SUBTITLES:5,AUDIO:4,rM:3,CU:2,REMOTE:1,WS:0,14:"STABLE_VOLUME",13:"CINEMATIC",12:"REMOTE_SELECT",11:"SIZE",10:"MINIPLAYER",9:"THREED",8:"AUTONAV",7:"ANNOTATIONS",6:"SPEED",5:"SUBTITLES",4:"AUDIO",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.w(NU,g.KU);NU.prototype.Nc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)}; NU.prototype.D=function(){var a,b,c=null==(a=this.J.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.J.getVideoData())?void 0:d.accountLinkingConfig;MU(this,YF());var e;g.JU(this,OU(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.C=new aWa(this.J,OU(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),OU(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),OU(null==a?void 0:null== (l=a.menuData)?void 0:l.confirmButtonText));g.N(this,this.C);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Hb.Xc(this);this.j=!0}else!c&&this.j&&(this.Hb.ph(this),this.j=!1)}; NU.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Hb.Qb();this.C&&this.C.xd()};g.w(PU,g.I);PU.prototype.L=function(a){return this.api.L(a)};g.w(QU,PU);QU.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.EU=b}; QU.prototype.setAccountLinkState=function(a){this.api.getVideoData().EU=a;this.api.Io()}; QU.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ra("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.w(cWa,PU); cWa.prototype.B=function(a){var b=a.getId(),c=this.api.getVideoData(1),d=!this.api.isInline();if(!c.inlineMetricEnabled&&!this.api.L("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.hT&&g.eE(c.hT),c.dQ&&SU(this,c.dQ),c.yy)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.u(c.yy),h=f.next();!h.done;h=f.next())SU(this,g.Gu(h.value,e))}else"conversionview"===b?this.api.xu():"engagedview"===b&&c.yj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.eE(g.Gu(c.yj, e)));c.zU&&(e=c.zU,f=a.getId(),e=yB(e,{label:f}),g.eE(e));switch(b){case "videoplaytime25":c.eT&&SU(this,c.eT);c.BS&&TU(this,c.BS);c.DU&&g.eE(c.DU);break;case "videoplaytime50":c.fT&&SU(this,c.fT);c.QS&&TU(this,c.QS);c.FU&&g.eE(c.FU);break;case "videoplaytime75":c.gT&&SU(this,c.gT);c.RS&&TU(this,c.RS);c.KU&&g.eE(c.KU);break;case "videoplaytime100":c.ZS&&SU(this,c.ZS),c.lR&&TU(this,c.lR),c.BU&&g.eE(c.BU)}(e=this.api.getVideoData().Fx)&&gWa(this,e,a.getId())&&gWa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&& !d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.zy)?void 0:l.j;m&&SU(this,m);break;case "videoplayback2s":(l=null==(m=c.zy)?void 0:m.C)&&SU(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.zy)?void 0:n.B)&&SU(this,l)}this.api.Ao([a],1)};g.w(iWa,PU);g.w(kWa,g.V);g.k=kWa.prototype; g.k.oC=function(){var a;if(a=3!==this.J.getPresentingPlayerType()&&g.lU(this.J)&&400<=this.J.qb().getPlayerSize().width)if(a=this.Rd(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!1!==!!(null==(b=a.getWatchNextResponse())?0:null==(c=b.contents)?0:null==(d=c.twoColumnWatchNextResults)?0:null==(e=d.autoplay)?0:e.autoplay)}if(a)this.j||(this.j=!0,g.PF(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||jWa(this), b=this.Rd(),this.kU(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.PF(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.u(this.B),c=b.next();!c.done;c=b.next())this.Tc(c.value)}; g.k.kU=function(a){mWa(this)?this.isChecked=1!==a:((a=1!==a)||(g.IC(),a=g.KB("web_autonav_allow_off_by_default")&&!g.JC(0,141)&&g.mB("AUTONAV_OFF_BY_DEFAULT")?!1:!g.JC(0,140)),this.isChecked=a);lWa(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.yK(this.isChecked?2:1);lWa(this);if(mWa(this)){var a=this.Rd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.J.ob("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.J.ob("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.Rd=function(){return this.J.getVideoData(1)};g.w(nWa,PU);g.w(UU,g.KU);UU.prototype.onClick=function(){this.enabled&&(VU(this,!this.checked),this.ra("select",this.checked))}; UU.prototype.getValue=function(){return this.checked}; UU.prototype.qB=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var tWa={tM:14,RU:13,UU:12,oM:11,uM:10,vL:9,rM:8,sM:7,SUBTITLES:6,AUDIO:5,uL:4,yL:3,CU:2,REMOTE:1,WS:0,14:"STABLE_VOLUME",13:"REMOTE_SELECT",12:"SIZE",11:"MINIPLAYER",10:"THREED",9:"AUTONAV",8:"QUALITY",7:"SPEED",6:"SUBTITLES",5:"AUDIO",4:"ANNOTATIONS",3:"CINEMATIC",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"},uWa={tM:14,RU:13,UU:12,oM:11,uM:10,vL:9,yL:8,uL:7,AUDIO:6,SUBTITLES:5,sM:4,rM:3,CU:2,REMOTE:1,WS:0,14:"STABLE_VOLUME",13:"REMOTE_SELECT",12:"SIZE",11:"MINIPLAYER",10:"THREED",9:"AUTONAV",8:"CINEMATIC", 7:"ANNOTATIONS",6:"AUDIO",5:"SUBTITLES",4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};var pWa=["en-CA","en","es-MX","fr-CA"];g.w(ZU,UU);ZU.prototype.Sa=function(a){a?this.j||(this.Hb.Xc(this),this.j=!0):this.j&&(this.Hb.ph(this),this.j=!1);this.j&&VU(this,XMa())}; ZU.prototype.D=function(){g.av(this.element,"ytp-menuitem-highlight-transition-enabled")}; ZU.prototype.C=function(a){var b=XMa();a!==b&&(b=g.IC(),Eqa(190,a),Eqa(192,!0),b.save(),this.J.ob("cinematicSettingsToggleChange",a))}; ZU.prototype.xa=function(){this.j&&this.Hb.ph(this);UU.prototype.xa.call(this)};g.w(yWa,PU);yWa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Sa(a);this.api.ra("onCinematicSettingsVisibilityChange",a)};g.w($U,UU);$U.prototype.B=function(a){this.callback(a?1:0)}; $U.prototype.onVideoDataChange=function(){var a=this.j();VU(this,a);this.qB(a)}; $U.prototype.xa=function(){this.Hb.ph(this);UU.prototype.xa.call(this)};g.w(aV,PU);aV.prototype.getDrcUserPreference=function(){return this.j}; aV.prototype.setDrcUserPreference=function(a){g.DC("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.fd())&&this.B()&&V_(a))}; aV.prototype.updateEnvironmentData=function(){this.api.U().Pm=1===this.j}; aV.prototype.B=function(){var a,b,c=null==(a=this.api.getVideoData())?void 0:null==(b=a.C)?void 0:b.j;return c?Bs(c,function(d){var e;return!0===(null==(e=d.audio)?void 0:e.j)}):!1};g.w(bV,PU);bV.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.Ef("embargo",1);var c=null==b?void 0:b.wL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?AWa(this,c.filter(function(d){return zWa(a,d)})):(null==b?0:b.cueRanges)&&AWa(this,b.cueRanges.filter(function(d){return zWa(a,d)}))}; bV.prototype.B=function(a){return void 0!==a.embargo}; bV.prototype.xa=function(){PU.prototype.xa.call(this);this.j={}};g.w(BWa,PU); BWa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.rd,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");0a)){var c=this.api.getVideoData(),d=c.il;if(d&&a=this.position&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.w(tXa,PU);g.w(CV,g.I);CV.prototype.j=function(){var a=(0,g.kD)()-this.startTime;a=aa&&this.delay.start()}; var gmb=new vv(0,0,.4,0,.2,1,1,1),zXa=/[0-9.-]+|[^0-9.-]+/g;g.w(DV,g.V);DV.prototype.onClick=function(){var a=this.api.app;a.Va.ob("SIZE_CLICKED",!a.sP);this.api.logClick(this.element)}; DV.prototype.Sa=function(){g.PF(this,this.api.qP()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Jb){var a=this.api.jw();if(this.jw!==a){var b=a?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z", fill:"#fff","fill-rule":"evenodd"}}]};null==this.jw?this.updateValue("icon",b):yXa(this.transition,this.element,b);this.jw=a;b=g.cU(this.api,"Default view","t");var c=g.cU(this.api,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});this.api.Nh()}}this.api.logVisibility(this.element,this.Jb)};g.w(AXa,PU);g.w(BXa,PU);EV.prototype.send=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.Ba(d,2),g.z(d,OB(a,b),4);if(2!=d.j)return d.return(d.B);c=g.Da(d);if(c instanceof NB)throw new Vn(Un(EB(c.xhr)),c.message);throw c;})}; EV.prototype.rD=function(a,b){var c=this,d,e,f,h,l,m;return g.H(function(n){if(1==n.j){var p=new ko;d=Ak(p,1,c.jj);a&&Ak(d,2,a);b&&Ak(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Gk()},c.j)),2)}e=n.B;f=Phb(e.xhr.responseText);h=Ij(f,2);if(!h.isEmpty()){if(g.ZB()&&10>Dpa())throw Error("Unsupported");l=Fg(uda(h));return n.return(tga(l))}m=g.Rj(f,go,1);if(!m)throw Error("Missing field");return n.return(m)})}; EV.prototype.IW=function(a){var b=this,c,d;return g.H(function(e){if(1==e.j){var f=new lo;f=Ak(f,1,b.jj);c=Ak(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Gk()},b.j)),2)}d=e.B;return e.return(Rhb(d.xhr.responseText))})};g.w(FV,PU);FV.prototype.xa=function(){this.C&&(g.JB(this.C),this.C=void 0);PU.prototype.xa.call(this)}; FV.prototype.XN=function(a){var b=this;return g.H(function(c){return b.j?c.return(b.j.ready().then(function(){b.Sb.ji("pot_if");return GXa(b,a)})):c.return(Promise.reject("web po not ready"))})}; FV.prototype.UP=function(a){return GXa(this,a)}; FV.prototype.IS=function(){this.j&&!this.j.isReady()&&GV(this)};g.w(HXa,PU);g.w(HV,g.I);HV.prototype.j=function(){for(var a=g.u(g.Ia.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)}; HV.prototype.xa=function(){for(var a=this.features.length-1;0<=a;a--)this.features[a].dispose();this.features.length=0;g.I.prototype.xa.call(this)};IV.prototype.iQ=function(){this.B=(0,g.kD)()}; IV.prototype.reset=function(){this.j=this.B=NaN}; IV.prototype.oQ=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.01>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});MH("seek",c);g.LH({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||NH("pl_ss",this.B,"seek");NH(b,(0,g.kD)(),"seek")}this.reset()}};g.k=IXa.prototype;g.k.reset=function(){JH(this.timerName)}; g.k.tick=function(a,b){NH(a,b,this.timerName)}; g.k.ji=function(a){return Rya(a,this.timerName)}; g.k.pu=function(a){CL(a,void 0,this.timerName)}; g.k.infoGel=function(a){g.LH(a,this.timerName)};g.w(MXa,g.IF);g.k=MXa.prototype;g.k.Uk=function(a){return this.loop||!!a||this.index+1([^<>]+)<\/a>/;g.w(LYa,g.V);g.k=LYa.prototype;g.k.onClick=function(a){g.WU(a,this.J,!0);this.J.logClick(this.element)}; g.k.onVideoDataChange=function(a,b){NYa(this,b);this.Me&&OYa(this,this.Me)}; g.k.e4=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&NYa(this,b);this.j&&OYa(this,a.state);this.Me=a.state}; g.k.xd=function(){this.D.show();this.J.ra("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)}; g.k.Qb=function(){this.D.hide();this.J.ra("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.w(mW,g.V);mW.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.V.prototype.hide.call(this)}; mW.prototype.onStateChange=function(a){this.Hc(a.state)}; mW.prototype.Hc=function(a){if(g.EG(a,128))var b=!1;else{var c;b=(null==(c=this.api.fd())?0:c.zt)?!1:g.EG(a,16)||g.EG(a,1)?!0:!1}b?this.j.start():this.hide()}; mW.prototype.B=function(){this.message.style.display="block"};g.w(nW,g.HU);nW.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(PYa(this),this.xd()):(this.j&&this.logClick(),this.Qb()))}; nW.prototype.Ak=function(a){this.api.isMutedByMutedAutoplay()&&g.GG(a,2)&&this.Qb()}; nW.prototype.onClick=function(){this.api.unMute();this.logClick()}; nW.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.w(g.oW,g.DK);g.k=g.oW.prototype;g.k.init=function(){var a=this.api,b=a.Xb();this.LI=a.getPlayerSize();this.Gc(b);this.gq();this.Yb();this.api.ra("basechromeinitialized",this);this.AO()&&this.api.ra("standardControlsInitialized")}; g.k.onVideoDataChange=function(a,b){var c=this.uE!==b.videoId;if(c||"newdata"===a){a=this.api;a.isFullscreen()||(this.LI=a.getPlayerSize());var d;(null==(d=this.api.getVideoData(1))?0:g.JT(d))&&this.fq()}c&&(this.uE=b.videoId,c=this.Rg,c.Ia=3E3,eW(c,512,!0),this.gq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.n0=572)}; g.k.T$=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.k.yB=function(){var a=this.api.Mk()&&this.api.fp(),b=this.api.Zz();return this.tN||a||this.SO||b}; g.k.fq=function(){var a=!this.yB();g.cv(this.api.getRootNode(),"ytp-menu-shown",!a);var b;(null==(b=this.api.getVideoData(1))?0:g.JT(b))&&g.cv(this.api.getRootNode(),"ytp-hide-controls",!a)}; g.k.nH=function(a){try{if(!g.Tf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Wf(a);)a=a===this.api.getRootNode()?null:g.Sf(a);return!!a}; g.k.FA=function(a){var b=this.api.getRootNode();g.cv(b,"ytp-autohide",a);g.cv(b,"ytp-autohide-active",!0);this.BV.start(a?250:100);a&&(this.bL=!1,g.av(b,"ytp-touch-mode"));this.uN=!a;this.api.JK(!a)}; g.k.hQ=function(){var a=this.api.getRootNode();g.cv(a,"ytp-autohide-active",!1)}; g.k.Aaa=function(){this.xS=!0}; g.k.zaa=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.xS=!1,this.yS&&this.Tc(this.yS),0===this.LE&&pW(this,a)?(this.TO(),this.HH.start(),this.yS=this.T(this.api.qb(),"touchmove",this.Aaa,void 0,!0)):this.HH.stop();TYa(this)&&pW(this,a)&&!this.api.U().Z&&RYa(this);var b=this.DS.gk();if(!g.QR(this.api.U())&&NR&&UYa(this,a))b&&a.preventDefault();else if(this.bL=!0,g.Zu(this.api.getRootNode(),"ytp-touch-mode"),this.Rg.vu(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b= this.api.Xb(),!(!this.api.Vh()||g.EG(b,2)&&g.eU(this.api)||g.EG(b,64))){b=Date.now()-this.xY;this.LE+=1;if(350>=b){this.gD=!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.LE-1);02*b&&d<3*b&&(this.CF(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else fW&&this.api.U().Z&& pW(this,a)&&a.preventDefault();this.xY=Date.now();this.G_.start()}}; g.k.yaa=function(){this.wJ.Sz=!1;this.api.ra("rootnodemousedown",this.wJ)}; g.k.uaa=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(UYa(this,a)||this.wJ.Sz)return}else if(this.wJ.Sz||UYa(this,a))return;TYa(this)||!pW(this,a)||this.HH.isActive()||(RYa(this),a.preventDefault());this.gD&&(this.gD=!1)}; g.k.TO=function(){}; g.k.ZF=function(){}; g.k.CF=function(){}; g.k.BF=function(){}; g.k.Nr=function(){var a=this.api.Xb();g.EG(a,2)&&g.eU(this.api)||(g.xL(a)?this.api.pauseVideo():(this.un&&(a=this.un.C,document.activeElement===a.element&&this.api.ra("largeplaybuttonclicked",a.element)),this.api.pA(),this.api.playVideo(),this.un&&document.activeElement===this.un.C.element&&(null==(a=this.AO())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))}; g.k.vaa=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!SYa(this,wC(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.gD)this.gD=!1;else if(a.Pb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.WD(d)})}catch(d){this.WD(d)}}; g.k.WD=function(a){String(a).includes("fullscreen error")?g.pF(a):g.oF(a)}; g.k.waa=function(a){VYa(this,.3,a.scale);a.preventDefault()}; g.k.xaa=function(a){VYa(this,.1,a.scale)}; g.k.Yb=function(){var a=this.api.qb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Rg.resize();g.cv(b,"ytp-fullscreen",this.api.isFullscreen());g.cv(b,"ytp-large-width-mode",c);g.cv(b,"ytp-small-mode",this.Vg());g.cv(b,"ytp-tiny-mode",this.UI());g.cv(b,"ytp-big-mode",this.Dh());this.Eg&&this.Eg.resize(a)}; g.k.Ak=function(a){this.Gc(a.state);this.gq()}; g.k.tB=da(7);g.k.nO=function(){var a=!!this.uE&&!this.api.Mf()&&!this.UQ,b=2===this.api.getPresentingPlayerType(),c=this.api.U();if(b){if(Ygb&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=aW(this.api.Bb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.rJ(b.player.U()):!1);return a}return a&&(c.Tm||this.api.isFullscreen()||c.il)}; g.k.gq=function(){var a=this.nO();this.Ln!==a&&(this.Ln=a,g.cv(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.k.Gc=function(a){var b=a.isCued()||this.api.Gn()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.zS&&this.Tc(this.zS),this.zS=this.T(this.api.qb(),"touchstart",this.zaa,void 0,b));var c=this.Rg,d=a.isPlaying()&&!g.EG(a,32)||this.api.mE();eW(c,128,!d);c=this.Rg;d=3===this.api.getPresentingPlayerType();eW(c,256,d);c=this.api.getRootNode();g.EG(a,2)?d=[c3.ENDED]:(d=[],g.EG(a,8)?d.push(c3.PLAYING):g.EG(a,4)&&d.push(c3.PAUSED),g.EG(a,1)&&!g.EG(a,32)&&d.push(c3.BUFFERING), g.EG(a,32)&&d.push(c3.SEEKING),g.EG(a,64)&&d.push(c3.UNSTARTED));g.Zb(this.zM,d)||(g.bv(c,this.zM),this.zM=d,g.$u(c,d));d=this.api.U();var e=g.EG(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.EG(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:Ggb(aW(this.api.Bb())))||this.api.Zz()||g.QR(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.cv(c,"ytp-hide-controls",!f);g.cv(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.SO); g.EG(a,128)&&!g.QR(d)?(this.Eg||(this.Eg=new g.iW(this.api),g.N(this,this.Eg),g.kU(this.api,this.Eg.element,4)),this.Eg.B(a.Tg),this.Eg.show()):this.Eg&&(this.Eg.dispose(),this.Eg=null)}; g.k.Aq=function(){return this.api.Mk()&&this.api.fp()?(this.api.pB(!1,!1),!0):this.api.Mf()?(g.fU(this.api,!0),!0):!1}; g.k.onMutedAutoplayChange=function(a){this.SO=a;this.fq()}; g.k.Dh=function(){return!1}; g.k.Vg=function(){return!this.Dh()&&(this.api.getPlayerSize().widththis.api.getPlayerSize().height)}; g.k.UI=function(){return this.Vg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; g.k.wm=function(){return this.bL}; g.k.zp=function(){return null}; g.k.SW=function(){return null}; g.k.Cn=function(){var a=this.api.qb().getPlayerSize();return new g.is(0,0,a.width,a.height)}; g.k.handleGlobalKeyDown=function(){return!1}; g.k.handleGlobalKeyUp=function(){return!1}; g.k.St=function(){}; g.k.showControls=function(a){void 0!==a&&this.api.qb().JK(a)}; g.k.vu=function(){}; g.k.AO=function(){return null};g.w(qW,g.IF);g.k=qW.prototype;g.k.gm=function(){return 1E3*this.api.getDuration(this.Ho,!1)}; g.k.stop=function(){this.j&&this.Id.Tc(this.j)}; g.k.Rc=function(){var a=this.api.getProgressState(this.Ho);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Ho,!1)};this.ra("h")}; g.k.getProgressState=function(){return this.B}; g.k.f4=function(a){g.GG(a,2)&&this.ra("g")};g.w(g.rW,g.V);g.rW.prototype.show=function(){g.V.prototype.show.call(this);g.Su(this.j)}; g.rW.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)}; g.rW.prototype.ZF=function(a){a?g.EG(this.J.Xb(),64)||sW(this,Swa(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?sW(this,Wwa(),"Stop live playback"):sW(this,Pwa(),"Pause"))};g.w(YYa,g.V);g.k=YYa.prototype;g.k.VF=function(a){a?this.j=bU(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)}; g.k.xd=function(){this.J.U().L("player_new_info_card_format")&&g.Yu(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.QR(this.J.U())||(this.B.show(),g.uE("iv-button-shown"))}; g.k.Qb=function(){g.uE("iv-button-hidden");this.B.hide()}; g.k.gk=function(){return this.Jb&&4!==this.B.state}; g.k.xa=function(){this.j&&this.j();g.V.prototype.xa.call(this)}; g.k.r$=function(){g.uE("iv-button-mouseover")}; g.k.Y9=function(a){this.J.Mk();var b=g.Yu(this.J.getRootNode(),"ytp-cards-teaser-shown");g.uE("iv-teaser-clicked",b);var c;if(null==(c=this.J.getVideoData())?0:g.zT(c)){var d;a=null==(d=this.J.getVideoData())?void 0:g.AT(d);(null==a?0:a.onIconTapCommand)&&this.J.ob("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.J.pB(!this.J.fp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(ZYa,g.V);g.k=ZYa.prototype;g.k.Z0=function(){this.J.Mk()&&this.J.fp()&&this.gk()&&this.Qb()}; g.k.oS=function(){this.Qb();!this.J.Mk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Zg.Qb();g.uE("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.J.ob("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.J.getVideoData())?0:g.zT(a))||this.J.pB(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}}; g.k.i4=function(){g.uE("iv-teaser-mouseover");this.j&&this.j.stop()}; g.k.Vaa=function(a){this.J.U().L("player_new_info_card_format")&&!g.QR(this.J.U())?this.Zg.Qb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Zg.xd();this.j||!a||this.J.fp()||this.B&&this.B.isActive()||(this.xd(a),g.uE("iv-teaser-shown"))}; g.k.xd=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.pv(a.teaserText));this.D.show();this.B=new g.Ru(function(){g.Zu(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.QR(this.J.U())&&this.Zg.Qb();this.fM()},0,this); this.B.start();this.Zg.VF(!1);this.j=new g.Ru(this.Qb,580+a.durationMs,this);this.j.start();this.G.push(this.Ta("mouseover",this.qU,this));this.G.push(this.Ta("mouseout",this.pU,this))}; g.k.fM=function(){if(!this.J.U().L("player_new_info_card_format")&&g.QR(this.J.U())&&this.Jb){var a=this.Zg.element.offsetLeft,b=g.Af("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Zg.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; g.k.Y5=function(){g.QR(this.J.U())&&this.J.Vg()&&this.Jb&&this.Y.start()}; g.k.qU=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()}; g.k.pU=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()}; g.k.F$=function(){this.j&&this.j.stop()}; g.k.E$=function(){this.Qb()}; g.k.g4=function(){this.Qb()}; g.k.Qb=function(){!this.j||this.C&&this.C.isActive()||(g.uE("iv-teaser-hidden"),this.D.hide(),g.av(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.Ru(function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())this.Tc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.Zg.VF(!0);!this.J.Mk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Zg.Qb()},330,this),this.C.start())}; g.k.gk=function(){return this.Jb&&4!==this.D.state}; g.k.xa=function(){var a=this.J.getRootNode();a&&g.av(a,"ytp-cards-teaser-shown");g.xb(this.B,this.C,this.j);g.V.prototype.xa.call(this)};var s3={},uW=(s3.BUTTON="ytp-button",s3.TITLE_NOTIFICATIONS="ytp-title-notifications",s3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",s3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",s3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",s3);g.w($Ya,g.V);$Ya.prototype.onClick=function(){this.api.logClick(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);aZa(this,a)};g.Va("yt.pubsub.publish",g.uE);g.w(g.vW,g.V);g.vW.prototype.D=function(){window.location.reload()}; g.vW.prototype.j=function(){g.Zu(this.element,"ytp-sb-subscribed")}; g.vW.prototype.B=function(){g.av(this.element,"ytp-sb-subscribed")};g.w(eZa,g.V);g.k=eZa.prototype;g.k.X9=function(a){this.api.logClick(this.j);var b=this.api.U();b.B||b.eb?gZa(this)&&(this.isExpanded()?this.vH():this.SH()):g.Ue(wW(this));a.preventDefault()}; g.k.zR=function(){iZa(this);this.channel.classList.remove("ytp-title-expanded")}; g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; g.k.SH=function(){if(gZa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.C&&this.C.stop();this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0)); var a=this.api.getVideoData();this.B&&a.Ll&&a.subscribed&&(this.B.show(),this.api.logVisibility(this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; g.k.vH=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()}; g.k.Sa=function(){var a=this.api.U();g.PF(this,!this.api.md());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Jc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.D=e&&!!d.isListed&&!!d.author:g.QR(c)&&(this.D=e&&!g.MT(d)&&!c.C&&!(c.Z&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.QR(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.D?(this.K!==c&&(this.j.style.backgroundImage="url("+c+")",this.K= c),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",wW(this)),this.updateValue("channelLogoLabel",g.WJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Zu(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.av(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Gl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")|| this.updateValue("channelTitleLink",wW(this));this.updateValue("expandedSubtitle",b.expandedSubtitle)}; g.k.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.j,this.D&&a)};g.w(xW,g.QF);xW.prototype.tZ=function(){this.ra("size-change")}; xW.prototype.focus=function(){this.content.focus()}; xW.prototype.pZ=function(){this.ra("back")};g.w(g.yW,xW);g.k=g.yW.prototype;g.k.Xc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Tb(this.items,a,jZa);if(0<=b)return;b=~b;g.Rb(this.items,b,0,a);Qf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.EQ,this);this.menuItems.ra("size-change")}; g.k.ph=function(a){a.unsubscribe("size-change",this.EQ,this);this.isDisposed()||(g.Ib(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ra("size-change"))}; g.k.EQ=function(){this.menuItems.ra("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.is(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.rs(this.element,new g.Ke(d.left,d.top));g.AC(this.D);this.D.T(document,"contextmenu",this.j$);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.n4)}; g.k.j$=function(a){if(!a.defaultPrevented){var b=wC(a);g.Tf(this.element,b)||this.Qb();this.J.U().disableNativeContextMenu&&a.preventDefault()}}; g.k.onFullscreenToggled=function(){this.Qb();uZa(this)}; g.k.n4=function(){this.Qb()};g.w(GW,g.V);GW.prototype.onClick=function(){var a=this,b,c,d,e;return g.H(function(f){if(1==f.j)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,xZa(a,e),2);f.B&&wZa(a);a.api.logClick(a.element);g.Aa(f)})}; GW.prototype.Sa=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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=vZa(this);g.cv(this.element,"ytp-copylink-button-visible",this.visible); g.PF(this,this.visible);this.tooltip.Nh();this.api.logVisibility(this.element,this.visible&&this.Z)}; GW.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; GW.prototype.xa=function(){g.V.prototype.xa.call(this);g.av(this.element,"ytp-copylink-button-visible")};g.w(HW,g.V);HW.prototype.show=function(){g.V.prototype.show.call(this);g.Su(this.B)}; HW.prototype.hide=function(){this.D.stop();this.C=0;g.av(this.element,"ytp-chapter-seek");g.av(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)}; HW.prototype.CF=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=-1===a?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Uu(this.B);this.D.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.qb().getPlayerSize().height;e=this.J.qb().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.Ga("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.J.qb().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.Ga("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");yZa(this,this.G?this.C:d)};g.w(LW,g.V);g.k=LW.prototype;g.k.DJ=function(){}; g.k.GA=function(){}; g.k.zB=function(){return!0}; g.k.Sca=function(){if(this.expanded){this.Xa.show();var a=this.K.element.scrollWidth}else a=this.K.element.scrollWidth,this.Xa.hide();this.jc=34+a;g.cv(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.jc)+"px";this.Wa.start()}; g.k.J6=function(){this.badge.element.style.width=(this.expanded?this.jc:34)+"px";this.eb.start()}; g.k.GJ=function(a){this.va=a;KW(this);JW(this);this.Jm()}; g.k.Cda=function(){g.cv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; g.k.QK=function(){return this.Ca||this.va||!this.Y}; g.k.Jm=function(){this.zB()?this.ma.show():this.ma.hide();AZa(this)}; g.k.rU=function(){this.enabled=!1;this.Jm()}; g.k.Bda=function(){this.Jm()}; g.k.U9=function(a){this.tb=1===a;this.Jm();g.cv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; g.k.m$=function(){g.cv(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Jm()};g.w(NW,g.EW);NW.prototype.open=function(a,b){this.initialize(a.items)&&this.xd(b,!!b)}; NW.prototype.initialize=function(a){g.zW(this.gf);if(void 0===a||0===a.length)return!1;var b=a.length;a=g.u(a);for(var c=a.next();!c.done;c=a.next())this.Xc(c.value,b--);return!0}; NW.prototype.Xc=function(a,b){a.menuNavigationItemRenderer?DZa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&EZa(this,a.menuServiceItemRenderer,b)};g.w(GZa,LW);g.k=GZa.prototype;g.k.O$=function(a){this.Za||(this.Za=new NW(this.J),g.N(this,this.Za));var b,c;if(null==(b=this.Lc)?0:null==(c=b.menu)?0:c.menuRenderer)this.Za.open(this.Lc.menu.menuRenderer,a.target),a.preventDefault()}; g.k.s$=function(){this.J.ob("innertubeCommand",this.Ld);this.J.logClick(this.infoButton.element)}; g.k.zB=function(){return!!this.j}; g.k.QK=function(){return!!this.j}; g.k.DJ=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Jc&&this.J.ob("innertubeCommand",this.Jc),MW(this,!1))}; g.k.GA=function(){MW(this,!0);var a,b;(null==(a=this.j)?0:null==(b=a.bannerData)?0:b.dismissedStatusKey)&&this.Pb.push(this.j.bannerData.dismissedStatusKey);this.gB()}; g.k.rU=function(){this.gB();QW(this)}; g.k.Dca=function(a){var b=this,c;if(a.id!==(null==(c=this.j)?void 0:c.identifier)){this.gB();c=g.u(this.Ia);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){h=f=void 0;var l=(null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.dismissedStatusKey)||"";if(this.Pb.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.B=!0,this.J.setTrackingParams(this.badge.element, d.trackingParams));this.ma.show();KW(this);g.PF(this.Ea,!d.stayInApp);RZa(this);IZa(this);PW(this);this.Jc=g.U(d.onTapCommand,sF);if(e=g.U(d.menuOnTap,sF))this.Lc=g.U(e,okb);e=void 0;this.banner.update({thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:KZa(this),priceDropReferencePrice:LZa(this),priceA11yText:MZa(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:NZa(this)});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.ub=new g.Ru(function(){QZa(b)},1E3),this.Ea.hide(),this.countdownTimer.show(),QZa(this)); this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&HZa(this)&&(this.Vb=new g.Ru(function(){JZa(b)},1E3),JZa(this))}}}}; g.k.gB=function(){this.j&&(this.j=void 0,this.Jm())}; g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&QW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=null==b?void 0:null==(d=b.getPlayerResponse())?void 0:null==(e=d.videoDetails)?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.U(null==(h=b.getWatchNextResponse())?void 0:null==(l=h.playerOverlays)?void 0:null==(m=l.playerOverlayRenderer)?void 0:m.productsInVideoOverlayRenderer,mkb);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&& a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=null==b?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=null==b?void 0:b.trendingOfferEntityKey;var p;if(h=null==b?void 0:null==(p=b.dismissButton)?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.C=!0;var q;(p=null==b?void 0:null==(q=b.dismissButton)? void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.TF(p));this.Ld=null==b?void 0:b.onClickCommand;this.Ia.length||(PZa(this,n),PW(this));var r;null==(r=this.Yc)||r.call(this);this.Yc=g.gT.subscribe(function(){PZa(c,n);PW(c)})}else{var t; null==(t=this.Yc)||t.call(this);this.gB()}}; g.k.xa=function(){QW(this);RZa(this);IZa(this);LW.prototype.xa.call(this)};g.w(WZa,g.V);WZa.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.w(XZa,g.HU);g.k=XZa.prototype;g.k.show=function(){g.HU.prototype.show.call(this);this.J.ra("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);YZa(this,!0)}; g.k.hide=function(){g.HU.prototype.hide.call(this);this.J.ra("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);YZa(this,!1)}; g.k.getId=function(){return this.D}; g.k.xp=function(){return this.itemData.length}; g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Hl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Hl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Hl)?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.u(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.Hl)?0:l.ctaButtons)for(b=g.u(b.Hl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.U(l.value, bjb))l=new WZa(this.J,l,this.j),l.Le&&(this.itemData.push(l),l.Ja(this.items))}}; g.k.xa=function(){this.hide();g.HU.prototype.xa.call(this)};g.w(a_a,g.V);g.k=a_a.prototype;g.k.onVideoDataChange=function(a,b){$Za(this,b);this.Me&&c_a(this,this.Me)}; g.k.r4=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&$Za(this,b);c_a(this,a.state);this.Me=a.state}; g.k.uZ=function(a){(this.D=a)?this.hide():this.j&&this.show()}; g.k.q4=function(){this.B||this.xd();this.showControls=!0}; g.k.p4=function(){this.B||this.Qb();this.showControls=!1}; g.k.xd=function(){this.j&&!this.D&&(this.C.show(),this.J.ra("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))}; g.k.Qb=function(){this.j&&!this.D&&(this.C.hide(),this.J.ra("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))}; g.k.Hca=function(){this.B=!1;this.showControls||this.Qb()};var imb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(imb).reduce(function(a,b){a[imb[b]]=b;return a},{}); var jmb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(jmb).reduce(function(a,b){a[jmb[b]]=b;return a},{}); var kmb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(kmb).reduce(function(a,b){a[kmb[b]]=b;return a},{});var lmb,mmb;lmb=[{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"}];mmb=[{option:0,text:RW(0)},{option:.25,text:RW(.25)},{option:.5,text:RW(.5)},{option:.75,text:RW(.75)},{option:1,text:RW(1)}]; g.UW=[{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:lmb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:RW(.5)},{option:-1,text:RW(.75)},{option:0,text:RW(1)},{option:1,text:RW(1.5)},{option:2, text:RW(2)},{option:3,text:RW(3)},{option:4,text:RW(4)}]},{option:"background",text:"Background color",options:lmb},{option:"backgroundOpacity",text:"Background opacity",options:mmb},{option:"windowColor",text:"Window color",options:lmb},{option:"windowOpacity",text:"Window opacity",options:mmb},{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:RW(.25)},{option:.5,text:RW(.5)},{option:.75,text:RW(.75)},{option:1,text:RW(1)}]}];var nmb=[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.w(i_a,g.DK);g.k=i_a.prototype; g.k.BX=function(a){a.repeat||(this.C.KI=!1);var b=!1,c=a.keyCode,d=wC(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.WT(this.api.app)||nmb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.cf&&!g.WT(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);tW(this.ge,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0); tW(this.ge,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Vh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Vh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&TW(this,!0);(b||h)&&this.Rg.vu();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.K&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey, shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Ac("onKeyPress",a))}; g.k.CX=function(a){this.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()}; g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.ra("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.KI)return b;(c=g.iU(this.api.Bb()))&&(c=c.fu)&&c.Jb&&(c.wX(a),b=!0);switch(a){case 9:TW(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&!this.G&&!this.api.U().cf){var l,m;a=null==(l=this.progressBar)?void 0:null==(m=l.B)?void 0:m.isEnabled;b=this.Nr(a)}}return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.KI=!1);var m=!1,n=this.api.U();if(n.cf&&!g.WT(this.api.app))return m;var p=g.iU(this.api.Bb());if(p&&(p=p.fu)&&p.Jb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.vX(a)}n.N||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,0==="awesome".indexOf(this.B)?(m=!0,7===this.B.length&&$ka(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m=0==="awesome".indexOf(this.B)));if(!m&&(!g.WT(this.api.app)|| nmb.includes(a))){var q=this.api.getVideoData(),r,t;p=null==(r=this.progressBar)?void 0:null==(t=r.B)?void 0:t.isEnabled;r=q?q.il:[];t=EU?d:c;switch(a){case 80:b&&!n.Wa&&(sW(this.ge,Twa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Wa&&(sW(this.ge,Mwa(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Vh()&&(this.api.startSeekCsiAction(),this.j?IW(this.j,-1,10):sW(this.ge,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill", X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Vh()&&(this.api.startSeekCsiAction(),this.j?IW(this.j,1,10):sW(this.ge,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Vh()&&(this.api.startSeekCsiAction(),t?(t=f_a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(zZa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?IW(this.j,-1,5):sW(this.ge,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Vh()&&(this.api.startSeekCsiAction(),t?(t=e_a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(zZa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(null!=this.j?IW(this.j,1,5):sW(this.ge,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),tW(this.ge,this.api.getVolume(),!1)):(this.api.mute(),tW(this.ge,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Wa:this.Nr(p);break;case 75:m=this.Nr(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),WYa(this.ge,!1),m=!0):this.api.Vh()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&& (m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),WYa(this.ge,!0),m=!0):this.api.Vh()&&(this.step(-1),m=!0);break;case 70:oWa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0); break;case 27:p?(this.progressBar.Av(),m=!0):this.K()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.YV(this.api.Bb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),XYa(this.ge,!n||n&&!n.displayName),m=!0);break;case 79:VW(this,"textOpacity");break;case 87:VW(this,"windowOpacity");break;case 187:case 61:VW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:VW(this,"fontSizeIncrement",!0,!0)}var v;b||c||d||(48<=a&&57>=a?v=a-48:96<=a&&105>=a&&(v=a-96));null!=v&&this.api.Vh()&& (this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(v/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Rg.vu()}this.G||this.api.ra("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m}; g.k.step=function(a){this.api.Vh();if(this.api.Xb().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,0this.api.qb().getPlayerSize().width&&!a);this.api.md()?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.WJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.WJ("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Jb||(this.show(),this.api.Nh()), this.visible=!0,this.Nc(!0)):this.Jb&&this.hide()}; XW.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; XW.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Sa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Sa,this);this.Sa()};g.w(o_a,g.V);g.k=o_a.prototype;g.k.u4=function(){this.C?s_a(this):r_a(this)}; g.k.t4=function(){this.C?(YW(this),this.G=!0):r_a(this)}; g.k.C9=function(){this.D=!0;this.SF(1);this.J.ra("promotooltipacceptbuttonclicked",this.acceptButton);YW(this);this.j&&this.J.logClick(this.acceptButton)}; g.k.h$=function(){this.D=!0;this.SF(2);YW(this);this.j&&this.J.logClick(this.dismissButton)}; g.k.v4=function(a){if(1===this.J.getPresentingPlayerType()||2===this.J.getPresentingPlayerType()&&this.K){var b=!0,c=g.Af("ytp-ad-overlay-ad-info-dialog-container"),d=wC(a);if(this.B&&d&&g.Tf(this.B,d))this.B=null;else{1===this.J.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)}); var e=t_a(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Tf(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.Tf(this.element,d))}this.targetElement&&this.Jb&&!c&&(!d||b&&g.PG(a))&&(this.D=!0,YW(this))}}}; g.k.SF=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.U(d,ajb))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.hm(),(null==a?0:bya(d,a.LN))&&QH(a,d,e))}}; g.k.Yb=function(){this.G||(this.targetElement||(this.targetElement=p_a(this)),s_a(this))}; var q_a={"ytp-settings-button":g.Vwa()};g.w(ZW,g.V);ZW.prototype.onStateChange=function(a){this.Hc(a.state)}; ZW.prototype.Hc=function(a){g.PF(this,g.EG(a,2))}; ZW.prototype.onClick=function(){this.J.Xb();this.J.playVideo()};g.w($W,g.V);$W.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.bn(this.api.U().Ea,{focusSearch:"true"}),c={};g.ST(this.api,"addEmbedsConversionTrackingParams",[c]);g.lP(c,"emb_search");b=g.bn(b,c);var d;(c=null==(d=this.api.getVideoData().B9)?void 0:d.params)&&(b=g.bn(b,{bp:c}));g.Ue(b);a.preventDefault()}; $W.prototype.j=function(){if(this.api.L("embeds_web_enable_search_button")){var a=this.api.U();var b=this.api.getVideoData(),c=this.api.qb().getPlayerSize().width;a=g.QR(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.md()}else a=!1;this.visible=a;g.PF(this,this.visible);g.cv(this.element,"ytp-search-button-visible",this.visible);g.cv(this.element,"ytp-show-search-title",!this.api.Vg());this.api.logVisibility(this.element,this.visible&&this.Z)}; $W.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.w(g.aX,g.V);g.k=g.aX.prototype;g.k.Hr=da(10);g.k.onClick=function(){var a=this,b=this.api.U(),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){v_a(a,f)})}catch(f){f instanceof Error&&v_a(this,f)}else this.df.Aq(),IU(this.B,this.element,!1); this.api.logClick(this.element)}; g.k.Sa=function(){var a=this.api.U(),b=this.api.md();g.cv(this.element,"ytp-show-share-title",g.QR(a)&&!b);this.df.Dh()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ls(this.element,"right",a+"px")):b&&g.ls(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=u_a(this);g.cv(this.element,"ytp-share-button-visible",this.visible);g.PF(this,this.visible);this.tooltip.Nh();this.api.logVisibility(this.element,u_a(this)&&this.Z)}; g.k.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; g.k.xa=function(){g.V.prototype.xa.call(this);g.av(this.element,"ytp-share-button-visible")};g.w(x_a,g.HU);g.k=x_a.prototype;g.k.w4=function(a){a=wC(a);g.Tf(this.G,a)||g.Tf(this.closeButton,a)||IU(this)}; g.k.Qb=function(){g.HU.prototype.Qb.call(this);this.tooltip.Vl(this.element);this.api.logVisibility(this.j,!1);for(var a=g.u(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)}; g.k.show=function(){var a=this.Jb;g.HU.prototype.show.call(this);this.Sa();a||this.api.ob("onSharePanelOpened")}; g.k.Z8=function(){this.Jb&&this.Sa()}; g.k.Sa=function(){var a=this;g.Zu(this.element,"ytp-share-panel-loading");g.av(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&QH(this.api.hm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.av(a.element,"ytp-share-panel-loading"),z_a(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.WJ("Share link $URL",{URL:b}));sWa(this.j);this.api.logVisibility(this.j,!0)}; g.k.onFullscreenToggled=function(a){!a&&this.gk()&&IU(this)}; g.k.focus=function(){this.j.focus()}; g.k.xa=function(){g.HU.prototype.xa.call(this);y_a(this)};g.w(C_a,LW);g.k=C_a.prototype;g.k.xa=function(){H_a(this);LW.prototype.xa.call(this)}; g.k.DJ=function(a){a.target!==this.dismissButton.element&&(MW(this,!1),this.J.ob("innertubeCommand",this.onClickCommand))}; g.k.GA=function(){this.Ra=!0;MW(this,!0);this.Jm()}; g.k.V$=function(a){this.N=a;this.Jm()}; g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Ra=!1,this.va=!0,this.Y=this.Ca=!1,H_a(this),G_a(this,!1),this.D=this.j=!1,cX(this),D_a(this);if(a||!b.videoId)this.C=this.B=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.jg(!1);else{var e,f,h;b=g.U(null==(e=b.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer, mkb);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=null==b?void 0:b.featuredProductsEntityKey)){f=g.gT.getState().entities;var l;if(null==(l=GO(f,"featuredProductsEntity",e))?0:l.productsData){this.jg(!1);return}}this.enabled=!0;if(!this.B){var m;l=null==(m=b.badgeInteractionLogging)?void 0:m.trackingParams;(this.B=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.C){var n;if(this.C=!(null==(n=b.dismissButton)||!n.trackingParams)){var p; this.J.setTrackingParams(this.dismissButton.element,(null==(p=b.dismissButton)?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,G_a(this,!0),D_a(this),m=F_a(this,m),n=[],0this.api.getPlayerSize().width));var d=b.profilePicture;a=g.QR(a)?b.expandedTitle: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.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",eX(this)),this.updateValue("channelLogoLabel",g.WJ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Zu(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.av(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName, c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Gl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",eX(this))};g.w(fX,g.HU);fX.prototype.show=function(){g.HU.prototype.show.call(this);this.j.start()}; fX.prototype.hide=function(){g.HU.prototype.hide.call(this);this.j.stop()}; fX.prototype.jt=function(a,b){"dataloaded"===a&&((this.Wi=b.Wi,this.cf=b.cf,isNaN(this.Wi)||isNaN(this.cf))?this.C&&(this.J.Ef("intro"),this.J.removeEventListener(g.QJ("intro"),this.K),this.J.removeEventListener(g.RJ("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.QJ("intro"),this.K),this.J.addEventListener(g.RJ("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.PJ(this.Wi,this.cf,{priority:9,namespace:"intro"}), this.J.Af([a]),this.C=!0))};g.w(gX,g.V);gX.prototype.onClick=function(){this.J.au()}; gX.prototype.Sa=function(){var a=!0;g.QR(this.J.U())&&(a=a&&480<=this.J.qb().getPlayerSize().width);g.PF(this,a);this.updateValue("icon",this.J.Th()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.w(g0a,g.V);g0a.prototype.xa=function(){this.j=null;g.V.prototype.xa.call(this)};g.w(hX,g.V);hX.prototype.onClick=function(){this.J.ob("innertubeCommand",this.B)}; hX.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()}; hX.prototype.K=function(){this.j.disabled=null==this.B;g.cv(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Rc()};g.w(iX,hX);iX.prototype.onClickCommand=function(a){g.U(a,fT)&&this.Rc()}; iX.prototype.updateVideoData=function(a,b){var c,d,e;a=g.U(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,mSa);var f;this.B=null==(f=g.U(null==a?void 0:a.playerBarActionButton,g.FM))?void 0:f.command;hX.prototype.K.call(this)}; iX.prototype.Rc=function(){var a="",b=this.D.j,c,d="clips"===(null==(c=this.J.getLoopRange())?void 0:c.type);if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.tQ()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(null!=oC(["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.HU(this.J,{I:"div",La:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924", target:this.J.U().Y},ya:b[2]},b[4]]},100,!0);this.message.hide();g.N(this,this.message);this.message.subscribe("show",function(c){a.df.kD(a.message,c)}); g.kU(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; g.k.Sa=function(){var a=oWa(this.J),b=this.J.U().Z&&250>this.J.getPlayerSize().width;g.PF(this,a&&!b);this.J.logVisibility(this.element,this.Jb)}; g.k.Fm=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.cU(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.pF(c)})}else b={I:"svg", X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3", V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.cU(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});this.df.Ue().Nh()}; g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.V.prototype.xa.call(this)};g.w(kX,g.V);kX.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=0this.j&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.pa(a)),g.Su(this.B))};g.w(lX,hX);lX.prototype.onClickCommand=function(a){g.U(a,lkb)&&this.Rc()}; lX.prototype.updateVideoData=function(){var a,b;this.B=null==(a=n0a(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;hX.prototype.K.call(this)}; lX.prototype.Rc=function(){var a="",b=this.D.K,c,d=null==(c=n0a(this))?void 0:c.headerTitle;c=d?g.TF(d):"";var e;d="clips"===(null==(e=this.J.getLoopRange())?void 0:e.type);1=D0a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.ls(this.Ca,"transform","translateX("+(this.C-this.j/2)+"px)"),x0a(this,a)):this.C=this.N))}; g.k.y4=function(){this.va&&(this.va.Sz=!0);var a=300>(0,g.kD)()-this.Wa;if(5>Math.abs(this.Y)&&!a){this.Wa=(0,g.kD)();a=this.ma+this.Y;var b=this.j/2-a;this.jM(a);this.iM(a+b);z0a(this);this.api.logClick(this.G)}z0a(this)}; g.k.MA=function(){qX(this,this.api.getCurrentTime())}; g.k.play=function(a){this.api.seekTo(E0a(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)}; g.k.onExit=function(a){this.api.seekTo(this.Ra,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)}; g.k.Yb=function(a,b){this.Na=a;this.j=b;qX(this,this.api.getCurrentTime())}; g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ra=this.api.getCurrentTime(),x0a(this,this.Ra),g.cv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ma=this.T(this.element,"wheel",this.z4),this.logVisibility(this.isEnabled))}; g.k.disable=function(){this.isEnabled=!1;this.hide();g.cv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ma&&this.Tc(this.Ma);this.logVisibility(this.isEnabled)}; g.k.reset=function(){this.disable();this.D=[];this.Ea=!1}; g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.G,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)}; g.k.xa=function(){for(;this.B.length;){var a=void 0;null==(a=this.B.pop())||a.dispose()}g.V.prototype.xa.call(this)}; g.w(A0a,g.V);g.w(B0a,g.V);g.w(F0a,g.V);g.w(rX,g.V);rX.prototype.Kb=function(a){return"PLAY_PROGRESS"===a?this.K:"LOAD_PROGRESS"===a?this.G:"LIVE_BUFFER"===a?this.D:this.B};I0a.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.D=c;this.j=b-c-(void 0===d?0:d);this.position=g.He(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.w(J0a,g.V);g.w(g.uX,g.QF);g.k=g.uX.prototype; g.k.d1=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Ef("timedMarkerCueRange");M0a(this);for(var c=g.u(b.Ge),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Na[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Na[d])?void 0:e.markers;if(!h)break;if("MARKER_TYPE_TIMESTAMPS"===f){a=g.u(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new J0a;h=void 0;f.title=(null==(h=e.title)?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j= Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=null!=(l=null==(h=e.onActive)?void 0:h.innertubeCommand)?l:void 0;S0a(this,f)}T0a(this,this.K);a=this.K;f=this.Yd;e=[];h=null;for(l=0;lm&&(h.end=m);m=g_a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.Af(e);this.cf=this.Na[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Na[d];p=n=e=m=l=h=void 0;if(d&& d.markers){f=null!=(e=null==(p=d.markersMetadata)?void 0:null==(n=p.heatmapMetadata)?void 0:n.minHeightDp)?e:0;e=null!=(h=null==(m=d.markersMetadata)?void 0:null==(l=m.heatmapMetadata)?void 0:l.maxHeightDp)?h:60;h=this.j.length;l=null;for(m=0;m=p&&v<=q&&n.push(t)}0this.clipEnd)&&this.uK()}; g.k.A4=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}}; g.k.jt=function(a,b){this.updateVideoData(b,"newdata"===a)}; g.k.S7=function(){this.jt("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.Le();c&&(LT(a)||d1a(this)?this.Ge=!1:this.Ge=a.allowLiveDvr,g.cv(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!LT(a))));n1a(this,this.api.Vh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;BX(this);for(yX(this,this.ma,this.ib);0m&&(c=m,a.position=SG(this.C,m)*wX(this).j),b=this.C.B; d1a(this)&&(b=this.C.B);m=f||g.OG(this.Ge?c-this.C.j:c-b);b=a.position+this.Yf;c-=this.api.Vc();var n;if(null==(n=this.B)||!n.isEnabled)if(this.api.fk()){if(1=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.cf?(n=d_a(this.K,1E3*c),n=null!=n?this.K[n].title:""):(n=SW(this.j,1E3*c),n=this.j[n].title):(n=SW(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=SW(this.j,1E3*c);this.Xa=f1a(this,c,d)?d:f1a(this,c,d+1)?d+1:-1;g.cv(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Xa&&1=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.OG(h.decorationTimeMillis/1E3),d=!0)}this.rd!==d&&(this.rd=d,this.api.logVisibility(this.Ld,this.rd));g.cv(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.D?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.N-a.position&&(d=2);this.api.U().Z&& (l-=10);this.G.length&&this.G[0].Le&&(l-=14*(this.D?2:1),this.Ea||(this.Ea=!0,this.api.logVisibility(this.va,this.Ea)));var q;if(tX(this)&&((null==(q=this.B)?0:q.isEnabled)||0=.5*a?(this.B.enable(),qX(this.B,this.api.getCurrentTime()),m1a(this,a)):GX(this)}if(g.EG(this.api.Xb(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.B)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Ld)}g.av(this.element,"ytp-drag");this.Qe&&!g.EG(this.api.Xb(),2)&&this.api.playVideo()}}}; g.k.aaa=function(a,b){a=wX(this);a=AX(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;tX(this)&&(null==(c=this.B)?0:c.Ea)&&(qX(this.B,a),this.B.isEnabled||(this.Wa=g.He(this.Zf-b-10,0,DX(this)),m1a(this,this.Wa)))}; g.k.Sh=function(){this.tooltip.UO()}; g.k.rZ=function(){this.Fb||(this.updateValue("clipstarticon",Bwa()),this.updateValue("clipendicon",Bwa()),g.Zu(this.element,"ytp-clip-hover"))}; g.k.qZ=function(){this.Fb||(this.updateValue("clipstarticon",Dwa()),this.updateValue("clipendicon",Cwa()),g.av(this.element,"ytp-clip-hover"))}; g.k.uK=function(){this.clipStart=0;this.clipEnd=Infinity;BX(this);yX(this,this.ma,this.ib)}; g.k.Eda=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ma[c]){var d=g.If("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ma[c]=b;this.Vb[c]=d;g.Xu(d,b.style);g1a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else l1a(this,b)}; g.k.dca=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())l1a(this,b.value)}; g.k.Av=function(a){this.B&&(this.B.onExit(null!=a),GX(this))}; g.k.RN=function(a){this.B&&(this.B.play(null!=a),GX(this))}; g.k.xa=function(){n1a(this,!1);g.QF.prototype.xa.call(this)};g.w(HX,g.V);HX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")}; HX.prototype.Sa=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1=c;g.PF(this,a);this.J.logVisibility(this.element,a)}; IX.prototype.C=function(){if(this.Hb.Jb)this.Hb.Qb();else{var a=g.YV(this.J.Bb());a&&!a.loaded&&(a.Mh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Hb.xd(this.element)}}; IX.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.jU(this.J),e=c&&!!g.iU(this.J.Bb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.cv(this.element,"ytp-hdr-quality-badge",a);g.cv(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.cv(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.cv(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.cv(this.element,"ytp-8k-quality-badge", !a&&"highres"===c);g.cv(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.cv(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(JX,UU);JX.prototype.isLoaded=function(){var a=g.dW(this.J.Bb());return void 0!==a&&a.loaded}; JX.prototype.Sa=function(){void 0!==g.dW(this.J.Bb())&&3!==this.J.getPresentingPlayerType()?this.j||(this.Hb.Xc(this),this.j=!0):this.j&&(this.Hb.ph(this),this.j=!1);VU(this,this.isLoaded())}; JX.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.ra("annotationvisibility",a)}; JX.prototype.xa=function(){this.j&&this.Hb.ph(this);UU.prototype.xa.call(this)};g.w(g.KX,g.KU);g.k=g.KX.prototype;g.k.open=function(){g.CW(this.Hb,this.B)}; g.k.Rj=function(a){p1a(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Vd(this.Jk(a)),this.C=a)}; g.k.UM=function(a,b,c){var d=this;b=new g.KU({I:"div",La:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",La:["ytp-menuitem-label"],ya:"{{label}}"}]},b,this.Jk(a,!0));b.Ta("click",function(){d.uh(a)}); return b}; g.k.enable=function(a){this.K?a||(this.K=!1,this.gy(!1)):a&&(this.K=!0,this.gy(!0))}; g.k.gy=function(a){a?this.Hb.Xc(this):this.Hb.ph(this)}; g.k.uh=function(a){this.ra("select",a)}; g.k.Jk=function(a){return a.toString()}; g.k.B4=function(a){a.defaultPrevented||39!==a.keyCode||(this.open(),a.preventDefault())}; g.k.xa=function(){this.K&&this.Hb.ph(this);g.KU.prototype.xa.call(this);for(var a=g.u(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(MX,g.KX);MX.prototype.Sa=function(){var a=this.J.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.N:this.N;this.sx(b);a.preventDefault()}; g.k.D4=function(a){a=(a-g.us(this.C).x)/this.ma*this.range+this.B;this.sx(a)}; g.k.sx=function(a,b){b=void 0===b?"":b;a=g.He(a,this.B,this.D);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.va.style.left=(a-this.B)/this.range*(this.ma-this.Ia)+"px";this.j=a}; g.k.focus=function(){this.Ea.focus()};g.w(PX,OX);PX.prototype.Ca=function(){this.J.setPlaybackRate(this.j,!0)}; PX.prototype.sx=function(a){OX.prototype.sx.call(this,a,w1a(this,a).toString());this.G&&(v1a(this),this.Ma())}; PX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();w1a(this,this.j)!==a&&(this.sx(a),v1a(this))};g.w(x1a,g.QF);x1a.prototype.focus=function(){this.j.focus()};g.w(y1a,xW);g.w(z1a,g.KX);g.k=z1a.prototype;g.k.Jk=function(a){return"1"===a?"Normal":a.toLocaleString()}; g.k.Sa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);D1a(this)}; g.k.gy=function(a){g.KX.prototype.gy.call(this,a);a?(this.N=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),D1a(this),B1a(this,this.J.getPlaybackRate())):(this.Tc(this.N),this.N=null)}; g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||C1a(this,b);B1a(this,a)}; g.k.uh=function(a){g.KX.prototype.uh.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Hb.Ij()};g.w(F1a,g.KX);g.k=F1a.prototype;g.k.Rj=function(a){g.KX.prototype.Rj.call(this,a)}; g.k.vU=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.uh=function(a){g.KX.prototype.uh.call(this,a);this.ra("settingChange",this.N,this.settings[a].option)};g.w(QX,g.yW);QX.prototype.qh=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Kt[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Rj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; QX.prototype.Bk=function(a,b){this.ra("settingChange",a,b)};g.w(RX,g.KX);RX.prototype.j=function(a){return a.languageCode}; RX.prototype.Jk=function(a){return this.languages[a].languageName||""}; RX.prototype.uh=function(a){this.ra("select",a);this.J.logClick(this.element);g.FW(this.Hb)};g.w(I1a,g.KX);g.k=I1a.prototype;g.k.qC=function(a){return g.md(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.uh=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.dNa(this.J.U(),this.J.getVideoData());g.ZG(b)}else if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=J1a(this);SX(this,c);g.KX.prototype.uh.call(this,this.qC(c));var d,e;c=null==(b=this.J.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)? void 0:e.openTranscriptCommand;this.J.ob("innertubeCommand",c);this.Hb.Ij();this.D&&this.J.logClick(this.D)}else{if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=J1a(this);SX(this,b);g.KX.prototype.uh.call(this,this.qC(b));var f,h;b=null==(c=this.J.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.J.ob("innertubeCommand",b)}else this.J.logClick(this.element), SX(this,"__off__"===a?{}:this.tracks[a]),g.KX.prototype.uh.call(this,a);this.Hb.Ij()}}; g.k.Sa=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData(),c=b&&b.Du,d,e=!(null==(d=this.J.getVideoData())||!g.KT(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.cc(d,this.qC,this);e=g.Fr(d,this.qC);var m,n;J1a(this)&&(null==(f=b.getPlayerResponse())?0:null==(m=f.captions)?0:null==(n=m.playerCaptionsTracklistRenderer)? 0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.md(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p}); Aaa(l,f)}G1a(this.j,l);e.push("__translate__")}f=this.qC(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.LX(this,e);this.Rj(f);h&&h.translationLanguage?this.j.Rj(this.j.j(h.translationLanguage)):p1a(this.j);a&&this.G.qh(this.J.getSubtitlesUserSettings());this.countLabel.Vd(d&&d.length?" ("+d.length+")":"");this.ra("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.F4=function(a){var b=this.J.getOption("captions","track");b=g.pd(b);b.translationLanguage=this.j.languages[a];SX(this,b)}; g.k.Bk=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}H1a(this,!0);this.N.start();this.G.qh(this.J.getSubtitlesUserSettings())}; g.k.Haa=function(a){a||g.Uu(this.N)}; g.k.xa=function(){g.Uu(this.N);g.KX.prototype.xa.call(this)}; g.k.open=function(){g.KX.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.createClientVe(this.D,this,167341),this.J.logVisibility(this.D,!0))};g.w(K1a,g.EW);g.k=K1a.prototype; g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.mR=new r1a(this.J,this)}catch(c){g.pF(Error("QualityMenuItem creation failed"))}g.N(this,this.mR);var b=new I1a(this.J,this);g.N(this,b);a.C||(b=new JX(this.J,this),g.N(this,b));a.enableSpeedOptions&&(b=new z1a(this.J,this),g.N(this,b));(g.QR(a)||a.N)&&(a.B||a.eb)&&(b=new q1a(this.J,this),g.N(this,b));a.Qe&&!a.L("web_player_move_autonav_toggle")&&(a=new NX(this.J,this),g.N(this,a));a=new MX(this.J,this); g.N(this,a);this.J.ra("settingsMenuInitialized");o1a(this.settingsButton,this.gf.xp())}}; g.k.Xc=function(a){this.initialize();this.gf.Xc(a);o1a(this.settingsButton,this.gf.xp())}; g.k.ph=function(a){this.Jb&&1>=this.gf.xp()&&this.hide();this.gf.ph(a);o1a(this.settingsButton,this.gf.xp())}; g.k.xd=function(a){this.initialize();0=b;g.PF(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.w(g.VX,g.V);g.k=g.VX.prototype; g.k.Rc=function(){var a=this.api.qb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!XX(this)||!g.EG(this.api.Xb(),64));g.PF(this,b);g.cv(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.B&&(c-=a.airingStart);WX(this)&&(c-=this.Fb.startTimeMs/1E3);c=g.OG(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=WX(this)?g.OG((this.Fb.endTimeMs-this.Fb.startTimeMs)/ 1E3):g.OG(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!XX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Rc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Vd(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.aU(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Fb!==a;this.Fb=a;b&&UX(this)}; g.k.onLoopRangeChange=function(a){var b=this.Fb!==a;this.Fb=a;b&&(this.Rc(),UX(this))}; g.k.mba=function(){this.api.setLoopRange(null)}; g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Rc();UX(this)}; g.k.updateVideoData=function(a){this.kE=a.isLivePlayback&&!a.tb;this.B=LT(a);this.isPremiere=a.isPremiere;g.cv(this.element,"ytp-live",XX(this))}; g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.k.xa=function(){this.j&&this.j();g.V.prototype.xa.call(this)};g.w(O1a,g.V);g.k=O1a.prototype;g.k.Lw=function(){var a=this.api.Dh();this.C!==a&&(this.C=a,N1a(this,this.api.getVolume(),this.api.isMuted()))}; g.k.wU=function(a){g.PF(this,350<=a.width)}; g.k.I4=function(a){if(!a.defaultPrevented){var b=a.keyCode,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.He(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}}; g.k.G4=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.He(b/10,-10,10));a.preventDefault()}; g.k.Maa=function(){YX(this,this.j,!0,this.B,this.api.wm());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.H4=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.us(this.N).x;this.api.setVolume(100*g.He((a-c/2)/(b-c),0,1))}; g.k.Laa=function(){YX(this,this.j,!1,this.B,this.api.wm());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))}; g.k.onVolumeChange=function(a){N1a(this,a.volume,a.muted)}; g.k.XV=function(){YX(this,this.j,this.isDragging,this.B,this.api.wm())}; g.k.xa=function(){g.V.prototype.xa.call(this);g.av(this.K,"ytp-volume-slider-active")};g.w(ZX,g.V); ZX.prototype.onVideoDataChange=function(){var a=this.api.U();this.visible=!!this.api.getVideoData().videoId&&!g.MT(this.api.getVideoData(1));g.PF(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Tc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Zu(this.element,"no-link"));this.Yb()}; ZX.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.PG(a),!1,!0,!0);if(g.QR(b)){var d={};g.QR(b)&&g.ST(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.bn(c,g.lP(d,"emb_logo"))}g.XU(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; ZX.prototype.Yb=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}; this.api.md()&&(a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{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.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a)}; ZX.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.w(Q1a,g.DK);g.k=Q1a.prototype;g.k.hg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.EG(this.J.Xb(),2))this.progressBar.Rc(),this.Ca.Rc()}; g.k.FA=function(){this.JS();this.Rg.B?this.hg():this.progressBar.Sh()}; g.k.J4=function(){this.hg();this.Z.start()}; g.k.JS=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=2*a.N*g.fS();a=300>1E3*a.C.getLength()/a.api.getPlaybackRate()/b}a=a&&this.J.Xb().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Rg.B||(a=b=!1);b?this.va||(this.va=this.T(this.J,"progresssync",this.hg)):this.va&&(this.Tc(this.va),this.va=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()}; g.k.Yb=function(){var a=this.J.Dh(),b=this.J.qb().getPlayerSize(),c=S1a(this),d=Math.max(b.width-2*c,100);if(this.ib!==b.width||this.Za!==a){this.ib=b.width;this.Za=a;var e=T1a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.k1a(this.progressBar,c,e,a);this.J.Ue().xU=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-U1a(this))));c.maxWidth=d;c.maxHeight=a;c.LB();this.JS();this.J.U().L("html5_player_dynamic_bottom_gradient")&&f0a(this.Xa, b.height)}; g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Na.style.background=a.Of?a.tp:"";this.ma&&m0a(this.ma,a.showSeekingControls);this.Y&&m0a(this.Y,a.showSeekingControls)}; g.k.Kb=function(){return this.C.element};g.w(V1a,LW);g.k=V1a.prototype;g.k.DJ=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.ob("innertubeCommand",this.onClickCommand),this.GA())}; g.k.GA=function(){this.enabled=!1;this.ma.hide()}; g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&W1a(this);a=[];var c,d,e,f;if(b=null==(f=g.U(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,Hkb))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.U(d.value,Ikb))&&g.U(d.trigger,Gkb)&&a.push(d);if(0!==a.length){c=[];a=g.u(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.U(d.trigger,Gkb))f=(f=d.title)?g.TF(f):"View Chapters", b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(c.push(new g.PJ(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.Af(c)}}; g.k.zB=function(){return this.enabled}; g.k.jg=function(){this.enabled?this.Na.start():JW(this);this.Jm()}; g.k.xa=function(){W1a(this);LW.prototype.xa.call(this)};var t3={},$X=(t3.CHANNEL_NAME="ytp-title-channel-name",t3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",t3.LINK="ytp-title-link",t3.SESSIONLINK="yt-uix-sessionlink",t3.SUBTEXT="ytp-title-subtext",t3.TEXT="ytp-title-text",t3.TITLE="ytp-title",t3);g.w(aY,g.V);aY.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.PG(a),!1,!0);g.QR(b)&&(b={},g.ST(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.bn(c,g.lP(b,"emb_title")));g.XU(c,this.api,a)}; aY.prototype.Sa=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:$X.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},ya:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:$X.CHANNEL_NAME,ya:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);X1a(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Jc&&c.profilePicture?(this.updateValue("channelLink", c.Jc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):X1a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.il;g.cv(this.link,$X.FULLERSCREEN_LINK,c);b.ma||!a.videoId||c||g.MT(a)||b.C?this.j&&(this.updateValue("url",null),this.Tc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.QR(b)?a.expandedTitle: a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.w(g.bY,g.V);g.k=g.bY.prototype;g.k.qB=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:Z1a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a}; g.k.UK=function(a,b,c,d,e,f,h,l){if(!this.Na||this.env.Z){3===this.type&&this.Sh();1!==this.type&&(g.Xu(this.element,"ytp-tooltip ytp-bottom"),(i0a(this.api)||this.api.isInline())&&g.Zu(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.fk())&&this.B.subscribe("l",this.yZ,this));if(l){var m=g.xs(this.bg).height||this.Ca;this.Ra.style.bottom=m+2+"px"}this.update({text:c,title:null!=f?f:"",eduText:null!=l?l:""});g.cv(this.text,"ytp-tooltip-text-no-title", 1===this.type&&!f);this.api.isInline()&&g.Zu(this.text,"ytp-modern-tooltip-text");g.cv(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=MS(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&4===this.B.levels.length&&(c=this.B.levels.length-1),c=HSa(this.B,c,b));a2a(this,c);if(h)switch(b=g.xs(this.element).width,h){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right= b/2+"px",this.title.style.textAlign="center"}$1a(this,!!d,a,e)}}; g.k.UO=function(){1===this.type&&this.Sh()}; g.k.aG=function(a,b){if(this.type)if(3===this.type)this.Sh();else return;Y1a(this,a,3,b)}; g.k.Nh=function(){this.j&&!this.ma&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&Z1a(this))}; g.k.yZ=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,a2a(this,a))}; g.k.O8=function(){FSa(this.B,this.D,this.N*this.scale)}; g.k.Sh=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.va);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.va);a.addEventListener("focus",this.G);b2a(this);break;case 3:b2a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.yZ,this),this.B=null),this.api.removeEventListener("videoready",this.Ia),this.Ea.stop()}this.type=null;this.Y&&this.K.hide()}; g.k.Vl=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.FA=function(a){a&&(this.api.Vl(this.oi.element),this.Og&&this.api.Vl(this.Og.Kb()));this.OI&&(g.cv(this.contextMenu.element,"ytp-autohide",a),g.cv(this.contextMenu.element,"ytp-autohide-active",!0));g.oW.prototype.FA.call(this,a)}; g.k.hQ=function(){g.oW.prototype.hQ.call(this);this.OI&&(g.cv(this.contextMenu.element,"ytp-autohide-active",!1),this.OI&&(this.contextMenu.hide(),this.di&&this.di.hide()))}; g.k.Cn=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.is(0,0,c.width,c.height);if(a||this.Rg.B&&!this.yB()){if(this.api.U().Tm||b)a=this.Dh()?this.hN:this.gN,c.top+=a,c.height-=a;this.Og&&(c.height-=U1a(this.Og))}return c}; g.k.Lw=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.vD.element,b),b.parentElement.insertBefore(this.uD.element,b.nextSibling))):g.oF(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.vD.detach(),this.uD.detach());this.Yb();this.gq()}; g.k.Dh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1}; g.k.showControls=function(a){this.tN=!a;this.fq()}; g.k.Yb=function(){var a=this.Dh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.cv(this.contextMenu.element,"ytp-big-mode",a);this.fq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||i2a(this);this.gq();var b=this.api.md();b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ls(this.oi.element,"padding-left",a+"px"),g.ls(this.oi.element,"padding-right",a+"px")):b&&(g.ls(this.oi.element,"padding-left",""),g.ls(this.oi.element,"padding-right",""));g.oW.prototype.Yb.call(this)}; g.k.nO=function(){if(h2a(this)&&!g.hU(this.api))return!1;var a=this.api.getVideoData();return!g.QR(this.api.U())||2===this.api.getPresentingPlayerType()||!this.Bi||((a=this.Bi||a.Bi)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.U(a.videoDetails,ITa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.oW.prototype.nO.call(this):!1}; g.k.gq=function(){g.oW.prototype.gq.call(this);this.api.logVisibility(this.title.element,!!this.Ln);this.UA&&this.UA.Nc(!!this.Ln);this.channelAvatar.Nc(!!this.Ln);this.overflowButton&&this.overflowButton.Nc(this.Vg()&&!!this.Ln);this.shareButton&&this.shareButton.Nc(!this.Vg()&&!!this.Ln);this.Ko&&this.Ko.Nc(!this.Vg()&&!!this.Ln);this.searchButton&&this.searchButton.Nc(!this.Vg()&&!!this.Ln);this.qn&&this.qn.Nc(!this.Vg()&&!!this.Ln);if(!this.Ln){this.api.Vl(this.oi.element);for(var a=0;a=b)return d.return();(c=a.j.get(0))&&o2a(a,c);g.Aa(d)})}; var l2a={z1a:0,J4a:1,P2a:2,K4a:3,Oua:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};g.w(iY,g.I);iY.prototype.Hk=function(){if(!this.Ff.length)return[];var a=this.Ff;this.Ff=[];this.C=g.Bb(a).info;return a}; iY.prototype.gF=function(){return this.Ff}; iY.prototype.xa=function(){g.I.prototype.xa.call(this);this.j=null;this.Ff.length=0;this.fb.length=0;this.C=null};g.w(kY,g.I);g.k=kY.prototype;g.k.Eq=function(){return Array.from(this.bd.keys())}; g.k.Yt=function(a){a=this.bd.get(a);var b=a.Ff;a.Qy+=b.getLength();a.Ff=new YN;return b}; g.k.Ug=function(a){return this.bd.get(a).Ug}; g.k.Uv=function(a){return this.bd.get(a).Uv}; g.k.NA=function(a,b,c){this.bd.get(a)||z2a(this,a,b);b=this.bd.get(a);this.manifest?(a=B2a(this,a,c),A2a(this,c.Fp,b,a)):(c.Nn?b.bY=c.Dr:b.FE.push(c),b.IR.push(c))}; g.k.Bn=function(a){var b;return(null==(b=this.bd.get(a))?void 0:b.fb)||[]}; g.k.BA=function(){for(var a=g.u(this.bd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.iR&&(b.hg&&b.hg(),b.iR=!1)}; g.k.Op=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b}); var c=this.bd.get(b);if(lY){if(c&&!c.Ug){if(c.Dj.get(a))c.Dj.get(a).Yz=!0;else{var d;(null==(d=this.wf)?0:d.gr)&&c.Dj.set(a,{data:new YN,hH:0,Yz:!0})}c.Uv=!0}}else c&&!c.Uv&&(c.Uv=!0)}; g.k.Hk=function(a){if(lY){var b=this.bd.get(a);if(b)for(var c=g.u(b.Dj),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;var f=b.dG.get(d);if(yQ(f[0])){if(!e.Yz)continue;var h=f,l=e.data;l.getLength();f=0;var m=[];h=g.u(h);for(var n=h.next();!n.done;n=h.next()){n=n.value;var p=n.B,q=$N(l,f,p);f+=p;m.push(new RQ(n,q))}b.zw.push.apply(b.zw,g.pa(m))}else if(!f[0].range||0e?this.Mg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=VCa(a,c,d,!0),this.D=VCa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.qa("gaplessPrep",{cpn:a}),f3a(this.j,this.C,!1,g3a(this)),this.j.setMediaElement(b3a(b, c,d,!this.j.getVideoData().isAd())),uY(this,2),j3a(this))))}else this.Mg("no-elem")}; g.k.iy=function(a){var b=a===i3a(this).XR,c=b?this.C.j:this.C.B;b=b?this.D.j:this.D.B;if(c.isActive&&!b.isActive){var d=this.K;YK(a.jf(),d-.01)&&(uY(this,4),c.isActive=!1,c.BG=c.BG||c.isActive,(1===this.G?this.j:this.B).qa("sbh",{}),b.isActive=!0,b.BG=b.BG||b.isActive,0!==this.G&&(this.j.getVideoData().VU=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(uY(this,5),0!==this.G)){this.j.qa("sbs",{});var e;if(null!=(e=this.B)&&hT(e.videoData)&&e.videoData.L("html5_gapless_append_early")){var f;null!= (f=e.Aa)&&f.zf()}}}}; g.k.BZ=function(){this.xt()&&this.Mg("player-reload-after-handoff")}; g.k.Mg=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.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Ae(new wK("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Im,msg:a})));Ncb(this.j,c)}this.cq.reject(a);this.dispose()}}; g.k.xt=function(){return 4<=this.status.status&&6>this.status.status}; g.k.xa=function(){h3a(this);this.j.unsubscribe("newelementrequired",this.BZ,this);if(this.C){var a=this.C.B;this.C.j.Wd.unsubscribe("updateend",this.iy,this);a.Wd.unsubscribe("updateend",this.iy,this)}g.I.prototype.xa.call(this)}; g.k.yU=function(a){g.GG(a,128)&&this.Mg("player-error-event")};g.w(wY,g.I);wY.prototype.clearQueue=function(){this.D&&this.D.reject("Queue cleared");xY(this)}; wY.prototype.dw=function(){return!this.j}; wY.prototype.xt=function(){var a;return(null==(a=this.C)?void 0:a.xt())||!1}; wY.prototype.xa=function(){xY(this);g.I.prototype.xa.call(this)};g.w(t3a,g.IF);g.k=t3a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h){return a?4:p3a()?3:b?2:c?1:d?5:e?7:f?8:h?9:0}; g.k.Fm=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.jg())}; g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.jg())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.jg())}; g.k.uB=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.jg())}; g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.jg())}; g.k.Th=function(){return this.j}; g.k.isFullscreen=function(){return 0!==this.fullscreen}; g.k.Az=function(){return this.fullscreen}; g.k.xg=function(){return this.B}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return p3a()}; g.k.vt=function(){return this.pictureInPicture}; g.k.Xz=function(){return!1}; g.k.cA=function(){return this.C}; g.k.jg=function(){this.ra("visibilitychange");var a=this.getVisibilityState(this.Th(),this.isFullscreen(),this.xg(),this.isInline(),this.vt(),this.Xz(),this.cA());a!==this.G&&this.ra("visibilitystatechange");this.G=a}; g.k.xa=function(){s3a(this.D);g.IF.prototype.xa.call(this)};g.w(BY,g.I);BY.prototype.Bf=function(){return this.yc||0}; BY.prototype.dj=function(){return this.C||0}; BY.prototype.Tf=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear()}; BY.prototype.xa=function(){this.Tf();g.I.prototype.xa.call(this)}; g.w(x3a,g.I);g.k=x3a.prototype;g.k.Bf=function(){return this.yc}; g.k.dj=function(){return this.B}; g.k.getType=function(){return this.type}; g.k.getVideoData=function(){return this.videoData}; g.k.aj=function(){return this.videoData.clientPlaybackNonce}; g.k.WF=function(a){DTa(a);this.videoData=a}; g.k.xa=function(){z3a(this);g.I.prototype.xa.call(this)};g.w(g.FY,g.I);g.k=g.FY.prototype; g.k.onCueRangeEnter=function(a){this.Wa.push(a);var b=a.getId(),c=""===b;this.ub.add(a.B);var d=this.G.get(b);if(!c&&(this.oa.qa("sdai",{enterAdCueRange:1}),GT(this.oa.getVideoData())&&(null==d?0:d.pE)))return;if(this.Za&&!this.j)this.Za=!1,!c&&d&&(c=this.oa.getCurrentTime(),JY(this,{xe:a,isAd:!0,Vq:!0,Ih:c,adCpn:b},{isAd:!1,Vq:!1,Ih:c}),this.api.ra("serverstitchedvideochange",d.yd,d.LC),this.oa.qa("sdai",IY("midab",d)),this.va=1),this.Ia=!1;else if(this.j){if(this.j.Vq)this.oa.qa("sdai",{a_pair_of_same_transition_occurs_enter:1, acpn:this.j.adCpn,transitionTime:this.j.Ih,cpn:b,currentTime:this.oa.getCurrentTime()}),d=this.oa.getCurrentTime(),a={xe:a,isAd:!c,Vq:!0,Ih:d,adCpn:b},b={xe:this.j.xe,isAd:this.j.isAd,Vq:!1,Ih:d,adCpn:this.j.adCpn},this.j.xe&&this.ub.delete(this.j.xe.B),JY(this,a,b);else{if(this.j.xe===a){this.oa.qa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Ih,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn=== b){b&&this.oa.qa("sdai",{dchtsc:b});this.j=void 0;return}a={xe:a,isAd:!c,Vq:!0,Ih:this.oa.getCurrentTime(),adCpn:b};JY(this,a,this.j)}this.j=void 0;this.Ia=!1}else this.j={xe:a,isAd:!c,Vq:!0,Ih:this.oa.getCurrentTime(),adCpn:b}}; g.k.onCueRangeExit=function(a){var b=a.getId(),c=""===b,d=this.G.get(b);if(GT(this.oa.getVideoData())&&!c&&d){if(d.pE)return;d.pE=!0;this.D.clear();if(this.W.L("html5_lifa_no_rewatch_ad_sbc"))if(this.oa.YM()){var e=d.yc;this.oa.qR(e/1E3,(e+d.durationMs)/1E3)}else this.oa.qa("lifa",{remove:0})}if(this.ub.has(a.B))if(this.ub.delete(a.B),this.Wa=this.Wa.filter(function(f){return f!==a}),this.Za&&(this.Ia=this.Za=!1,this.oa.qa("sdai",{cref:1})),this.j){if(this.j.Vq){if(this.j.xe===a){this.oa.qa("sdai", {same_cue_range_pair_exit:1, acpn:this.j.adCpn,transitionTime:this.j.Ih,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.oa.qa("sdai",{dchtsc:b});this.j=void 0;return}b={xe:a,isAd:!c,Vq:!1,Ih:this.oa.getCurrentTime(),adCpn:b};JY(this,this.j,b)}else this.oa.qa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Ih,upcomingCpn:b,contentCpn:this.oa.getVideoData().clientPlaybackNonce,currentTime:this.oa.getCurrentTime()}); this.j=void 0;this.Ia=!1}else this.j={xe:a,isAd:!c,Vq:!1,Ih:this.oa.getCurrentTime(),adCpn:b};else this.oa.qa("sdai",{ignore_single_exit:1})}; g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;c=void 0===c?!1:c;d=void 0===d?null:d;if(GT(this.oa.getVideoData())&&this.W.L("html5_lifa_ad_removed_ne")&&a<=this.ib/1E3)this.oa.pauseVideo(),this.ib=0,this.Ia=!0,U_(this.oa),this.oa.seekTo(a),this.oa.playVideo();else if(this.Ia=!0,c)B3a(this,a,b);else{c=this.api.fd();var e=c===this.tb?this.Db:null;MY(this,!1);this.Lc=a;this.jc=b;null!=d&&this.Vb.start(d);c&&(this.Db=e||c.getPlayerState(),Ocb(c),this.tb=c)}}; g.k.xa=function(){MY(this,!1);O3a(this);P3a(this);g.I.prototype.xa.call(this)}; g.k.WR=function(a){this.Ld=a;this.oa.qa("sdai",{swebm:a})}; g.k.Tk=function(a,b,c,d){if(c&&b){var e;this.W.L("html5_ssdai_use_media_time")?e=OY(this,d):e=this.D.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.FP(c),this.Xa&&this.oa.qa("sdai",{hdlredir:1,itag:b,seg:a,hostport:HP(c)}),e.locations.set(d,c))}}; g.k.uI=function(a,b,c,d,e,f){var h=3===d;e=R3a(this,a,b,d,c,f);if(!e)return QY(this,b,h),e=g.Q3a(this,b)?"undec":"ncp",this.oa.qa("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.D.set(b,e);a=e.Zm;var l;d=(null==(l=PY(this,b-1,d))?void 0:l.Gs)||"";""===d&&this.oa.qa("sdai",{eds:1});l=CR(e.ssdaiAdsConfig||"")||void 0;c=this.oa.getVideoData();var m;f=(null==(m=c.B)?void 0:m.containerType)||0;m=c.lV[f];b=e.wx&&b>=e.wx?e.wx:void 0;return{nx:{BM:a?V3a(this,a):[],J5:l,Gs:d,m0:b,Lda:jf(m.split(";")[0]), Mda:m.split(";")[1]||""}}}; g.k.yz=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=3===d;a=R3a(this,a,b,d,c,f);this.Xa&&this.oa.qa("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return QY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!f)return this.oa.qa("sdai",{gdu:"noadpfmts",seg:b,itag:h}),QY(this,b,e),null;l=f.find(function(v){return v.itag===h}); if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.u(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.oa.qa("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});QY(this,b,e);return null}a.locations.set(h,new g.FP(l.url,!0))}l=a.locations.get(h);if(!l)return this.oa.qa("sdai",{gdu:"nourl",seg:b,itag:h}),QY(this,b,e),null;l=new rQ(l);this.Ld&&(l.get("dvc")?this.oa.qa("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=null==(q=PY(this,b-1,d))?void 0:q.Gs)&& l.set("daistate",m);a.wx&&b>=a.wx&&l.set("skipsq",""+a.wx);(m=this.oa.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Zm&&(q=V3a(this,a.Zm),0d?(this.du(a,c,!0),this.oa.seekTo(d),!0):!1}; g.k.du=function(a,b,c){c=void 0===c?!1:c;if(a=NY(this,a,b)){var d=void 0,e=a.Zm;if(e){this.oa.qa("sdai",{skipadonsq:b,sts:c,abid:e,acpn:a.cpn,avid:a.videoData.videoId});c=this.Z.get(e);if(!c)return;c=g.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.wx=b,e.yc>a.yc&&(d=e)}this.ma=a.cpn;S3a(this);this.cf&&(b=this.oa.getCurrentTime(),J3a(this,a,d,b,b,!1,!0))}}; g.k.BR=function(){for(var a=g.u(this.N),b=a.next();!b.done;b=a.next())b.value.wx=NaN;S3a(this);this.oa.qa("sdai",{rsac:"resetSkipAd",sac:this.ma});this.ma=""}; g.k.uG=da(43); g.k.KQ=function(a,b,c,d,e,f,h,l,m){m&&(h?this.eb.set(a,{Gs:m,Ky:l}):this.Na.set(a,{Gs:m,Ky:l}));if(h){if(d.length&&e.length)for(this.ma&&this.ma===d[0]&&this.oa.qa("sdai",{skipfail:1,sq:a,acpn:this.ma}),a=b+this.Ys(),h=0;h=b+h)b=m.end;else{var n=!1;m?(b=h){this.C.set(a,c);if(c=this.Wj.get(a))this.oa.removeCueRange(c),this.Wj.delete(a);this.K.set(a,(0,g.kD)());if(c=this.Wj.get(b))for(c=c.getId().split(","),c=g.u(c),f=c.next();!f.done;f=c.next())f=f.value,f!==b&&this.wk.has(f)&&(this.wk.delete(f),this.cG.add(f));this.oa.seekTo(e.Bf()/1E3);d&&this.api.playVideo(1);return[a]}}}return[]}; g.k.cX=function(){var a=this.timeline.j;if(!a)return 0;var b=a.dj();a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.dj()>b&&(b=d.dj())}return b/1E3}; g.k.Sd=function(){var a=1E3*this.oa.getCurrentTime();return(a=SY(this,a))&&1===a.getType()?a.Bf()/1E3:0}; g.k.Zz=function(){var a=DY(this.timeline,this.Vf);return(null==a?0:a.length)?a[0].C:!1}; g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=e4a(this,this.oa.getCurrentTime());this.oa.seekTo(a+c/1E3,b)}; g.k.onCueRangeEnter=function(a){if(!this.G.has(a.getId())){for(var b=a.getId().split(","),c=0;cc+1)for(d=c+1;dthis.C;)(c=this.data.shift())&&fZ(this,c,!0);dZ(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&&(fZ(this,c,b),g.Jb(this.data,function(d){return d.key===a}),dZ(this))}; g.k.Tf=function(){var a;if(a=void 0===a?!1:a)for(var b=g.u(this.data),c=b.next();!c.done;c=b.next())fZ(this,c.value,a);this.data=[];dZ(this)}; g.k.xa=function(){var a=this;g.I.prototype.xa.call(this);this.data.forEach(function(b){fZ(a,b,!0)}); this.data=[]};g.w(gZ,g.I);gZ.prototype.bI=function(a){if(a)return this.B.get(a)}; gZ.prototype.xa=function(){this.j.Tf();this.B.Tf();g.I.prototype.xa.call(this)};g.w(I4a,g.I);I4a.prototype.xa=function(){g.I.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.omb=Td(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var D3;D3={};g.hZ=(D3.STOP_EVENT_PROPAGATION="html5-stop-propagation",D3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",D3.IV_DRAWER_OPEN="ytp-iv-drawer-open",D3.MAIN_VIDEO="html5-main-video",D3.VIDEO_CONTAINER="html5-video-container",D3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",D3.HOUSE_BRAND="house-brand",D3);g.w(M4a,g.V);g.k=M4a.prototype;g.k.us=function(){g.$u(this.element,g.Ia.apply(0,arguments))}; g.k.Kj=function(){this.Fc&&(this.Fc.removeEventListener("focus",this.rQ),g.Rf(this.Fc),this.Fc=null)}; g.k.DN=function(){this.isDisposed();var a=this.app.U();a.Wm||this.us("tag-pool-enabled");a.N&&this.us(g.hZ.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.us("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Jc&&(this.rN=g.sE("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)}; g.k.JK=function(a){g.UR(this.app.U());this.HI=!a;iZ(this)}; g.k.resize=function(){if(this.Fc){var a=this.Rh();if(!a.isEmpty()){var b=!g.Pe(a,this.XA.getSize()),c=R4a(this);b&&(this.XA.width=a.width,this.XA.height=a.height);a=this.app.U();(c||b||a.Jc)&&this.app.Va.ra("resize",this.getPlayerSize())}}}; g.k.jt=function(a,b){this.updateVideoData(b)}; g.k.updateVideoData=function(a){if(this.Fc){var b=this.app.U();AD&&(this.Fc.setAttribute("x-webkit-airplay","allow"),a.title?this.Fc.setAttribute("title",a.title):this.Fc.removeAttribute("title"));this.Fc.setAttribute("controlslist","nodownload");b.Rr&&a.videoId&&(this.Fc.poster=a.hh("default.jpg"))}b=g.qT(a,"yt:bgcolor");this.gz.style.backgroundColor=b?b:"";this.QP=Ppa(g.qT(a,"yt:stretch"));this.RP=Ppa(g.qT(a,"yt:crop"),!0);g.cv(this.element,"ytp-dni",a.Of);this.resize()}; g.k.setGlobalCrop=function(a){this.EO=Ppa(a,!0);this.resize()}; g.k.setCenterCrop=function(a){this.TV=a;this.resize()}; g.k.Fm=function(){}; g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Va.isFullscreen(),c=a.externalFullscreen&&g.QR(a)&&a.L("embeds_web_enable_set_faux_fullscreen_in_public_api");if(b&&YB()&&!c)return new g.Oe(window.outerWidth,window.outerHeight);if(b||a.Vo){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.DE&&this.DE.media===a||(this.DE=window.matchMedia(a));var d=this.DE&&this.DE.matches}if(d)return new g.Oe(window.innerWidth,window.innerHeight)}else if(!isNaN(this.tD.width)&& !isNaN(this.tD.height))return this.tD.clone();return new g.Oe(this.element.clientWidth,this.element.clientHeight)}; g.k.Rh=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.gJ(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.fR&&b.width>c?new g.Oe(b.width*g.gJ(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b}; g.k.getVideoAspectRatio=function(){return isNaN(this.QP)?O4a(this):this.QP}; g.k.getVideoContentRect=function(a){var b=this.Rh();a=P4a(this,b,this.getVideoAspectRatio(),a);return new g.is((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.k.wB=function(a){this.fR=a;this.resize()}; g.k.oE=function(){return this.jK}; g.k.onMutedAutoplayChange=function(){iZ(this)}; g.k.setInternalSize=function(a){g.Pe(this.tD,a)||(this.tD=a,this.resize())}; g.k.xa=function(){this.rN&&g.tE(this.rN);this.Kj();g.V.prototype.xa.call(this)};g.k=S4a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.lF();c&&a.visualElement&&g.FF(c,a.visualElement,b)}; g.k.createClientVe=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=pva(c);a.visualElement=c;var f=g.lF(),h=g.kF();f&&h&&(g.KB("combine_ve_grafts")?gP(eP(),c,h):g.qB(g.yF)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.destroyVe(a)}); d&&this.B.add(a)}; g.k.createServerVe=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)}); c&&this.B.add(a)}; g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)}; g.k.jW=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,fP(eP(),a),T4a(this))}; g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.jF(b))}; g.k.hasVe=function(a){return this.elements.has(a)};U4a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)}; U4a.prototype.getPlaybackRate=function(){return this.playbackRate};lZ.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.ac,f=b5a(this,this.videoTrack,a,this.videoTrack.ac,b);b=b5a(this,this.audioTrack,this.policy.Ge?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&($4a(this,this.videoTrack,c),$4a(this,this.audioTrack,d));return a}; lZ.prototype.eg=function(){return this.G}; lZ.prototype.UR=function(a){this.C=a}; var a5a=2/24;var f5a=0;g.k=vZ.prototype;g.k.Rw=function(){this.ib=this.now();XQa(this.Dd,this.ib);this.Ib.Rw()}; g.k.Rt=function(a,b){var c=this.policy.B?(0,g.kD)():0;wZ(this,a,b);10>a-this.D&&this.On()||this.Mu(a,b);this.Ib.Rt(a,b);this.policy.B&&(a=(0,g.kD)()-c,this.Db+=a,this.tb=Math.max(a,this.tb))}; g.k.Mu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Hs||(YQa(this.Dd,c,d),this.hx(c,d));this.D=a;this.B=b}; g.k.rr=function(){this.va&&g5a(this);this.Ib.rr()}; g.k.Ow=function(a){this.va||(this.va=this.K-this.Vb+a,this.Lc=this.K,this.Jc=this.Z)}; g.k.ls=function(){var a={rn:this.requestNumber,rt:(this.Z-this.j).toFixed(),lb:this.K,stall:(1E3*this.C).toFixed(),ht:(this.ib-this.j).toFixed(),elt:(this.Y-this.j).toFixed(),elb:this.Na,d:i5a(this)};this.url&&JUa(a,this.url);this.policy.B&&(a.mph=this.tb.toFixed(),a.tph=this.Db.toFixed());this.policy.j&&(a.ulb=this.Wa,a.ult=this.Ia,a.abw=this.Ra);return a}; g.k.now=function(){return(0,g.kD)()}; var uZ;g.w(yZ,vZ);g.k=yZ.prototype;g.k.ls=function(){var a=vZ.prototype.ls.call(this);a.pb=this.oD;a.pt=(1E3*this.Ma).toFixed();this.policy.j&&(a.se=this.jc);return a}; g.k.Rs=function(){var a=this.Ib;this.Za||(this.Za=a.Rs?a.Rs():1);return this.Za}; g.k.TI=function(){return this.Yk?1!==this.Rs():!1}; g.k.cQ=function(a,b,c){if(!this.Pb){this.Pb=!0;if(!this.Hs){wZ(this,a,b);this.Mu(a,b);var d=this.Rs();this.jc=c;if(2===d&&(c||this.policy.G))this.policy.G?this.Hs||(this.Ia?GR(this.Dd,this.Ia/1E3,this.Wa,.25):GR(this.Dd,b/(c||this.Ra),b,.01),JR(this.Dd,b,this.C)):zZ(this,this.B/c,this.B);else if(2===d||1===d)c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.ub||this.policy.K||!this.On()||zZ(this,c,b),this.On()&&JR(this.Dd,b,this.C);IR(this.Dd,(a-this.j)/1E3||.01,this.B,this.Ma,this.kp)}xZ(this)}}; g.k.Mu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Rs();this.isActive?1===e&&((0d)?(this.C+=c,0this.SQ&&l5a(this,this.B)}; g.k.oI=function(){return this.eb}; g.k.tR=function(a){a=void 0===a?this.now():a;if(this.Yk){p5a(this,a);if(this.Za?this.TI():this.G!==this.ma){var b=this.ma;if(ac&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.eb=c=this.On()?c+a:c+Math.max(a,b)}; g.k.ZH=function(){return this.now()-this.Y}; g.k.uO=function(){return 1E3*(this.B-this.Na)/this.ZH()||0}; g.k.mX=function(){return this.Y};AZ.prototype.feed=function(a){ZN(this.j,a);this.zf()}; AZ.prototype.zf=function(){if(this.D){if(!this.j.getLength())return;var a=this.j.split(this.C-this.B),b=a.GI;a=a.Hm;if(!this.Ib.Ow(this.D,b,this.B,this.C))return;this.B+=b.getLength();this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.u(q5a(this.j,c));b=a.next().value;c=a.next().value;c=g.u(q5a(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.Ib.Ow&&c+1<=this.j.totalLength))break;c=this.j.split(c).Hm;this.Ib.Ow(b,c,0, a)&&(this.D=b,this.B=c.getLength(),this.C=a,this.j=new YN([]));break}a=this.j.split(c).Hm.split(a);c=a.Hm;this.Ib.PA(b,a.GI);this.j=c}}; AZ.prototype.dispose=function(){this.j=new YN};g.k=BZ.prototype;g.k.cO=function(){return 0}; g.k.dI=function(){return null}; g.k.ZW=function(){return null}; g.k.At=function(){return 1<=this.state}; g.k.isComplete=function(){return 3<=this.state}; g.k.qm=function(){return 5===this.state}; g.k.onStateChange=function(){}; g.k.Hc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)}; g.k.BA=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.CD=function(){return+this.getResponseHeader("content-length")}; g.k.An=function(){return this.B}; g.k.bx=function(){return 200<=this.status&&300>this.status&&!!this.B}; g.k.Vk=function(){return 0this.status&&!!this.B}; g.k.Vk=function(){return!!this.j.getLength()}; g.k.tx=function(){this.Vk();var a=this.j;this.j=new YN;return a}; g.k.eK=function(){this.Vk();return this.j}; g.k.isDisposed=function(){return this.K}; g.k.abort=function(){this.C&&this.C.cancel().catch(function(){}); this.D&&this.D.abort();this.K=!0}; g.k.EB=function(){return!0}; g.k.qK=function(){return this.N}; g.k.Cf=function(){return this.errorMessage};g.k=x5a.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Ib.rr()}}; g.k.KA=function(){2===this.xhr.readyState&&this.Ib.Rw()}; g.k.hg=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Ib.Rt((0,g.kD)(),a.loaded))}; g.k.Nv=function(){return 2<=this.xhr.readyState}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.pF(Error("Could not read XHR header "+a)),""}}; g.k.CD=function(){return+this.getResponseHeader("content-length")}; g.k.An=function(){return this.B}; g.k.bx=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.B}; g.k.Vk=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.k.tx=function(){this.Vk();var a=this.response;this.response=void 0;return new YN([new Uint8Array(a)])}; g.k.eK=function(){this.Vk();return new YN([new Uint8Array(this.response)])}; g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()}; g.k.EB=function(){return!1}; g.k.qK=function(){return!1}; g.k.Cf=function(){return""};g.w(DZ,g.I);g.k=DZ.prototype;g.k.gca=function(){if(!this.isDisposed()){var a=(0,g.kD)(),b=!1;if(this.timing.On()){if(this.G)return;var c=this.timing.oI();this.timing.tR();var d=this.timing.oI();d-c>=.8*this.policy.Wi?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=5<=this.j):this.j=0}else{var e=a-this.timing.lX(); 01E3*a)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}0this.state)return!1;if(this.og&&this.og.Ff.length)return!0;var a;return(null==(a=this.xhr)?0:a.Vk())?!0:!1}; g.k.gF=function(){this.lm(!1);return this.og?this.og.gF():[]}; g.k.lm=function(a){try{if(a||this.xhr.Nv()&&this.xhr.Vk()&&!E5a(this)&&!this.SA)this.og||(this.og=new iY(this.policy,this.info.fb)),this.xhr.Vk()&&(this.El?this.El.feed(this.xhr.tx()):jY(this.og,this.xhr.tx(),a&&!this.xhr.Vk()))}catch(b){this.El?D5a(this,b):g.pF(b)}}; g.k.PA=function(a,b){switch(a){case 21:a=b.split(1).Hm;G5a(this,a);break;case 22:this.U0=!0;jY(this.og,new YN([]),!0);break;case 43:if(a=qO(new kO(b),1))this.info.Tk(this.me,a),this.gL=!0;break;case 45:b=aVa(new kO(b));a=b.FK;b=b.GK;a&&b&&(this.iH=a/b);break;case 44:this.mB=wVa(new kO(b));var c,d,e;!this.timing.Ca&&4===(null==(c=this.mB)?void 0:c.action)&&(null==(d=this.mB)?0:null==(e=d.N_)?0:e.vp)&&(this.vp=this.mB.N_.vp);break;case 53:this.policy.Db&&(a=tVa(new kO(b)).y9)&&(this.IE||(this.IE=new g.Ru(this.g9, a,this)),this.IE.start());break;case 60:this.iA=QUa(new kO(b));break;case 64:this.policy.By&&(a=PUa(new kO(b)),this.policy.Pt(a));break;case 58:this.policy.Bd&&(a=kVa(new kO(b)))&&(this.bq=a)}}; g.k.Ow=function(a,b,c,d){this.timing.policy.j&&!c&&this.timing.Ow(d);if(21!==a)return!1;if(a=this.policy.Xm)if(d=b.getLength()+c===d,a*=this.info.fb[0].j.info.Ob,!d&&b.getLength() this.info.fb[0].Pa)return!1;return!0}; g.k.yO=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.k.dI=function(){this.xhr&&(this.Ep=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Ep}; g.k.ZW=function(){this.xhr&&(this.Rq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Rq}; g.k.gh=function(){return this.Jd.gh()}; g.k.g9=function(){!this.isDisposed()&&this.xhr&&(this.I0="heartbeat",this.JB(!1))};g.w(IZ,vZ);g.k=IZ.prototype;g.k.Mu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.On()?0d?(this.C+=c,.2c.uJ||0c.TP)){this.vR=(0,g.kD)();var d;null==(d=this.FF)||d.stop();this.policy.ub&&(d=this.Ib,a={Zu:Math.round(b*a/1E3),Ax:a},d.policy.ub&&(d.ma=a,d.Vp++));this.Jd.JB(!1)}}}}; g.k.VE=function(a){this.Ib.VE(a)}; g.k.JQ=function(a){this.O_=!0;this.info.resource.Tk(this.me,a.redirectUrl)}; g.k.ZE=function(a){this.Pe instanceof IZ&&this.Pe.ZE(a)}; g.k.SE=function(a){this.Pe instanceof IZ&&this.Pe.SE(a)}; g.k.MQ=function(a,b,c){this.Ib.MQ(a,b,c,this.Lq())}; g.k.sQ=function(a){if(TV(this.policy)){var b=a.formatId,c=FVa({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new sQ((null==(d=a.cY)?void 0:d.first)||0,(null==(e=a.cY)?void 0:e.tY)||0),h,l;d=new sQ((null==(h=a.indexRange)?void 0:h.first)||0,(null==(l=a.indexRange)?void 0:l.tY)||0);this.manifest.N.get(c)||(c=a.TN||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=$Q(""),c=ZQ(c,null),XQ(a,new VQ(b,c,f,d)))}}; g.k.XE=function(a){a.FK&&a.GK&&this.Ib.XE(a)}; g.k.JA=function(a){this.Ib.JA(a)}; g.k.UE=function(a,b,c){this.Ib.UE(a,b,c)}; g.k.YE=function(a){this.policy.Nl&&this.Ib.YE(a)}; g.k.WE=function(a){this.Ib.WE(a,this.Lq())}; g.k.Am=function(a){this.policy.IC&&this.Ib.Am(a)}; g.k.canRetry=function(){this.isDisposed();return this.Jd.canRetry(!1)}; g.k.dispose=function(){if(!this.isDisposed()){g.I.prototype.dispose.call(this);this.Jd.dispose();var a;null==(a=this.FF)||a.dispose();this.Hc(-1);this.Iy()}}; g.k.Hc=function(a){this.state=a;X8a(this.Ib,this)}; g.k.cw=function(){return this.info.cw()}; g.k.NA=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.gg.NA(a,b,c);this.gg.bd.get(a).KC=!0}; g.k.Op=function(a,b){this.gg.Op(a,b)}; g.k.LA=function(a){this.requestIdentifier=a}; g.k.Hk=function(a){return this.gg.Hk(a)}; g.k.Bn=function(a){return this.gg.Bn(a)}; g.k.bl=function(a){return this.gg.bl(a)}; g.k.Eq=function(){return this.gg.Eq()}; g.k.Rs=function(){return 1}; g.k.Lq=function(){return this.Pe.requestNumber}; g.k.vO=function(){return this.requestIdentifier}; g.k.RW=function(){return this.clipId}; g.k.Ve=function(){return this.me.Ve()}; g.k.nZ=function(){this.Iy()}; g.k.Iy=function(){xZ(this.Pe);var a;null==(a=this.xhr)||a.abort()}; g.k.isComplete=function(){return 3<=this.state}; g.k.pY=function(){return 3===this.state}; g.k.qm=function(){return 5===this.state}; g.k.RX=function(){return this.isComplete()}; g.k.At=function(){return 1<=this.state}; g.k.Mn=function(){return!1}; g.k.Hv=function(){return 0}; g.k.QW=function(){var a;return null==(a=this.info.data)?void 0:a.VM}; g.k.EX=function(){}; g.k.nX=function(){return g8a(this.info)}; g.k.gh=function(){return this.Jd.gh()}; g.k.Fq=function(){var a=B5a(this.Jd);Object.assign(a,h8a(this.info));a.req="sabr";a.rn=this.Lq();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.jk?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.Cf())&&(a.msg=b);this.vR&&(c=Q5a(this,this.vR-this.Pe.mX()),a.letm=c.M8,a.mrbps=c.uJ,a.mram=c.TP);return a};R5a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.kD)()};g.w(b6a,g.IF);g.k=b6a.prototype; g.k.DQ=function(a,b,c,d){if(this.K&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.Ky);this.K.KQ(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.va.has(a.Pa)){c=a.startTime;d=[];for(e=0;ed||0>f)&&this.logger&&(this.logger({missingSegInfo:a.info.Od(),startTimeMs:d,durationMs:f}),0>d&&(d=1E3*a.info.startTime),0>f&&(f=1E3*a.info.duration));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,z6:f}}; h6a.prototype.Zp=function(a){this.timestampOffset=a};r6a.prototype.dispose=function(){this.va=!0}; r6a.prototype.isDisposed=function(){return this.va}; g.w(RZ,Error);var Ycb=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);UZ.prototype.skip=function(a){this.offset+=a}; UZ.prototype.im=function(){return this.offset};g.k=K6a.prototype;g.k.kX=function(){return this.B}; g.k.jo=function(){return this.B.length?this.B[this.B.length-1]:null}; g.k.Ok=function(){this.B=[];WZ(this);J6a(this)}; g.k.Yt=function(){this.eb=this.B.shift().info}; g.k.Bn=function(){return g.Fr(this.B,function(a){return a.info})}; g.k.Ch=function(){return!!this.K.info.audio}; g.k.getDuration=function(){return this.K.index.Vs()};g.w(mZ,BZ);g.k=mZ.prototype;g.k.onStateChange=function(){this.isDisposed()&&(mY(this.gg,this.formatId),this.j.dispose())}; g.k.Fq=function(){var a=w2a(this.gg,this.formatId),b;var c=(null==(b=this.gg.bd.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.gg.bd.get(this.formatId))?void 0:d.Qy)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:x2a(this.gg,this.formatId),isAnyMediaEndReceived:this.gg.Uv(this.formatId)}}; g.k.TW=function(){return 0}; g.k.Yv=function(){return!0}; g.k.Hk=function(){return this.gg.Hk(this.formatId)}; g.k.gF=function(){return[]}; g.k.bl=function(){return this.gg.bl(this.formatId)}; g.k.gh=function(){return this.lastError}; g.k.Hv=function(){return 0};g.k=c7a.prototype;g.k.jo=function(){return this.D.jo()}; g.k.Yt=function(a){this.D.Yt(a);var b;null!=(b=this.Z)&&(b.j=l6a(b,b.Md,b.QA,b.j,a),b.B=a);this.Ob=Math.max(this.Ob,a.info.j.info.Ob||0)}; g.k.getDuration=function(){if(this.policy.j){var a=this.Aa.Hi();if(a)return UY(a)}return this.j.index.Vs()}; g.k.Ok=function(){oZ(this);this.D.Ok()}; g.k.qO=function(){return this.D}; g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.fb[0].Pa:!1}; g.k.Zp=function(a){var b;null==(b=this.Z)||b.Zp(a)};g.w(k_,g.I);k_.prototype.oP=function(a,b){if(!i_(a)||!a.j.wg())return!1;var c=this.C.Ra||r7a(a)||b<=this.policy.eA||this.C.va;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+r7a(a)+", health: "+b}); return c}; k_.prototype.Ia=function(){if(!(15=this.policy.Gx&&this.B&&DQ(a.info)&&"net.badstatus"===d&&this.B.gt(f,e))){e=(c.info.video&&1Math.abs(this.j[0].nX()-a)}; g.k.gt=function(a){if(a instanceof B_)this.j.pop();else{var b=1;a.canRetry()&&(this.j.pop(),null==a||a.dispose(),b=0);this.Aa.handleError(a.gh(),a.Fq(),b)}}; g.k.Pp=function(a){this.C=a;this.Z=(0,g.kD)()+(a.backoffTimeMs||0)}; g.k.VE=function(a){if(void 0!==a.action&&(0!==a.action||!this.Ca)){var b={};b.reason=a.Sba;b.action=a.action;switch(a.action){case 1:this.Aa.GH(b);break;case 0:this.Ca=!0;this.Aa.FH(b);break;case 2:this.Aa.handleError("sabr.config",b,1)}}}; g.k.MQ=function(a,b,c,d){if(this.policy.j){this.Aa.qa("ssap",{rn:d,v:b,tl:c9a(a)});var e=this.Aa.Hi();a={bW:a,context:c,version:b};e?$8a(this,e,a):(this.Aa.qa("ssap",{cacheclips:1,rn:d,v:b}),this.K=a)}}; g.k.XE=function(a){if(a.FK&&a.GK){var b=a.FK/a.GK;this.audioTrack.N=!1;this.videoTrack.N=!1;var c={Ed:"sabr_seek",XI:!0,gS:!0};a.seekSource&&(c.seekSource=a.seekSource);sZ(this.Aa,b,c)}}; g.k.JA=function(a){a.DI&&a.FI&&mQa(this.manifest,a.DI,a.FI)}; g.k.Am=function(a){this.Aa.Am(a)}; g.k.UE=function(a,b,c){this.policy.B&&this.Aa.qa("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.nm.add(d.value)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.nm.has(a)&&this.nm.delete(a);if(c)for(c=g.u(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),3===b&&(this.videoData.Cy=""))}; g.k.YE=function(){}; g.k.WE=function(a,b){$Xa(this.policy,a,4,b)}; g.k.ye=function(){return this.oa.ye()||""}; g.k.hO=function(){var a=1E3*e_(this.audioTrack,!0),b=1E3*e_(this.videoTrack,!0);return Math.min(a,b)}; g.k.zI=function(a){u9a(this.Aa,SVa(this.Y,a))}; g.k.xa=function(){g.I.prototype.xa.call(this);this.C=void 0;Z8a(this,!0);this.j=[]};d9a.prototype.zf=function(a,b){if(this.D)return i9a(this,b);if(b=tZ(a)){var c=b.B;c&&c.G&&c.B&&(a=a.C.length?a.C[0]:null)&&2<=a.state&&!a.qm()&&0===a.info.ih&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN}; d9a.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.w(g.E_,g.I);g.k=g.E_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a}); a=a||0;TV(this.policy)||(b=CU(this.j),x9a(this.oa,new xU(b.video,b.reason)),this.oa.Mw(new xU(b.audio,b.reason)));this.manifest.isManifestless&&L7a(this.D);this.K&&f9a(this.K,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.manifest.isManifestless?b:a;if(this.policy.C){var d;(null==(d=this.va)?0:P8a(d,this.ye()||""))&&m9a(this)&&l9a(this,this.videoTrack)&&l9a(this,this.audioTrack)&&b9a(this.ma,this.va)}else this.Ca&&(n9a(this,this.videoTrack),n9a(this,this.audioTrack), v2a(this.Ca),delete this.Ca);c?(this.policy.Yd?(this.ub=c,H_(this,c)):H_(this,!1),g.Su(this.BE)):(c=0===this.currentTime,n_(this.D,this.videoTrack,this.videoTrack.j,c),n_(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.C&&T8a(this.ma,!0),this.seek(this.currentTime,{}).Al(function(){}),this.timing.tick("gv")); (this.manifest.sf||this.manifest.Ji||this.manifest.Za||this.manifest.Pb||this.manifest.jc)&&this.oa.xF(this.manifest)}; g.k.resume=function(){if(this.isSuspended||this.Hp){this.logger.debug("Resumed.");this.EH=this.Hp=this.isSuspended=!1;try{this.zf()}catch(a){g.oF(a)}}}; g.k.pz=function(a){a=void 0===a?!1:a;this.logger.debug("detaching media source");q9a(this);lL(this.oa)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ca&&this.qa("loader",{setsmb:1}),this.policy.va=!0):this.policy.Yd?H_(this,this.ub):H_(this,!1);this.Ok()}; g.k.setAudioTrack=function(a,b,c){c=void 0===c?!1:c;if(!this.isDisposed()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.jc&&(this.Wa=!0));if(TV(this.policy)){var e=this.C.S_(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id}); this.oa.Mw(e)}else{var f=RVa(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id}); this.oa.Mw(new xU(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Gi(b),this.qa("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){p7a(this.audioTrack,c,NaN,NaN);dR(this.manifest,c,!1);return}this.oa.Bo()}}; g.k.setPlaybackRate=function(a){a!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(a)}; g.k.QE=function(a){var b=a.j.info.Ch();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+UK(a.j.info)}); b?this.oa.Mw(a):x9a(this.oa,a)}; g.k.zI=function(a){zQ(a.fb[a.fb.length-1])&&u9a(this,SVa(this.j,a.fb[0].j))}; g.k.mI=function(){return this.oa.mI()}; g.k.Am=function(a){this.oa.Am(a)}; g.k.Gz=function(){return this.oa.Gz()}; g.k.fm=function(){return this.oa.fm()}; g.k.OQ=function(a){this.oa.OQ(a)}; g.k.Eba=function(){var a,b=null==(a=this.oa.nf())?void 0:a.getCurrentTime();b?this.oa.qa("rms",{cta:b}):g.Su(this.Db)}; g.k.zf=function(){t9a(this);if(this.Qa&&iL(this.Qa)&&!this.Qa.hk()){var a=$Z(this.videoTrack);a=this.policy.sz&&a&&xQ(a);this.manifest.isManifestless&&this.manifest.C&&aR(this.manifest)?(this.N=aR(this.manifest),this.Qa.wl(this.N)):eR(this.manifest)&&!a?isNaN(this.N)?(this.N=this.currentTime+3600,this.Qa.wl(this.N)):this.N<=this.currentTime+1800&&(this.N=Math.max(this.N+1800,this.currentTime+3600),this.Qa.wl(this.N)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()), (!isFinite(this.N)||this.N!==a)&&0h||h!==l)&&b.qa("sbu_mismatch",{b:WK(f),c:b.currentTime,s:e.Od()})},0)}}this.zf()}; g.k.L9=function(a){if(this.Qa){var b=$Z(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.wO())for(var c=0;c=c||cthis.C&&(this.C=c,g.md(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Su(this.B))}}; M_.prototype.G=function(){for(var a=g.u(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ra;for(var d=this.C,e=this.j[c].match(Um),f=[],h=g.u(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.Ye(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.ra("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length}); 0>=c?T9a(this,a):(this.j.push({time:b+c,info:a}),g.Su(this.B,c))}}; N_.prototype.xa=function(){this.j=[];L_.prototype.xa.call(this)};var E3={},a$a=(E3.DRM_TRACK_TYPE_AUDIO="AUDIO",E3.DRM_TRACK_TYPE_SD="SD",E3.DRM_TRACK_TYPE_HD="HD",E3.DRM_TRACK_TYPE_UHD1="UHD1",E3);g.w(X9a,g.I);g.w(c$a,g.IF);g.k=c$a.prototype;g.k.Np=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=lR(b.B)?d:c;d=new Uint8Array(lR(b.B)?c:d);lR(b.B)&&t$a(d);c=g.Dg(d,4);t$a(d);d=g.Dg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),o$a(this,","),O_(this,{onkeystatuschange:1}),this.status="kc",this.ra("keystatuseschange",this))}; g.k.error=function(a,b,c,d){this.isDisposed()||(this.ra("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.ra("ctmp","provf",{et:a.toFixed(3)})));xK(b)&&this.dispose()}; g.k.shouldRetry=function(a,b){return this.Ea&&this.N?!1:!a&&this.requestNumber===b.requestNumber}; g.k.xa=function(){this.j={};g.IF.prototype.xa.call(this)}; g.k.qc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Ia,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a}; g.k.Qh=function(){var a=this.D.join();if(P_(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.Ve=function(){return this.url};g.w(Q_,g.I);g.k=Q_.prototype;g.k.L4=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}}; g.k.Np=function(){this.N&&this.N(this.j.keyStatuses)}; g.k.IZ=function(a){this.G&&this.G(a.message,"license-request")}; g.k.HZ=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; g.k.GZ=function(){this.K&&this.K()}; g.k.update=function(a){var b=this;if(this.j)return(tR.isActive()?tR.ll("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,IO(function(c){v$a(b,"t.update",c)})); this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.Z.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,a,this.initData,this.sessionId);return SB()}; g.k.xa=function(){this.j&&(this.Y?this.j.close().catch(g.pF):this.j.close());this.element=null;g.I.prototype.xa.call(this)};g.w(R_,g.I);g.k=R_.prototype;g.k.MM=function(){var a=this;if(this.j.keySystemAccess)return(tR.isActive()?tR.ll("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.isDisposed())if(a.B=c,tR.isActive())tR.ll("emeset",function(){return a.element.setMediaKeys(c)}); else{var d;null==(d=a.element)||d.setMediaKeys(c)}}); if(kR(this.j))this.C=new (jR())(this.j.keySystem);else if(mR(this.j)){this.C=new (jR())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.C)}else tR.isActive()&&this.qa("emev",{v:"01b"}),zC(this.G,this.element,["keymessage","webkitkeymessage"],this.O4),zC(this.G,this.element,["keyerror","webkitkeyerror"],this.N4),zC(this.G,this.element,["keyadded","webkitkeyadded"],this.M4);return null}; g.k.setServerCertificate=function(){return this.B.setServerCertificate?"widevine"===this.j.flavor&&this.j.Nl?this.B.setServerCertificate(this.j.Nl):oR(this.j)&&this.j.Xa?this.B.setServerCertificate(this.j.Xa):null:null}; g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();nR(this.j)?c=w$a(c,this.j.Xa):oR(this.j)&&(c=S9a(c)||new Uint8Array(0));b&&b("genreq");var e=tR.isActive()?tR.ll("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c); var f=new Q_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},IO(function(l){v$a(f,"t.generateRequest",l)})); return f}if(kR(this.j))return y$a(this,c);if(mR(this.j))return x$a(this,c);if(null==(e=this.element)?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;null==(h=this.element)||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new Q_(this.element,this.j,c,null,null,this.N)}; g.k.O4=function(a){var b=z$a(this,a);b&&b.IZ(a)}; g.k.N4=function(a){var b=z$a(this,a);b&&b.HZ(a)}; g.k.M4=function(a){var b=z$a(this,a);b&&b.GZ(a)}; g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a}; g.k.xa=function(){this.C=this.B=null;var a;null==(a=this.D)||a.dispose();a=g.u(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.I.prototype.xa.call(this);delete this.element};g.k=S_.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.Tf=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.Eb(this.keys,function(b){return g.Zb(a,b)})};g.w(C$a,g.IF);g.k=C$a.prototype;g.k.l$=function(a){this.sj({onecpt:1});a.initData&&F$a(this,new Uint8Array(a.initData),a.initDataType)}; g.k.I$=function(a){this.sj({onndky:1});F$a(this,a.initData,a.contentType)}; g.k.Nw=function(a){this.sj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));E$a(this,a)}; g.k.vV=function(a){this.C.push(a);T_(this)}; g.k.createSession=function(a){var b=H$a(this)?D6a(a):g.Dg(a.initData);this.B.get(b);this.Ia=!0;a=new c$a(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.FJ,this);a.subscribe("keystatuseschange",this.Np,this);a.subscribe("licenseerror",this.KJ,this);a.subscribe("newlicense",this.DZ,this);a.subscribe("newsession",this.EZ,this);a.subscribe("sessionready",this.OZ,this);a.subscribe("fairplay_next_need_key_info",this.xZ,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange", this.KS,this);g$a(a,this.D)}; g.k.DZ=function(a){this.isDisposed()||(this.sj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ra("heartbeatparams",a)))}; g.k.EZ=function(){this.isDisposed()||(this.sj({newlcssn:1}),this.C.shift(),this.Ia=!1,T_(this))}; g.k.OZ=function(){if(kR(this.j)&&(this.sj({onsnrdy:1}),this.Na--,0===this.Na)){var a=this.ma,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.C)}}; g.k.Np=function(a){if(!this.isDisposed()){!this.Ma&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(I$a(this),this.Ma=!0);this.sj({onksch:1});var b=this.KS;if(!P_(a)&&g.BD&&"com.microsoft.playready"===a.B.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(P_(a))for(var e=g.u(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(!P_(a)||d)c=a.D;c=n$a(c)}b.call(this,c); this.ra("keystatuseschange",a)}}; g.k.FJ=function(a,b){this.isDisposed()||this.ra("ctmp",a,b)}; g.k.xZ=function(a,b){this.isDisposed()||this.ra("fairplay_next_need_key_info",a,b)}; g.k.KJ=function(a,b,c,d){this.isDisposed()||(this.videoData.L("html5_log_drm_metrics_on_error")&&I$a(this),this.ra("licenseerror",a,b,c,d))}; g.k.Ev=function(){return this.Z}; g.k.KS=function(a){var b=g.qP("auto",a,!1,"l");if(this.videoData.Dl){if(tNa(this.Z,b))return}else if(uNa(this.Z,a))return;this.Z=b;this.ra("qualitychange");this.sj({updtlq:a})}; g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Ca?this.element.setMediaKeys(null).catch(g.pF):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.u(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.FJ,this),b.unsubscribe("keystatuseschange",this.Np,this),b.unsubscribe("licenseerror",this.KJ,this),b.unsubscribe("newlicense",this.DZ,this),b.unsubscribe("newsession",this.EZ,this),b.unsubscribe("sessionready",this.OZ,this),b.unsubscribe("fairplay_next_need_key_info", this.xZ,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.KS,this),b.dispose();this.B.clear();this.K.Tf();this.N.Tf();this.heartbeatParams=null;g.IF.prototype.xa.call(this)}; g.k.qc=function(){for(var a={systemInfo:this.j.qc(),sessions:[]},b=g.u(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.qc());return a}; g.k.Qh=function(){return 0>=this.B.size?"no session":""+this.B.values().next().value.Qh()+(this.G?"/KR":"")}; g.k.sj=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(vK(a),(this.W.Dc()||b)&&this.ra("ctmp","drmlog",a))};g.w(J$a,g.I);g.k=J$a.prototype;g.k.KH=function(){return!!this.vE}; g.k.VI=function(){return this.B}; g.k.handleError=function(a){var b=this;O$a(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!N$a(this,a.errorCode,a.details))&&!S$a(this,a)){if("yt"!==this.Ha.va&&Q$a(this,a)&&this.videoData.To&&(0,g.kD)()/1E3>this.videoData.To&&"hm"===this.Ha.va){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.To;c.init=this.videoData.VS/1E3;c.now=(0,g.kD)()/1E3;c.systelapsed=((0,g.kD)()-this.videoData.VS)/1E3; a=new wK(a.errorCode,c,2);this.oa.Bg(a.errorCode,2,"SIGNATURE_EXPIRED",vK(a.details))}if(xK(a.severity)){var d;c=null==(d=this.oa.Aa)?void 0:d.j.j;if(this.Ha.L("html5_use_network_error_code_enums"))if(P$a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Ha.N&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else P$a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Ha.N||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.oa.Bg(a.errorCode, a.severity,e,vK(a.details),f)}else this.oa.ra("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ae(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.kD)(),oU(a,"manifest",function(h){b.G=!0;b.qa("pathprobe",h)},function(h){b.Ae(h.errorCode,h.details)}))}}; g.k.qa=function(a,b){this.oa.Cc().qa(a,b)}; g.k.Ae=function(a,b){b=vK(b);this.oa.Cc().Ae(a,b)};V$a.prototype.ZN=function(a){return a?{e_:fab(this,a)}:{e_:SS}}; V$a.prototype.L=function(a){return this.W.L(a)};g.w(X_,g.I);X_.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.L("html5_exception_to_health"))"sabr.fallback"===a&&(this.encounteredSabrFallback=!0),a.match(pmb)?this.networkErrorCount++:this.nonNetworkErrorCount++}; X_.prototype.send=function(){if(!(this.C||0>this.j)){lab(this);var a=g.$M(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Tg;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.EG(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.EG(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.EG(this.playerState,16)||g.EG(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.EG(this.playerState,1)&&g.EG(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.EG(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.EG(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.EG(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=Tcb[pT(this.provider.videoData)];a:switch(this.provider.W.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=mab(this.provider), f=0>this.B?a:this.B-this.j;a=this.provider.W.ag+36E5<(0,g.kD)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.oT(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback};a||g.XC("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}}; X_.prototype.xa=function(){this.C||this.send();window.removeEventListener("error",this.IA);window.removeEventListener("unhandledrejection",this.IA);g.I.prototype.xa.call(this)}; var pmb=/\bnet\b/;var nab=/[?&]cpn=/;var sab=Math.pow(10,8);g.w(g.$_,g.I);g.k=g.$_.prototype;g.k.V7=function(){var a=g.$M(this.provider);xab(this,a)}; g.k.ID=function(){return this.Ra}; g.k.MD=function(){return{YA:this.YA,ZA:this.ZA}}; g.k.UF=function(a,b){this.YA=a;this.ZA=b}; g.k.xF=function(a){this.j.lwc=[[a.sf?a.sf.toFixed():"",a.Ji?a.Ji.toFixed():"",a.Za?(1E3*a.Za).toFixed():"",a.Pb?(1E3*a.Pb).toFixed():"",a.jc?(1E3*a.jc).toFixed():""].join(":")]}; g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.$M(this.provider),-1<["PL","B","S"].indexOf(this.Me)&&(!g.md(this.j)||a>=this.D+30)&&(g.Z_(this,a,"vps",[this.Me]),this.D=a),!g.md(this.j))){7E3===this.sequenceNumber&&g.pF(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){a0(this,a);var b=a,c=this.provider.oa.UD(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.YA,h=e&&!this.ZA;d>c.totalVideoFrames||5E3=this.provider.oa.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||Lab(this,a,b)){var c;if(!(c=ab-this.Jp+2||Lab(this,a,b))){c=this.provider.oa.getVolume();var d=c!==this.Y,e=this.provider.oa.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||0<=this.D||(this.Y=c,this.D=b),c=b-this.D,0<=this.D&&2b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0a&&(a=(a-this.C)/this.va(),this.D.start(a)))}}; g.k.kY=function(){if(this.started&&!this.isDisposed()){this.D.stop();var a=this.G();g.EG(a,32)&&this.ma.start();for(var b=g.EG(this.G(),2)?0x8000000000000:1E3*this.Z(),c=g.EG(a,2),d=[],e=[],f=g.u(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.RH(e));f=e=null;c?(a=pbb(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=qbb(this.j)):a=this.C<=b&&hDa(a)?obb(this.j,this.C,b):pbb(this.j,b); d=d.concat(this.OH(a));e&&(d=d.concat(this.RH(e)));f&&(d=d.concat(this.OH(f)));this.C=b;vbb(this,d)}}; g.k.xa=function(){this.B=[];this.j.array=[];g.I.prototype.xa.call(this)}; g.tY.NI(p0,{Af:"crmacr",OH:"crmncr",RH:"crmxcr",kY:"crmis",Ao:"crmrcr"});g.w(s0,g.IF);s0.prototype.Wq=function(){return this.N}; s0.prototype.Hq=function(){return Math.max(this.Z()-t0(this)*this.j,this.videoData.Sd())};g.w(x0,g.I);x0.prototype.zf=function(){var a=this,b=this.oa.nf(),c=this.oa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.EG(c,8)&&g.EG(c,16),h=this.oa.En().isBackground()||c.isSuspended();y0(this,this.Za,f&&!h,e,"qoe.slowseek",function(){},"timeout"); var l=isFinite(this.j);l=f&&l&&bDa(b,this.j);var m=!d||10d+5,x=n&&q&&v,A=this.oa.getVideoData();y0(this,this.Ra,.002>d&&.002>this.j&&f&&g.tJ(this.W)&&g.CT(A)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");y0(this,this.ma,A.Pn()&&f&&!h&&!A.Ea,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");y0(this,this.va,x&&!h,n&&!q,"qoe.longrebuffer",p,"jiggle_cmt");y0(this,this.Ca,x&&!h,n&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(m){var E=m.getCurrentTime();f= b.Iv();f=NCa(f,E);f=!m.eg()&&d===f;y0(this,this.Db,n&&q&&f&&!h,n&&!q&&!f,"qoe.longrebuffer",function(){b.seekTo(E)},"seek_to_loader")}f={}; p=XK(r,Math.max(d-3.5,0));x=0<=p&&d>r.end(p)-1.1;var F=0<=p&&p+1F;f.close2edge=x;f.gapsize=F;f.buflen=r.length;this.D&&(f.seekSour=this.D);y0(this,this.Ia,n&&q&&!h,n&&!q,"qoe.longrebuffer",function(){},"timeout",f); t=c.isSuspended();t=F_(this.oa)&&!t;y0(this,this.N,t,!t,"qoe.start15s",function(){a.oa.Ng("ad")},"ads_preroll_timeout"); f=.5>d-this.C;p=A.isAd()&&n&&!q&&f;t=function(){var G=a.oa,L=G.qe.fd();(!L||!G.videoData.isAd()||L.getVideoData().yd!==G.getVideoData().yd)&&G.videoData.Nf||G.Bg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+G.videoData.videoId)}; y0(this,this.tb,p,!p,"ad.rebuftimeout",t,"skip_slow_ad");f=A.isAd()&&q&&YK(b.Ph(),d+5)&&f;y0(this,this.ub,f,!f,"ad.rebuftimeout",t,"skip_slow_ad_buf");y0(this,this.Mb,g.xL(c)&&g.EG(c,64)&&!h,e,"qoe.start15s",function(){},"timeout"); y0(this,this.Ea,!!m&&!m.Qa&&g.xL(c),e,"qoe.start15s",l,"newElemMse");e=aL(r,0);t=g.EG(c,16)||g.EG(c,32);e=!h&&g.xL(c)&&q&&!t&&(g.EG(c,64)||0===d)&&5vY(this.oa)-d&&!v&&this.oa.xt();y0(this,this.Z,A.Pn()&&c&&q&&h,n&&!q,"qoe.longrebuffer",function(){U_(a.oa,!1,!0)},"handoff_end_long_buffer_reload"); h=(null==m?void 0:R9a(m))||NaN;h=1=this.G)return this.B=a,!0;this.C+=1;return!1}; v0.prototype.qc=function(){var a={},b=(0,g.kD)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.w(Kbb,g.I);g.k=Kbb.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.yR()||this.seekTo(.01,{Ed:"seektimeline_setupMediaElement"})),z0(this)):A0(this)}; g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&Xbb(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; g.k.bj=function(){return this.getCurrentTime()-this.Vc()}; g.k.Hq=function(){return this.B?this.B.Hq():Infinity}; g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return u0(this.B,a)}; g.k.Wq=function(){return!!this.B&&this.B.Wq()}; g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.tG?!1:c.tG;var d=void 0===c.CS?0:c.CS,e=void 0===c.Qv?!1:c.Qv,f=void 0===c.vS?0:c.vS,h=void 0===c.Ed?"":c.Ed,l=void 0===c.seekSource?void 0:c.seekSource,m=void 0===c.XI?!1:c.XI,n=void 0===c.gS?!1:c.gS;if(void 0===c.uq?0:c.uq)a+=this.Vc();if(c=a=this.Se())||!g.uT(this.videoData))||this.oa.qa("seeknotallowed",{st:x,mst:this.Se()});if(!p)return this.C&&(this.C=null,Ubb(this)),mg(this.getCurrentTime());if(.005>Math.abs(a- this.j)&&this.ma)return this.G;h&&(x=a,(this.W.Dc()||this.L("html5_log_seek_reasons"))&&this.oa.qa("seekreason",{reason:h,tgt:x}));l&&(this.va.D=l);this.ma&&A0(this);this.G||(this.G=new oL);a&&!isFinite(a)&&Nbb(this,!1);(h=n||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0e.videoData.endSeconds;e.W.L("embeds_enable_muted_autoplay")&&(h=h&&f>e.videoData.limitedPlaybackDurationInSeconds);e.zq&&h&&isFinite(f)&&Bcb(e);fb.start&&Bcb(this.oa);return this.G}; g.k.Se=function(a){if(!this.videoData.isLivePlayback)return ddb(this.oa);var b;return LT(this.videoData)&&(null==(b=this.mediaElement)?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),VTa(1E3*this.mf(a))+a):cT(this.videoData)&&this.videoData.eb&&this.videoData.j?this.videoData.j.Se()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.B?this.B.Hq():ddb(this.oa)+this.timestampOffset:this.mediaElement?$B()?VTa(this.mediaElement.UG().getTime()):XCa(this.mediaElement)+this.timestampOffset|| this.timestampOffset:this.timestampOffset}; g.k.Sd=function(){if(g.JT(this.videoData)){var a=this.oa;g.JT(a.videoData);var b,c;return null!=(c=null==(b=a.dc)?void 0:b.Sd())?c:a.videoData.Sd()}b=this.videoData?this.videoData.Sd()+this.timestampOffset:this.timestampOffset;return LT(this.videoData)&&this.videoData.j&&(c=Number(null==(a=this.videoData.progressBarStartPosition)?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.mf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b}; g.k.SN=function(){this.G||this.seekTo(this.D,{Ed:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.k.SI=function(){return this.ma&&!isFinite(this.j)}; g.k.xa=function(){Obb(this,null);this.va.dispose();g.I.prototype.xa.call(this)}; g.k.qc=function(){var a={};this.Aa&&Object.assign(a,this.Aa.qc());this.mediaElement&&Object.assign(a,this.mediaElement.qc());return a}; g.k.NQ=function(a){this.timestampOffset=a}; g.k.getStreamTimeOffset=function(){return cT(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.k.Vc=function(){return this.timestampOffset}; g.k.mf=function(a){return this.videoData.j.mf(a-this.timestampOffset)}; g.k.Fv=function(){if(!this.mediaElement)return 0;if(vT(this.videoData)){var a=this.mediaElement,b=a.Ph();a=(0<$K(b)&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Sd();b=this.Se()-this.Sd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Fv()}; g.k.Mw=function(a){this.K&&(this.K.j=a)}; g.k.L=function(a){return this.W&&this.W.L(a)};C0.prototype.At=function(){return this.started}; C0.prototype.start=function(){this.started=!0}; C0.prototype.reset=function(){this.j=this.started=!1};var fcb=!1;g.w(g.G0,g.IF);g.k=g.G0.prototype;g.k.xa=function(){this.logger.debug("dispose");g.JB(this.gK);s3a(this.jg);this.visibility.unsubscribe("visibilitystatechange",this.jg);tcb(this);K0(this);g.Ju.Tj(this.Zw);this.Kj();this.Sf=null;g.vb(this.videoData);g.vb(this.Pk);g.xb(this.A9);this.zq=null;g.IF.prototype.xa.call(this)}; g.k.gx=function(a,b,c,d){this.Cc().gx(a,b,c);this.L("html5_log_media_perf_info")&&this.qa("adloudness",{ld:d.toFixed(3),cpn:a})}; g.k.eO=function(){var a;return null==(a=this.Aa)?void 0:a.eO()}; g.k.iO=function(){var a;return null==(a=this.Aa)?void 0:a.iO()}; g.k.jO=function(){var a;return null==(a=this.Aa)?void 0:a.jO()}; g.k.fO=function(){var a;return null==(a=this.Aa)?void 0:a.fO()}; g.k.Cj=function(){return this.videoData.Cj()}; g.k.hI=function(){return this.oA}; g.k.xN=function(){!this.nA||this.nA.isDisposed();this.nA=new g.n0(new m0(this.videoData,this.W,this));this.oA=new o0(this.W,this,this.nA)}; g.k.getVideoData=function(){return this.videoData}; g.k.U=function(){return this.W}; g.k.ZN=function(){return this.Ck.ZN(this.Sf)}; g.k.Cc=function(a){if(g.JT(this.videoData)&&a)a:{for(var b=this.oA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.oA.Cc();return a}; g.k.En=function(){return this.visibility}; g.k.nf=function(){return this.mediaElement}; g.k.fN=function(){if(this.videoData.isLoaded()){var a=this.Pk;0=a.start);return a}; g.k.Wq=function(){return this.pd.Wq()}; g.k.isPlaying=function(){return this.playerState.isPlaying()}; g.k.nE=function(){return this.playerState.nE()&&this.videoData.Mm}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.Sf){var a=this.Sf;a=a.videoData.Gy.compose(a.videoData.hV);a=tP(a)}else a="auto";return a}; g.k.KD=da(21);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.k.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.Kb()===this.mediaElement.Kb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.AC(this.OB),this.mediaElement=a,this.mediaElement.oa=this,Pcb(this),this.pd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Kj();if(!this.playerState.isError()){var b=vL(this.playerState,512);g.EG(b,8)&&!g.EG(b,2)&&(b=uL(b,1));a.isView()&&(b=vL(b,64));this.Gc(b)}this.mediaElement= a;this.mediaElement.oa=this;lS(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Pcb(this);this.pd.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Pk.KH()&&YCa(this.mediaElement)}}; g.k.Kj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();0this.mediaElement.getCurrentTime()&&this.Aa)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||21E3*e+d.Y)&&(h=i4a(d,f))){e=!1;f=void 0;h=g.u(h.segments);for(l=h.next();!l.done;l=h.next()){l=l.value;if(e){f=l;break}l.aj()===d.Vf&&(e=!0)}h=void 0;f?h=f.aj():e&&(h=null==(c=d.timeline.j)?void 0:c.aj());h&&d.finishSegmentByCpn(d.Vf,h,2)}}}break; case "resize":cdb(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.ra("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.FV&&g.EG(this.playerState,8)&&!g.EG(this.playerState,1024)&&0===this.getCurrentTime()&&g.fD){L0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Kf()===b){Zbb(this.pd,a,this.dc||void 0);this.ra("videoelementevent",a);b=this.playerState;d=this.SC;f=this.mediaElement;h=this.W.experiments;c=this.videoData.clientPlaybackNonce; var m=g.JT(this.videoData)&&this.dc?UY(this.dc):void 0;if(!g.EG(b,128)){e=b.state;f=f?f:a.target;l=f.getCurrentTime();if(!g.EG(b,64)||"ended"!==a.type&&"pause"!==a.type){m=m||f.getDuration();m=f.isEnded()||1Math.abs(l-m);var n="pause"===a.type&&f.isEnded();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.EG(b,4)&&!q0(d,l);if(n||m&&l)0a-this.aJ||(this.aJ=a,b!==this.Th()&&(a=this.visibility,a.j!==b&&(a.j=b,a.jg()),this.qa("airplay",{rbld:b}),V_(this)),this.ra("airplayactivechange"))}; g.k.VD=function(a){if(this.Aa){var b=this.Aa,c=b.G,d=b.currentTime,e=Date.now()-c.Z;c.Z=NaN;c.qa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.G)&&3!==c.B&&c6a(c.Aa,d,c.G,c.D);c.C=NaN;MZ(c,4,3===c.B?"adfps":"adf");I_(b)}}; g.k.Rc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){Rbb(this.pd,this.isPlaying());var c=this.getCurrentTime();!this.Aa||g.EG(this.playerState,4)&&g.uT(this.videoData)||bT(this.videoData)&&g.EG(this.playerState,32)||N9a(this.Aa,c);5Math.abs(m-h)?(b.qa("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Us()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{Ed:"videoplayer_loop"})):zY(b)):(g.yL(b.playerState)||$cb(b,"progress_fix"),b.Gc(uL(b.playerState,1)))):(m&&!n&&!p&&0n-1&&b.qa("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),b.playerState.isPaused()&&g.yL(b.playerState)&&5FG(b,8)||g.GG(b,1024))&& this.ww.stop();!g.GG(b,8)||this.videoData.Ea||g.EG(b.state,1024)||this.ww.start();g.EG(b.state,8)&&0>FG(b,16)&&!g.EG(b.state,32)&&!g.EG(b.state,2)&&this.playVideo();g.EG(b.state,2)&&vT(this.videoData)&&(this.wl(this.getCurrentTime()),this.Rc(!0));g.GG(b,2)&&this.LR(!0);g.GG(b,128)&&this.zo();this.videoData.j&&this.videoData.isLivePlayback&&!this.e1&&(0>FG(b,8)?hQa(this.videoData.j):g.GG(b,8)&&this.videoData.j.resume());Pbb(this.pd,b);l4a(this.Cc(),b);if(c&&!this.isDisposed())try{for(var e=g.u(this.iK), f=e.next();!f.done;f=e.next()){var h=f.value;ubb(this.Oh,h);this.ra("statechange",h)}}finally{this.iK.length=0}}}; g.k.OE=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.ra("connectionissue")}; g.k.IQ=function(){this.Sb.tick("qoes")}; g.k.SN=function(){this.pd.SN()}; g.k.KJ=function(a,b,c,d){a:{var e=this.Pk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=xK(b);"drm.keyerror"===a&&this.Ie&&1e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())T$a(e,a);else{if(e.oa.Bg(a,b,d,c),K$a(e,{detail:c}))break a}else e.Ae(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.qa("retrydrm",{sessionLimitExhausted:1}),e.D++,Zcb(e.oa))}}; g.k.u$=function(){var a=this,b=g.gJ(this.W.experiments,"html5_license_constraint_delay"),c=Kpa();b&&c?(b=new g.Ru(function(){M0(a);J0(a)},b),g.N(this,b),b.start()):(M0(this),J0(this))}; g.k.RE=function(a){this.ra("heartbeatparams",a)}; g.k.Np=function(a){this.qa("keystatuses",p$a(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=q$a(b,c);d=P_(a)?r$a(a,d):a.D.includes(d)}else{a:{b=q$a(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.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if(null==(f=this.Ie)?0:oR(f.j))if(null==(c=this.Ie))c= 0;else{b=f=void 0;e=g.u(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=s$a(h,"SD")),b||(b=s$a(h,"AUDIO"));c.sj({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.qa("drm",{dshdr:1});T$a(this.Pk);return}}else{this.videoData.bC||(this.videoData.bC=!0,this.qa("drm",{dphdr:1}),U_(this,!0));return}var l;if(null==(l=this.Ie)?0:oR(l.j))return}else if(l=a.Z&&d,c&&!l){T$a(this.Pk);return}d||r$a(a,"AUDIO")&&r$a(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), a=p$a(a),this.ER?(this.logger.debug("Output restricted, playback cannot continue"),this.ra("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Bg("drm.keyerror",2,void 0,"info."+a)):(this.ER=!0,this.Ae(new wK("qoe.restart",Object.assign({},{retrydrm:1},a))),E0(this),Zcb(this)))}; g.k.w$=function(){if(!this.videoData.Ea&&this.mediaElement&&!this.isBackground()){var a="0";0=b.B.size){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=p$a(b.B.values().next().value),b=vK(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Aa)?void 0:d.qc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.qc())||{});this.Cc().Ae("qoe.start15s",vK(a));this.ra("loadsofttimeout")}}; g.k.wl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,J0(this))}; g.k.LR=function(a){a=void 0===a?!1:a;if(!this.xV){KH("att_s","player_att")||OH("att_s",void 0,"player_att");var b=new g.eNa(this.videoData);if("c1a"in b.j&&!g.jP.isInitialized()){OH("att_wb",void 0,"player_att");2===this.OM&&.01>Math.random()&&g.pF(Error("Botguard not available after 2 attempts"));if(a)return;if(5>this.OM){g.Su(this.cH);this.OM++;return}}if(a=g.fNa(b)){OH("att_f",void 0,"player_att");b=this.Cc();if(b.j){b=b.j;var c;if(!b.ma){c||(c=h0(b,"atr"));c.attestationResponse=a;try{c.send()}catch(d){if("Unknown Error"!== d.message)throw d;}b.ma=!0}}this.xV=!0}else OH("att_e",void 0,"player_att")}}; g.k.Se=function(a){return this.pd.Se(void 0===a?!1:a)}; g.k.Sd=function(){return this.pd.Sd()}; g.k.Vc=function(){return this.pd?this.pd.Vc():0}; g.k.getStreamTimeOffset=function(){return this.pd?this.pd.getStreamTimeOffset():0}; g.k.Ys=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Vc():this.getStreamTimeOffset());return a}; g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&Y$a(this.Ck,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.W.L("html5_playback_rate_fix")&&(this.playbackRate=a),E0(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=ucb(this);b&&0=+c),b.dis=this.mediaElement.RD("display"));a&&((a=(0,g.c0)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.eb&&(b.webview=1));b.debug_playbackQuality=this.Va.getPlaybackQuality(1);b.debug_date=(new Date).toString();b.origin=window.origin; b.timestamp=Date.now();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.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20240312_01_RC00"},b=this.Xb().Tg;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(X0(this))return 3;var b;if(a&&(null==(b=this.Be)?0:L3a(b,this.getCurrentTime())))return 2;var c;return g.JT(this.getVideoData())&&(null==(c=this.dc)?0:h4a(c))?2:g.XT(this).getPlayerType()}; g.k.Zz=function(){return g.JT(this.getVideoData())&&this.dc?this.dc.Zz():!1}; g.k.Xb=function(a){return 3===this.getPresentingPlayerType()?gU(this.Ud).Me:g.XT(this,a).getPlayerState()}; g.k.getAppState=function(){return this.appState}; g.k.RJ=function(a){switch(a.type){case "loadedmetadata":this.CK.start();a=g.u(this.lB);for(var b=a.next();!b.done;b=a.next())b=b.value,Vdb(this,b.id,b.Kda,b.Jda,void 0,!1);this.lB=[];break;case "loadstart":this.Sb.pu("gv");break;case "progress":case "timeupdate":2<=$K(a.target.Ph())&&this.Sb.pu("l2s");break;case "playing":g.jS&&this.CK.start();if(g.tJ(this.W))a=!1;else{b=g.iU(this.Bb());a="none"===this.mediaElement.RD("display")||0===this.mediaElement.getSize().area();var c=jZ(this.template),d=this.xb.getVideoData(), e=g.VG(this.W);d=iT(d);b=!c||b||e||d||this.W.Mb;a=a&&!b}a&&(this.xb.qa("hidden",{},!0),this.getVideoData().Vb||(this.getVideoData().Vb=1,this.CZ(),this.xb.playVideo()))}}; g.k.onLoadProgress=function(a,b){this.Va.Ac("onLoadProgress",b)}; g.k.Paa=function(){this.Va.ra("playbackstalledatstart")}; g.k.onVideoProgress=function(a,b){a=W0(this,a);b=f1(this,a.getCurrentTime(),a);this.Va.Ac("onVideoProgress",b)}; g.k.onAutoplayBlocked=function(){this.Va.Ac("onAutoplayBlocked")}; g.k.caa=function(){this.Va.ra("progresssync")}; g.k.R$=function(){this.Va.Ac("onPlaybackPauseAtStart")}; g.k.O9=function(a){if(1===this.getPresentingPlayerType()){g.GG(a,1)&&!g.EG(a.state,64)&&this.Rd().isLivePlayback&&this.zb.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){Kdb(this);return}xdb(this)}if(g.EG(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Tg;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Va.Dm("onError",zUa(b.errorCode));this.Va.Ac("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.NN,cpn:b.cpn});6048E5<(0,g.kD)()-this.W.ag&&this.Va.Ac("onReloadRequired")}b={};if(a.state.isPlaying()&&!g.yL(a.state)&&!KH("pbresume","ad_to_video")&&KH("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.LH(b,"ad_to_video");NH("pbresume",void 0,"ad_to_video");xYa(this.Ud)}this.Va.ra("applicationplayerstatechange",a)}}; g.k.TZ=function(a){3!==this.getPresentingPlayerType()&&this.Va.ra("presentingplayerstatechange",a)}; g.k.Ak=function(a){U0(this,zL(a.state));g.EG(a.state,1024)&&this.Va.isMutedByMutedAutoplay()&&(d1(this,{muted:!1,volume:this.Si.volume},!1),e1(this,!1))}; g.k.K9=function(a,b,c){"newdata"===a&&mdb(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.ME=function(){this.Va.Ac("onPlaybackAudioChange",this.Va.getAudioTrack().uc.name)}; g.k.aF=function(a){var b=this.xb.getVideoData();a===b&&this.Va.Dm("onPlaybackQualityChange",a.B.video.quality)}; g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId}); this.W.Dc()&&b.qa("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.zb&&(this.W.Bj=c.oauthToken);if(b===this.zb){this.getVideoData().enableServerStitchedDai&&!this.Be?this.Be=new g.FY(this.Va,this.W,this.zb):!this.getVideoData().enableServerStitchedDai&&this.Be&&(this.Be.dispose(),this.Be=null);if(this.W.Dc()&&g.JT(c)){var d,e;b.qa("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:(null==(d=this.Sp.j)?void 0:null==(e=d.getVideoData())? void 0:e.clientPlaybackNonce)||""})}var f,h;!g.JT(this.getVideoData())||"newdata"!==a&&"dataloaded"!==a||this.getVideoData().clientPlaybackNonce===(null==(f=this.Sp.j)?void 0:null==(h=f.getVideoData())?void 0:h.clientPlaybackNonce)?!g.JT(this.getVideoData())&&this.dc&&(this.W.Dc()&&b.qa("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.dc.dispose(),this.dc=null):(v3a(this.Sp),d=EY(this.Sp,1,0,1E3*this.getDuration(1),this.getVideoData()),u3a(this.Sp,d),CY(this.Sp,0,1E3*this.getDuration(1), [d]),w3a(this.Sp,this.getVideoData().clientPlaybackNonce,[d]),this.dc&&(this.dc.dispose(),this.dc=null,this.W.Dc()&&b.qa("ssap",{tlmdis:1})),this.W.Dc()&&b.qa("ssap",{tlmcreate:1}),this.dc=new b4a(this.Va,this.Sp,this.zb),this.zb.NK(this.dc))}if("newdata"===a)this.logger.debug("new video data, destroy modules"),$V(this.Ud,2),this.Va.ra("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.xb===this.zb?(qRa(c.Ha,c.XS),Cdb(this)):Adb(this));1===b.getPlayerType()&&(this.W.Xa&& ceb(this),this.getVideoData().isLivePlayback&&!this.W.xr&&this.Mg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((GTa(c)||this.getVideoData().Fx)&&this.Va.ra("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&Odb(this)));this.Va.ra("videodatachange",a,c,b.getPlayerType())}this.Va.Ac("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.HK();(d=c.LF)?this.Tq.jW(d,c.clientPlaybackNonce):T4a(this.Tq)}; g.k.qH=function(){Z0(this,null);this.Va.Ac("onPlaylistUpdate")}; g.k.baa=function(a){delete this.oK[a.getId()];this.zb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.Ra)?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.Ra)?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.u(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.U(c,g.dT),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.U(a,g.dT))&&this.Va.ob("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}; g.k.Yp=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),2===a&&1===this.getPresentingPlayerType()&&(U0(this,-1),U0(this,5)),this.appState=a,this.Va.ra("appstatechange",a))}; g.k.Mg=function(a,b,c,d,e){this.zb.Bg(a,b,c,d,e)}; g.k.Ir=function(a,b){this.zb.handleError(new wK(a,b))}; g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.XT(this,a);if(!c)return!1;a=V0(this,c);c=W0(this,c);return a!==c?a.isAtLiveHead(f1(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; g.k.Iq=function(){var a=g.XT(this);return a?V0(this,a).Iq():0}; g.k.seekTo=function(a,b,c,d,e){b=!1!==b;if(d=g.XT(this,d))2===this.appState&&b1(this),this.Nf(d)?g1(this)?this.Be.seekTo(a,{seekSource:e},b,c):this.jd.seekTo(a,{seekSource:e},b,c):g.JT(this.getVideoData())&&this.dc?this.dc.seekTo(a,{tG:!b,CS:c,Ed:"application",seekSource:e}):d.seekTo(a,{tG:!b,CS:c,Ed:"application",seekSource:e})}; g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; g.k.MA=function(){this.Va.Ac("SEEK_COMPLETE")}; g.k.Eaa=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.EG(a.getPlayerState(),512)||b1(this):this.Va.Ac("SEEK_TO",b)}; g.k.onAirPlayActiveChange=function(){this.Va.ra("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Va.Ac("onAirPlayActiveChange",this.Va.Th())}; g.k.onAirPlayAvailabilityChange=function(){this.Va.ra("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Va.Ac("onAirPlayAvailabilityChange",this.Va.hE())}; g.k.showAirplayPicker=function(){var a;null==(a=this.xb)||a.au()}; g.k.iQ=function(){this.Va.ra("beginseeking")}; g.k.oQ=function(){this.Va.ra("endseeking")}; g.k.getStoryboardFormat=function(a){return(a=g.XT(this,a))?V0(this,a).getVideoData().getStoryboardFormat():null}; g.k.fk=function(a){return(a=g.XT(this,a))?V0(this,a).getVideoData().fk():null}; g.k.Nf=function(a){a=a||this.xb;var b=!1;if(a){a=a.getVideoData();if(g1(this))a=a===this.Be.oa.getVideoData();else a:if(b=this.jd,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.u(b.B);for(var c=b.next();!c.done;c=b.next())if(a.yd===c.value.yd){a=!0;break a}a=!1}b=a}return b}; g.k.MC=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n lengthMs="+d+" enterTimeMs="+e}); var l="",m=g1(this),n;null==(n=g.XT(this))||n.qa("appattl",{sstm:this.Be?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?H3a(this.Be,a,b,c,d,e,f,h):u4a(this.jd,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l}); return l}; g.k.eE=function(a,b,c,d,e,f,h){if(g1(this)){var l=H3a(this.Be,a,b,c,d,e,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+l})}return""}; g.k.Qt=function(a){var b;null==(b=this.Be)||b.Qt(a)}; g.k.Uy=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;g1(this)||D4a(this.jd,a,b)}; g.k.vG=function(a,b,c){if(g1(this)){var d=this.Be,e=d.Jc.get(a);e?(void 0===c&&(c=e.ke),e.durationMs=b,e.ke=c):d.zE("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.jd;e=null;for(var f=g.u(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.yd===a){e=h;break}e?(void 0===c&&(c=e.ke),C4a(d,e,b,c)):YY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}}; g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Nf();a=new g.TS(this.W,a);d&&(a.yd=d);Pdb(this,a,b,c)}; g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e);b=this.fd();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.pL,d=this.Km.N,c.C!==a&&(c.xb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=X2a(b,a,this.Km.N),null!=c?(b.qa("sgap",c),b.getVideoData().Y&&Ncb(b,!1)):(a=a.getVideoData(),b=this.pL, b.j!==a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))}; g.k.MH=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.XT(this);f&&(V0(this,f).e1=!0);l3a(this.Km,a,b,c,d).then(function(){e.Va.Ac("onQueuedVideoLoaded")},function(){})}; g.k.dw=function(){return this.Km.dw()}; g.k.clearQueue=function(){this.logger.debug("Clearing queue");this.Km.clearQueue()}; g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;if(2===b&&this.Rd().enableServerStitchedDai&&this.zb&&!F_(this.zb)){var f;null==(f=this.zb)||f.qa("lvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.TS(this.W,a);g.iS(this.W)&&!f.al&&JV(this.Sb);var l,m=this.Sb,n=null!=(l=f.Na)?l:"";m.timerName=n;this.Sb.ji("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Sb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&& !this.L("html5_shorts_gapless_always_fallback")){l=o3a(this.Km,f,b);if(null==l){U0(this,-1);a=this.Km;a.app.U().L("html5_gapless_new_slr")?Idb(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().cC=!0;var p,q;null==(p=a.j)||null==(q=p.Aa)||q.resume();var r;null==(r=a.j)||WY(r.Cc());p={Ed:"gapless_to_next_video",seekSource:60};var t;null==(t=a.app.fd())||t.seekTo(n3a(a),p);if(!a.app.Xb(b).isPlaying()){var v;null==(v=g.XT(a.app))||v.playVideo(!0)}a.K();return!0}this.Km.clearQueue(); var x;null==(x=g.XT(this))||x.qa("sgap",{f:l})}if(e){for(;f.ym.length&&f.ym[0].isExpired();)f.ym.shift();t=f.ym.length-1;h=0Math.random()&&g.XC("autoplayTriggered",{intentional:this.jY});this.MY=!1;xYa(this.Ud);this.L("web_player_defer_ad")&&Bdb(this);this.Va.Ac("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),bS(this.W))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate= 20;MH("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.gS(this.W)||"MWEB"===g.uR(this.W)?g.QC(g.SC(),function(){c1(b)}):c1(this); this.HK();Jdb(this)}; g.k.wQ=function(){this.Va.ra("internalAbandon");h1(this)}; g.k.onApiChange=function(){this.W.K&&this.xb?this.Va.Dm("onApiChange",this.xb.getPlayerType()):this.Va.Dm("onApiChange")}; g.k.D$=function(){var a=this.mediaElement;a={volume:g.He(Math.floor(100*a.getVolume()),0,100),muted:a.jI()};a.muted||e1(this,!1);this.Si=g.pd(a);this.Va.Ac("onVolumeChange",a)}; g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.XP)&&(this.XP=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.XP}),this.Va.Ac("onMutedAutoplayStarts"))}; g.k.onFullscreenChange=function(){var a=Zdb(this);this.Fm(a?1:0);aeb(this,!!a)}; g.k.Fm=function(a){var b=!!a,c=!!this.Az()!==b;this.visibility.Fm(a);this.template.Fm(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&Zdb(this)===this.mediaElement.Kb()&&this.mediaElement.nD();this.template.resize();c&&this.Sb.tick("fsc");c&&(this.Va.ra("fullscreentoggled",b),a=this.Rd(),b={fullscreen:b,videoId:a.nM||a.videoId,time:this.getCurrentTime()},this.Va.getPlaylistId()&&(b.listId=this.Va.getPlaylistId()),this.Va.Ac("onFullscreenChange",b))}; g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.Az=function(){return this.visibility.Az()}; g.k.saa=function(){this.xb&&(0!==this.Az()&&1!==this.Az()||this.Fm(Zdb(this)?1:0),this.W.Mm&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.nD())}; g.k.v$=function(a){3!==this.getPresentingPlayerType()&&this.Va.ra("liveviewshift",a)}; g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a}); var b=g.XT(this,a);b&&(2===this.appState?(g.iS(this.W)&&JV(this.Sb),b1(this)):g.EG(b.getPlayerState(),2)?(this.seekTo(0),this.W.Dc()&&b.qa("szro",{})):b.playVideo())}; g.k.pauseVideo=function(a,b){(a=g.XT(this,a))&&a.pauseVideo(b)}; g.k.stopVideo=function(a){a=void 0===a?!1:a;this.logger.debug(function(){return"stop video"}); var b=this.zb.getVideoData(),c=new g.TS(this.W,{video_id:b.nM||b.videoId,oauth_token:b.oauthToken});c.Z=g.pd(b.Z);var d;!a||null!=(d=this.webPlayerContextConfig)&&d.disableStaleness||(c.LU=!0);this.cancelPlayback(6);k1(this,c,1)}; g.k.cancelPlayback=function(a,b){var c=this;this.logger.debug(function(){return"start cancel playback, type "+b}); var d=g.XT(this,b);d?2===b&&1===d.getPlayerType()&&(WTa(this.Rd())||g.JT(this.getVideoData()))?d.qa("canclpb",{r:"no_adpb_ssdai"}):(this.W.Dc()&&d.qa("canclpb",{r:a}),1===this.appState||2===this.appState?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.xb&&(this.logger.debug("cancel playback, destroy modules"),$V(this.Ud,a)),1===b&&(d.stopVideo(),h1(this)),d.zo(void 0,6!==a),T0(this,"cuerangesremoved",d.fm()),d.Oh.reset(),this.Km&&d.isGapless()&& (d.Kj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.XT(this,b))&&zRa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.ej=function(a){var b=g.XT(this);return b&&zRa(this.W,a)?b.ej(a):null}; g.k.updatePlaylist=function(){eS(this.W)?$0(this):g.QR(this.W)&&Ddb(this);this.Va.Ac("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.l0=a;this.sP=b;this.Va.ra("sizestylechange",a,b);this.template.resize()}; g.k.jw=function(){return this.sP}; g.k.xg=function(){return this.visibility.xg()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.vt=function(){return this.visibility.vt()}; g.k.Xz=function(){return this.visibility.Xz()}; g.k.cA=function(){return this.visibility.cA()}; g.k.qP=function(){return this.l0}; g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return gU(this.Ud).getAdState();if(!this.Nf()){var a=aW(this.Bb());if(a)return a.getAdState()}return-1}; g.k.raa=function(a){var b=this.template.getVideoContentRect();js(this.zY,b)||(this.zY=b,this.xb&&M0(this.xb),this.zb&&this.zb!==this.xb&&M0(this.zb),1===this.Az()&&this.dF&&aeb(this,!0));this.AP&&g.Pe(this.AP,a)||(this.Va.ra("appresize",a),this.AP=a)}; g.k.Vh=function(){return this.Va.Vh()}; g.k.Kaa=function(){2===this.getPresentingPlayerType()&&this.jd.isManifestless()?B4a(this.jd):(this.Be&&(O3a(this.Be),h1(this)),wdb(this,"signature"))}; g.k.CZ=function(){this.Kj();S0(this)}; g.k.J$=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.W.experiments.jb("html5_use_network_error_code_enums")?401:"401")&&this.Va.ob("onPlayerRequestAuthFailed")}; g.k.OE=function(){this.Va.Ac("CONNECTION_ISSUE")}; g.k.RE=function(a){this.Va.ra("heartbeatparams",a)}; g.k.yK=function(a){this.Va.ob("onAutonavChangeRequest",1!==a)}; g.k.nf=function(){return this.mediaElement}; g.k.setBlackout=function(a){this.W.Mb!==a&&(this.W.Mb=a,this.xb&&(this.xb.Io(),this.W.Xa&&ceb(this),this.xb.xo(a)))}; g.k.L$=function(){var a=g.XT(this);if(a){var b=!this.Va.mE();(a.HX=b)||a.ww.stop();a.videoData.j&&(b?a.videoData.j.resume():hQa(a.videoData.j));a.Aa&&(b?a.Aa.resume():O0(a,!0));g.EG(a.playerState,2)||b?g.EG(a.playerState,512)&&b&&a.Gc(vL(a.playerState,512)):a.Gc(uL(a.playerState,512));a=a.Cc();a.qoe&&(a=a.qoe,g.Z_(a,g.$M(a.provider),"stream",[b?"A":"I"]))}}; g.k.onLoadedMetadata=function(){this.Va.Ac("onLoadedMetadata")}; g.k.onDrmOutputRestricted=function(){this.Va.Ac("onDrmOutputRestricted")}; g.k.LM=function(){zlb=this.L("html5_use_async_stopVideo");Alb=this.L("html5_pause_for_async_stopVideo");ylb=this.L("html5_not_reset_media_source");cDa=this.L("html5_rebase_video_to_ad_timeline");jL=this.L("html5_not_reset_media_source");xlb=this.L("html5_not_reset_media_source");OCa=this.L("html5_retain_source_buffer_appends_for_debugging");this.L("html5_mediastream_applies_timestamp_offset")&&(XZ=!0);this.L("html5_support_managed_media_source")&&(hL=BCa=!0);TOa=this.L("html5_prefer_slice_length"); var a=g.gJ(this.W.experiments,"html5_cobalt_override_quic");a&&pY("QUIC",+(0=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.yh)?CG("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,wfb(this, c)))}}; g.k.xa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.nQ,this),this.j=null);this.listeners.length=0;this.eL.length=0;g.I.prototype.xa.call(this)};Q1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=S1.prototype;g.k.MC=function(a,b,c,d,e,f,h){return this.J.MC(a,b,c,d,e,f,h)}; g.k.Uy=function(a,b){this.J.Uy(a,b)}; g.k.vG=function(a,b,c){this.J.vG(a,b,c)}; g.k.Qt=function(a){this.J.Qt(a)}; g.k.eE=function(a,b,c,d,e,f,h){this.J.eE(a,b,c,d,e,f,h)}; g.k.Jr=function(){return this.J.Jr()}; g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.w(Bfb,g.I);g.w(Cfb,g.I);g.w(Dfb,g.I);g.w(Efb,g.I);g.w(Ffb,g.I);g.w(Gfb,g.I);g.w(Ifb,g.I);Ifb.prototype.C=function(){return this.B};g.w(Jfb,qG); Jfb.prototype.D=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.ob("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.ob("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.ob("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.ob("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ob("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ob("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.ob("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ob("updateKevlarOrC3Companion",{})}else if("top-banner-image-text-icon-buttoned"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ob("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel: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.ob("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ob("updateKevlarOrC3Companion",{})}else if("banner-image"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ob("updateKevlarOrC3Companion", {contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.ob("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ob("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.ob("updateEngagementPanelAction",b.addAction);this.j.ob("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.ob("changeEngagementPanelVisibility",b.hideAction),this.j.ob("updateEngagementPanelAction",b.removeAction)}};g.w(Kfb,uG);g.k=Kfb.prototype; g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);g.ls(this.B,"stroke-dasharray","0 "+this.C);this.api.U().L("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.api.U().L("enable_unified_action_endcap_on_web")&&(this.D.classList.add("ytp-ad-timed-pie-countdown-container-unified"), this.B.classList.add("ytp-ad-timed-pie-countdown-inner-unified"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-unified"),this.va.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){wG(this);uG.prototype.hide.call(this)}; g.k.show=function(){vG(this);uG.prototype.show.call(this)}; g.k.Up=function(){this.hide()}; g.k.qo=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.ls(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.w(Lfb,RF);g.k=Lfb.prototype; g.k.init=function(a,b,c){RF.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.U(b.actionButton,g.FM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.oF(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.C?(this.D.hide(),this.va=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(uxa(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.w($fb,RF);g.k=$fb.prototype; g.k.init=function(a,b,c){RF.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.U(b.actionButton,g.FM)?(this.C.init(GF("ad-image"),b.image,c),this.B.init(GF("ad-text"),b.headline,c),this.D.init(GF("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.U().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new aG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb, a),b.backgroundColor&&g.ls(this.element,"background-color",g.WG(b.backgroundColor)),g.N(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(GF("button"),g.U(b.actionButton,g.FM),c),b=g.gJ(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.av(c,"ytp-ad-underlay-left-container"),g.Zu(c,"ytp-ad-underlay-right-container"),g.ls(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.av(c,"ytp-ad-underlay-right-container"), g.Zu(c,"ytp-ad-underlay-left-container")),g.ls(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.oE()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.iT.bind(this)),this.api.addEventListener("resize",this.DX.bind(this))):g.oF(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.oF(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.oF(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.oF(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.k.show=function(){agb(!0);this.actionButton&&this.actionButton.show();RF.prototype.show.call(this)}; g.k.hide=function(){agb(!1);this.actionButton&&this.actionButton.hide();RF.prototype.hide.call(this)}; g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.iT.bind(this));this.api.removeEventListener("resize",this.DX.bind(this));this.hide()}; g.k.onClick=function(a){RF.prototype.onClick.call(this,a);this.actionButton&&g.Tf(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.k.iT=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.DX=function(a){1200a)g.oF(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.U(b.ctaButton,g.FM))if(b.brandImage)if(b.backgroundImage&&g.U(b.backgroundImage,GM)&&g.U(b.backgroundImage,GM).landscape){this.layoutId||g.oF(Error("Missing layoutId for survey interstitial."));qgb(this.interstitial, g.U(b.backgroundImage,GM).landscape);qgb(this.logoImage,b.brandImage);g.Vf(this.text,g.TF(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.U().L("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new aG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,e);g.N(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(GF("button"),g.U(b.ctaButton,g.FM),c);this.actionButton.show();this.j=new MG(this.api, 1E3*a);this.j.subscribe("g",function(){d.transition.hide()}); g.N(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.oF(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.oF(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.oF(Error("SurveyTextInterstitialRenderer has no button."));else g.oF(Error("SurveyTextInterstitialRenderer has no text."));else g.oF(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; c2.prototype.clear=function(){this.hide()}; c2.prototype.show=function(){rgb(!0);RF.prototype.show.call(this)}; c2.prototype.hide=function(){rgb(!1);RF.prototype.hide.call(this)};g.w(d2,uG);g.k=d2.prototype; g.k.init=function(a,b){uG.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(0>b.durationMilliseconds){g.oF(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.gm();var c;if(null==(c=b.previewText)||!c.text||g.fc(b.previewText.text))g.oF(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.Vf(this.C,b.previewText.text);var d; if((null==(d=this.api.getVideoData(1))?0:d.Jl)&&b.previewImage){var e,f;a=(null==(f=nza((null==(e=b.previewImage)?void 0:e.sources)||[],52,!1))?void 0:f.url)||"";if(!a||!a.length){g.oF(Error("Failed to get imageUrl in AdPreview."));return}this.previewImage=new g.QF({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}});this.previewImage.updateValue("imageUrl",a);g.N(this,this.previewImage);this.previewImage.Ja(this.element)}else this.C.classList.add("ytp-preview-ad__text--padding--wide");this.api.U().experiments.jb("should_use_web_overlay_new_margin")&& this.element.classList.add("ytp-preview-ad--new--pos")}}; g.k.clear=function(){this.hide()}; g.k.hide=function(){wG(this);uG.prototype.hide.call(this)}; g.k.show=function(){vG(this);uG.prototype.show.call(this)}; g.k.Up=function(){this.hide()}; g.k.qo=function(){if(this.j){var a=this.j.getProgressState();if(null!=a&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if(null==(b=this.G)?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=null==(c=this.G)?void 0:null==(d=c.text)?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Vf(this.C,a);this.D=b}}}};g.w(e2,RF); e2.prototype.init=function(a,b){RF.prototype.init.call(this,a,b,{});var c,d;if((a=(null==(d=nza((null==(c=b.image)?void 0:c.sources)||[],sgb(b),!0))?void 0:d.url)||"")&&a.length){c=this.Ga("ytp-ad-avatar");c.src=a;var e,f;if(d=null==(e=b.interaction)?void 0:null==(f=e.accessibility)?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.oF(Error("Failed to get imageUrl in AdAvatar."))}; e2.prototype.clear=function(){this.hide()}; e2.prototype.onClick=function(a){RF.prototype.onClick.call(this,a)};g.w(f2,RF); f2.prototype.init=function(a,b){RF.prototype.init.call(this,a,b,{});var c;a=null==(c=b.label)?void 0:c.content;if((c=null!=a&&!g.fc(a))||b.icon){c&&(this.buttonText=new g.QF({I:"span",S:"ytp-ad-button__text",ya:a}),g.N(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)||c?a:"";f&&Nu(this.element,f+" This link opens in new tab");Lu(this.element);if(b.icon||b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e= g.u(e.sources),a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,null==(c=a.clientResource)?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:null==(h=e.clientResource)?void 0:h.imageName}}}else b.icon&&(d=b.icon);h=$F(d);null!=h&&(this.buttonIcon=new g.QF({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.N(this,this.buttonIcon),b.iconLeading?(Qf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button__icon--trailing")))}this.element.classList.add("ytp-ad-button--style-filled"); switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button--size-large");break;default:this.element.classList.add("ytp-ad-button--size-default")}}else g.pF(Error("AdButton does not have label or an icon."))}; f2.prototype.clear=function(){this.hide()}; f2.prototype.onClick=function(a){RF.prototype.onClick.call(this,a)};g.w(g2,RF);g2.prototype.init=function(a,b){RF.prototype.init.call(this,a,b,{});if(a=b.content){g.Vf(this.element,a);var c,d;b=(null==(c=b.interaction)?void 0:null==(d=c.accessibility)?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.oF(Error("AdSimpleAttributedString does not have text content"))}; g2.prototype.clear=function(){this.hide()}; g2.prototype.onClick=function(a){RF.prototype.onClick.call(this,a)};g.w(vgb,uG);g.k=vgb.prototype; g.k.init=function(a,b){uG.prototype.init.call(this,a,b,{});this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Ga("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Qf(this.Ga("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.U(b.avatar,Jib)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.U(b.button,Kib);e?(this.adAvatar.init(GF("ad-avatar"),a),this.headline.init(GF("ad-simple-attributed-string"),new ugb(c)),this.description.init(GF("ad-simple-attributed-string"),new ugb(d)),c.content&&20=this.B&&(wG(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.k.Up=function(){this.clear()}; g.k.onClick=function(a){this.api.pauseVideo();uG.prototype.onClick.call(this,a)}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.jT.bind(this))}; g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();uG.prototype.show.call(this)}; g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();uG.prototype.hide.call(this)}; g.k.jT=function(a){"hidden"===a?this.show():this.hide()};g.w(wgb,RF);g.k=wgb.prototype; g.k.init=function(a,b){RF.prototype.init.call(this,a,b,{});!b.label||g.fc(b.label)?g.oF(Error("No label is returned for SkipAdButton.")):(g.Vf(this.D,b.label),a=$F({iconType:"SKIP_NEXT_NEW"}),null==a)?g.oF(Error("Unable to retrieve icon for SkipAdButton")):(this.C=new g.QF({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.N(this,this.C),this.C.Ja(this.element),this.api.U().experiments.jb("enable_skip_to_next_messaging")&&(b=g.gf(b.targetId))&&(this.B=!0,this.element.setAttribute("data-tooltip-target-id",b), this.element.setAttribute("data-tooltip-target-fixed","")),this.api.U().experiments.jb("should_use_web_overlay_new_margin")&&this.element.classList.add("ytp-skip-ad-button--new--pos"),this.api.U().experiments.jb("should_use_legacy_skip_button_class")&&this.element.classList.add("ytp-ad-skip-button-modern"))}; g.k.onClick=function(a){a&&a.preventDefault();var b,c,d=null!=(c=null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)?c:"";if(!this.api.U().L("ab_sa_ef")||0!==BG(a,{contentCpn:d})){RF.prototype.onClick.call(this,a);if(!this.api.U().L("ab_sa_ef")){var e,f;b={contentCpn:null!=(f=null==(e=this.api.getVideoData(1))?void 0:e.clientPlaybackNonce)?f:""};BG(a,b)}this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ob("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.k.clear=function(){this.j.reset();this.hide()}; g.k.hide=function(){RF.prototype.hide.call(this)}; g.k.show=function(){this.j.start();RF.prototype.show.call(this);this.B&&this.api.U().experiments.jb("enable_skip_to_next_messaging")&&this.api.ra("showpromotooltip",this.element)};g.w(xgb,uG);g.k=xgb.prototype; g.k.init=function(a,b){uG.prototype.init.call(this,a,b,{});var c=g.U(b.preskipState,Lib);c?(a=g.U(b.skippableState,Nib))?(null!=b.skipOffsetMilliseconds?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.pF(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(GF("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(GF("skip-button"),a),this.show()):g.oF(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.oF(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))}; g.k.show=function(){vG(this);uG.prototype.show.call(this)}; g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();wG(this);uG.prototype.hide.call(this)}; g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();wG(this);uG.prototype.hide.call(this)}; g.k.Up=function(){this.hide()}; g.k.qo=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;null!=(a=this.B)&&a.transition.hide();null!=(a=this.C)&&(a.transition.show(),a.show())}};g.w(h2,RF); h2.prototype.init=function(a,b){RF.prototype.init.call(this,a,b,{});if(b.label||b.icon){var c;(null==(c=b.label)?0:c.content)&&!g.fc(b.label.content)&&(this.linkText=new g.QF({I:"span",S:"ytp-visit-advertiser-link__text",ya:b.label.content}),g.N(this,this.linkText),this.linkText.Ja(this.element));b.icon&&!this.api.U().experiments.jb("disable_web_visit_advertiser_link_icon")&&(a=$F(b.icon),null!=a&&(this.j=new g.QF({I:"span",S:"ytp-visit-advertiser-link__icon",V:[a]}),g.N(this,this.j),this.j.Ja(this.element)));var d, e;if(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)this.element.setAttribute("aria-label",b.interaction.accessibility.label);else{var f;(null==(f=b.label)?0:f.content)&&!g.fc(b.label.content)&&this.element.setAttribute("aria-label",b.label.content)}this.show()}else g.oF(Error("No label or icon found in VisitAdvertiserLink."))}; h2.prototype.onClick=function(a){RF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)}; h2.prototype.clear=function(){this.hide()};g.w(i2,RF); i2.prototype.init=function(a,b,c,d){RF.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.U(c,Oib),c=g.U(c,Lib),a?(this.du=new xgb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B),g.N(this,this.du),this.du.Ja(this.G),this.du.init(GF("skip-ad"),a)):c&&(this.C=new d2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,1),g.N(this,this.C),this.C.Ja(this.G),this.C.init(GF("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&& (a=g.U(b.playerAdCard,Mib))&&(this.playerAdCard=new vgb(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B),g.N(this,this.playerAdCard),this.playerAdCard.Ja(this.D),this.playerAdCard.init(GF("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(a=g.U(b.adBadgeRenderer,Gib))&&(this.adBadge=new KG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,!0,!1),g.N(this,this.adBadge),this.adBadge.Ja(this.j),this.adBadge.init(GF("simple-ad-badge"),a,this.macros));b.adDurationRemaining&& (a=g.U(b.adDurationRemaining,zib))&&(this.adDurationRemaining=new QG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.B,d.videoAdDurationSeconds),g.N(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.j),this.adDurationRemaining.init(GF("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.U(b.adInfoRenderer,DM))&&(this.adInfoButton=new sG(this.api,this.layoutId,this.interactionLoggingClientData,this.kb,this.element),g.N(this,this.adInfoButton),this.adInfoButton.Ja(this.j), this.adInfoButton.init(GF("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(b=g.U(b.visitAdvertiserLink,Pib))&&(this.visitAdvertiserLink=new h2(this.api,this.layoutId,this.interactionLoggingClientData,this.kb),g.N(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.j),this.visitAdvertiserLink.init(GF("visit-advertiser-link"),b));this.api.U().experiments.jb("move_cta_down_when_player_control_hides")&&(this.D.classList.add("ytp-ad-player-overlay-layout__player-card-container--cta--down"), this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--cta--down"));this.api.U().experiments.jb("should_use_web_overlay_new_margin")&&(this.D.classList.add("ytp-ad-player-overlay-layout__player-card-container--new--pos"),this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--new--pos"));this.show()}; i2.prototype.clear=function(){this.hide()};var tmb="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 banner-image top-banner-image-text-icon-buttoned".split(" "));g.w(j2,qG); j2.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!tmb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.kb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof jK?c.dS:!1,m=c instanceof jK||c instanceof LG?c.PK:!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 Qfb(a,f,h,e);break;case "player-overlay":a=new UG(a,f,h,e,new qW(a),m);break;case "player-overlay-layout":a=new i2(a,f,h,e,new qW(a));break;case "survey":a= new b2(a,f,h,e);break;case "ad-action-interstitial":a=new Lfb(a,f,h,e,l,m);break;case "survey-interstitial":a=new c2(a,f,h,e);break;case "ad-message":a=new Yfb(a,f,h,e,new qW(a,1));break;case "player-underlay":a=new $fb(a,f,h,e);break;default:a=null}if(!a){g.pF(Error("No UI component returned from ComponentFactory for type: "+d));break}g.jd(this.B,b)?g.pF(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof eCa?this.C?this.C.append(a.FR):g.oF(Error("Underlay view was not created but UnderlayRenderer was created")): this.G.append(a.FR);break;case 2:b=ygb(this,a);if(null==b)break;b.bind(c);break;case 3:c=ygb(this,a),null!=c&&(g.vb(c),g.jd(this.B,b)?(c=this.B,b in c&&delete c[b]):g.pF(Error("Ad UI component does not exist: "+b)))}}; j2.prototype.xa=function(){g.xb(Object.values(this.B));this.B={};qG.prototype.xa.call(this)};g.w(zgb,g.NV);g.k=zgb.prototype;g.k.create=function(){try{Agb(this),this.load(),this.created=!0,Agb(this)}catch(a){CG(a instanceof Error?a:String(a))}}; g.k.load=function(){try{Dgb(this)}finally{v1(U1(this.j).dk)&&this.player.Ng("ad",1)}}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Mt.Wn(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.NV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){CG(b instanceof Error?b:String(b))}if(null!=this.B){var a=this.B;this.B=null;a.dispose()}this.C.reset()}; g.k.xl=function(){return!1}; g.k.getAdState=function(){return-1}; g.k.getOptions=function(){return Object.values(rmb)}; g.k.Mh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=Web(this.player),Object.assign(b,a.Vlb),a=g.Gu(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Mp(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}}; g.k.Nt=function(a){var b;return!(null==(b=this.j.j.If)||!b.get().Nt(a))}; g.k.Mp=function(a){a.isMuted&&xza(U1(this.j).nk,U1(this.j).zm,a.layoutId);this.qs&&this.qs.Mp()}; g.k.executeCommand=function(a){U1(this.j).kb.executeCommand(a.command,a.layoutId)};g.Va("yt.player.Application.create",g.R0.create);g.Va("yt.player.Application.createAlternate",g.R0.create);Iva(Kva(),{jr:[{wA:/Unable to load player module/,weight:20},{wA:/Failed to fetch/,weight:500},{wA:/XHR API fetch failed/,weight:10},{wA:/JSON parsing failed after XHR fetch/,weight:10},{wA:/Retrying OnePlatform request/,weight:10},{wA:/CSN Missing or undefined during playback association/,weight:100}]});var umb=g.Wa("ytcsi.tick");umb&&umb("pe");g.MV("ad",zgb);var Igb=g.Cf&&Hgb();g.vmb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Va("yt.msgs_",g.vmb);g.w(g.m2,g.I);g.m2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.kD)()};this.next()}; g.m2.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.m2.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.kD)()-a;a=this.j;d=qla(a,e/d);if(0==d)a=a.C;else if(1==d)a=a.D;else{e=Je(a.C,a.y1,d);var f=Je(a.y1,a.y2,d);a=Je(a.y2,a.D,d);e=Je(e,f,d);f=Je(f,a,d);a=Je(e,f,d)}a=g.He(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.w(g.n2,g.V);g.k=g.n2.prototype;g.k.bE=function(){return 0