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 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ /* (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 aa,baa,caa,ma,daa,oa,eaa,pa,sa,ta,ua,gaa,haa,Ba,Ca,iaa,jaa,Ea,kaa,Fa,Ga,Ia,laa,Ja,Na,Oa,naa,oaa,Za,paa,ab,db,eb,jb,kb,qaa,ob,raa,rb,tb,vb,Cb,Db,Eb,Fb,zaa,Aaa,Gb,Ib,Hb,Baa,Caa,Daa,Eaa,Faa,Kb,Haa,Iaa,Vb,Jaa,Zb,Kaa,Laa,Xb,Maa,Naa,Oaa,ec,Paa,fc,gc,hc,Qaa,jc,Raa,Taa,Vaa,mc,nc,Yaa,oc,tc,Zaa,$aa,Ac,aba,Hc,Jc,dba,eba,Kc,jba,Rc,gba,iba,Pc,Mc,Vc,Wc,kba,Xc,lba,ad,bd,mba,cd,dd,ed,hd,kd,nd,od,rd,td,yba,wba,xba,Aba,Bba,wd,xd,yd,Eba,zd,Fba,Gba,Hba,Jba,Iba,Dd,Fd,Kba,Kd,Md,Nd,Lba,Nba,Mba,Oba,Pba, Rd,Sd,Ud,Vd,Qba,Rba,Sba,Tba,Yd,Zd,de,Wba,Yba,Xba,ee,ge,Zba,fe,ne,Xd,aca,$ba,se,re,Wd,ue,bca,ve,we,xe,cca,eca,gca,De,Ee,Fe,kca,mca,He,nca,Ge,rca,Be,ica,tca,qca,oca,pca,uca,sca,Ie,lca,Le,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,Lca,Ne,Mca,Qca,Rca,Sca,Xca,Re,Wca,Tca,Zca,ada,cda,Te,eda,Ve,We,Ye,Xe,Ze,$e,af,bf,cf,gda,ef,ff,gf,hf,kf,lf,ida,pf,rf,jda,sf,kda,lda,tf,qf,uf,mda,vf,wf,oda,xf,yf,zf,Cf,qda,rda,sda,Bf,pda,Af,tda,uda,vda,Df,Ef,Ff,wda,zda,xda,Hf,Ada,yda,Lf,Nf,Of,Dda,Cda,Eda,Fda, Pf,Gda,Hda,Rf,Tf,Jda,Vf,Kda,Uf,Yf,Xf,Zf,bg,Qda,Oda,Pda,dg,Rda,Sda,fg,Uda,gg,Wda,Vda,mg,ng,og,hg,lg,kg,rg,Nda,sg,Xda,Zda,tg,ug,cg,eg,vg,$da,aea,wg,xg,yg,zg,Ag,Bg,Cg,Dg,Eg,Fg,bea,Gg,cea,Hg,Ig,Mg,Jg,Ng,Og,Pg,Qg,Rg,dea,fea,Tg,gea,hea,Ug,Vg,Yg,jea,kea,Zg,oea,rea,lea,qea,pea,nea,mea,sea,$g,tea,ch,vea,xea,yea,Aea,dh,Bea,eh,Cea,fh,Dea,gh,hh,Eea,ih,jh,Gea,kh,oh,Jea,ph,Lea,Mea,Iea,Nea,rh,Rea,Sea,Tea,sh,Vea,Wea,lh,Uea,Xea,Qea,xh,yh,zh,Ah,Bh,Ch,Zea,$ea,Dh,Eh,afa,Fh,bfa,Gh,Hh,Ih,Jh,cfa,efa,ffa,hfa,gfa,ifa,Mh, Nh,Oh,kfa,lfa,mfa,Ph,Uh,Vh,Wh,Zh,$h,ai,nfa,bi,pfa,ei,qfa,fi,gi,hi,rfa,sfa,ki,ufa,ji,ii,tfa,vfa,wfa,mi,xfa,li,ni,oi,pi,qi,yfa,zfa,ri,Afa,ti,Bfa,Efa,ui,vi,wi,xi,Bi,Gfa,Ci,Di,Fi,Hfa,Ifa,Ii,Jfa,Ji,Ki,Mfa,Ofa,Qfa,Pfa,Rfa,Mi,Sfa,Pi,Ti,Vi,Wi,Xi,Yi,Zi,Ui,$i,aj,bj,dj,ej,Wfa,fj,gj,hj,Xfa,Yfa,Zfa,$fa,ij,jj,kj,lj,cga,nj,fga,iga,jga,oj,kga,dga,pj,gga,lga,hga,mga,qj,oga,pga,qga,rga,sga,sj,tga,uga,vga,wga,zga,xga,tj,uj,vj,wj,xj,yj,zj,Aj,Bga,Bj,Aga,Cj,Cga,Dga,Ega,Fga,Gj,Hj,Gga,Ij,Jj,Hga,Kj,Lj,Mj,Nj,Oj,Lga,Iga,Rj, Kga,Sj,Jga,Qj,Pj,Uj,Nga,Wj,Vj,bk,ck,ek,Qga,dk,hk,Rga,ik,Oga,Uga,Vga,Wga,lk,mk,nk,Xga,ok,pk,qk,rk,Yga,sk,tk,uk,Zga,$ga,vk,aha,mj,dha,eha,fha,gha,bha,wk,xk,yk,zk,iha,Bk,Ak,jha,kha,lha,Fk,mha,Gk,Lk,nha,Mk,pha,Nk,oha,qha,rha,Ok,Pk,Qk,Rk,Sk,Tk,Uk,sha,Vk,Wk,Xk,tha,vha,wha,Zk,al,$k,cl,dl,el,yha,zha,fl,gl,hl,Bha,Cha,Fha,Dha,Gha,Kha,il,Jha,Hha,jl,kl,Lha,ll,Mha,ml,Oha,Nha,Pha,Qha,ql,rl,Rha,Sha,Tha,sl,tl,Uha,ul,Vha,Wha,Yha,bia,vl,cia,dia,eia,fia,gia,yl,hia,iia,jia,Fl,El,Dl,kia,lia,mia,Gl,Hl,Il,oia,Nl,Ol,Pl, pia,Ql,ria,sia,tia,Rl,Tl,Ul,Zl,$l,cm,via,xia,wia,yia,zia,om,Aia,Bia,pm,Cia,Dia,Eia,Fia,tm,rm,um,vm,wm,Gia,Hia,Iia,xm,ym,zm,Jia,Kia,Lia,Am,Mia,Bm,Cm,Nia,Oia,Pia,Qia,Ria,Sia,Dm,Em,Fm,Hm,Via,Im,Jm,Wia,Uia,Gm,Xia,Km,Lm,Mm,Om,Nm,Yia,Zia,$ia,Pm,bja,Qm,dja,eja,fja,gja,hja,ija,jja,kja,Tm,Um,Vm,mja,lja,nja,oja,Xm,pja,Ym,qja,rja,Zm,$m,an,sja,bn,cn,tja,dn,en,fn,gn,hn,jn,kn,ln,uja,vja,wja,xja,mn,yja,Aja,zja,on,pn,Cja,Bja,Fja,Ija,Hja,qn,Jja,Kja,Lja,Nja,Mja,Oja,rn,Pja,Qja,tn,Rja,Sja,Tja,Uja,un,Vja,vn,Wja,wn,xn, Yja,yn,Zja,zn,An,$ja,aka,Bn,Dn,cka,En,bka,dka,eka,fka,hka,Fn,ika,In,Jn,kka,lka,oka,pka,Kn,Ln,Mn,Nn,On,Pn,Qn,Rn,Sn,Tn,Un,Vn,Wn,tka,ska,uka,wka,vka,yka,rka,xka,qka,Xn,Yn,Aka,Bka,Cka,bo,co,eo,Zn,Eka,fo,zka,Gka,Hka,Fka,go,ho,io,jo,Ika,Dka,Jka,ko,Kka,Lka,Mka,Nka,Oka,Rka,Ska,Tka,Uka,Vka,Yka,$ka,bla,dla,fla,ela,hla,jla,kla,Do,lla,Co,Fo,mla,Go,Io,Jo,nla,ola,pla,Qo,qla,rla,Zo,sla,ula,$o,vla,wla,Cla,yla,cp,dp,ep,gp,hp,Hla,ip,jp,kp,Jla,np,Kla,Lla,op,Nla,qp,rp,sp,tp,Ola,up,wp,xp,yp,zp,Pla,Bp,Cp,Dp,Ep,Fp,Gp,Qla, Rla,Sla,Tla,Ula,Vla,Hp,Wla,Op,Xla,Yla,Zla,Pp,Rp,Sp,Tp,Wp,Xp,Yp,ama,aq,bq,cq,bma,cma,dq,dma,ema,fq,mma,nma,oma,gq,pma,qma,tma,iq,vma,uma,kq,wma,xma,mq,nq,yma,oq,pq,qq,rq,sq,tq,uq,vq,wq,xq,yq,zq,Aq,Bq,zma,Ama,Bma,Dq,Fq,Cma,Nq,Oq,Pq,Qq,Rq,Uq,Gma,Vq,Wq,Xq,Ima,Hma,Dma,$q,Zq,Mma,ar,jr,gr,kr,lr,Oma,Rma,nr,Sma,Tma,Vma,$ma,Wma,Yma,Zma,pr,or,ana,rr,sr,tr,bna,zr,cna,Ar,dna,Cr,ena,Er,Fr,Gr,Hr,Ir,gna,Lr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,ina,Wr,Zr,Yr,kna,ona,mna,nna,pna,qna,sna,tna,rna,vna,bs,cs,fs,wna,xna,es,gs,zna, Ana,Ena,Dna,ks,ls,ms,ns,os,qs,Gna,Hna,Ina,ys,zs,Jna,Kna,Lna,Es,Fs,Gs,Mna,Nna,Pna,Rna,Ks,Sna,Ns,Ls,Qs,Rs,Ts,Tna,$s,at,bt,ct,et,ft,ht,Yna,Zna,jt,$na,aoa,lt,boa,coa,mt,nt,doa,eoa,goa,qt,ioa,joa,ot,koa,loa,noa,moa,vt,hoa,poa,qoa,Ct,At,roa,soa,Dt,Et,toa,uoa,Ht,voa,woa,xoa,yoa,Mt,zoa,Aoa,Boa,Coa,Doa,Eoa,Foa,Goa,Ot,Hoa,Qt,Joa,Koa,Loa,Moa,Noa,Rt,Xt,Poa,Soa,Yt,Toa,Voa,Ooa,Woa,Xoa,Yoa,Qoa,Roa,St,Tt,Wt,Uoa,Vt,Ut,Zoa,$oa,apa,bpa,cpa,dpa,ipa,epa,bu,cu,eu,lpa,opa,npa,du,nu,ppa,uu,qpa,spa,zu,rpa,Bpa,tpa,Apa,Du, Cpa,Fpa,Eu,Cu,Dpa,Epa,Gpa,Gu,Ipa,Jpa,Kpa,Lpa,Mpa,Npa,Opa,Hpa,Qpa,Rpa,Spa,Tpa,Upa,Wpa,Ku,Xpa,Lu,Mu,Nu,Ypa,Zpa,Qu,Ru,aqa,$pa,Su,bqa,dqa,fqa,eqa,gqa,jqa,hqa,ev,dv,kqa,cv,fv,gv,hv,lqa,mqa,jv,oqa,mv,lv,ov,pv,qv,pqa,rv,uv,qqa,wv,yv,zv,rqa,sqa,tqa,Av,Cv,uqa,Dv,Ev,Fv,wqa,Gv,xqa,Iv,Lv,Kv,Jv,Mv,Nv,Aqa,Gqa,Iqa,Fqa,Eqa,Hqa,Qv,Tv,Kqa,Jqa,Yv,Zv,zqa,Tqa,ew,Sqa,Wqa,Rqa,Pv,fw,Xv,cw,Uqa,Vv,Cqa,Bqa,Dqa,Sv,Qqa,jw,dra,cra,kw,fra,gra,hra,mw,ira,jra,kra,mra,nra,pw,pra,qw,qra,rra,tra,ura,tw,vra,xra,uw,yra,vw,ww,Ws,Dra,Ira, Cw,Kra,Nra,Ew,Pra,Qra,Rra,Tra,Sra,Ura,Nw,mpa,Lw,Ow,Mw,Fw,Ww,Vw,Zw,$w,bx,Wra,cx,fx,gx,Xra,Yra,jx,$ra,asa,bsa,csa,dsa,esa,fsa,gsa,hsa,isa,nx,jsa,ox,qx,ksa,lsa,msa,rx,nsa,osa,vx,wx,xx,psa,yx,qsa,Ax,ssa,rsa,Cx,Dx,Ex,Fx,tsa,Gx,Hx,usa,vsa,Ix,Jx,zsa,wsa,ysa,xsa,Kx,Lx,Mx,Asa,Bsa,Csa,Nx,Esa,Hsa,Gsa,Ox,Px,Qx,Rx,Sx,Ux,Vx,Wx,Xx,Yx,Zx,Isa,Jsa,Ksa,Lsa,$x,ay,by,cy,ey,gy,Nsa,Msa,iy,Osa,jy,ky,ly,my,ny,qy,ry,sy,ty,Qsa,uy,vy,wy,Rsa,zy,By,Ssa,Cy,Usa,Vsa,Wsa,Ysa,$sa,Iy,ata,Ky,Jy,cta,dta,eta,Ny,Oy,gta,Qy,Ry,Sy,Ty,ita, Uy,Vy,Wy,jta,Xy,hta,rz,sz,lta,kta,tz,uz,vz,wz,yz,nta,ota,Az,Bz,Dz,Ez,pta,Cz,sta,tta,uta,vta,wta,xta,yta,Gz,Fz,rta,Bta,Hz,Dta,Eta,Mz,Fta,Jz,Kz,Gta,Nz,Ita,Kta,Oz,Pz,Lta,Qz,Nta,Rz,Tta,Rta,Ota,Qta,Pta,Tz,Uz,Vz,Wz,Xz,Yz,Zz,aA,Vta,Yta,Zta,aua,eA,gA,fA,hA,bua,dua,cua,eua,iua,kua,jua,lua,mua,nua,iA,pua,oua,jA,kA,lA,qua,mA,nA,oA,sua,tua,pA,rua,qA,wua,rA,sA,tA,uA,vA,wA,xA,yA,zA,AA,BA,CA,DA,EA,FA,GA,HA,IA,JA,KA,LA,MA,NA,OA,PA,QA,RA,SA,TA,UA,VA,WA,XA,YA,ZA,$A,aB,bB,cB,dB,eB,fB,gB,hB,iB,jB,kB,lB,mB,nB,oB,pB,qB, rB,sB,tB,uB,vB,wB,xB,yB,zB,AB,BB,CB,DB,EB,FB,GB,HB,JB,KB,yua,LB,MB,NB,IB,OB,PB,QB,Aua,SB,Cua,RB,Dua,UB,Eua,WB,TB,XB,YB,ZB,aC,Gua,Hua,Iua,Jua,jC,kC,fC,lC,Lua,Mua,Nua,Oua,Fua,Pua,$B,Qua,Rua,nC,sC,oC,cC,Sua,bC,mC,pC,tC,Uua,dC,eC,rC,qC,Vua,uC,vC,wC,xC,Wua,yC,zC,AC,BC,CC,Yua,Zua,ava,bva,EC,FC,GC,HC,gva,iva,kva,lva,JC,nva,ova,PC,pva,QC,RC,SC,TC,UC,VC,qva,sva,rva,tva,uva,ZC,$C,bD,cD,dD,eD,fD,vva,gD,hD,aD,kD,lD,mD,nD,wva,jD,yva,oD,zva,Ava,pD,Bva,qD,rD,Cva,Dva,sD,Eva,Fva,tD,Gva,Hva,Iva,Jva,Kva,uD,Lva,Mva, vD,wD,xD,Nva,yD,zD,Ova,AD,BD,Pva,CD,Qva,DD,Rva,Sva,ED,FD,Tva,Uva,Vva,Wva,GD,Xva,Yva,Zva,HD,$va,ID,awa,JD,bwa,KD,cwa,OD,dwa,PD,QD,ewa,RD,fwa,SD,TD,gwa,hwa,WD,XD,jwa,YD,kwa,lwa,iwa,mwa,nwa,ZD,$D,aE,bE,qwa,cE,dE,fE,rwa,gE,hE,jE,mE,kE,qE,rE,swa,sE,tE,uE,vE,twa,xE,yE,zE,uwa,AE,BE,CE,oE,DE,EE,FE,vwa,GE,HE,IE,wwa,JE,KE,LE,ME,NE,PE,QE,RE,SE,xwa,ywa,zwa,Awa,XE,TE,YE,ZE,Bwa,Cwa,Dwa,$E,aF,bF,Ewa,Fwa,VE,Gwa,Hwa,cF,Iwa,dF,eF,gF,hF,iF,jF,kF,mF,nF,pF,qF,rF,sF,oF,Kwa,Lwa,uF,vF,wF,Mwa,yF,Owa,zF,AF,BF,CF,EF,Pwa,DF, FF,GF,HF,Qwa,KF,Swa,Twa,LF,MF,Uwa,Vwa,Wwa,NF,Ywa,xF,Xwa,Zwa,PF,OF,$wa,QF,axa,RF,bxa,cxa,dxa,exa,fxa,SF,hxa,gxa,TF,WF,XF,YF,ixa,jxa,kxa,lxa,mxa,ZF,nxa,$F,pxa,bG,cG,rxa,qxa,sxa,txa,uxa,eG,fG,gG,vxa,wxa,xxa,yxa,zxa,Axa,Bxa,Cxa,Dxa,Exa,iG,jG,Fxa,Gxa,kG,lG,Hxa,mG,nG,RG,Ixa,UG,VG,WG,Jxa,XG,Kxa,YG,Lxa,ZG,Mxa,Nxa,$G,Oxa,Pxa,Qxa,aH,bH,cH,dH,eH,Rxa,fH,gH,hH,Sxa,iH,jH,Txa,Uxa,Vxa,kH,Wxa,lH,mH,nH,oH,$ua,Xxa,Yxa,Zxa,$xa,aya,pH,qH,rH,sH,tH,uH,vH,wH,xH,yH,zH,bya,cya,GH,HH,dya,IH,NH,fya,jya,oya,kya,qya,rya,pya,sya, tya,uya,YH,xya,zya,Bya,Cya,Dya,aI,Fya,Gya,Kya,bI,Lya,Hya,cI,dI,Mya,Pya,Oya,Tya,Qya,eI,fI,Yya,iI,bza,aza,$ya,fza,eza,gza,hza,kza,iza,jza,Zya,lza,mza,jI,dza,nza,kI,cza,nI,oI,pza,sza,qza,vza,Dza,Cza,wza,Eza,yza,zza,xza,Iza,Kza,Mza,Oza,Rza,Sza,Uza,Vza,Xza,Wza,bAa,Zza,Yza,cAa,fAa,gAa,hAa,iAa,AI,yya,lAa,jAa,DI,mAa,oAa,GI,rAa,sAa,qAa,HI,tAa,II,JI,WC,KI,wya,MI,NI,OI,uAa,vAa,PI,wAa,xAa,yAa,QI,RI,SI,TI,UI,VI,WI,XI,YI,zAa,AAa,ZI,BAa,$I,VF,aJ,bJ,CAa,cJ,DAa,EAa,Aya,pAa,FAa,dJ,XC,DC,mI,GAa,HAa,fJ,Xya,gI,IAa,BI, CI,rI,qI,pI,tI,Pza,Tza,sI,Uya,dAa,JAa,Fza,Aza,gJ,nAa,$H,LAa,KAa,oza,Qza,MAa,eAa,xI,Vya,Wya,Nya,Nza,Lza,uza,rza,Jya,Iya,Eya,Hza,Bza,$za,Rya,Sya,vI,wI,uI,aAa,Jza,OAa,NAa,hJ,iJ,jJ,kJ,lJ,mJ,sJ,tJ,QAa,wJ,zJ,RAa,TAa,SAa,UAa,VAa,WAa,XAa,YAa,ZAa,BJ,DJ,aBa,EJ,FJ,GJ,HJ,bBa,cBa,IJ,JJ,KJ,dBa,eBa,LJ,NJ,RJ,SJ,TJ,UJ,VJ,WJ,XJ,YJ,ZJ,$J,aK,bK,cK,fBa,gBa,dK,eK,fK,gK,hK,iK,hBa,iBa,jK,nK,lBa,mBa,oK,qK,nBa,oBa,pBa,rK,sK,tK,uK,vK,wK,xK,tBa,zK,yK,uBa,rBa,sBa,vBa,AK,BK,wBa,xBa,CK,yBa,Vs,ABa,zBa,CBa,DBa,FBa,GBa,EBa,HBa,KBa, JK,KK,LBa,MBa,NBa,OBa,LK,MK,PBa,QBa,RBa,SBa,VBa,XBa,YBa,WBa,QK,SK,RK,ZBa,OK,$Ba,aCa,bCa,PK,fCa,gCa,hCa,eCa,dCa,cCa,iCa,jCa,TBa,kCa,lCa,UBa,mCa,qCa,nCa,oCa,pCa,tCa,rCa,sCa,uCa,UK,wCa,vCa,zCa,xCa,ACa,yCa,BCa,CCa,DCa,ECa,FCa,GCa,HCa,ICa,JCa,KCa,LCa,MCa,VK,OCa,PCa,QCa,NCa,RCa,SCa,VCa,XK,ZK,aL,cL,WCa,dL,eL,fL,$Ca,bDa,aDa,dDa,lDa,nL,hL,cDa,ZCa,YCa,XCa,mL,iL,lL,sL,tL,oDa,uL,vL,rL,sDa,pDa,qDa,tDa,wL,xL,vDa,zL,AL,BL,CL,DL,EL,FL,wDa,xDa,GL,HL,JL,zDa,ADa,IL,KL,DDa,EDa,LL,FDa,OL,GDa,PL,RL,HDa,QL,SL,IDa,UL,KDa, LDa,WL,XL,bM,NDa,ZL,cM,eM,ODa,gM,aM,dM,PDa,hM,QDa,iM,RDa,YL,$L,MDa,fM,jM,SDa,TDa,kM,UDa,lM,VDa,mM,nM,pM,oM,qM,rM,WDa,XDa,sM,tM,uM,vM,YDa,wM,xM,ZDa,$Da,yM,zM,AM,aEa,BM,bEa,cEa,qFa,CM,IGa,JGa,NGa,kHa,lHa,DM,EM,FM,GM,mHa,nHa,IM,oHa,JM,KM,pHa,qHa,LM,rHa,sHa,wHa,xHa,tHa,uHa,vHa,NM,OM,PM,QM,yHa,zHa,RM,SM,AHa,TM,UM,CHa,BHa,WM,VM,DHa,EHa,FHa,GHa,XM,HHa,ZM,$M,IHa,KHa,LHa,bN,fN,PHa,jDa,jL,QHa,RHa,SHa,THa,UHa,VHa,gL,cN,WHa,XHa,iN,jN,$Ha,aIa,bIa,kN,fIa,cIa,dIa,hIa,iIa,lN,jIa,gIa,kIa,mN,nN,oN,lIa,mIa,nIa,pN,oIa, qN,pIa,rN,gN,rIa,sIa,qIa,vIa,wN,xIa,kDa,eDa,xN,yN,AN,BN,CN,DN,EN,zN,HN,zIa,KN,AIa,BIa,CIa,DIa,EIa,LN,FIa,MN,HIa,NN,JIa,KIa,IIa,GIa,LIa,MIa,NIa,SN,OIa,PIa,RIa,TN,nDa,VN,SIa,UIa,oL,VIa,WIa,XIa,kL,fDa,hDa,iDa,XN,YN,ZN,YIa,ZIa,$N,$Ia,aO,bO,aJa,cO,dO,bJa,cJa,eO,fO,gO,hO,iO,jO,kO,eJa,dJa,lO,fJa,gJa,iJa,mO,jJa,hJa,EO,CO,FO,HO,IO,kJa,rJa,hC,DO,LO,vJa,PO,xJa,sO,QO,rO,RO,BO,UO,CJa,VO,WO,DJa,EJa,XO,FJa,GJa,HJa,IJa,YO,JJa,OJa,NJa,KJa,MJa,LJa,ZO,PJa,$O,QJa,RJa,TJa,UJa,VJa,$Ja,eP,fP,cKa,gP,hP,dKa,gKa,hKa,iKa,jKa, iP,kKa,mKa,nKa,uP,wKa,rKa,sKa,yKa,vP,zKa,BKa,AKa,CKa,xP,AP,DKa,wP,BP,CP,EKa,HKa,FKa,KKa,HP,UP,ZP,cQ,bQ,gLa,WKa,LP,dQ,RP,eQ,UKa,iLa,hLa,fQ,GP,QP,kLa,lLa,mLa,oLa,jLa,hQ,nLa,pLa,qLa,kQ,lQ,sLa,FP,NP,iQ,ZKa,GKa,cLa,rQ,OP,yQ,$P,AQ,BQ,CQ,ELa,aQ,FLa,EQ,GLa,HLa,PP,FQ,VKa,HQ,xLa,MP,OKa,ILa,MKa,LKa,IKa,IQ,KLa,TLa,SLa,VLa,WLa,NQ,PQ,QQ,OQ,SQ,TQ,XLa,UQ,ZLa,VQ,aMa,YQ,$La,$Q,aR,eMa,bR,hMa,iMa,eR,jMa,lMa,qR,sR,tR,mMa,vR,wR,YR,ZR,$R,aS,nMa,bS,cS,rMa,dS,eS,sMa,tMa,fS,uMa,vMa,wMa,xMa,gS,hS,yMa,AMa,kS,lS,oS,pS,BMa,qS, rS,sS,tS,CMa,DMa,uS,EMa,vS,GMa,FMa,HMa,wS,JMa,IMa,xS,KMa,yS,zS,LMa,NMa,OMa,PMa,QMa,AS,BS,CS,DS,ES,FS,SMa,TMa,UMa,RMa,GS,YMa,WMa,XMa,HS,IS,ZMa,$Ma,aNa,JS,bNa,cNa,KS,LS,dNa,eNa,OS,MS,NS,fNa,PS,gNa,hNa,TS,jNa,iNa,WS,lNa,mNa,kNa,nNa,XS,YS,ZS,oNa,$S,pNa,qNa,cT,rNa,sNa,dT,gT,eT,tNa,hT,iT,jT,lT,mT,vNa,kT,oT,pT,rT,wNa,sT,tT,uT,vT,zNa,yNa,xT,yT,zT,CNa,ANa,BNa,AT,DNa,GNa,BT,ENa,FNa,CT,INa,JNa,FT,LNa,KNa,ET,GT,HT,DT,NNa,IT,JT,KT,ONa,PNa,LT,QNa,MT,NT,RNa,SNa,PT,TNa,WNa,UNa,XNa,YNa,ZNa,$Na,aOa,bOa,$T,aU,bU,XT, gU,hU,iU,jU,lU,eU,fU,kU,mU,dOa,oU,hOa,fOa,nU,iOa,qU,gOa,eOa,rU,kOa,jOa,tU,qOa,vU,tOa,wOa,vOa,uOa,oOa,pOa,lOa,mOa,rOa,wU,xU,yOa,jR,bMa,zOa,zU,AOa,COa,BOa,sOa,EOa,FOa,GOa,BU,HOa,IU,JOa,KOa,LOa,NOa,MOa,OOa,JU,KU,POa,SOa,TOa,MU,ROa,UOa,VOa,QOa,NU,QU,WOa,XOa,PU,YOa,ZOa,$Oa,aPa,cPa,bPa,fPa,gPa,dPa,iPa,jPa,ePa,TU,UU,kPa,mPa,VU,lPa,nPa,pPa,oPa,qPa,WU,rPa,sPa,tPa,XU,YU,vPa,uPa,wPa,xPa,zPa,yPa,APa,BPa,CPa,DPa,EPa,GPa,$U,ZU,aV,HPa,IPa,FPa,NPa,OPa,PPa,SPa,RPa,QPa,TPa,UPa,bV,cV,VPa,WPa,XPa,YPa,$Pa,aQa,dV,fV,ZPa, bQa,cQa,dQa,eQa,fQa,hV,gQa,hQa,kQa,iV,lQa,jQa,jV,kV,mQa,nQa,pQa,rQa,oQa,qQa,mV,sQa,uQa,vQa,xQa,yQa,nV,oV,zQa,tQa,CQa,BQa,AQa,pV,qV,EQa,DQa,rV,sV,FQa,GQa,tV,HQa,IQa,JQa,uV,KQa,vV,LQa,wV,MQa,PQa,QQa,RQa,TQa,UQa,VQa,SQa,XQa,WQa,YQa,aRa,zV,cRa,bRa,ZQa,$Qa,dRa,eRa,AV,BV,fRa,gRa,hRa,iRa,jRa,kRa,mRa,nRa,vRa,qRa,rRa,oRa,xRa,HV,yRa,CRa,KV,DRa,zRa,GV,NV,MV,IV,OV,GRa,IRa,HRa,PV,JV,FV,FRa,LV,ARa,ERa,KRa,CV,QV,LRa,MRa,BRa,RV,SV,NRa,TV,UV,VV,ORa,PRa,RRa,SRa,QRa,WV,TRa,XV,YV,ZV,URa,VRa,WRa,XRa,YRa,$Ra,bSa,aSa,ZRa, $V,cSa,eSa,dSa,aW,bW,fSa,hSa,iSa,cW,gSa,jSa,kSa,dW,lSa,mSa,nSa,oSa,fW,gW,qSa,pSa,rSa,hW,iW,sSa,tSa,vSa,uSa,wSa,xSa,ySa,kW,zSa,ASa,BSa,CSa,DSa,ESa,GSa,HSa,ISa,FSa,JSa,KSa,LSa,MSa,NSa,oW,OSa,pW,RSa,qW,TSa,rW,SSa,VSa,WSa,USa,sW,XSa,YSa,ZSa,$Sa,uW,aTa,bTa,cTa,iTa,nTa,lTa,eTa,xW,kTa,dTa,mTa,pTa,qTa,oTa,zW,sTa,tTa,uTa,wTa,xTa,vTa,yTa,nT,EW,FW,GW,zTa,IW,BTa,CTa,DTa,JW,ETa,FTa,GTa,HTa,ITa,JTa,ATa,KTa,KW,LTa,QTa,RTa,STa,MW,TTa,OW,PW,UTa,QW,VTa,NW,WTa,XTa,dUa,UW,WW,fUa,hUa,gUa,YTa,XW,jUa,kUa,mUa,YW,ZW,nUa, eUa,$W,pUa,oUa,aX,bUa,SW,qUa,rUa,sUa,tUa,uUa,ZTa,aUa,TW,xUa,yUa,AUa,zUa,cX,eX,fX,DUa,EUa,bX,FUa,BUa,CUa,vUa,GUa,HUa,IUa,PUa,QUa,KUa,gX,dX,wUa,JUa,SUa,WUa,kX,XUa,YUa,UUa,mX,ZUa,$Ua,RUa,aVa,VUa,bVa,nX,lX,cVa,eVa,dVa,jX,gVa,qX,hVa,oX,rX,pX,sX,iVa,jVa,mVa,lVa,oVa,pVa,nVa,vX,uX,rVa,sVa,tVa,uVa,vVa,xVa,wVa,yVa,xX,yX,zVa,AVa,EVa,BVa,FVa,GVa,CVa,DVa,HVa,IVa,JVa,zX,KVa,MVa,OVa,RVa,PVa,QVa,FX,JX,TVa,KX,UVa,VVa,WVa,LX,YVa,ZVa,$Va,XVa,cWa,dWa,eWa,MX,NX,fWa,gWa,hWa,qKa,vKa,iWa,kWa,jWa,lWa,PX,QX,mWa,nWa,SX,TX, RX,oWa,pWa,qWa,sWa,wWa,CWa,GWa,XX,HWa,BX,JWa,KWa,LWa,MWa,NWa,OWa,PWa,ZX,QWa,$X,RWa,aY,TWa,UWa,bY,VWa,WWa,XWa,YWa,ZWa,$Wa,aXa,bXa,cXa,dXa,eXa,gXa,cY,iXa,hXa,mXa,eY,fXa,dY,fY,gY,hY,iY,jY,kY,nXa,lY,oXa,pXa,uXa,xXa,yXa,zXa,AXa,pY,qY,wXa,tXa,BXa,nY,qXa,DXa,mY,oY,rXa,sXa,rY,EXa,FXa,vXa,CXa,GXa,IXa,HXa,sY,NXa,LXa,MXa,JXa,OXa,tY,KXa,uY,vY,PXa,QXa,RXa,wY,TXa,UXa,xY,VXa,yY,WXa,XXa,YXa,ZXa,aYa,bYa,kXa,iYa,eYa,$Xa,kYa,lYa,fYa,gYa,dYa,hYa,AY,cYa,jYa,rYa,pYa,oYa,nYa,mYa,BY,sYa,AX,CY,DY,EY,tYa,uYa,vYa,FY,wYa,HX, xYa,GY,DX,EX,LVa,IY,KY,BYa,CYa,MY,JY,HY,NY,zYa,yYa,AYa,OY,DYa,EYa,lXa,CX,PY,FYa,LY,GYa,HYa,IYa,JYa,QY,KYa,LYa,MYa,NYa,aWa,bWa,RY,OYa,PYa,QYa,RYa,SY,UYa,SYa,VYa,XYa,TYa,YYa,$Ya,ZYa,bZa,VY,YY,cZa,fZa,eZa,jZa,hZa,kZa,lZa,gZa,iZa,dZa,mZa,nZa,oZa,ZY,pZa,SWa,qZa,rZa,sZa,$Y,tZa,aZ,uZa,bZ,cZ,vZa,yZa,wZa,xZa,zZa,AZa,BZa,CZa,DZa,EZa,eZ,LZa,KZa,jZ,MZa,JZa,PZa,kZ,QZa,RZa,SZa,VZa,TZa,XZa,YZa,ZZa,$Za,a_a,c_a,d_a,e_a,b_a,mZ,dZ,g_a,WZa,h_a,UZa,nZ,j_a,f_a,lZ,k_a,l_a,o_a,r_a,p_a,q_a,s_a,m_a,n_a,w_a,u_a,x_a,v_a,y_a, z_a,t_a,A_a,B_a,oZ,C_a,D_a,E_a,F_a,I_a,H_a,G_a,pZ,J_a,L_a,M_a,N_a,O_a,tZ,uZ,jXa,P_a,Q_a,T_a,S_a,R_a,U_a,W_a,X_a,V_a,vZ,Z_a,$_a,a0a,g0a,d0a,e0a,f0a,h0a,j0a,qYa,qZ,c0a,b0a,i0a,GX,zY,UY,m0a,l0a,n0a,o0a,p0a,q0a,K_a,XY,WY,r0a,t0a,s0a,u0a,WYa,v0a,k0a,aZa,xZ,yZ,x0a,zZ,y0a,z0a,A0a,B0a,C0a,D0a,F0a,E0a,H0a,I0a,M0a,J0a,L0a,N0a,BZ,R0a,P0a,Q0a,U0a,V0a,W0a,X0a,Y0a,AZ,Z0a,T0a,O0a,CZ,$0a,K0a,a1a,DZ,c1a,d1a,e1a,b1a,EZ,h1a,g1a,k1a,j1a,i1a,l1a,m1a,FZ,n1a,o1a,u1a,r1a,s1a,t1a,v1a,w1a,x1a,z1a,y1a,A1a,B1a,C1a,E1a,G1a,F1a, H1a,D1a,I1a,K1a,M1a,J1a,N1a,O1a,Q1a,P1a,R1a,L1a,JZ,S1a,T1a,U1a,W1a,Y1a,Z1a,a2a,c2a,NZ,e2a,f2a,g2a,h2a,i2a,k2a,j2a,n2a,LUa,OZ,hX,l2a,m2a,o2a,RZ,q2a,p2a,r2a,s2a,t2a,w2a,u2a,z2a,SZ,v2a,A2a,TZ,E2a,VZ,WZ,F2a,UZ,G2a,XZ,J2a,I2a,C2a,D2a,K2a,L2a,M2a,B2a,N2a,YZ,O2a,H2a,d2a,QZ,Q2a,iX,R2a,NUa,MUa,S2a,T2a,U2a,V2a,W2a,X2a,$Z,OUa,Y2a,$2a,a3a,b3a,Z2a,c3a,d3a,a_,e3a,f3a,g3a,h3a,b_,Jwa,i3a,j3a,k3a,d_,n3a,o3a,e_,q3a,r3a,p3a,m3a,f_,c_,l3a,i_,h_,s3a,j_,g_,w3a,z3a,B3a,C3a,E3a,u3a,A3a,F3a,v3a,G3a,H3a,o_,k_,J3a,I3a,m_,L3a, M3a,y3a,x3a,K3a,N3a,D3a,t3a,p_,T3a,Q3a,U3a,R3a,P3a,V3a,O3a,Y3a,q_,Z3a,a4a,WE,c4a,e4a,f4a,g4a,u_,h4a,$Ta,k4a,v_,HZ,l4a,n4a,i4a,BW,n_,o4a,p4a,A_,i_a,d4a,z_,r_,s4a,t4a,v4a,u4a,w4a,m4a,x_,x4a,DW,y4a,jTa,A4a,z4a,Y_a,GZ,C_,rTa,B4a,iUa,C4a,xNa,w_,D4a,gTa,E4a,hTa,F4a,H4a,r4a,b4a,J4a,I4a,y_,s_,K4a,D_,yW,M4a,N4a,VW,p1a,O4a,P4a,Q4a,fTa,B_,sZ,q1a,j4a,R4a,w0a,l_,$4a,W4a,b5a,U4a,c5a,T4a,F_,CW,h5a,d5a,f5a,e5a,j5a,I_,J_,m5a,l5a,k5a,L_,Z4a,P_,o5a,O_,K_,q5a,t5a,u5a,X4a,r5a,S_,v5a,Y4a,n5a,M_,w5a,H_,x5a,y5a,z5a,V_,W_, p5a,X_,Y_,A5a,N_,i5a,B5a,C5a,D5a,s5a,E5a,Q_,F5a,R_,G5a,I5a,G_,Z_,g5a,J5a,K5a,U_,T_,L5a,kVa,M5a,N5a,O5a,$_,a0,R5a,U5a,W5a,Q5a,d6a,e6a,f6a,g6a,h6a,i6a,j6a,l6a,k6a,b0,c0,d0,m6a,n6a,o6a,UF,p6a,e0,q6a,f0,g0,r6a,LI,h0,yI,s6a,EI,kAa,t6a,hI,u6a,IF,JF,eJ,v6a,w6a,x6a,i0,z6a,A6a,j0,l0,m0,D6a,E6a,n0,F6a,B6a,C6a,G6a,H6a,I6a,J6a,K6a,o0,M6a,xva,aG,N6a,O6a,dG,L6a,iD,P6a,Q6a,R6a,p0,tF,T6a,UD,U6a,q0,r0,V6a,s0,W6a,k0,X6a,Y6a,Rwa,t0,u0,Z6a,v0,w0,$6a,x0,a7a,y0,z0,b7a,c7a,oxa,A0,d7a,f7a,e7a,B0,g7a,C0,D0,h7a,i7a,j7a,k7a, l7a,m7a,o7a,F0,n7a,p7a,q7a,r7a,s7a,w7a,t7a,u7a,v7a,y7a,A7a,B7a,C7a,z7a,G0,D7a,E7a,F7a,G7a,H7a,I0,I7a,J0,K0,L0,J7a,K7a,M7a,N7a,O7a,P7a,R7a,Q7a,S7a,M0,N0,V7a,T7a,U7a,O0,X7a,Y7a,P0,Q0,R0,S0,T0,$7a,U0,a8a,b8a,c8a,V0,W0,X0,d8a,e8a,f8a,i8a,h8a,Y0,j8a,k8a,l8a,vya,g8a,n8a,o8a,q8a,aaa,ia;aa=function(a){return function(){return aaa[a].apply(this,arguments)}}; g.da=function(a,b){return aaa[a]=b}; baa=function(a){var b=0;return function(){return b=0;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,fN:e}}return{i:-1,fN:void 0}}; Ja=function(a){return a?a:function(b,c){return laa(this,b,c).i}}; g.La=function(a,b,c){a=a.split(".");c=c||g.Ka;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}; Na=function(a,b){var c=g.Ma("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b}; g.Ma=function(a,b){a=a.split(".");b=b||g.Ka;for(var c=0;c2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}; g.Ua=function(a,b,c){g.Ua=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?naa:oaa;return g.Ua.apply(null,arguments)}; g.Wa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}; g.Xa=function(){return Date.now()}; g.Ya=function(a,b){function c(){} c.prototype=b.prototype;a.Pf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l=0&&a.indexOf(b,c)==c}; g.qb=function(a){return/^[\s\xa0]*$/.test(a)}; rb=function(a){if(!saa.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(taa,"&"));a.indexOf("<")!=-1&&(a=a.replace(uaa,"<"));a.indexOf(">")!=-1&&(a=a.replace(vaa,">"));a.indexOf('"')!=-1&&(a=a.replace(waa,"""));a.indexOf("'")!=-1&&(a=a.replace(xaa,"'"));a.indexOf("\x00")!=-1&&(a=a.replace(yaa,"�"));return a}; g.sb=function(a,b){return a.indexOf(b)!=-1}; tb=function(a,b){return g.sb(a.toLowerCase(),b.toLowerCase())}; g.wb=function(a,b){var c=0;a=ub(String(a)).split(".");b=ub(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&eb?1:0}; g.xb=function(){var a=g.Ka.navigator;return a&&(a=a.userAgent)?a:""}; Cb=function(a){return yb||zb?Bb?Bb.brands.some(function(b){return(b=b.brand)&&g.sb(b,a)}):!1:!1}; Db=function(a){return g.sb(g.xb(),a)}; Eb=function(){return yb||zb?!!Bb&&Bb.brands.length>0:!1}; Fb=function(){return Eb()?!1:Db("Opera")}; zaa=function(){return Eb()?!1:Db("Trident")||Db("MSIE")}; Aaa=function(){return Eb()?Cb("Microsoft Edge"):Db("Edg/")}; Gb=function(){return Db("Firefox")||Db("FxiOS")}; Ib=function(){return Db("Safari")&&!(Hb()||(Eb()?0:Db("Coast"))||Fb()||(Eb()?0:Db("Edge"))||Aaa()||(Eb()?Cb("Opera"):Db("OPR"))||Gb()||Db("Silk")||Db("Android"))}; Hb=function(){return Eb()?Cb("Chromium"):(Db("Chrome")||Db("CriOS"))&&!(Eb()?0:Db("Edge"))||Db("Silk")}; Baa=function(){return Db("Android")&&!(Hb()||Gb()||Fb()||Db("Silk"))}; Caa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]}); return function(c){return b[c.find(function(d){return d in b})]||""}}; Daa=function(a){var b=g.xb();if(a==="Internet Explorer"){if(zaa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),c[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]); b=Caa(c);switch(a){case "Opera":if(Fb())return b(["Version","Opera"]);if(Eb()?Cb("Opera"):Db("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Eb()?0:Db("Edge"))return b(["Edge"]);if(Aaa())return b(["Edg"]);break;case "Chromium":if(Hb())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Gb()||a==="Safari"&&Ib()||a==="Android Browser"&&Baa()||a==="Silk"&&Db("Silk")?(b=c[2])&&b[1]||"":""}; Eaa=function(a){if(Eb()&&a!=="Silk"){var b=Bb.brands.find(function(c){return c.brand===a}); if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Daa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])}; g.Jb=function(a){return a[a.length-1]}; Faa=function(a,b){var c=a.length,d=typeof a==="string"?a.split(""):a;for(--c;c>=0;--c)c in d&&b.call(void 0,d[c],c,a)}; g.Lb=function(a,b,c){b=Kb(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]}; Kb=function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1}; g.Nb=function(a,b){return Gaa(a,b)>=0}; Haa=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0}; g.Qb=function(a,b){b=Gaa(a,b);var c;(c=b>=0)&&g.Ob(a,b);return c}; g.Ob=function(a,b){return Array.prototype.splice.call(a,b,1).length==1}; g.Rb=function(a,b){b=Kb(a,b);b>=0&&g.Ob(a,b)}; Iaa=function(a,b){var c=0;Faa(a,function(d,e){b.call(void 0,d,e,a)&&g.Ob(a,e)&&c++})}; g.Sb=function(a){return Array.prototype.concat.apply([],arguments)}; g.Tb=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);m>0?e=l+1:(f=l,h=!m)}return h?e:-e-1}; g.$b=function(a,b){a.sort(b||Xb)}; Laa=function(a,b){var c=Xb;g.$b(a,function(d,e){return c(b(d),b(e))})}; g.ac=function(a,b){if(!g.Qa(a)||!g.Qa(b)||a.length!=b.length)return!1;for(var c=a.length,d=Maa,e=0;eb?1:a=0})}; Vaa=function(a){return g.lc?"webkit"+a:a.toLowerCase()}; mc=function(a,b){g.nb.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)}; nc=function(a){return!(!a||!a[Waa])}; Yaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Hd=e;this.key=++Xaa;this.removed=this.fJ=!1}; oc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Hd=null}; g.pc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)}; g.sc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}; tc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}; g.uc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}; Zaa=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}; g.vc=function(a){for(var b in a)return b}; $aa=function(a){for(var b in a)return a[b]}; g.wc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}; g.xc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}; g.yc=function(a,b){return a!==null&&b in a}; g.zc=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1}; Ac=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}; aba=function(a,b){return(b=Ac(a,b))&&a[b]}; g.Bc=function(a){for(var b in a)return!1;return!0}; g.bba=function(a){for(var b in a)delete a[b]}; g.Cc=function(a,b,c){return a!==null&&b in a?a[b]:c}; g.Dc=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.Ec=function(a){var b={},c;for(c in a)b[c]=a[c];return b}; g.Fc=function(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Fc(a[c]);return b}; g.Gc=function(a,b){for(var c,d,e=1;e]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.sd(c,Ad)}; Jba=function(a,b,c,d){a=Iba(a);b=b||g.Ka;c=c instanceof cd?dd(c):c||"";return d!==void 0?b.open(a,c,d):b.open(a,c)}; Iba=function(a){a=rd(a);return a!==void 0?a:g.pd.toString()}; g.Bd=function(a,b,c){return Math.min(Math.max(a,b),c)}; g.Cd=function(a,b){a%=b;return a*b<0?a+b:a}; Dd=function(a,b,c){return a+c*(b-a)}; g.Ed=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}; Fd=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; g.Gd=function(a,b){this.width=a;this.height=b}; g.Hd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; g.Id=function(a,b){b=rd(b);b!==void 0&&(a.href=b)}; Kba=function(a){var b="true".toString(),c=[new xd];if(c.length===0)throw Error("");if(c.map(function(d){if(d instanceof xd)d=d.j;else throw Error("");return d}).every(function(d){return"data-loaded".indexOf(d)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); a.setAttribute("data-loaded",b)}; Kd=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);}; g.Ld=function(a,b,c){var d=window;a=rd(a);return a!==void 0?d.open(a,b,c):null}; Md=function(a){var b,c;return(a=(c=(b=a.document).querySelector)==null?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""}; Nd=function(a){var b=Md(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)}; g.Od=function(a,b){a.src=g.jd(b);Nd(a)}; Lba=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b}; Nba=function(a){var b=g.Ma("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.Ka.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Mba(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message; if(c==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Pd[c])c=Pd[c];else{c=String(c);if(!Pd[c]){var f=/function\s+([^\(]+)/m.exec(c);Pd[c]=f?f[1]:"[Anonymous]"}c=Pd[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message, name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}}; Mba=function(a,b){b||(b={});b[Oba(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Oba(a)]&&(c+="\nCaused by: ",a.stack&&a.stack.indexOf(a.toString())==0||(c+=typeof a==="string"?a:a.message+"\n"),c+=Mba(a,b));return c}; Oba=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack}; Pba=function(a,b){return a.parseFromString(g.vd(b),"text/xml")}; g.Qd=function(a){return encodeURIComponent(String(a))}; Rd=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; Sd=function(a){return a=rb(a)}; g.Td=function(a){return a==null?"":String(a)}; Ud=function(a){for(var b=0,c=0;c>>0;return b}; Vd=function(a){var b=Number(a);return b==0&&g.qb(a)?NaN:b}; Qba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; Rba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Sba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; Tba=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c}; Yd=function(a){return a?new Wd(Xd(a)):Uba||(Uba=new Wd)}; Zd=function(a,b){return typeof b==="string"?a.getElementById(b):b}; g.$d=function(a,b){return(b||document).getElementsByTagName(String(a))}; g.be=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ae(document,"*",a,b)}; g.ce=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.ae(c,"*",a,b)[0]||null}return a||null}; g.ae=function(a,b,c,d){a=d||a;b=b&&b!="*"?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,typeof b.split=="function"&&g.Nb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}; de=function(a,b){g.pc(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Vba.hasOwnProperty(d)?a.setAttribute(Vba[d],c):ob(d,"aria-")||ob(d,"data-")?a.setAttribute(d,c):a[d]=c})}; Wba=function(a){a=a.document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new g.Gd(a.clientWidth,a.clientHeight)}; Yba=function(a){var b=Xba(a);a=a.parentWindow||a.defaultView;return new g.Ed(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; Xba=function(a){return a.scrollingElement?a.scrollingElement:g.lc||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement}; ee=function(a){return a?a.parentWindow||a.defaultView:window}; ge=function(a,b,c){var d=arguments,e=document,f=d[1],h=fe(e,String(d[0]));f&&(typeof f==="string"?h.className=f:Array.isArray(f)?h.className=f.join(" "):de(h,f));d.length>2&&Zba(e,h,d,2);return h}; Zba=function(a,b,c,d){function e(l){l&&b.appendChild(typeof l==="string"?a.createTextNode(l):l)} for(;d0)e(f);else{a:{if(f&&typeof f.length=="number"){if(g.Ra(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}g.cc(h?g.Tb(f):f,e)}}}; g.he=function(a){return fe(document,a)}; fe=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)}; g.ie=function(a){return document.createTextNode(String(a))}; g.je=function(a,b){a.appendChild(b)}; g.me=function(a){for(var b;b=a.firstChild;)a.removeChild(b)}; ne=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}; g.oe=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}; g.pe=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}; Xd=function(a){return a.nodeType==9?a:a.ownerDocument||a.document}; g.qe=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.me(a),a.appendChild(Xd(a).createTextNode(String(b)))}; aca=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||$ba(a)):a.hasAttribute("tabindex")&&$ba(a)}; $ba=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768}; se=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return re(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&g.Nb(e.className.split(/\s+/),c))},!0)}; re=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; Wd=function(a){this.j=a||g.Ka.document||document}; ue=function(a){typeof g.Ka.setImmediate!=="function"||g.Ka.Window&&g.Ka.Window.prototype&&g.Ka.Window.prototype.setImmediate==g.Ka.setImmediate?(te||(te=bca()),te(a)):g.Ka.setImmediate(a)}; bca=function(){var a=g.Ka.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!Db("Presto")&&(a=function(){var e=g.he("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=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Ua)(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(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.lX;c.lX=null;e()}}; return function(e){d.next={lX:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ka.setTimeout(e,0)}}; ve=function(a){g.Ka.setTimeout(function(){throw a;},0)}; we=function(){this.B=this.j=null}; xe=function(){this.next=this.scope=this.Hm=null}; g.Ae=function(a,b){ye||cca();ze||(ye(),ze=!0);dca.add(a,b)}; cca=function(){if(g.Ka.Promise&&g.Ka.Promise.resolve){var a=g.Ka.Promise.resolve(void 0);ye=function(){a.then(eca)}}else ye=function(){ue(eca)}}; eca=function(){for(var a;a=dca.remove();){try{a.Hm.call(a.scope)}catch(b){ve(b)}kba(fca,a)}ze=!1}; g.Ce=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Yc)try{var b=this;a.call(void 0,function(c){Be(b,2,c)},function(c){Be(b,3,c)})}catch(c){Be(this,3,c)}}; gca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1}; De=function(a,b,c){var d=hca.get();d.C=a;d.B=b;d.context=c;return d}; Ee=function(a){if(a instanceof g.Ce)return a;var b=new g.Ce(g.Yc);Be(b,2,a);return b}; Fe=function(a){return new g.Ce(function(b,c){c(a)})}; g.jca=function(a,b,c){ica(a,b,c,null)||g.Ae(g.Wa(b,a))}; kca=function(a){return new g.Ce(function(b,c){a.length||b(void 0);for(var d=0,e;d1)));h=h.next)e||(f=h);e&&(c.j==0&&d==1?nca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):oca(c),pca(c,e,3,b)))}a.C=null}else Be(a,3,b)}; Ge=function(a,b){a.B||a.j!=2&&a.j!=3||qca(a);a.D?a.D.next=b:a.B=b;a.D=b}; rca=function(a,b,c,d){var e=De(null,null,null);e.j=new g.Ce(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f; e.B=c?function(l){try{var m=c.call(d,l);m===void 0&&l instanceof Ie?h(l):f(m)}catch(n){h(n)}}:h}); e.j.C=a;Ge(a,e);return e.j}; Be=function(a,b,c){a.j==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,ica(c,a.Zea,a.afa,a)||(a.N=c,a.j=b,a.C=null,qca(a),b!=3||c instanceof Ie||sca(a,c)))}; ica=function(a,b,c,d){if(a instanceof g.Ce)return Ge(a,De(b||g.Yc,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Ra(a))try{var f=a.then;if(typeof f==="function")return tca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1}; tca=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))} function h(m){l||(l=!0,c.call(e,m))} var l=!1;try{b.call(a,h,f)}catch(m){f(m)}}; qca=function(a){a.K||(a.K=!0,g.Ae(a.y8,a))}; oca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b}; pca=function(a,b,c,d){if(c==3&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,uca(b,c,d);else try{b.D?b.C.call(b.context):uca(b,c,d)}catch(e){vca.call(null,e)}kba(hca,b)}; uca=function(a,b,c){b==2?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)}; sca=function(a,b){a.G=!0;g.Ae(function(){a.G&&vca.call(null,b)})}; Ie=function(a){jb.call(this,a)}; lca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c}; g.Je=function(a,b){g.Uc.call(this);this.dj=a||1;this.aI=b||g.Ka;this.gX=(0,g.Ua)(this.Lea,this);this.a_=g.Xa()}; g.Ke=function(a,b,c){if(typeof a==="function")c&&(a=(0,g.Ua)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,g.Ua)(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:g.Ka.setTimeout(a,b||0)}; Le=function(a,b){var c=null;return(new g.Ce(function(d,e){c=g.Ke(function(){d(b)},a); c==-1&&e(Error("Failed to schedule timer."))})).Xk(function(d){g.Ka.clearTimeout(c); throw d;})}; g.Me=function(a){g.O.call(this);this.N=a;this.D=0;this.C=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.Je(this.flushInterval);this.j.listen("tick",this.BN,!1,this);g.P(this,this.j)}; wca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.BN()}; xca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)}; yca=function(a){for(var b=0;b>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e=56320&&h<=57343){f=(f-55296)*1024+ 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}; Rca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")}; Sca=function(a){for(var b=[],c=0;c>6|192:((e&64512)==55296&&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.Pe=function(a,b){b===void 0&&(b=0);Tca();b=Uca[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.Qe=function(a,b){if(Vca&&!b)a=g.Ka.btoa(a);else{for(var c=[],d=0,e=0;e255&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Pe(c,b)}return a}; Xca=function(a){var b=[];Wca(a,function(c){b.push(c)}); return b}; Re=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):g.sb("=.",a[b-1])&&(c=g.sb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Wca(a,function(f){d[e++]=f}); return e!==c?d.subarray(0,e):d}; Wca=function(a,b){function c(m){for(;d>4);h!=64&&(b(f<<4&240|h>>2),l!=64&&b(h<<6&192|l))}}; Tca=function(){if(!Se){Se={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Uca[c]=d;for(var e=0;e>>0;nf=b;of=(a-b)/4294967296>>>0}; rf=function(a){if(a<0){pf(0-a);var b=g.w(qf(nf,of));a=b.next().value;b=b.next().value;nf=a>>>0;of=b>>>0}else pf(a)}; jda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=b*4294967296+(a>>>0);return c?-a:a}; sf=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else af()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+kda(c)+kda(a));return c}; kda=function(a){a=String(a);return"0000000".slice(a.length)+a}; lda=function(){var a=nf,b=of;b&2147483648?af()?a=""+(BigInt(b|0)<>>0)):(b=g.w(qf(a,b)),a=b.next().value,b=b.next().value,a="-"+sf(a,b)):a=sf(a,b);return a}; tf=function(a){if(a.length<16)rf(Number(a));else if(af())a=BigInt(a),nf=Number(a&BigInt(4294967295))>>>0,of=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");of=nf=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)),of*=1E6,nf=nf*1E6+d,nf>=4294967296&&(of+=Math.trunc(nf/4294967296),of>>>=0,nf>>>=0);b&&(b=g.w(qf(nf,of)),a=b.next().value,b=b.next().value,nf=a,of=b)}}; qf=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; uf=function(a){if(a!=null&&typeof a!=="number")throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a}; mda=function(a){return a.displayName||a.name||"unknown type name"}; vf=function(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+Oa(a)+": "+a);return a}; wf=function(a){var b=typeof a;return b==="number"?Number.isFinite(a):b!=="string"?!1:nda.test(a)}; oda=function(a){if(typeof a!=="number")throw $e("int32");if(!Number.isFinite(a))throw $e("int32");return a|0}; xf=function(a){return a==null?a:oda(a)}; yf=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a|0:void 0}; zf=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a>>>0:void 0}; Cf=function(a){if(a!=null){var b=!!b;if(!wf(a))throw $e("int64");a=typeof a==="string"?Af(a):b?pda(a):Bf(a)}return a}; qda=function(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467}; rda=function(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337}; sda=function(a){if(a<0){rf(a);var b=sf(nf,of);a=Number(b);return Number.isSafeInteger(a)?a:b}if(qda(String(a)))return a;rf(a);return of*4294967296+(nf>>>0)}; Bf=function(a){wf(a);a=Math.trunc(a);Number.isSafeInteger(a)||(rf(a),a=jda(nf,of));return a}; pda=function(a){wf(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);rda(b)?a=b:(rf(a),a=lda())}return a}; Af=function(a){wf(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));rda(a)||(tf(a),a=lda());return a}; tda=function(a){if(a==null)return a;if(wf(a)){if(typeof a==="string"){wf(a);var b=Math.trunc(Number(a));Number.isSafeInteger(b)&&b>=0?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),qda(a)||(tf(a),a=sf(nf,of)));return a}if(typeof a==="number")return wf(a),a=Math.trunc(a),a>=0&&Number.isSafeInteger(a)?a:sda(a)}}; uda=function(a){if(a==null||typeof a=="string"||Te(a)||a instanceof Ve)return a}; vda=function(a){if(typeof a!=="string")throw Error();return a}; Df=function(a){if(a!=null&&typeof a!=="string")throw Error();return a}; Ef=function(a){return a==null||typeof a==="string"?a:void 0}; Ff=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+mda(b)+" but got "+(a&&mda(a.constructor)));return a}; wda=function(a,b,c){if(a!=null&&typeof a==="object"&&a.eL===Gf)return a;if(Array.isArray(a)){var d=jf(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&df(a,e);return new b(a)}}; zda=function(a){var b=Hf(a);if(b)return b;if(Math.random()>.01||typeof Proxy!=="function")return a;b=new Proxy(a,{set:function(c,d,e){xda();c[d]=e;return!0}}); yda(a,b);return b}; xda=function(){Ze()}; Hf=function(a){var b;return(b=If)==null?void 0:b.get(a)}; Ada=function(a){var b;return((b=Jf)==null?void 0:b.get(a))||a}; yda=function(a,b){(If||(If=new WeakMap)).set(a,b);(Jf||(Jf=new WeakMap)).set(b,a)}; Lf=function(a,b){Kf=b;a=new a(b);Kf=void 0;return a}; Nf=function(a){switch(typeof a){case "boolean":return Mf||(Mf=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Bda||(Bda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}; Of=function(a,b,c){a==null&&(a=Kf);Kf=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=jf(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(gf(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-16760833|(b&1023)<< 14}}}df(a,d);return a}; Dda=function(a,b){return Cda(b)}; Cda=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(kf(a,void 0,0))return}else{if(Te(a))return Zca(a);if(a instanceof Ve){var b=a.j;return b==null?"":typeof b==="string"?b:a.j=Zca(b)}}}return a}; Eda=function(a,b,c){var d=bf(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b=a.length||b>=c))return a[b]}; Uf=function(a,b,c,d){if(c===-1)return null;var e=b>>14&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(Kda(a,b,e,c)&&Wf!=null){var h;a=(h=Lda)!=null?h:Lda={};h=a[Wf]||0;h>=4||(a[Wf]=h+1,Ze())}return d}return Kda(a,b,e,c)}}; Yf=function(a,b,c){var d=a.xb,e=Qf(d);lf(e);Xf(d,e,b,c);return a}; Xf=function(a,b,c,d,e){var f=b>>14&1023||536870912;if(c>=f||e&&!Mda){var h=b;if(b&256)e=a[a.length-1];else{if(d==null)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c "+a)}; Hg=function(a){if(typeof a==="string")return{buffer:cda(a),Cx:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Cx:!1};if(a.constructor===Uint8Array)return{buffer:a,Cx:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Cx:!1};if(a.constructor===Ve)return{buffer:Xe(a)||new Uint8Array(0),Cx:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Cx:!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"); }; Ig=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)}; Mg=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<32&&(c|=(h&127)>>4);for(d=3;d<32&&h&128;d+=7)h=e[f++],c|=(h&127)<>>0,c>>>0);throw Gg();}; Jg=function(a,b){a.j=b;if(b>a.C)throw cea(a.C,b);}; Ng=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 Gg();Jg(a,c);return e}; Og=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];Jg(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; Pg=function(a){var b=Og(a);return Og(a)*4294967296+(b>>>0)}; Qg=function(a){var b=Og(a),c=Og(a);a=(c>>31)*2+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return d==2047?b?NaN:a*Infinity:d==0?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)}; Rg=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;ca.C)throw cea(b,a.C-c);a.j=d;return c}; fea=function(a,b){if(b==0)return We();var c=dea(a,b);a.RI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?new Uint8Array(0):eea?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?We():new Ve(c,Ue)}; Tg=function(a,b){if(Sg.length){var c=Sg.pop();c.init(a,void 0,void 0,b);a=c}else a=new Ig(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;gea(this,b)}; gea=function(a,b){b=b===void 0?{}:b;a.oP=b.oP===void 0?!1:b.oP}; hea=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=Ng(a.j)>>>0;b=c>>>3;c&=7;if(!(c>=0&&c<=5))throw bea(c,a.C);if(b<1)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0}; Ug=function(a){switch(a.B){case 0:a.B!=0?Ug(a):Rg(a.j);break;case 1:a=a.j;Jg(a,a.j+8);break;case 2:if(a.B!=2)Ug(a);else{var b=Ng(a.j)>>>0;a=a.j;Jg(a,a.j+b)}break;case 5:a=a.j;Jg(a,a.j+4);break;case 3:b=a.D;do{if(!hea(a))throw Error("Unmatched start-group tag: stream EOF");if(a.B==4){if(a.D!=b)throw Error("Unmatched end-group tag");break}Ug(a)}while(1);break;default:throw bea(a.B,a.C);}}; Vg=function(a,b,c){var d=a.j.C,e=Ng(a.j)>>>0,f=a.j.j+e,h=f-d;h<=0&&(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}; Yg=function(a){var b=Ng(a.j)>>>0;a=a.j;var c=dea(a,b);a=a.B;if(iea){var d=a,e;(e=Wg)||(e=Wg=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(Xg===void 0){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Xg=!0}catch(p){Xg=!1}}!Xg&&(Wg=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f=b?Ne():(m=a[f++],l<194||(m&192)!==128?(f--,Ne()):c.push((l&31)<<6|m&63)): l<240?f>=b-1?Ne():(m=a[f++],(m&192)!==128||l===224&&m<160||l===237&&m>=160||((e=a[f++])&192)!==128?(f--,Ne()):c.push((l&15)<<12|(m&63)<<6|e&63)):l<=244?f>=b-2?Ne():(m=a[f++],(m&192)!==128||(l<<28)+(m-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,Ne()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Ne(),c.length>=8192&&(h=Mca(h,c),c.length=0);f=Mca(h,c)}return f}; jea=function(a){var b=Ng(a.j)>>>0;return fea(a.j,b)}; kea=function(a){return a}; Zg=function(a){return a}; oea=function(a,b,c,d){return lea(a,b,c,d,mea,nea)}; rea=function(a,b,c,d){return lea(a,b,c,d,pea,qea)}; lea=function(a,b,c,d,e,f){if(!c.length&&!d)return 0;for(var h=0,l=0,m=0,n=0,p=0,q=c.length-1;q>=0;q--){var r=c[q];d&&q===c.length-1&&r===d||(n++,r!=null&&m++)}if(d)for(var t in d)q=+t,isNaN(q)||(p+=sea(q),l++,q>h&&(h=q));n=e(n,m)+f(l,h,p);t=m;q=l;r=h;for(var u=p,y=c.length-1;y>=0;y--){var A=c[y];if(!(A==null||d&&y===c.length-1&&A===d)){A=y-b;var D=e(A,t)+f(q,r,u);D=1024||(q--,t++,u-=F.length,h=e(d,t)+f(q,r,u),h1?a-1:0)}; pea=function(a,b){return(a>1?a-1:0)+(a-b)*4}; nea=function(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b}; mea=function(a){return 40+4*a}; sea=function(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2}; $g=function(a,b,c){this.xb=Of(a,b,c)}; tea=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Sf(b,32);return Lf(a,b)}; ch=function(a){var b=ah?a.xb:Pf(a.xb,Gda,void 0,void 0,!1);var c=!ah;var d=uea?void 0:a.constructor.lpa;var e=Qf(c?a.xb:b);if(a=b.length){var f=b[a-1],h=gf(f);h?a--:f=void 0;var l=+!!(e&512)-1,m=a-l,n=!!bh&&Mda&&!(e&512),p;e=(p=bh)!=null?p:Zg;e=n?e(m,l,b,f):m;p=(m=n&&m!==e)?Array.prototype.slice.call(b,0,a):b;if(h||m){b:{var q=p;var r=f;h={};n=!1;if(m)for(var t=Math.max(0,e+l);t0;a--){D=a-1;A=p[D];D-=l;if(!(A==null||kf(A,d,D)||ff(A)&&A.size===0))break;F=!0}if(p!==b||q||F){if(!m&&!c)p=Array.prototype.slice.call(p,0,a);else if(F||q||r)p.length=a;r&&p.push(r)}b=p}return b}; vea=function(a,b){this.B=a>>>0;this.j=b>>>0}; xea=function(a){if(!a)return wea||(wea=new vea(0,0));if(!/^\d+$/.test(a))return null;tf(a);return new vea(nf,of)}; yea=function(a,b){this.B=a>>>0;this.j=b>>>0}; Aea=function(a){if(!a)return zea||(zea=new yea(0,0));if(!/^-?\d+$/.test(a))return null;tf(a);return new yea(nf,of)}; dh=function(){this.j=[]}; Bea=function(a,b,c){for(;c>0||b>127;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; eh=function(a,b){for(;b>127;)a.j.push(b&127|128),b>>>=7;a.j.push(b)}; Cea=function(a,b){if(b>=0)eh(a,b);else{for(var c=0;c<9;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; fh=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)}; Dea=function(){this.C=[];this.B=0;this.j=new dh}; gh=function(a,b){b.length!==0&&(a.C.push(b),a.B+=b.length)}; hh=function(a,b,c){eh(a.j,b*8+c)}; Eea=function(a,b,c){c!=null&&(typeof c==="string"&&xea(c),hh(a,b,1),typeof c==="number"?(a=a.j,pf(c),fh(a,nf),fh(a,of)):(c=xea(c),a=a.j,b=c.j,fh(a,c.B),fh(a,b)))}; ih=function(a,b,c){hh(a,b,2);eh(a.j,c.length);gh(a,a.j.end());gh(a,c)}; jh=function(a,b,c,d){this.kN=a;this.lN=b;this.j=c;this.Y3=d}; Gea=function(a){return Array.isArray(a)?a[0]instanceof jh?a:[Fea,a]:[a,void 0]}; kh=function(a,b,c){if(Array.isArray(b)){var d=jf(b);if(d&4)return b;for(var e=0,f=0;e0?void 0:b]}; Iea=function(a){var b=a[qh];if(b)return b;b=rh(a,a[qh]=new ph,Mea,Mea,Lea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(Nf(a[0])===Mf?nh?b=nh:(b=new ph,b.qB=Nf(!0),b=nh=b):b=mh||(mh=new ph),b=a[qh]=b):b.G=!0}return b}; Nea=function(a,b,c){a[b]=c}; rh=function(a,b,c,d,e){e=e===void 0?Nea:e;b.qB=Nf(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],typeof h==="function"&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&typeof h[0]==="number"&&h[0]>0;){for(var m=0;m127;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}}; Eh=function(a){a.woa=!0;return a}; afa=function(a){return function(){var b=new Dea;Qea(this.xb,b,sh(a));gh(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h>>31)&4294967295;q=e[0];var u=e[1],y=e[2],A=e[3],D=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var F=A^u&(y^A);var H=1518500249}else F=u^y^A,H=1859775393;else t<60?(F=u&y|A&(u|y),H=2400959708):(F=u^y^A,H=3395469782);F=((q<<5|q>>>27)&4294967295)+F+D+H+r[t]&4294967295;D=A;A=y;y=(u<<30|u>>>2)&4294967295;u=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+u&4294967295;e[2]= e[2]+y&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+D&4294967295} function c(q,r){if(typeof q==="string"){q=unescape(encodeURIComponent(q));for(var t=[],u=0,y=q.length;u=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var u=24;u>=0;u-=8)q[r++]=e[t]>>u&255;return q} for(var e=[],f=[],h=[],l=[128],m=1;m<64;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,a8:function(){for(var q=d(),r="",t=0;t=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Rd(e):"")}}}; Di=function(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||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]}; Fi=function(a,b,c){if(Array.isArray(b))for(var d=0;d=0&&bc)e=c;d+=b.length+1;return Rd(a.slice(d,e!==-1?e:0))}; Ki=function(a,b){for(var c=a.search(Kfa),d=0,e,f=[];(e=Jfa(a,d,b,c))>=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Lfa,"$1")}; Mfa=function(a,b,c){return Ii(Ki(a,b),b,c)}; g.Li=function(a){g.Uc.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Aa=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Ga=this.Z=this.Fa=!1;this.ra=0;this.qa=null;this.Ma="";this.K=!1}; Ofa=function(a,b,c,d,e,f,h){var l=new g.Li;Nfa.push(l);b&&l.listen("complete",b);l.eG("ready",l.A7);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)}; 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);Mi(a)}; Pfa=function(a){a.Fa||(a.Fa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; Rfa=function(a){if(a.C&&typeof Ni!="undefined")if(a.Aa[1]&&g.Oi(a)==4&&a.getStatus()==2)a.getStatus();else if(a.Z&&g.Oi(a)==4)g.Ke(a.x0,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Pi(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=g.Oi(a)>2?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Pfa(a)}}finally{Mi(a)}}}; Mi=function(a,b){if(a.j){Sfa(a);var c=a.j,d=a.Aa[0]?function(){}:null; a.j=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}; Sfa=function(a){a.qa&&(g.Ka.clearTimeout(a.qa),a.qa=null)}; Pi=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=g.zi(1,String(a.Y)),!a&&g.Ka.self&&g.Ka.self.location&&(a=g.Ka.self.location.protocol.slice(0,-1)),b=!Tfa.test(a?a.toLowerCase():"");c=b}return c}; g.Oi=function(a){return a.j?a.j.readyState:0}; g.Qi=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}}; g.Ri=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ma){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}}; g.Ufa=function(a){var b={};a=(a.j&&g.Oi(a)>=2?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c>1,b),qj(a,a.length>>1)]}; pga=function(a){var b=g.w(oga(a,rj));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)}; qga=function(a,b){var c=oga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.w(c);c=d.next().value;d=d.next().value;for(var e=1;e>>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=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]}; sj=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.j=b===void 0?0:b;this.B=c}; tga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new sj(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new sj(a);b=c.slice(1);b.length===1&&b[0]===""&&(b=[]);c=Number(c[0]);return isNaN(c)||c<0||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new sj(a)):new sj(a,c,b)}; uga=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=tga(a))}; vga=function(a,b,c,d,e){var f=a.index?Xi(a.logger,function(){return rga(a.index,pga(b),c,d,e)},"W"):"u"; a.logger.p_(f)}; wga=function(a,b,c){var d=g.w(a.index?Xi(a.logger,function(){return sga(pga(b),c)},"R"):["u"]),e=d.next().value; d=d.next().value;a.logger.n_(e);return d}; zga=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} a=xga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;h>=12;h-=12,l+=12)c+=tj(a,l),d+=tj(a,l+4),e+=tj(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 yga.toString(e)}; xga=function(a){for(var b=[],c=0;c>7,a.error.code]);d.set(c,4);return d}; Bj=function(a,b,c){uj.call(this,a);this.G=b;this.clientState=c;this.C="S";this.B="q"}; Aga=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.Oe(a)}; Cj=function(a,b,c){g.O.call(this);var d=this;this.logger=a;this.onError=b;this.state=c;this.B=0;this.addOnDisposeCallback(function(){d.j&&(d.j.dispose(),d.j=void 0)})}; Cga=function(a,b){var c;return(c=a.j)==null?void 0:wj(c,function(){return Gj(a,b)},function(d){var e; if(a.j instanceof xj&&((e=b.jk)==null?0:e.JM))try{var f;(f=a.cache)==null||vga(f,Gj(a,b),d,b.jk.rE,a.D)}catch(h){a.reportError(new ej(24,"ELX:write",h))}})}; Dga=function(a,b){var c;if((c=b.jk)!=null&&c.VI)try{var d,e=(d=a.cache)==null?void 0:wga(d,Gj(a,b),b.jk.rE);return e?Xi(a.logger,function(){return g.Pe(e,2)},"a"):void 0}catch(f){a.reportError(new ej(23,"RXO:read",f))}}; Ega=function(a,b){if(!b.S$)throw new ej(29,"SDF:notready");return wj(new Bj(a.logger,a.B,a.state),function(){return Gj(a,b)})}; Fga=function(a,b){b=b instanceof ej?b:new ej(5,"TVD:error",b);a.reportError(b);return wj(new Aj(a.logger,b),function(){return[]})}; Gj=function(a,b){return b.FJ?b.FJ:b.Br?Xi(a.logger,function(){return b.FJ=Aga(b.Br)},"c"):[]}; Hj=function(a){this.xb=Of(a)}; Gga=function(a,b,c){this.B=a;this.j=b;this.C=c}; Ij=function(a,b){b=b===void 0?{}:b;this.Fda=a;this.j=b}; Jj=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e}; Hga=function(a,b,c){c=c===void 0?{}:c;return new Gga(b,a,c)}; Kj=function(a){this.xb=Of(a)}; Lj=function(a){this.xb=Of(a)}; Mj=function(a){this.xb=Of(a)}; Nj=function(a){this.xb=Of(a)}; Oj=function(a,b){this.N=a.baa;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&Iga(this)}; Lga=function(a,b){g.Lc(a.j,"complete",function(){if(Pi(a.j)){var c=g.Qi(a.j);if(b&&a.j.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.Z(c)}catch(h){Pj(a,new ri(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=yfa(a.j.getStatus());Qj(a,Rj(a));c==0?Jga(a,d):Pj(a,new ri(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Qi(a.j);d=Rj(a);if(c){var e=Kga(a,c);c=e.code;var f=e.details; e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;Qj(a,d);Pj(a,new ri(c,f,e))}})}; Iga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){Pj(a,new ri(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Jga(a,d)}if("2"in b)for(b=Kga(a,b["2"]),c=0;c-1&&a.splice(b,1)}; Jga=function(a,b){for(var c=0;c>4&15).toString(16)+(a&15).toString(16)}; dk=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b}; hk=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Ci(a.C,function(b,c){a.add(Rd(b),c)}))}; Rga=function(a,b){hk(a);b=ik(a,b);return a.j.has(b)}; g.Sga=function(a,b,c){a.remove(b);c.length>0&&(a.C=null,a.j.set(ik(a,b),g.Tb(c)),a.B=a.B+c.length)}; ik=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b}; Oga=function(a,b){b&&!a.D&&(hk(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Sga(this,e,c))},a)); a.D=b}; g.Tga=function(a){var b="";g.pc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"}); return b}; g.jk=function(a,b,c){if(g.Bc(c))return a;c=g.Tga(c);if(typeof a==="string")return Ii(a,g.Qd(b),c);g.fk(a,b,c);return a}; g.kk=function(a){g.O.call(this);this.B=a;this.j={}}; Uga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h0&&(b[e]=d)},a); return b}; tha=function(a){a=Xk(a);var b=[];g.pc(a,function(c,d){d in Object.prototype||typeof c!="undefined"&&b.push([d,":",c].join(""))}); return b}; vha=function(a){Uk(a,"od",uha);Uk(a,"opac",Yk).j=!0;Uk(a,"sbeos",Yk).j=!0;Uk(a,"prf",Yk).j=!0;Uk(a,"mwt",Yk).j=!0;Uk(a,"iogeo",Yk)}; wha=function(){this.j=this.Ku=null}; Zk=function(){}; al=function(){if(!$k())throw Error();}; $k=function(){return!(!bl||!bl.performance)}; cl=function(a){return a?a.passive&&xha()?a:a.capture||!1:!1}; dl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,cl(d)),!0):!1}; el=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0}; yha=function(){}; zha=function(){return(yb||zb)&&Bb?Bb.mobile:!fl()&&(Db("iPod")||Db("iPhone")||Db("Android")||Db("IEMobile"))}; fl=function(){return(yb||zb)&&Bb?!Bb.mobile&&(Db("iPad")||Db("Android")||Db("Silk")):Db("iPad")||Db("Android")&&!Db("Mobile")||Db("Silk")}; gl=function(a){try{return!!a&&a.location.href!=null&&Raa(a,"foo")}catch(b){return!1}}; hl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}; Bha=function(){var a=[];hl(Aha,function(b){a.push(b)}); return a}; Cha=function(a){var b,c;return(c=(b=/https?:\/\/[^\/]+/.exec(a))==null?void 0:b[0])!=null?c:""}; Fha=function(){var a=Dha("IFRAME"),b={};g.cc(Eha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)}); return b}; Dha=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())}; Gha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,gl(a)&&(b=a);return b}; Kha=function(a){a=a||il();for(var b=new Hha(g.Ka.location.href,!1),c=null,d=a.length-1,e=d;e>=0;--e){var f=a[e];!c&&Iha.test(f.url)&&(c=f);if(f.url&&!f.UQ){b=f;break}}e=null;f=a.length&&a[d].url;b.depth!=0&&f&&(e=a[d]);return new Jha(b,e,c)}; il=function(){var a=g.Ka,b=[],c=null;do{var d=a;if(gl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Hha(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.Ka;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;ab?c.length:b;return 3997-b-a.C.length-1}; ml=function(a,b){this.j=a;this.depth=b}; Oha=function(){function a(l,m){return l==null?m:l} var b=il(),c=Math.max(b.length-1,0),d=Kha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new ml([f.url,f.UQ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new ml([e.url,2],0));b.url&&b!=f&&h.push(new ml([b.url,0],a(b.depth,c)));d=g.nl(h,function(l,m){return h.slice(0,h.length-m)}); !b.url||(f||e)&&b!=f||(e=Cha(b.url))&&d.push([new ml([e,1],a(b.depth,c))]);d.push([]);return g.nl(d,function(l){return Nha(c,l)})}; Nha=function(a,b){g.ol(b,function(e){return e.depth>=0}); var c=pl(b,function(e,f){return Math.max(e,f.depth)},-1),d=Naa(c+2); d[0]=a;g.cc(b,function(e){return d[e.depth+1]=e.j}); return d}; Pha=function(){var a=a===void 0?Oha():a;return a.map(function(b){return ll(b)})}; Qha=function(a){var b=!1;b=b===void 0?!1:b;bl.google_image_requests||(bl.google_image_requests=[]);var c=Dha("IMG",bl.document);b&&(c.attributionSrc="");c.src=a;bl.google_image_requests.push(c)}; ql=function(a){var b="jh";if(a.jh&&a.hasOwnProperty(b))return a.jh;var c=new a;a.jh=c;a.hasOwnProperty(b);return c}; rl=function(){this.B=new yha;this.j=$k()?new al:new Zk}; Rha=function(){sl();var a=bl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof bl.setInterval==="function"&&typeof bl.clearInterval==="function"&&typeof bl.setTimeout==="function"&&typeof bl.clearTimeout==="function")}; Sha=function(){sl();return Pha()}; Tha=function(){}; sl=function(){var a=ql(Tha);if(!a.j){if(!bl)throw Error("Context has not been set and window is undefined.");a.j=ql(rl)}return a.j}; tl=function(a){this.xb=Of(a)}; Uha=function(a){this.C=a;this.j=-1;this.B=this.D=0}; ul=function(a,b){return function(){var c=g.Da.apply(0,arguments);if(a.j>-1)return b.apply(null,g.x(c));try{return a.j=a.C.j.now(),b.apply(null,g.x(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}}; Vha=function(a,b){this.B=a;this.C=b;this.j=new Uha(a)}; Wha=function(){this.j={}}; Yha=function(){var a=vl().flags,b=Xha;a=a.j[b.key];if(b.valueType==="proto"){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue}; bia=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Lc=new Tk;Uk(this.Lc,"mv",Zha).j=!0;Uk(this.Lc,"omid",Yk);Uk(this.Lc,"epoh",Yk).j=!0;Uk(this.Lc,"epph",Yk).j=!0;Uk(this.Lc,"umt",Yk).j=!0;Uk(this.Lc,"phel",Yk).j=!0;Uk(this.Lc,"phell",Yk).j=!0;Uk(this.Lc,"oseid",$ha).j=!0;var a=this.Lc;a.j.sloi||(a.j.sloi=new Rk);a.j.sloi.j=!0;Uk(this.Lc,"mm",wl);Uk(this.Lc,"ovms",aia).j=!0;Uk(this.Lc,"xdi",Yk).j=!0;Uk(this.Lc,"amp",Yk).j=!0;Uk(this.Lc,"prf",Yk).j=!0;Uk(this.Lc,"gtx",Yk).j=!0;Uk(this.Lc, "mvp_lv",Yk).j=!0;Uk(this.Lc,"ssmol",Yk).j=!0;Uk(this.Lc,"fmd",Yk).j=!0;Uk(this.Lc,"gen204simple",Yk);this.j=new Vha(sl(),this.Lc);this.D=!1;this.flags=new Wha}; vl=function(){return ql(bia)}; cia=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof jl)var e=c;else e=new jl,hl(c,function(h,l){var m=e,n=m.D++;h=kl(l,h);m.j.push(n);m.B[n]=h}); var f=e.De(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(sl(),Qha(f))}catch(h){}}; dia=function(a,b,c){c=c===void 0?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c}; eia=function(){var a=a===void 0?g.Ka:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Xa()}; fia=function(){var a=a===void 0?g.Ka:a;return(a=a.performance)&&a.now?a.now():null}; gia=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; yl=function(){var a=window;this.events=[];this.B=a||g.Ka;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=xl()||(b!=null?b:Math.random()<1)}; hia=function(a){a&&zl&&xl()&&(zl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),zl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; iia=function(){var a=Al;this.j=Bl;this.WX="jserror";this.QT=!0;this.nO=null;this.B=this.pR;this.ud=a===void 0?null:a}; jia=function(a,b,c){var d=Cl;return ul(vl().j.j,function(){try{if(d.ud&&d.ud.j){var e=d.ud.start(a.toString(),3);var f=b();d.ud.end(e)}else f=b()}catch(l){var h=d.QT;try{hia(e),h=d.B(a,new Dl(El(l)),void 0,c)}catch(m){d.pR(217,m)}if(!h)throw l;}return f})()}; Fl=function(a,b,c,d){return ul(vl().j.j,function(){var e=g.Da.apply(0,arguments);return jia(a,function(){return b.apply(c,e)},d)})}; El=function(a){var b=a.toString();a.name&&b.indexOf(a.name)==-1&&(b+=": "+a.name);a.message&&b.indexOf(a.message)==-1&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{a.indexOf(c)==-1&&(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");break a}catch(e){b=c;break a}b=void 0}return b}; Dl=function(a){dia.call(this,Error(a),{message:a})}; kia=function(){bl&&typeof bl.google_measure_js_timing!="undefined"&&(bl.google_measure_js_timing||Al.disable())}; lia=function(a){Cl.nO=function(b){g.cc(a,function(c){c(b)})}}; mia=function(a,b){return jia(a,b)}; Gl=function(a,b){return Fl(a,b)}; Hl=function(a,b,c,d){Cl.pR(a,b,c,d)}; Il=function(){return Date.now()-nia}; oia=function(){var a=vl().C,b=Jl>=0?Il()-Jl:-1,c=Kl?Il()-Ll:-1,d=Ml>=0?Il()-Ml:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];Hl(637,Error(),.001);var f=b;c!=-1&&c1500&&d<4E3?500:h}; Nl=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; Ol=function(a){return a.right-a.left}; Pl=function(a,b,c){b instanceof g.Ed?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,typeof c==="number"&&(a.top+=c,a.bottom+=c));return a}; pia=function(a,b,c){var d=new Nl(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c}; Ql=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}; ria=function(a){var b=a!==a.top,c=a.top===Gha(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),Zaa(qia,function(h){return typeof f[h]==="function"})||(e=1)); return{Ko:f,compatibility:e,sea:d}}; sia=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"}; tia=function(a,b,c){a&&b!==null&&b!=b.top&&(b=b.top);try{return(c===void 0?0:c)?(new g.Gd(b.innerWidth,b.innerHeight)).round():Wba(b||window).round()}catch(d){return new g.Gd(-12245933,-12245933)}}; Rl=function(a,b,c){try{a&&(b=b.top);var d=tia(a,b,c),e=d.height,f=d.width;if(f===-12245933)return new Nl(f,f,f,f);var h=Yba(Yd(b.document).j),l=h.x,m=h.y;return new Nl(m,l+f,m+e,l)}catch(n){return new Nl(-12245933,-12245933,-12245933,-12245933)}}; g.Sl=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; Tl=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.Vl=function(a,b,c){if(typeof b==="string")(b=Ul(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Ul(c,d);f&&(c.style[f]=e)}}; Ul=function(a,b){var c=uia[b];if(!c){var d=Qba(b);c=d;a.style[d]===void 0&&(d=(g.lc?"Webkit":Wl?"Moz":g.Xl?"ms":null)+Sba(d),a.style[d]!==void 0&&(c=d));uia[b]=c}return c}; g.Yl=function(a,b){var c=a.style[Qba(b)];return typeof c!=="undefined"?c:a.style[Ul(a,b)]||""}; Zl=function(a,b){var c=Xd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; $l=function(a,b){return Zl(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; g.bm=function(a,b,c){if(b instanceof g.Ed){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.am(d,!1);a.style.top=g.am(b,!1)}; cm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; via=function(a){var b=Xd(a),c=$l(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=$l(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null}; g.dm=function(a){var b=Xd(a),c=new g.Ed(0,0);if(a==(b?Xd(b):document).documentElement)return c;a=cm(a);b=Yba(Yd(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; xia=function(a,b){var c=new g.Ed(0,0),d=ee(Xd(a));if(!Raa(d,"parent"))return c;do{var e=d==b?g.dm(a):wia(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.em=function(a,b){a=yia(a);b=yia(b);return new g.Ed(a.x-b.x,a.y-b.y)}; wia=function(a){a=cm(a);return new g.Ed(a.left,a.top)}; yia=function(a){if(a.nodeType==1)return wia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ed(a.clientX,a.clientY)}; g.fm=function(a,b,c){if(b instanceof g.Gd)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=g.am(b,!0);a.style.height=g.am(c,!0)}; g.am=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}; g.mm=function(a){var b=zia;if($l(a,"display")!="none")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}; zia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.lc&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=cm(a),new g.Gd(a.right-a.left,a.bottom-a.top)):new g.Gd(b,c)}; g.nm=function(a,b){a.style.display=b?"":"none"}; om=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; Aia=function(a){return new Nl(a.top,a.right,a.bottom,a.left)}; Bia=function(a){var b=a.top||0,c=a.left||0;return new Nl(b,c+(a.width||0),b+(a.height||0),c)}; pm=function(a){return a!=null&&a>=0&&a<=1}; Cia=function(){var a=g.xb();return a?qm("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 tb(a,b)})||tb(a,"OMI/")&&!tb(a,"XiaoMi/")?!0:tb(a,"Presto")&&tb(a,"Linux")&&!tb(a,"X11")&&!tb(a,"Android")&&!tb(a,"Mobi"):!1}; Dia=function(){this.C=!gl(bl.top);this.isMobileDevice=fl()||zha();var a=il();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.Ai(a[a.length-1].url)||"":"";this.j=new Nl(0,0,0,0);this.D=new g.Gd(0,0);this.G=new g.Gd(0,0);this.N=new Nl(0,0,0,0);this.frameOffset=new g.Ed(0,0);this.K=0;this.Z=!1;this.B=!(!bl||!ria(bl).Ko);this.update(bl)}; Eia=function(a,b){b&&b.screen&&(a.D=new g.Gd(b.screen.width,b.screen.height))}; Fia=function(a,b){a:{var c=a.j?new g.Gd(Ol(a.j),a.j.getHeight()):new g.Gd(0,0);b=b===void 0?bl:b;b!==null&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if(f.compatMode=="CSS1Compat"&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth); m>c.height?m>p?(d=m,e=n):(d=p,e=q):m0||a.Z)return!0;a=sl().B.isVisible();var b=el(sm)===0;return a||b}; rm=function(){return ql(Dia)}; um=function(a){this.C=a;this.B=0;this.j=null}; vm=function(a,b,c){this.C=a;this.Ra=c===void 0?"na":c;this.G=[];this.isInitialized=!1;this.D=new pia(-1,!0,this);this.j=this;this.Z=b;this.qa=this.Y=!1;this.Ga="uk";this.Fa=!1;this.K=!0}; wm=function(a,b){g.Nb(a.G,b)||(a.G.push(b),b.xA(a.j),b.nu(a.D),b.Iq()&&(a.Y=!0))}; Gia=function(a){a=a.j;a.BV();a.AV();var b=rm();b.N=Rl(!1,a.C,b.isMobileDevice);Fia(rm(),a.C);a.D.j=a.JY()}; Hia=function(a){a.Y=a.G.length?qm(a.G,function(b){return b.Iq()}):!1}; Iia=function(a){var b=g.Tb(a.G);g.cc(b,function(c){c.nu(a.D)})}; xm=function(a){var b=g.Tb(a.G);g.cc(b,function(c){c.xA(a.j)}); a.j!=a||Iia(a)}; ym=function(a,b,c,d){this.element=a;this.j=new Nl(0,0,0,0);this.D=new Nl(0,0,0,0);this.B=b;this.Lc=c;this.ra=d;this.qa=!1;this.timestamp=-1;this.N=new Ql(b.D,this.element,this.j,new Nl(0,0,0,0),0,0,Il(),0)}; zm=function(a){this.G=!1;this.j=a;this.D=function(){}}; Jia=function(a,b,c){this.C=c===void 0?0:c;this.B=a;this.j=b==null?"":b}; Kia=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; Lia=function(a,b){return a.Cb.C?!1:a.Bb.B?!1:typeof a.jtypeof b.j?!1:a.j0?d[c]-d[c-1]:d[c]})}; Km=function(){this.B=new Em;this.Ra=new Dm;this.ra=this.N=-1;this.Ya=1E3;this.Xa=new Em([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ga=this.Aa=-1}; Lm=function(a,b){return Via(a.B,b===void 0?!0:b)}; Mm=function(a,b,c,d){var e=e===void 0?!1:e;c=Fl(d,c);dl(a,b,c,{capture:e})}; Om=function(a,b){b=Nm(b);return b===0?0:Nm(a)/b}; Nm=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)}; Yia=function(a,b){if(!a||!b)return!1;for(var c=0;a!==null&&c++<100;){if(a===b)return!0;try{if(a=a.parentElement||a){var d=Xd(a),e=d&&ee(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; Zia=function(a,b,c){if(!a||!b)return!1;b=Pl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;gl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!sia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Xd(c))&&b.defaultView&&b.defaultView.frameElement)&&Yia(b,a);var d=a===c;a=!d&&a&&re(a,function(e){return e===c}); return!(b||d||a)}; $ia=function(a,b,c,d){return rm().C?!1:Ol(a)<=0||a.getHeight()<=0?!0:c&&d?mia(208,function(){return Zia(a,b,c)}):!1}; Pm=function(a,b,c){g.O.call(this);this.position=aja.clone();this.bL=this.dK();this.kR=-2;this.timeCreated=Date.now();this.X2=-1;this.lq=b;this.SK=null;this.NE=!1;this.sL=null;this.opacity=-1;this.requestSource=c;this.Sea=!1;this.qR=function(){}; this.v3=function(){}; this.rk=new wha;this.rk.Ku=a;this.rk.j=a;this.wu=!1;this.Rw={AR:null,zR:null};this.w2=!0;this.SH=null;this.JA=this.m$=!1;vl().K++;this.xi=this.ZP();this.S2=-1;this.ag=null;this.hasCompleted=this.j$=!1;this.Lc=new Tk;vha(this.Lc);bja(this);this.requestSource==1?Vk(this.Lc,"od",1):Vk(this.Lc,"od",0)}; bja=function(a){a=a.rk.Ku;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:cja&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Rba()):!!a.getAttribute("data-"+Rba());b&&(rm().B=!0)}; Qm=function(a,b){b!=a.JA&&(a.JA=b,a=rm(),b?a.K++:a.K>0&&a.K--)}; dja=function(a,b){if(a.ag){if(b.getName()===a.ag.getName())return;a.ag.dispose();a.ag=null}b=b.create(a.rk.j,a.Lc,a.Iq());if(b=b!=null&&b.CN()?b:null)a.ag=b}; eja=function(a,b,c){if(!a.SK||a.lq==-1||b.B===-1||a.SK.B===-1)return 0;a=b.B-a.SK.B;return a>c?0:a}; fja=function(a,b,c){if(a.ag){a.ag.Ft();var d=a.ag.N,e=d.D,f=e.j;if(d.K!=null){var h=d.C;a.sL=new g.Ed(h.left-f.left,h.top-f.top)}f=a.EM()?Math.max(d.j,d.G):d.j;h={};e.volume!==null&&(h.volume=e.volume);e=a.yY(d);a.SK=d;a.Ta(f,b,c,!1,h,e,d.Z)}}; gja=function(a){if(a.NE&&a.SH){var b=Wk(a.Lc,"od")==1,c=rm().j,d=a.SH,e=a.ag?a.ag.getName():"ns",f=a.sL,h=new g.Gd(Ol(c),c.getHeight());c=a.EM();a={Aea:e,sL:f,sfa:h,EM:c,Ce:a.xi.Ce,nfa:b};if(b=d.B){b.Ft();e=b.N;f=e.D.j;var l=h=null;e.K!=null&&f&&(h=e.C,h=new g.Ed(h.left-f.left,h.top-f.top),l=new g.Gd(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={Aea:b.getName(),sL:h,sfa:l,EM:c,nfa:!1,Ce:e}}else c=null;c&&Sia(d,a,c)}}; hja=function(a,b,c){b&&(a.qR=b);c&&(a.v3=c)}; g.Rm=function(){}; g.Sm=function(a){return{value:a,done:!1}}; ija=function(){this.D=this.j=this.C=this.B=this.G=0}; jja=function(a){var b={};var c=g.Xa()-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}; kja=function(){Ok.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Tm=function(a){return pm(a.volume)&&a.volume>0}; Um=function(a,b,c,d){c=c===void 0?!0:c;d=d===void 0?function(){return!0}:d; return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return lja(f,b,c)}}; Vm=function(a,b){return function(c){return b(c)?c[a]:void 0}}; mja=function(a){return function(b){for(var c=0;c0?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})}; nja=function(){this.B=this.j=""}; oja=function(){}; Xm=function(a,b){var c={};if(a!==void 0)if(b!=null)for(var d in b){var e=b[d];d in Object.prototype||e!=null&&(c[d]=typeof e==="function"?e(a):a[e])}else g.Gc(c,a);return Cm(Bm(new Am,c))}; pja=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)this.B[b][1]>0&&(this.j[b]=0);this.C=0}; Ym=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];d>0&&a.j[b]==0&&(a.j[b]=1)}; qja=function(a){var b=g.xc(a.B),c=0,d;for(d in a.j)g.Nb(b,d)&&a.j[d]==1&&(c+=a.B[d][1],a.j[d]=2);return c}; rja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(d==1||d==2)b+=a.B[c][1]}return b}; Zm=function(){this.j=this.B=0}; $m=function(){Km.call(this);this.C=new Dm;this.Ka=this.Y=this.Fa=0;this.Z=-1;this.fb=new Dm;this.G=new Dm;this.j=new Em;this.K=this.D=-1;this.qa=new Dm;this.Ya=2E3;this.Ma=new Zm;this.Wa=new Zm;this.Va=new Zm}; an=function(a,b,c){var d=a.Ka;Kl||c||a.Z==-1||(d+=b-a.Z);return d}; sja=function(){this.C=!1}; bn=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0}; cn=function(a,b){bn.call(this,a,b);this.N=[]}; tja=function(){}; dn=function(){}; en=function(a,b,c,d){ym.call(this,a,b,c,d)}; fn=function(a,b,c){ym.call(this,null,a,b,c);this.K=a.isActive();this.G=0}; gn=function(a){return[a.top,a.left,a.bottom,a.right]}; hn=function(a,b,c,d,e,f){f=f===void 0?new dn:f;Pm.call(this,b,c,d);this.GS=e;this.lP=0;this.Ci={};this.Lg=new pja;this.N3={};this.jj="";this.Ya=null;this.Ab=!1;this.j=[];this.ws=f.B();this.K=f.C();this.D=null;this.C=-1;this.Ra=this.Y=void 0;this.ra=this.qa=0;this.Ga=-1;this.fb=this.Xa=!1;this.Fa=this.Z=this.B=this.KC=this.Jb=0;new Em;this.Ma=this.Va=0;this.Wa=-1;this.Ik=0;this.N=g.Yc;this.Aa=[this.dK()];this.Ob=2;this.fz={};this.fz.pause="p";this.fz.resume="r";this.fz.skip="s";this.fz.mute="m";this.fz.unmute= "um";this.fz.exitfullscreen="ef";this.G=null;this.ob=this.yb=!1;this.Kb=Math.floor(Date.now()/1E3-1704067200);this.Ka=0}; jn=function(a){a.hasCompleted=!0;a.Ik!=0&&(a.Ik=3)}; kn=function(a){return a===void 0?a:Number(a)?om(a,3):0}; ln=function(a,b){return a.Aa[b!=null&&bMath.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=c.currentTime!==void 0?c.currentTime:a.qa;var d=c-a.qa,e=0;d>=0?(a.ra+=b,a.Ma+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);d!=0&&(a.ra=0);a.Wa==-1&&d>0&&(a.Wa=Ml>=0?Il()-Ml:-1);a.qa=c;return e}; wja=function(a,b){qm(a.K,function(c){return c.D==b.D})||a.K.push(b)}; xja=function(a){var b=Hm(a.Dj().j,1);return mn(a,b)}; mn=function(a,b,c){return b>=15E3?!0:a.Xa?(c===void 0?0:c)?!0:a.C>0?b>=a.C/2:a.Ga>0?b>=a.Ga:!1:!1}; yja=function(a){var b=om(a.xi.Ce,2),c=a.Lg.C,d=a.xi,e=ln(a),f=kn(e.D),h=kn(e.K),l=kn(d.volume),m=om(e.N,2),n=om(e.ra,2),p=om(d.Ce,2),q=om(e.Aa,2),r=om(e.Ga,2);d=om(d.Uk,2);a=a.au().clone();a.round();e=Lm(e,!1);return{rfa:b,HF:c,fL:f,WK:h,kE:l,gL:m,YK:n,Ce:p,iL:q,ZK:r,Uk:d,position:a,kL:e}}; Aja=function(a,b){zja(a.j,b,function(){return{rfa:0,HF:void 0,fL:-1,WK:-1,kE:-1,gL:-1,YK:-1,Ce:-1,iL:-1,ZK:-1,Uk:-1,position:void 0,kL:[]}}); a.j[b]=yja(a)}; zja=function(a,b,c){for(var d=a.length;d0?1:0;p.atos=Fm(m.j);p.ssb=Fm(m.Xa,!1);p.amtos=Via(m.j,!1);p.uac=a.Jb;p.vpt=m.C.j;n=="nio"&& (p.nio=1,p.avms="nio");p.gmm="4";p.gdr=mn(a,m.C.j,!0)?1:0;p.efpf=a.Ob;if(n=="gsv"||n=="nis")n=a.ag,n.G>0&&(p.nnut=n.G);p.tcm=uja(a);p.nmt=a.Va;p.bt=a.Ma;p.pst=a.Wa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.qa;p.is=a.Lg.C;a.j.length>=1&&(p.i0=a.j[0].HF,p.a0=[a.j[0].kE],p.c0=[a.j[0].Ce],p.ss0=[a.j[0].Uk],n=a.j[0].position,p.p0=n?gn(n):void 0);a.j.length>=2&&(p.i1=a.j[1].HF,p.a1=pn(a.j[1].fL,a.j[1].kE,a.j[1].WK),p.c1=pn(a.j[1].gL,a.j[1].Ce,a.j[1].YK),p.ss1=pn(a.j[1].iL,a.j[1].Uk,a.j[1].ZK),n=a.j[1].position, p.p1=n?gn(n):void 0,p.mtos1=a.j[1].kL);a.j.length>=3&&(p.i2=a.j[2].HF,p.a2=pn(a.j[2].fL,a.j[2].kE,a.j[2].WK),p.c2=pn(a.j[2].gL,a.j[2].Ce,a.j[2].YK),p.ss2=pn(a.j[2].iL,a.j[2].Uk,a.j[2].ZK),n=a.j[2].position,p.p2=n?gn(n):void 0,p.mtos2=a.j[2].kL);a.j.length>=4&&(p.i3=a.j[3].HF,p.a3=pn(a.j[3].fL,a.j[3].kE,a.j[3].WK),p.c3=pn(a.j[3].gL,a.j[3].Ce,a.j[3].YK),p.ss3=pn(a.j[3].iL,a.j[3].Uk,a.j[3].ZK),n=a.j[3].position,p.p3=n?gn(n):void 0,p.mtos3=a.j[3].kL);p.cs=rja(a.Lg);b&&(p.ic=qja(a.Lg),p.dvpt=m.C.B,p.dvs= Jm(m.B,.5),p.dfvs=Jm(m.B,1),p.davs=Jm(m.j,.5),p.dafvs=Jm(m.j,1),c&&(m.C.B=0,Wia(m.B),Wia(m.j)),a.qs()&&(p.dtos=m.Fa,p.dav=m.Y,p.dtoss=a.lP+1,c&&(m.Fa=0,m.Y=0,a.lP++)),p.dat=m.G.B,p.dft=m.qa.B,c&&(m.G.B=0,m.qa.B=0));p.ps=[h.G.width,h.G.height];p.bs=[Ol(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.KC&&(p.vds=a.KC);if(a.K.length>0||a.ws)b=g.Tb(a.K),a.ws&&b.push(a.ws),p.pings=g.nl(b,function(q){return q.toString()}); b=g.nl(g.Wm(a.K,function(q){return q.K()}),function(q){return q.getId()}); Jaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.Z&&(p.vmmk=a.Z);a.Fa&&(p.vmiec=a.Fa);p.avms=a.ag?a.ag.getName():"ns";a.ag&&g.Gc(p,a.ag.Wt());d?(p.c=om(a.xi.Ce,2),p.ss=om(a.xi.Uk,2)):p.tth=Il()-Eja;p.mc=om(m.ra,2);p.nc=om(m.N,2);p.mv=kn(m.K);p.nv=kn(m.D);p.lte=om(a.kR,2);d=ln(a,e);Lm(m);p.qmtos=Lm(d);p.qnc=om(d.N,2);p.qmv=kn(d.K);p.qnv=kn(d.D);p.qas=d.D>0?1:0;p.qi=a.jj;p.avms||(p.avms="geo");p.psm=m.Ma.j;p.psv=m.Ma.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=tha(l.Lc);l.length&&(p.veid=l);a.G&&g.Gc(p, jja(a.G));p.avas=a.RJ();p.vs=a.MY();p.co=Fja(a);return p}; Bja=function(a,b){if(g.Nb(Gja,b))return!0;var c=a.Ci[b];return c!==void 0?(a.Ci[b]=!0,!c):!1}; Fja=function(a){var b=a.Ka.toString(10).padStart(2,"0");b=""+a.Kb+b;a.Ka<99&&a.Ka++;return b}; Ija=function(){this.j={};var a=ee();qn(this,a,document);var b=Hja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)qn(this,c,c.document);qn(this,a.top,a.top.document)}}catch(d){}}; Hja=function(){var a=document.documentElement;try{if(!gl(ee().top))return"2";var b=[],c=ee(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(d){return"2"}}; qn=function(a,b,c){Mm(c,"mousedown",function(){return Jja(a)},301); Mm(b,"scroll",function(){return Kja(a)},302); Mm(c,"touchmove",function(){return Lja(a)},303); Mm(c,"mousemove",function(){return Mja(a)},304); Mm(c,"keydown",function(){return Nja(a)},305)}; Jja=function(a){g.pc(a.j,function(b){b.C>1E5||++b.C})}; Kja=function(a){g.pc(a.j,function(b){b.j>1E5||++b.j})}; Lja=function(a){g.pc(a.j,function(b){b.j>1E5||++b.j})}; Nja=function(a){g.pc(a.j,function(b){b.B>1E5||++b.B})}; Mja=function(a){g.pc(a.j,function(b){b.D>1E5||++b.D})}; Oja=function(){this.j=[];this.B=[]}; rn=function(a,b){return g.Lb(a.j,function(c){return c.jj==b})}; Pja=function(a,b){return b?g.Lb(a.j,function(c){return c.rk.Ku==b}):null}; Qja=function(a,b){return g.Lb(a.B,function(c){return c.Xp()==2&&c.jj==b})}; tn=function(){var a=sn;return a.j.length==0?a.B:a.B.length==0?a.j:g.Sb(a.B,a.j)}; Rja=function(a,b){a=b.Xp()==1?a.j:a.B;var c=Kb(a,function(d){return d==b}); return c!=-1?(a.splice(c,1),b.ag&&b.ag.FI(),b.dispose(),!0):!1}; Sja=function(a){var b=sn;if(Rja(b,a)){switch(a.Xp()){case 0:var c=function(){return null}; case 2:c=function(){return Qja(b,a.jj)}; break;case 1:c=function(){return rn(b,a.jj)}}for(var d=c();d;d=c())Rja(b,d)}}; Tja=function(a){var b=sn;a=g.Wm(a,function(c){return!Pja(b,c.rk.Ku)}); b.j.push.apply(b.j,g.x(a))}; Uja=function(a){var b=[];g.cc(a,function(c){qm(sn.j,function(d){return d.rk.Ku===c.rk.Ku&&d.jj===c.jj})||(sn.j.push(c),b.push(c))})}; un=function(){this.j=this.B=null}; Vja=function(a,b){function c(d,e){b(d,e)} if(a.B==null)return!1;a.j=g.Lb(a.B,function(d){return d!=null&&d.CV()}); a.j&&(a.j.init(c)?Gia(a.j.j):b(a.j.j.lA(),a.j));return a.j!=null}; vn=function(a){a=Wja(a);zm.call(this,a.length?a[a.length-1]:new vm(bl,0));this.C=a;this.B=null}; Wja=function(a){if(!a.length)return[];a=(0,g.Wm)(a,function(c){return c!=null&&c.tD()}); for(var b=1;bc.time?b:c},a[0])}; zn=function(a){a=a===void 0?bl:a;zm.call(this,new vm(a,2))}; An=function(){var a=$ja();vm.call(this,bl.top,a,"geo")}; $ja=function(){vl();var a=rm();return a.C||a.B?0:2}; aka=function(){}; Bn=function(){this.done=!1;this.j={g7:0,LW:0,opa:0,QX:0,GQ:-1,L7:0,K7:0,M7:0,yea:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new um(this)}; Dn=function(){var a=Cn;a.K||(a.K=!0,bka(a,function(){return a.D.apply(a,g.x(g.Da.apply(0,arguments)))}),a.D())}; cka=function(){ql(aka);var a=ql(un);a.j!=null&&a.j.j?Gia(a.j.j):rm().update(bl)}; En=function(a,b,c){if(!a.done&&(a.B.cancel(),b.length!=0)){a.C=null;try{cka();var d=Il();vl().G=d;if(ql(un).j!=null)for(var e=0;e=0?Il()-Jl:-1,l=Il();e.j.GQ==-1&&(h=l);var m=rm(),n=vl(),p=Xk(n.Lc),q=tn();try{if(q.length>0){var r=m.j;r&&(p.bs=[Ol(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);bl.screen&&(p.scs=[bl.screen.width,bl.screen.height])}else p.url=encodeURIComponent(bl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512))); p.tt=h;p.pt=Jl;p.bin=n.B;bl.google_osd_load_pub_page_exp!==void 0&&(p.olpp=bl.google_osd_load_pub_page_exp);p.deb=[1,e.j.g7,e.j.LW,e.j.QX,e.j.GQ,0,e.B.B,e.j.L7,e.j.K7,e.j.M7,e.j.yea,-1].join(";");p.tvt=eka(e,l);m.B&&(p.inapp=1);if(bl!==null&&bl!=bl.top){q.length>0&&(p.iframe_loc=encodeURIComponent(bl.location.href.substring(0,512)));var u=m.N;p.is=[Ol(u),u.getHeight()]}}catch(y){p.error=1}Cn.C=p}r=g.Ec(Cn.C);t=vl().j;Wk(t.C,"prf")==1?(u=new tl,e=t.j,f=0,e.j>-1&&(f=e.C.j.now()-e.j),u=gg(u,1,uf(e.D+ f),0),e=t.j,u=gg(u,5,xf(e.j>-1?e.B+1:e.B),0),u=gg(u,2,Cf(t.B.j.C()),"0"),u=gg(u,3,Cf(t.B.j.B()),"0"),t=gg(u,4,Cf(t.B.j.j()),"0"),u={},t=(u.pf=g.Pe(t.j()),u)):t={};g.Gc(r,t);g.Gc(b,d,c,r,a())}])}; hka=function(){var a=gka||bl;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")}; Fn=function(){var a="youtube.player.web_20240731_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240731_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240731_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240731_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=a)==null?void 0:b.length)==2)return a[1];a="youtube.player.web_20240731_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=a)==null?void 0:c.length)==3?"20"+a[1]+a[2]:null}; ika=function(){return"av.default_js".includes("ima_html5_sdk")?{Lp:"ima",Pp:null}:"av.default_js".includes("ima_native_sdk")?{Lp:"nima",Pp:null}:"av.default_js".includes("admob-native-video-javascript")?{Lp:"an",Pp:null}:"youtube.player.web_20240731_01_RC00".includes("cast_js_sdk")?{Lp:"cast",Pp:Fn()}:"youtube.player.web_20240731_01_RC00".includes("youtube.player.web")?{Lp:"yw",Pp:Fn()}:"youtube.player.web_20240731_01_RC00".includes("outstream_web_client")?{Lp:"out",Pp:Fn()}:"youtube.player.web_20240731_01_RC00".includes("drx_rewarded_web")? {Lp:"r",Pp:Fn()}:"youtube.player.web_20240731_01_RC00".includes("gam_native_web_video")?{Lp:"n",Pp:Fn()}:"youtube.player.web_20240731_01_RC00".includes("admob_interstitial_video")?{Lp:"int",Pp:Fn()}:{Lp:"j",Pp:null}}; In=function(a,b){var c={sv:"963"};Gn!==null&&(c.v=Gn);c.cb=jka;c.nas=sn.j.length;c.msg=a;b!==void 0&&(a=kka(b))&&(c.e=Hn[a]);return c}; Jn=function(a){return ob(a,"custom_metric_viewable")}; kka=function(a){var b=Jn(a)?"custom_metric_viewable":a.toLowerCase();return Ac(nn,function(c){return c==b})}; lka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"}; oka=function(a){try{var b=a.split(",");return b.length>g.xc(mka).length?null:pl(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||nka[d[0]]===void 0||!nka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; pka=function(a,b){if(a.j==void 0)return 0;switch(a.G){case "mtos":return a.B?Im(b.j,a.j):Im(b.B,a.j);case "tos":return a.B?Hm(b.j,a.j):Hm(b.B,a.j)}return 0}; Kn=function(a,b,c,d){bn.call(this,b,d);this.N=a;this.Z=c}; Ln=function(){}; Mn=function(a){bn.call(this,"fully_viewable_audible_half_duration_impression",a)}; Nn=function(a){this.j=a}; On=function(a,b){bn.call(this,a,b)}; Pn=function(a){cn.call(this,"measurable_impression",a)}; Qn=function(){Nn.apply(this,arguments)}; Rn=function(a,b,c){fn.call(this,a,b,c)}; Sn=function(a){a=a===void 0?bl:a;zm.call(this,new vm(a,2))}; Tn=function(a,b,c){fn.call(this,a,b,c)}; Un=function(a){a=a===void 0?bl:a;zm.call(this,new vm(a,2))}; Vn=function(){vm.call(this,bl,2,"mraid");this.Ma=0;this.ra=this.Aa=!1;this.N=null;this.B=ria(this.C);this.D.j=new Nl(0,0,0,0);this.Ka=!1}; Wn=function(a,b,c){a.uv("addEventListener",b,c)}; tka=function(a){vl().D=!!a.uv("isViewable");Wn(a,"viewableChange",qka);a.uv("getState")==="loading"?Wn(a,"ready",rka):ska(a)}; ska=function(a){typeof a.B.Ko.AFMA_LIDAR==="string"?(a.Aa=!0,uka(a)):(a.B.compatibility=3,a.N="nc",a.aj("w"))}; uka=function(a){a.ra=!1;var b=Wk(vl().Lc,"rmmt")==1,c=!!a.uv("isViewable");(b?!c:1)&&sl().setTimeout(Gl(524,function(){a.ra||(vka(a),Hl(540,Error()),a.N="mt",a.aj("w"))}),500); wka(a);Wn(a,a.B.Ko.AFMA_LIDAR,xka)}; wka=function(a){var b=Wk(vl().Lc,"sneio")==1,c=a.B.Ko.AFMA_LIDAR_EXP_1!==void 0,d=a.B.Ko.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.B.Ko.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Ko.AFMA_LIDAR_EXP_1=!b)}; vka=function(a){a.uv("removeEventListener",a.B.Ko.AFMA_LIDAR,xka);a.Aa=!1}; yka=function(a,b){if(a.uv("getState")==="loading")return new g.Gd(-1,-1);b=a.uv(b);if(!b)return new g.Gd(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Gd(-1,-1):new g.Gd(a,b)}; rka=function(){try{var a=ql(Vn);a.uv("removeEventListener","ready",rka);ska(a)}catch(b){Hl(541,b)}}; xka=function(a,b){try{var c=ql(Vn);c.ra=!0;var d=a?new Nl(a.y,a.x+a.width,a.y+a.height,a.x):new Nl(0,0,0,0);var e=Il(),f=tm();var h=new pia(e,f,c);h.j=d;h.volume=b;c.nu(h)}catch(l){Hl(542,l)}}; qka=function(a){var b=vl(),c=ql(Vn);a&&!b.D&&(b.D=!0,c.Ka=!0,c.N&&c.aj("w",!0))}; Xn=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.V9,a.firstquartile=this.Q9,a.midpoint=this.S9,a.thirdquartile=this.W9,a.complete=this.N9,a.error=this.O9,a.pause=this.FS,a.resume=this.N1,a.skip=this.U9,a.viewable_impression=this.Yp,a.mute=this.HC,a.unmute=this.HC,a.fullscreen=this.R9,a.exitfullscreen=this.P9,a.fully_viewable_audible_half_duration_impression=this.Yp,a.measurable_impression=this.Yp,a.abandon=this.FS,a.engagedview=this.Yp,a.impression=this.Yp,a.creativeview= this.Yp,a.progress=this.HC,a.custom_metric_viewable=this.Yp,a.bufferstart=this.FS,a.bufferfinish=this.N1,a.audio_measurable=this.Yp,a.audio_audible=this.Yp,a);a={};this.N=(a.overlay_resize=this.T9,a.abandon=this.vQ,a.close=this.vQ,a.collapse=this.vQ,a.overlay_unmeasurable_impression=function(b){return on(b,"overlay_unmeasurable_impression",tm())},a.overlay_viewable_immediate_impression=function(b){return on(b,"overlay_viewable_immediate_impression",tm())},a.overlay_unviewable_impression=function(b){return on(b, "overlay_unviewable_impression",tm())},a.overlay_viewable_end_of_session_impression=function(b){return on(b,"overlay_viewable_end_of_session_impression",tm())},a); vl().B=3;zka(this)}; Yn=function(a,b,c,d){a=a.jH(null,d,!0,b);a.D=c;Tja([a]);return a}; Aka=function(a,b,c){rha(b);var d=a.j;g.cc(b,function(e){var f=g.nl(e.criteria,function(h){var l=oka(h);if(l==null)h=null;else if(h=new lka,l.visible!=null&&(h.j=l.visible/100),l.audible!=null&&(h.B=l.audible==1),l.time!=null){var m=l.timetype=="mtos"?"mtos":"tos",n=raa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);n=="%"&&(l/=100);h.setTime(l,n,m)}return h}); qm(f,function(h){return h==null})||wja(c,new Kn(e.id,e.event,f,d))})}; Bka=function(){var a=[],b=vl();a.push(ql(An));Wk(b.Lc,"mvp_lv")&&a.push(ql(Vn));b=[new Sn,new Un];b.push(new vn(a));b.push(new zn(bl));return b}; Cka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Il(),c=vl(),d=rm();Jl=b;c.C=79463069;a.B!=="o"&&(gka=Gha(bl));if(Rha()){Cn.j.LW=0;Cn.j.GQ=Il()-b;var e=Bka(),f=ql(un);f.B=e;Vja(f,function(){Zn()})?Cn.done||(dka(),wm(f.j.j,a),Dn()):d.C?Zn():Dn()}else $n=!0}catch(h){throw sn.reset(),h; }}}; bo=function(a){Cn.B.cancel();ao=a;Cn.done=!0}; co=function(a){if(a.B)return a.B;var b=ql(un).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}; eo=function(a,b,c){if(a.j==null)return b.KC|=4,!1;a=Dka(a.j,c,b);b.KC|=a;return a==0}; Zn=function(){var a=[new zn(bl)],b=ql(un);b.B=a;Vja(b,function(){bo("i")})?Cn.done||(dka(),Dn()):bo("i")}; Eka=function(a,b){if(!a.Ab){var c=on(a,"start",tm());c=a.GS.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="963";Gn!==null&&(d.v=Gn);Ci(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)}); b=hka();Ci(b,function(e,f){return d[e]=encodeURIComponent(f)}); b="//pagead2.googlesyndication.com/pagead/gen_204?"+Cm(Bm(new Am,d));Qia(b);a.Ab=!0}}; fo=function(a,b,c){En(Cn,[a],!tm());Aja(a,c);c!=4&&zja(a.Aa,c,a.dK);return on(a,b,tm())}; zka=function(a){fka(function(){var b=Fka();a.B!=null&&(b.sdk=a.B);var c=ql(un);c.j!=null&&(b.avms=c.j.getName());return b})}; Gka=function(a,b,c,d){var e=Pja(sn,c);e!==null&&e.jj!==b&&(a.yJ(e),e=null);e||(b=a.jH(c,Il(),!1,b),sn.B.length==0&&(vl().C=79463069),Uja([b]),e=b,e.D=co(a),d&&(e.Ya=d));return e}; Hka=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))}; Fka=function(){var a=rm(),b={},c={},d={};return Object.assign({},(b.sv="963",b),Gn!==null&&(c.v=Gn,c),(d["if"]=a.C?"1":"0",d.nas=String(sn.j.length),d))}; go=function(a){bn.call(this,"audio_audible",a)}; ho=function(a){cn.call(this,"audio_measurable",a)}; io=function(){Nn.apply(this,arguments)}; jo=function(){}; Ika=function(a){this.j=a}; Dka=function(a,b,c){a=a.B();if(typeof a==="function"){var d={};var e={};d=Object.assign({},Gn!==null&&(d.v=Gn,d),(e.sv="963",e.cb=jka,e.e=Jka(b),e));e=on(c,b,tm());g.Gc(d,e);c.N3[b]=e;d=c.Xp()==2?Pia(d).join("&"):c.GS.j(d).j;try{return a(c.jj,d,b),0}catch(f){return 2}}else return 1}; Jka=function(a){var b=Jn(a)?"custom_metric_viewable":a;a=Ac(nn,function(c){return c==b}); return Hn[a]}; ko=function(){Xn.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Kka=function(a,b,c){c=c.opt_configurable_tracking_events;a.j!=null&&Array.isArray(c)&&Aka(a,c,b)}; Lka=function(a,b,c){var d=rn(sn,b);d||(d=c.opt_nativeTime||-1,d=Yn(a,b,co(a),d),c.opt_osdId&&(d.Ya=c.opt_osdId));return d}; Mka=function(a,b,c){var d=rn(sn,b);d||(d=Yn(a,b,"n",c.opt_nativeTime||-1));return d}; Nka=function(a,b){var c=rn(sn,b);c||(c=Yn(a,b,"h",-1));return c}; Oka=function(a){vl();switch(co(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; Rka=function(a,b,c,d){c=c===void 0?{}:c;var e={};g.Gc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.mK(b,c);c=f?f.GS:a.fP();if(e.opt_bounds)return c.j(In("ol",d));if(d!==void 0)if(kka(d)!==void 0)if($n)a=In("ue",d);else if(Cka(a),ao=="i")a=In("i",d),a["if"]=0;else if(b=a.mK(b,e)){b:{ao=="i"&&(b.wu=!0);f=e.opt_fullscreen;f!==void 0&&Qm(b,!!f);var h;if(f=!rm().B)(f=tb(g.xb(),"CrKey")&&!(tb(g.xb(),"CrKey")&&tb(g.xb(),"SmartSpeaker"))||tb(g.xb(),"PlayStation")||tb(g.xb(),"Roku")||Cia()||tb(g.xb(), "Xbox"))||(f=g.xb(),f=tb(f,"AppleTV")||tb(f,"Apple TV")||tb(f,"CFNetwork")||tb(f,"tvOS")),f||(f=g.xb(),f=tb(f,"sdk_google_atv_x86")||tb(f,"Android TV")),f=!f;f&&(sl(),f=el(sm)===0);if(h=f){switch(b.Xp()){case 1:Eka(b,"pv");break;case 2:a.cT(b)}bo("pv")}f=d.toLowerCase();if(h=!h)h=Wk(vl().Lc,"ssmol")&&f==="loaded"?!1:g.Nb(Pka,f);if(h&&b.Ik==0){ao!="i"&&(Cn.done=!1);h=e!==void 0?e.opt_nativeTime:void 0;Ml=h=typeof h==="number"?h:Il();b.NE=!0;var l=tm();b.Ik=1;b.Ci={};b.Ci.start=!1;b.Ci.firstquartile= !1;b.Ci.midpoint=!1;b.Ci.thirdquartile=!1;b.Ci.complete=!1;b.Ci.resume=!1;b.Ci.pause=!1;b.Ci.skip=!1;b.Ci.mute=!1;b.Ci.unmute=!1;b.Ci.viewable_impression=!1;b.Ci.measurable_impression=!1;b.Ci.fully_viewable_audible_half_duration_impression=!1;b.Ci.fullscreen=!1;b.Ci.exitfullscreen=!1;b.lP=0;l||(b.Dj().Z=h);En(Cn,[b],!l)}(h=b.fz[f])&&Ym(b.Lg,h);Wk(vl().Lc,"fmd")||g.Nb(Qka,f)&&b.ws&&b.ws.B(b,null);switch(b.Xp()){case 1:var m=Jn(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a, b,e,d),Wk(vl().Lc,"fmd")&&g.Nb(Qka,f)&&b.ws&&b.ws.B(b,null),d!==void 0)){e=In(void 0,f);g.Gc(e,d);d=e;break b}d=void 0}b.Ik==3&&a.yJ(b);a=d}else a=In("nf",d);else a=void 0;else $n?a=In("ue"):f?(a=In(),g.Gc(a,Cja(f,!0,!1,!1))):a=In("nf");return typeof a==="string"?c.j():c.j(a)}; Ska=function(a,b){b&&(a.C=b)}; Tka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b}; Uka=function(a,b,c){c=c===void 0?{}:c;a=Rka(ql(ko),b,c,a);return Tka(a)}; Vka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.B=c}}; Yka=function(a){if(g.qb(g.Td(a)))return!1;if(a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.Xj(a)}catch(c){return g.Lb(Wka,function(d){return a.search(d)>0})!=null}return b.K.match(Xka)?!0:g.Lb(Wka,function(c){return a.match(c)!=null})!=null}; g.lo=function(a,b){return a.replace(Zka,function(c,d){try{var e=g.Cc(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!g.qb(g.Td(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})}; $ka=function(a,b){return Object.is(a,b)}; g.no=function(a){var b=mo;mo=a;return b}; bla=function(a){if(a.gj!==void 0){var b=g.oo;g.oo=!0;try{for(var c=g.w(a.gj),d=c.next();!d.done;d=c.next()){var e=d.value;e.yl||g.ala(e)}}finally{g.oo=b}}}; dla=function(){var a;return((a=mo)==null?void 0:a.Lt)!==!1}; g.ala=function(a){a.yl=!0;bla(a);var b;(b=a.xE)==null||b.call(a,a)}; g.po=function(a){a&&(a.mL=0);return g.no(a)}; g.so=function(a,b){g.no(b);if(a&&a.eg!==void 0&&a.Zm!==void 0&&a.By!==void 0){if(g.qo(a))for(b=a.mL;ba.mL;)a.eg.pop(),a.By.pop(),a.Zm.pop()}}; fla=function(a,b,c){ela(a);if(a.gj.length===0&&a.eg!==void 0)for(var d=0;d0}; g.xo=function(a){a.eg!=null||(a.eg=[]);a.Zm!=null||(a.Zm=[]);a.By!=null||(a.By=[])}; ela=function(a){a.gj!=null||(a.gj=[]);a.Hu!=null||(a.Hu=[])}; hla=function(a){function b(){if(g.oo)throw Error("");if(mo!==null){var d=mo.mL++;g.xo(mo);d0?" "+b:b))}}; g.Uo=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.To(a,e)}); else{var c={};Array.prototype.forEach.call(Qo(a),function(e){c[e]=!0}); Array.prototype.forEach.call(b,function(e){c[e]=!0}); b="";for(var d in c)b+=b.length>0?" "+d:d;g.Ro(a,b)}}; g.Vo=function(a,b){a.classList?a.classList.remove(b):g.So(a,b)&&g.Ro(a,Array.prototype.filter.call(Qo(a),function(c){return c!=b}).join(" "))}; g.Wo=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Vo(a,c)}):g.Ro(a,Array.prototype.filter.call(Qo(a),function(c){return!g.Nb(b,c)}).join(" "))}; g.Xo=function(a,b,c){c?g.To(a,b):g.Vo(a,b)}; qla=function(a,b){var c=!g.So(a,b);g.Xo(a,b,c)}; g.Yo=function(){g.Uc.call(this);this.j=0;this.endTime=this.startTime=null}; rla=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"}); g.Vl(a,"transition",b.join(","))}; Zo=function(a,b,c,d,e){g.Yo.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]}; sla=function(a,b,c,d){return new Zo(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})}; ula=function(a){a=ub(a);if(a=="")return null;var b=String(a.slice(0,4)).toLowerCase();if(("url("1||a&&a.split(")"),null;if(a.indexOf("(")>0){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in tla))return null}return a}; $o=function(a,b){a=g.Ka[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null}; vla=function(a){var b=g.Ka.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null}; wla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Xl&&document.documentMode<10){if(!b[c].call)throw Error("IE Clobbering detected");}else if(typeof b[c]!="function")throw Error("Clobbering detected");return b[c].apply(b,d)}; Cla=function(a){if(!a)return xla;var b=document.createElement("div").style;yla(a).forEach(function(c){var d=g.lc&&c in zla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ob(d,"--")||ob(d,"var")||(c=wla(Ala,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=ula(c),c!=null&&wla(Bla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); return new g.sd(b.cssText||"",Ad)}; yla=function(a){g.Qa(a)?a=g.Tb(a):(a=g.xc(a),g.Qb(a,"cssText"));return a}; g.bp=function(a){var b,c=b=0,d=!1;a=a.split(Dla);for(var e=0;e.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"}; g.fp=function(a){if(a instanceof cp||a instanceof dp||a instanceof ep)return a;if(typeof a.next=="function")return new cp(function(){return a}); if(typeof a[Symbol.iterator]=="function")return new cp(function(){return a[Symbol.iterator]()}); if(typeof a.xm=="function")return new cp(function(){return a.xm()}); throw Error("Not an iterator or iterable.");}; cp=function(a){this.B=a}; dp=function(a){this.B=a}; ep=function(a){cp.call(this,function(){return a}); this.C=a}; gp=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l}; hp=function(a,b){if(b==0)return a.j;if(b==1)return a.B;var c=Dd(a.j,a.x1,b),d=Dd(a.x1,a.x2,b);a=Dd(a.x2,a.B,b);c=Dd(c,d,b);d=Dd(d,a,b);return Dd(c,d,b)}; Hla=function(a,b){var c=(b-a.j)/(a.B-a.j);if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,f=0,h=0;h<8;h++){f=hp(a,c);var l=(hp(a,c+1E-6)-f)/1E-6;if(Math.abs(f-b)<1E-6)return c;if(Math.abs(l)<1E-6)break;else f1E-6&&h<8;h++)f=0}; g.lp=function(a){g.O.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a}; Jla=function(a,b,c){g.Ae(function(){a.apply(b,c)})}; g.mp=function(a){this.j=a}; np=function(a){this.j=a}; Kla=function(a){this.data=a}; Lla=function(a){return a===void 0||a instanceof Kla?a:new Kla(a)}; op=function(a){this.j=a}; g.Mla=function(a){var b=a.creation;a=a.expiration;return!!a&&ag.Xa()}; g.pp=function(a){this.j=a}; Nla=function(){}; qp=function(){}; rp=function(a){this.j=a;this.B=null}; sp=function(a){if(a.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.B)!=null?b:a.isAvailable())||ve(Error("Storage mechanism: Storage unavailable"))}; tp=function(){var a=null;try{a=g.Ka.localStorage||null}catch(b){}rp.call(this,a)}; Ola=function(){var a=null;try{a=g.Ka.sessionStorage||null}catch(b){}rp.call(this,a)}; up=function(a,b){this.B=a;this.j=b+"::"}; g.vp=function(a){var b=new tp;return b.isAvailable()?a?new up(b,a):b:null}; wp=function(a,b){this.j=a;this.B=b}; xp=function(a){this.j=[];if(a)a:{if(a instanceof xp){var b=a.Yn();a=a.Nm();if(this.j.length<=0){for(var c=this.j,d=0;d>>6:(f<65536?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}; Bp=function(a){for(var b=a.length;--b>=0;)a[b]=0}; Cp=function(a,b,c,d,e){this.I2=a;this.A8=b;this.z8=c;this.h8=d;this.K$=e;this.jZ=a&&a.length}; Dp=function(a,b){this.RX=a;this.mB=0;this.Cv=b}; Ep=function(a,b){a.vg[a.pending++]=b&255;a.vg[a.pending++]=b>>>8&255}; Fp=function(a,b,c){a.Hi>16-c?(a.zj|=b<>16-a.Hi,a.Hi+=c-16):(a.zj|=b<>>=1,c<<=1;while(--b>0);return c>>>1}; Rla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=Qla(d[e]++,e))}; Sla=function(a){var b;for(b=0;b<286;b++)a.xk[b*2]=0;for(b=0;b<30;b++)a.Vw[b*2]=0;for(b=0;b<19;b++)a.Yi[b*2]=0;a.xk[512]=1;a.Ds=a.BC=0;a.Um=a.matches=0}; Tla=function(a){a.Hi>8?Ep(a,a.zj):a.Hi>0&&(a.vg[a.pending++]=a.zj);a.zj=0;a.Hi=0}; Ula=function(a,b,c){Tla(a);Ep(a,c);Ep(a,~c);Ap.Ez(a.vg,a.window,b,c,a.pending);a.pending+=c}; Vla=function(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];Gp(a,h,c);l=Mp[h];l!==0&&(e-=Np[h],Fp(a,e,l))}}while(d>1;h>=1;h--)Hp(a,c,h);m=f;do h=a.zg[1],a.zg[1]=a.zg[a.Ur--],Hp(a,c,1),d=a.zg[1],a.zg[--a.AA]=h,a.zg[--a.AA]=d,c[m*2]=c[h*2]+c[d*2],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[h*2+1]=c[d*2+1]=m,a.zg[1]=m++,Hp(a,c,1);while(a.Ur>= 2);a.zg[--a.AA]=a.zg[1];h=b.RX;m=b.mB;d=b.Cv.I2;e=b.Cv.jZ;f=b.Cv.A8;var n=b.Cv.z8,p=b.Cv.K$,q,r=0;for(q=0;q<=15;q++)a.yr[q]=0;h[a.zg[a.AA]*2+1]=0;for(b=a.AA+1;b<573;b++){var t=a.zg[b];q=h[h[t*2+1]*2+1]+1;q>p&&(q=p,r++);h[t*2+1]=q;if(!(t>m)){a.yr[q]++;var u=0;t>=n&&(u=f[t-n]);var y=h[t*2];a.Ds+=y*(q+u);e&&(a.BC+=y*(d[t*2+1]+u))}}if(r!==0){do{for(q=p-1;a.yr[q]===0;)q--;a.yr[q]--;a.yr[q+1]+=2;a.yr[p]--;r-=2}while(r>0);for(q=p;q!==0;q--)for(t=a.yr[q];t!==0;)d=a.zg[--b],d>m||(h[d*2+1]!==q&&(a.Ds+=(q-h[d* 2+1])*h[d*2],h[d*2+1]=q),t--)}Rla(c,l,a.yr)}; Xla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;f===0&&(l=138,m=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[(d+1)*2+1];++h>>=1)if(b&1&&a.xk[c*2]!==0)return 0;if(a.xk[18]!==0||a.xk[20]!==0||a.xk[26]!==0)return 1;for(c=32;c<256;c++)if(a.xk[c*2]!==0)return 1;return 0}; Pp=function(a,b,c){a.vg[a.DE+a.Um*2]=b>>>8&255;a.vg[a.DE+a.Um*2+1]=b&255;a.vg[a.cR+a.Um]=c&255;a.Um++;b===0?a.xk[c*2]++:(a.matches++,b--,a.xk[(Ip[c]+256+1)*2]++,a.Vw[(b<256?Lp[b]:Lp[256+(b>>>7)])*2]++);return a.Um===a.fG-1}; Rp=function(a,b){a.msg=Qp[b];return b}; Sp=function(a){for(var b=a.length;--b>=0;)a[b]=0}; Tp=function(a){var b=a.state,c=b.pending;c>a.Ke&&(c=a.Ke);c!==0&&(Ap.Ez(a.output,b.vg,b.VG,c,a.vB),a.vB+=c,b.VG+=c,a.lU+=c,a.Ke-=c,b.pending-=c,b.pending===0&&(b.VG=0))}; Wp=function(a,b){var c=a.wl>=0?a.wl:-1,d=a.Fb-a.wl,e=0;if(a.level>0){a.ye.jP===2&&(a.ye.jP=Zla(a));Op(a,a.PK);Op(a,a.xJ);Xla(a,a.xk,a.PK.mB);Xla(a,a.Vw,a.xJ.mB);Op(a,a.fX);for(e=18;e>=3&&a.Yi[$la[e]*2+1]===0;e--);a.Ds+=3*(e+1)+14;var f=a.Ds+3+7>>>3;var h=a.BC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)Fp(a,b?1:0,3),Ula(a,c,d);else if(a.strategy===4||h===f)Fp(a,2+(b?1:0),3),Wla(a,Up,Vp);else{Fp(a,4+(b?1:0),3);c=a.PK.mB+1;d=a.xJ.mB+1;e+=1;Fp(a,c-257,5);Fp(a,d-1,5);Fp(a,e-4,4);for(f=0;f>>8&255;a.vg[a.pending++]=b&255}; ama=function(a,b){var c=a.y_,d=a.Fb,e=a.Ql,f=a.T_,h=a.Fb>a.uj-262?a.Fb-(a.uj-262):0,l=a.window,m=a.Kv,n=a.Dq,p=a.Fb+258,q=l[d+e-1],r=l[d+e];a.Ql>=a.QY&&(c>>=2);f>a.jc&&(f=a.jc);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.kB=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&--c!== 0);return e<=a.jc?e:a.jc}; aq=function(a){var b=a.uj,c;do{var d=a.S3-a.jc-a.Fb;if(a.Fb>=b+(b-262)){Ap.Ez(a.window,a.window,b,b,0);a.kB-=b;a.Fb-=b;a.wl-=b;var e=c=a.wK;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Dq[--e],a.Dq[e]=f>=b?f-b:0;while(--c);d+=b}if(a.ye.yj===0)break;e=a.ye;c=a.window;f=a.Fb+a.jc;var h=e.yj;h>d&&(h=d);h===0?c=0:(e.yj-=h,Ap.Ez(c,e.input,e.Xx,h,f),e.state.wrap===1?e.Ud=Zp(e.Ud,c,h,f):e.state.wrap===2&&(e.Ud=$p(e.Ud,c,h,f)),e.Xx+=h,e.Zy+=h,c=h);a.jc+=c;if(a.jc+a.Gh>=3)for(d=a.Fb-a.Gh, a.Ee=a.window[d],a.Ee=(a.Ee<=3&&(a.Ee=(a.Ee<=3)if(c=Pp(a,a.Fb-a.kB,a.Ue-3),a.jc-=a.Ue,a.Ue<=a.oR&&a.jc>=3){a.Ue--;do a.Fb++,a.Ee=(a.Ee<=3&&(a.Ee=(a.Ee<4096)&&(a.Ue=2));if(a.Ql>=3&&a.Ue<=a.Ql){d=a.Fb+a.jc-3;c=Pp(a,a.Fb-1-a.l1,a.Ql-3);a.jc-=a.Ql-1;a.Ql-=2;do++a.Fb<=d&&(a.Ee=(a.Ee<=3&&a.Fb>0&&(d=a.Fb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Fb+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&da.jc&&(a.Ue=a.jc)}a.Ue>=3?(c=Pp(a,1,a.Ue-3),a.jc-=a.Ue,a.Fb+=a.Ue,a.Ue=0):(c=Pp(a,0,a.window[a.Fb]),a.jc--,a.Fb++);if(c&&(Wp(a,!1),a.ye.Ke===0))return 1}a.Gh=0;return b=== 4?(Wp(a,!0),a.ye.Ke===0?3:4):a.Um&&(Wp(a,!1),a.ye.Ke===0)?1:2}; cma=function(a,b){for(var c;;){if(a.jc===0&&(aq(a),a.jc===0)){if(b===0)return 1;break}a.Ue=0;c=Pp(a,0,a.window[a.Fb]);a.jc--;a.Fb++;if(c&&(Wp(a,!1),a.ye.Ke===0))return 1}a.Gh=0;return b===4?(Wp(a,!0),a.ye.Ke===0?3:4):a.Um&&(Wp(a,!1),a.ye.Ke===0)?1:2}; dq=function(a,b,c,d,e){this.t9=a;this.J$=b;this.aaa=c;this.I$=d;this.func=e}; dma=function(){this.ye=null;this.status=0;this.vg=null;this.wrap=this.pending=this.VG=this.Ym=0;this.Qd=null;this.oo=0;this.method=8;this.aB=-1;this.Kv=this.DU=this.uj=0;this.window=null;this.S3=0;this.head=this.Dq=null;this.T_=this.QY=this.strategy=this.level=this.oR=this.y_=this.Ql=this.jc=this.kB=this.Fb=this.Qx=this.l1=this.Ue=this.wl=this.Sr=this.Rr=this.zQ=this.wK=this.Ee=0;this.xk=new Ap.gr(1146);this.Vw=new Ap.gr(122);this.Yi=new Ap.gr(78);Sp(this.xk);Sp(this.Vw);Sp(this.Yi);this.fX=this.xJ= this.PK=null;this.yr=new Ap.gr(16);this.zg=new Ap.gr(573);Sp(this.zg);this.AA=this.Ur=0;this.depth=new Ap.gr(573);Sp(this.depth);this.Hi=this.zj=this.Gh=this.matches=this.BC=this.Ds=this.DE=this.Um=this.fG=this.cR=0}; ema=function(a,b){if(!a||!a.state||b>5||b<0)return a?Rp(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.yj!==0||c.status===666&&b!==4)return Rp(a,a.Ke===0?-5:-2);c.ye=a;var d=c.aB;c.aB=b;if(c.status===42)if(c.wrap===2)a.Ud=0,Xp(c,31),Xp(c,139),Xp(c,8),c.Qd?(Xp(c,(c.Qd.text?1:0)+(c.Qd.pu?2:0)+(c.Qd.extra?4:0)+(c.Qd.name?8:0)+(c.Qd.comment?16:0)),Xp(c,c.Qd.time&255),Xp(c,c.Qd.time>>8&255),Xp(c,c.Qd.time>>16&255),Xp(c,c.Qd.time>>24&255),Xp(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Xp(c,c.Qd.os& 255),c.Qd.extra&&c.Qd.extra.length&&(Xp(c,c.Qd.extra.length&255),Xp(c,c.Qd.extra.length>>8&255)),c.Qd.pu&&(a.Ud=$p(a.Ud,c.vg,c.pending,0)),c.oo=0,c.status=69):(Xp(c,0),Xp(c,0),Xp(c,0),Xp(c,0),Xp(c,0),Xp(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Xp(c,3),c.status=113);else{var e=8+(c.DU-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Fb!==0&&(e|=32);c.status=113;Yp(c,e+(31-e%31));c.Fb!==0&&(Yp(c,a.Ud>>>16),Yp(c,a.Ud&65535));a.Ud=1}if(c.status===69)if(c.Qd.extra){for(e= c.pending;c.oo<(c.Qd.extra.length&65535)&&(c.pending!==c.Ym||(c.Qd.pu&&c.pending>e&&(a.Ud=$p(a.Ud,c.vg,c.pending-e,e)),Tp(a),e=c.pending,c.pending!==c.Ym));)Xp(c,c.Qd.extra[c.oo]&255),c.oo++;c.Qd.pu&&c.pending>e&&(a.Ud=$p(a.Ud,c.vg,c.pending-e,e));c.oo===c.Qd.extra.length&&(c.oo=0,c.status=73)}else c.status=73;if(c.status===73)if(c.Qd.name){e=c.pending;do{if(c.pending===c.Ym&&(c.Qd.pu&&c.pending>e&&(a.Ud=$p(a.Ud,c.vg,c.pending-e,e)),Tp(a),e=c.pending,c.pending===c.Ym)){var f=1;break}f=c.ooe&&(a.Ud=$p(a.Ud,c.vg,c.pending-e,e));f===0&&(c.oo=0,c.status=91)}else c.status=91;if(c.status===91)if(c.Qd.comment){e=c.pending;do{if(c.pending===c.Ym&&(c.Qd.pu&&c.pending>e&&(a.Ud=$p(a.Ud,c.vg,c.pending-e,e)),Tp(a),e=c.pending,c.pending===c.Ym)){f=1;break}f=c.ooe&&(a.Ud=$p(a.Ud,c.vg,c.pending-e,e));f===0&&(c.status=103)}else c.status= 103;c.status===103&&(c.Qd.pu?(c.pending+2>c.Ym&&Tp(a),c.pending+2<=c.Ym&&(Xp(c,a.Ud&255),Xp(c,a.Ud>>8&255),a.Ud=0,c.status=113)):c.status=113);if(c.pending!==0){if(Tp(a),a.Ke===0)return c.aB=-1,0}else if(a.yj===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return Rp(a,-5);if(c.status===666&&a.yj!==0)return Rp(a,-5);if(a.yj!==0||c.jc!==0||b!==0&&c.status!==666){d=c.strategy===2?cma(c,b):c.strategy===3?bma(c,b):eq[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.Ke===0&&(c.aB= -1),0;if(d===2&&(b===1?(Fp(c,2,3),Gp(c,256,Up),c.Hi===16?(Ep(c,c.zj),c.zj=0,c.Hi=0):c.Hi>=8&&(c.vg[c.pending++]=c.zj&255,c.zj>>=8,c.Hi-=8)):b!==5&&(Fp(c,0,3),Ula(c,0,0),b===3&&(Sp(c.head),c.jc===0&&(c.Fb=0,c.wl=0,c.Gh=0))),Tp(a),a.Ke===0))return c.aB=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(Xp(c,a.Ud&255),Xp(c,a.Ud>>8&255),Xp(c,a.Ud>>16&255),Xp(c,a.Ud>>24&255),Xp(c,a.Zy&255),Xp(c,a.Zy>>8&255),Xp(c,a.Zy>>16&255),Xp(c,a.Zy>>24&255)):(Yp(c,a.Ud>>>16),Yp(c,a.Ud&65535));Tp(a);c.wrap>0&& (c.wrap=-c.wrap);return c.pending!==0?0:1}; fq=function(a){if(!(this instanceof fq))return new fq(a);a=this.options=Ap.assign({level:-1,method:8,chunkSize:16384,Lv:15,P$:8,strategy:0,to:""},a||{});a.raw&&a.Lv>0?a.Lv=-a.Lv:a.u9&&a.Lv>0&&a.Lv<16&&(a.Lv+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ye=new fma;this.ye.Ke=0;var b=this.ye;var c=a.level,d=a.method,e=a.Lv,f=a.P$,h=a.strategy;if(b){var l=1;c===-1&&(c=6);e<0?(l=0,e=-e):e>15&&(l=2,e-=16);if(f<1||f>9||d!==8||e<8||e>15||c<0||c>9||h<0||h>4)b=Rp(b,-2);else{e===8&&(e=9);var m= new dma;b.state=m;m.ye=b;m.wrap=l;m.Qd=null;m.DU=e;m.uj=1<>=7;f<30;f++)for(Np[f]=h<<7,e=0;e<1<=n.uj&&(b===0&&(Sp(n.head),n.Fb=0,n.wl=0,n.Gh=0),c=new Ap.lz(n.uj),Ap.Ez(c,f,h-n.uj,n.uj,0),f=c,h=n.uj);c=a.yj;d=a.Xx;e=a.input;a.yj=h;a.Xx=0;a.input=f;for(aq(n);n.jc>=3;){f=n.Fb;h=n.jc-2;do n.Ee=(n.Ee<=0&&((((0,c[35])(c[42],c[6],(0,c[48])()),c[72])(c[73],c[38]),c[35])(c[42],c[60],(0,c[61])()),"NaN")||((0,c[28])((0,c[65])(c[6],c[19]),c[72],c[18],c[74]),c[12])(c[74],c[36]),c[31]!== 1&&(c[78]<=-4&&(((((0,c[16])(c[23],c[50]),c[39])(c[74]),c[0])(c[8],c[50]),(0,c[16])(c[66],c[74]),(0,c[35])(c[42],c[6],(0,c[80])()),(0,c[35])(c[42],c[74],(0,c[80])()),c[28])((0,c[28])((0,c[39])(c[74]),c[1],c[-100*Math.pow(3,2)+942],c[60],(0,c[80])()),c[16],c[21],c[74]),/("")/)||(((0,c[28])((0,c[72])(c[11],c[74]),c[65],c[50],c[10])%(0,c[43])((0,c[43])((0,c[80])(c[61],c[78]),c[37],c[8],c[47]),c[6],c[19],c[75]),(0,c[79])(c[74],c[5]),c[86])(c[58],c[60]),(0,c[47])(c[9]),c[47])(c[36],c[59])),c[89]!==7&& (c[33]>-8||((0,c[84])(c[77],c[22],(0,c[71])()),NaN))&&(0,c[12])(c[87],c[22]),(c[53]<=Math.pow(4,5)- -15875-16889||((0,c[54])(c[73],c[60]),0))&&(0,c[Math.pow(1,1)+-29972- -30018])(c[82],c[45]),c[57]!=3&&(((0,c[318%Math.pow(6,5)+-264])(c[22],c[30]),c[84])(c[77],c[59],(0,c[52])()),c[28])(c[32],c[73]),c[154%Math.pow(6,3)-80]!==7&&(0,c[89])((0,c[43])(c[69]),c[10],c[9]),c[17]!=-7&&(c[63]>0||((0,c[73%Math.pow(1,5)+80])(c[81]),((0,c[78])(c[4],c[68]),(0,c[74])(c[21],c[67]),c[36])(c[17],c[42]),0))&&((0,c[84])((0,c[70])(c[82], c[23]),c[66],c[13],c[41]),((0,c[89])(c[5],c[23],(0,c[11])()),c[new Date("1969-12-31T13:46:10.000-10:15")/1E3])(c[51],c[60]))}catch(d){(0,c[84])((0,c[70])(c[69],c[37]),c[70],c[33],c[23]),(0,c[-38305+Math.pow(1,1)- -38343])(c[23])+(0,c[55])(c[5],c[23],(0,c[43])()),((0,c[70])(c[8820+Math.pow(4,1)+-8741],c[23]),c[70])(c[44],c[60]),(0,c[84])((0,c[39])(c[13]),c[70],c[21],c[23])}try{c[36]==4&&((0,c[61])(((0,c[new Date("1969-12-31T16:15:39.000-07:45")/1E3])(c[60]),c[new Date("1969-12-31T17:16:29.000-06:45")/ 1E3])(c[5],c[37],(0,c[24])()),c[84],(0,c[84])((0,c[Math.pow(4,2)+6+13])(c[Math.pow(7,2)- -1272+-1289],c[23]),c[54],c[16],c[9]),c[39],c[23]),1)||((((0,c[28])(c[9],c[57]),(0,c[84])(c[57],c[62]),c[81])(c[83],c[28]),c[66])(c[36]),c[35])(c[54],c[80])}catch(d){(0,c[19])(c[72],c[18])}}catch(d){return"enhanced_except_4JsBn-T-_w8_"+a}return Array.prototype.join.call(b,("",""))}; g.lq=function(a){this.name=a}; xma=function(a){this.xb=Of(a)}; mq=function(a){this.xb=Of(a)}; nq=function(a){this.xb=Of(a)}; yma=function(a){this.xb=Of(a)}; oq=function(a){this.xb=Of(a)}; pq=function(a){this.xb=Of(a)}; qq=function(a){this.xb=Of(a)}; rq=function(a){this.xb=Of(a)}; sq=function(a){this.xb=Of(a)}; tq=function(a){this.xb=Of(a)}; uq=function(a){this.xb=Of(a)}; vq=function(a){this.xb=Of(a)}; wq=function(a){this.xb=Of(a)}; xq=function(a){this.xb=Of(a)}; yq=function(a){this.xb=Of(a)}; zq=function(a){this.xb=Of(a,497)}; Aq=function(a){this.xb=Of(a)}; Bq=function(a){this.xb=Of(a)}; zma=function(a){this.xb=Of(a)}; Ama=function(){return g.Ma("yt.ads.biscotti.lastId_")||""}; Bma=function(a){g.La("yt.ads.biscotti.lastId_",a)}; Dq=function(){var a=arguments;a.length>1?Cq[a[0]]=a[1]:a.length===1&&Object.assign(Cq,a[0])}; g.Eq=function(a,b){return a in Cq?Cq[a]:b}; Fq=function(a){var b=Cq.EXPERIMENT_FLAGS;return b?b[a]:void 0}; Cma=function(a){Gq.forEach(function(b){return b(a)})}; g.Iq=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Hq(b)}}:a}; g.Hq=function(a){var b=g.Ma("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.Eq("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),Dq("ERRORS",b));Cma(a)}; Nq=function(a,b,c,d,e){var f=g.Ma("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.Eq("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),Dq("ERRORS",f))}; Oq=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}}; g.Tq=function(a,b){return Gma(a,b||{},!0)}; Uq=function(a,b){return Gma(a,b||{},!1)}; Gma=function(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Qq(e[1]||"");for(var f in b)if(c||!g.yc(e,f))e[f]=b[f];return g.Hi(a,e)+d}; Vq=function(a){if(!b)var b=window.location.href;var c=g.zi(1,a),d=g.Ai(a);c&&d?(a=a.match(yi),b=b.match(yi),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Ai(b)===d&&(Number(g.zi(4,b))||null)===(Number(g.zi(4,a))||null):!0;return a}; Wq=function(a){a||(a=document.location.href);a=g.zi(1,a);return a!==null&&a==="https"}; Xq=function(a){a=Hma(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Ima=function(a){a=Hma(a);return a===null?!1:a[1]==="google"?!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1}; Hma=function(a){a=g.Ai(a);return a!==null?a.split(".").reverse():null}; Dma=function(a){return a&&a.match(Jma)?a:Rd(a)}; $q=function(a){var b=Yq;a=a===void 0?Ama():a;var c=Object,d=c.assign,e=Zq(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(D){}try{var m=f.outerWidth;var n=f.outerHeight}catch(D){}try{var p=f.innerWidth;var q=f.innerHeight}catch(D){}try{var r=f.screenLeft;var t=f.screenTop}catch(D){}try{p=f.innerWidth,q=f.innerHeight}catch(D){}try{var u=f.screen.availWidth;var y=f.screen.availTop}catch(D){}f=[r,t,h,l,u,y,m,n,p,q];h=tia(!1,b.j.top);l={};var A=A===void 0?g.Ka:A;m=new Fo;"SVGElement"in A&&"createElementNS"in A.document&&m.set(0);n=Fha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);A.crypto&&A.crypto.subtle&&m.set(3);"TextDecoder"in A&&"TextEncoder"in A&&m.set(4);A=mla(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=el(b.B),l.wgl=!!bl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c}; Zq=function(a){var b={};b.dt=Kma;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=d===void 0?bl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=(f=bl.screen)==null?void 0:f.height;var h;b.u_w=(h=bl.screen)==null?void 0:h.width;var l;b.u_ah=(l=bl.screen)==null?void 0:l.availHeight;var m;b.u_aw=(m=bl.screen)==null?void 0:m.availWidth;var n;b.u_cd=(n=bl.screen)==null?void 0: n.colorDepth}catch(p){}return b}; Mma=function(){if(!Lma)return null;var a=Lma();return"open"in a?a:null}; g.br=function(a){switch(ar(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; ar=function(a){return a&&"status"in a?a.status:-1}; g.cr=function(a,b){typeof a==="function"&&(a=g.Iq(a));return window.setTimeout(a,b)}; g.dr=function(a,b){typeof a==="function"&&(a=g.Iq(a));return window.setInterval(a,b)}; g.er=function(a){window.clearTimeout(a)}; g.fr=function(a){window.clearInterval(a)}; g.hr=function(a){a=gr(a);return typeof a==="string"&&a==="false"?!1:!!a}; g.ir=function(a,b){a=gr(a);return a===void 0&&b!==void 0?b:Number(a||0)}; jr=function(){return g.Eq("EXPERIMENTS_TOKEN","")}; gr=function(a){return g.Eq("EXPERIMENT_FLAGS",{})[a]}; kr=function(){for(var a=[],b=g.Eq("EXPERIMENTS_FORCED_FLAGS",{}),c=g.w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.Eq("EXPERIMENT_FLAGS",{});d=g.w(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a}; lr=function(a,b,c,d,e,f,h,l){function m(){(n&&"readyState"in n?n.readyState:0)===4&&b&&g.Iq(b)(n)} c=c===void 0?"GET":c;d=d===void 0?"":d;l=l===void 0?!1:l;var n=Mma();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.hr("debug_forward_web_query_parameters")&&(a=Nma(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Oma(a,e))for(var p in e)n.setRequestHeader(p,e[p]),"content-type"===p.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(q){Nq(q)}}n.send(d);return n}; Oma=function(a,b){b=b===void 0?{}:b;var c=Vq(a),d=g.Eq("INNERTUBE_CLIENT_NAME"),e=g.hr("web_ajax_ignore_global_headers_if_set"),f;for(f in Pma){var h=g.Eq(Pma[f]),l=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=g.Eq("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=c||(g.Ai(a)?!1:!0))){m=a;var n;if(n=g.hr("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&Ima(m))m=xi(g.zi(5,m))||"",m=m.split("/"), m="/"+(m.length>1?m[1]:""),n=m==="/pagead";m=n?!0:!1}m=!m}m||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&l||(b[f]=h)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.Ai(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.Ai(a)){try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}p&&(b["X-YouTube-Time-Zone"]=p)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.Ai(a)||(b["X-YouTube-Ad-Signals"]= Pq($q()));return b}; Rma=function(a,b){var c=g.Ai(a);g.hr("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Vq(a)&&(c=document.location.hostname);var d=xi(g.zi(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Qq(b),f={};g.cc(Qma,function(h){e[h]&&(f[h]=e[h])}); return Uq(a,f)}; nr=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.mr(a,b)}; g.mr=function(a,b){var c=b.format||"JSON";a=Sma(a,b);var d=Tma(a,b),e=!1,f=Uma(a,function(m){if(!e){e=!0;l&&g.er(l);var n=g.br(m),p=null,q=400<=m.status&&m.status<500,r=500<=m.status&&m.status<600;if(n||q||r)p=Vma(a,c,m,b.convertToSafeHtml);n&&(n=Wma(c,m,p));p=p||{};q=b.context||g.Ka;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&&d>0){var h=b.onTimeout;var l=g.cr(function(){e||(e=!0,f.abort(),g.er(l),h.call(b.context||g.Ka,f))},d)}return f}; Sma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.Eq("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=g.Tq(a,b);return a}; Tma=function(a,b){var c=g.Eq("XSRF_FIELD_NAME"),d=g.Eq("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.Eq("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Ai(a)&&!b.withCredentials&&g.Ai(a)!==document.location.hostname||b.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.hr("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=Qq(e),g.Gc(e,f),e=b.postBodyFormat&& b.postBodyFormat==="JSON"?JSON.stringify(e):g.Gi(e));f=e||f&&!g.Bc(f);!Xma&&f&&b.method!=="POST"&&(Xma=!0,g.Hq(Error("AJAX request with postData should use POST")));return e}; Vma=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,Nq(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Yma(a):null)e={},g.cc(a.getElementsByTagName("*"),function(h){e[h.tagName]=Zma(h)})}d&&$ma(e); return e}; $ma=function(a){if(g.Ra(a))for(var b in a)b==="html_content"||raa(b,"_html")?a[b]=wd(a[b]):$ma(a[b])}; Wma=function(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}}; Yma=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null}; Zma=function(a){var b="";g.cc(a.childNodes,function(c){b+=c.nodeValue}); return b}; pr=function(a,b){var c=g.Ec(b),d;return(new g.Ce(function(e,f){c.onSuccess=function(h){g.br(h)?e(new ana(h)):f(new or("Request failed, status="+ar(h),"net.badstatus",h))}; c.onError=function(h){f(new or("Unknown request error","net.unknown",h))}; c.onTimeout=function(h){f(new or("Request timed out","net.timeout",h))}; d=g.mr(a,c)})).Xk(function(e){if(e instanceof Ie){var f; (f=d)==null||f.abort()}return Fe(e)})}; g.qr=function(a,b,c,d){function e(l,m,n){return l.Xk(function(p){if(m<=0||ar(p.xhr)===403)return Fe(new or("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=h>0?Math.min(h,p):p;return f(n).then(function(){return e(pr(a,b),m-1,q)})})} function f(l){return new g.Ce(function(m){setTimeout(m,l)})} var h=h===void 0?-1:h;return e(pr(a,b),c-1,d)}; or=function(a,b,c){jb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"}; ana=function(a){this.xhr=a}; rr=function(a){this.j=a===void 0?null:a;this.C=0;this.B=null}; sr=function(a){var b=new rr;a=a===void 0?null:a;b.C=2;b.B=a===void 0?null:a;return b}; tr=function(a){var b=new rr;a=a===void 0?null:a;b.C=1;b.B=a===void 0?null:a;return b}; g.wr=function(a,b,c,d,e){ur||vr.set(""+a,b,{kG:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})}; g.xr=function(a,b){if(!ur)return vr.get(""+a,b)}; g.yr=function(a,b,c){ur||vr.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)}; bna=function(){if(g.hr("embeds_web_enable_cookie_detection_fix")){if(!g.Ka.navigator.cookieEnabled)return!1}else if(!vr.isEnabled())return!1;if(!vr.isEmpty())return!0;g.hr("embeds_web_enable_cookie_detection_fix")?vr.set("TESTCOOKIESENABLED","1",{kG:60,Pda:"none",secure:!0}):vr.set("TESTCOOKIESENABLED","1",{kG:60});if(vr.get("TESTCOOKIESENABLED")!=="1")return!1;vr.remove("TESTCOOKIESENABLED");return!0}; g.Q=function(a,b){if(a)return a[b.name]}; zr=function(a){var b=g.Eq("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Bi(a)));return a}; cna=function(a,b){var c={};g.hr("web_api_key_killswitch")&&(g.Eq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(b==null?0:b.Authorization)||(c.key=g.Eq("INNERTUBE_API_KEY")));g.hr("json_condensed_response")&&(c.prettyPrint="false");return a=Uq(a,c)}; Ar=function(a,b){var c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:Vq(a)?"same-origin":"cors",credentials:Vq(a)?"same-origin":"include"};b={};for(var d=g.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);Object.keys(b).length>0&&(a.headers=b);return a}; dna=function(){var a=/Chrome\/(\d+)/.exec(g.xb());return a?parseFloat(a[1]):NaN}; Cr=function(){return g.Br("android")&&g.Br("chrome")&&!(g.Br("trident/")||g.Br("edge/"))&&!g.Br("cobalt")}; ena=function(){return g.Br("armv7")||g.Br("aarch64")||g.Br("android")}; g.Dr=function(){return g.Br("cobalt")}; Er=function(){return g.Br("cobalt")&&g.Br("appletv")}; Fr=function(){return g.Br("(ps3; leanback shell)")||g.Br("ps3")&&g.Dr()}; Gr=function(){return g.Br("(ps4; leanback shell)")||g.Br("ps4")&&g.Dr()}; g.fna=function(){return g.Dr()&&(g.Br("ps4 vr")||g.Br("ps4 pro vr"))}; Hr=function(){var a=/WebKit\/([0-9]+)/.exec(g.xb());return!!(a&&parseInt(a[1],10)>=600)}; Ir=function(){var a=/WebKit\/([0-9]+)/.exec(g.xb());return!!(a&&parseInt(a[1],10)>=602)}; gna=function(){return g.Br("iemobile")||g.Br("windows phone")&&g.Br("edge")}; Lr=function(){return(Jr||Kr)&&g.Br("applewebkit")&&!g.Br("version")&&(!g.Br("safari")||g.Br("gsa/"))}; Nr=function(){return g.Mr&&g.Br("version/")}; Or=function(){return g.Br("smart-tv")&&g.Br("samsung")}; g.Br=function(a){var b=g.xb();return b?b.toLowerCase().indexOf(a)>=0:!1}; Pr=function(){return kfa()||Lr()||Nr()?!0:g.Eq("EOM_VISITOR_DATA")?!1:!0}; Qr=function(a,b){return b===void 0||b===null?a:b==="1"||b===!0||b===1||b==="True"?!0:!1}; Rr=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}; Sr=function(a,b){return b===void 0||b===null?a:Number(b)}; Tr=function(a,b){return b===void 0||b===null?a:b.toString()}; Ur=function(a,b){if(b){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(b=a.match(hna))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&a>0)?b/a:NaN}; Vr=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null}; ina=function(a){return Wr(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Xr=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Wr=function(a,b){b=(b===void 0?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?Rr(b,c.embeddedPlayerMode,jna):b}; Zr=function(a){jb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Yr;this.isTimeout=a instanceof or&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Ie}; Yr=function(){jb.call(this,"Biscotti ID is missing from server")}; kna=function(){if(g.hr("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Pr())return Error("User has not consented - not fetching biscotti id.");var a=g.Eq("PLAYER_VARS",{});if(g.Cc(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(ina(a))return Error("Biscotti id fetching has been disabled for pfl.")}; ona=function(){var a=kna();if(a!==void 0)return Fe(a);$r||($r=pr("//googleads.g.doubleclick.net/pagead/id",lna).then(mna).Xk(function(b){return nna(2,b)})); return $r}; mna=function(a){a=a.xhr.responseText;if(!ob(a,")]}'"))throw new Yr;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new Yr;a=a.id;Bma(a);$r=tr(a);pna(18E5,2);return a}; nna=function(a,b){b=new Zr(b);Bma("");$r=sr(b);a>0&&pna(12E4,a-1);throw b;}; pna=function(a,b){g.cr(function(){pr("//googleads.g.doubleclick.net/pagead/id",lna).then(mna,function(c){return nna(b,c)}).Xk(g.Yc)},a)}; qna=function(){try{var a=g.Ma("yt.ads.biscotti.getId_");return a?a():ona()}catch(b){return Fe(b)}}; sna=function(a){a&&(a.dataset?a.dataset[rna()]="true":Kba(a))}; tna=function(a){return a?a.dataset?a.dataset[rna()]:a.getAttribute("data-loaded"):null}; rna=function(){return una.loaded||(una.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))}; vna=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=as+"VisibilityState";if(b in a)return a[b]}; bs=function(a,b){var c;qm(a,function(d){c=b[d];return!!c}); return c}; cs=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()}; fs=function(a){var b;g.ds()?es()==a&&(b=document):b=a;return b&&(a=bs(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; wna=function(a){return g.Lb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})}; xna=function(){var a=document;return g.Lb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})}; g.ds=function(){return!!bs(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; es=function(a){a=a===void 0?!1:a;var b=bs(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; gs=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in yna||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}}; zna=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}}; Ana=function(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Ac(hs,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=g.Ra(e[4])&&g.Ra(d)&&g.Dc(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})}; g.is=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Ana(a,b,c,d);if(e)return e;e=++Bna.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new gs(l);if(!re(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new gs(l); l.currentTarget=a;return c.call(a,l)}; h=g.Iq(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Cna()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);hs[e]=[a,b,c,h,d];return e}; Ena=function(a){return Dna(a,function(b){return g.So(b,"ytp-ad-has-logging-urls")})}; Dna=function(a,b){var c=document.body||document;return g.is(c,"click",function(d){var e=re(d.target,function(f){return f===c||b(f)},!0); e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; g.js=function(a){a&&(typeof a=="string"&&(a=[a]),g.cc(a,function(b){if(b in hs){var c=hs[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Cna()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete hs[b]}}))}; ks=function(a){for(var b in hs)hs[b][0]==a&&g.js(b)}; ls=function(a){a=a||window.event;var b;a.composedPath&&typeof a.composedPath==="function"?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,a.nodeType==3&&(a=a.parentNode));return a}; ms=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;a<4;a++)this.B.push(0);this.C=0;this.ra=g.is(window,"mousemove",(0,g.Ua)(this.Y,this));this.Z=g.dr((0,g.Ua)(this.qa,this),25)}; ns=function(a){g.O.call(this);this.N=[];this.ob=a||this}; os=function(a,b,c,d){for(var e=0;e0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,g.rs)():ts())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}; g.vs=function(a){var b=ts(),c=(0,g.rs)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(typeof d!=="string")try{d=c.get(a)}catch(e){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(e){}return d}; Hna=function(){var a=(0,g.rs)();if(a&&(a=a.B("yt-player-quality")))return a.creation}; g.ws=function(a){try{var b=ts(),c=(0,g.rs)();b&&b.remove(a);c&&c.remove(a)}catch(d){}}; g.xs=function(){return g.vs("yt-remote-session-screen-id")}; Ina=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c}); a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})}; ys=function(){if(!g.Ka.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ka.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ka.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ka.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ka.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}}; zs=function(){this.M2=!0}; Jna=function(){zs.instance||(zs.instance=new zs);return zs.instance}; Kna=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; Lna=function(){this.j=g.Eq("ALT_PREF_COOKIE_NAME","PREF");this.B=g.Eq("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.xr(this.j);a&&this.parse(a)}; g.Bs=function(){As||(As=new Lna);return As}; g.Cs=function(a,b){return!!((Mna("f"+(Math.floor(b/31)+1))||0)&1<0;)switch(a=Ys.shift(),a.type){case "ERROR":Us.Ll(a.payload);break;case "EVENT":Us.logEvent(a.eventType,a.payload)}}; $s=function(a){Zs||(Us?Us.Ll(a):(Ys.push({type:"ERROR",payload:a}),Ys.length>10&&Ys.shift()))}; at=function(a,b){Zs||(Us?Us.logEvent(a,b):(Ys.push({type:"EVENT",eventType:a,payload:b}),Ys.length>10&&Ys.shift()))}; bt=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; ct=function(a){return a.substr(0,a.indexOf(":"))||a}; g.dt=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Una[a]:c;d=d===void 0?Vna[a]:d;e=e===void 0?Wna[a]:e;g.Hs.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.dt.prototype)}; et=function(a,b){g.dt.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Una.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,et.prototype)}; ft=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,ft.prototype)}; ht=function(a,b,c,d){b=ct(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.dt)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new g.dt("QUOTA_EXCEEDED",a);if(g.gt&&e.name==="UnknownError")return new g.dt("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof ft)return new g.dt("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Xna.some(function(f){return e.message.includes(f)}))return new g.dt("EXECUTE_TRANSACTION_ON_CLOSED_DB", a); if(e.name==="AbortError")return new g.dt("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",ML:e.name})];e.level="WARNING";return e}; g.it=function(a,b,c){var d=Ts();return new g.dt("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})}; Yna=function(a){if(!a)throw Error();throw a;}; Zna=function(a){return a}; jt=function(a){this.j=a}; g.kt=function(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=g.w(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=g.w(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}}; $na=function(a,b,c,d,e){try{if(a.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.kt?lt(a,b,f,d,e):d(f)}catch(h){e(h)}}; aoa=function(a,b,c,d,e){try{if(a.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.kt?lt(a,b,f,d,e):d(f)}catch(h){e(h)}}; lt=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.kt?lt(a,b,f,d,e):d(f)},function(f){e(f)})}; boa=function(a,b,c){function d(){c(a.error);f()} function e(){b(a.result);f()} function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}} a.addEventListener("success",e);a.addEventListener("error",d)}; coa=function(a){return new Promise(function(b,c){boa(a,b,c)})}; mt=function(a){return new g.kt(new jt(function(b,c){boa(a,b,c)}))}; nt=function(a,b){return new g.kt(new jt(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()} e()}))}; doa=function(a,b){this.request=a;this.cursor=b}; eoa=function(a){return mt(a).then(function(b){return b?new doa(a,b):null})}; g.foa=function(a){a.cursor.continue(void 0);return eoa(a.request)}; goa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.T)());this.B=!1}; g.pt=function(a,b,c){a=a.j.createObjectStore(b,c);return new ot(a)}; qt=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)}; g.ut=function(a,b,c){return g.rt(a,[b],{mode:"readwrite",Pb:!0},function(d){return g.tt(d.objectStore(b),c)})}; g.rt=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){switch(A.j){case 1:var D={mode:"readonly",Pb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?D.mode=c:Object.assign(D,c);e=D;a.transactionCount++;f=e.Pb?3:1;h=0;case 2:if(l){A.Ha(4);break}h++;m=Math.round((0,g.T)());g.wa(A,5);n=a.j.transaction(b,e.mode);D=new vt(n);D=hoa(D,d);return g.G(A,D,7);case 7:return p=A.B,q=Math.round((0,g.T)()),ioa(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.ya(A);t=Math.round((0,g.T)()); u=ht(r,a.j.name,b.join(),a.j.version);if((y=u instanceof g.dt&&!u.j)||h>=f)ioa(a,m,t,h,u,b.join(),e),l=u;A.Ha(2);break;case 4:return A.return(Promise.reject(l))}})}; ioa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.dt&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&at("QUOTA_EXCEEDED",{dbName:ct(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.dt&&e.type==="UNKNOWN_ABORT"&&(c-=a.C,c<0&&c>=Math.pow(2,31)&&(c=0),at("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),joa(a,!1,d,f,b,h.tag),$s(e)):joa(a,!0,d, f,b,h.tag)}; joa=function(a,b,c,d,e,f){at("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; ot=function(a){this.j=a}; g.wt=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; koa=function(a,b){return g.xt(a,{query:b},function(c){return c.delete().then(function(){return g.zt(c)})}).then(function(){})}; loa=function(a,b,c){var d=[];return g.xt(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.zt(e)}).then(function(){return d})}; noa=function(a){return"getAllKeys"in IDBObjectStore.prototype?mt(a.j.getAllKeys(void 0,void 0)):moa(a)}; moa=function(a){var b=[];return g.ooa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.foa(c)}).then(function(){return b})}; g.tt=function(a,b,c){return mt(a.j.put(b,c))}; g.xt=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return At(a).then(function(d){return nt(d,c)})}; g.ooa=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 eoa(a).then(function(e){return nt(e,c)})}; vt=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.dt;for(var f=b.j.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),g.zt(e)}).then(function(){return d})}; g.Bt=function(a,b,c){a=a.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return At(a).then(function(d){return nt(d,c)})}; Ct=function(a,b){this.request=a;this.cursor=b}; At=function(a){return mt(a).then(function(b){return b?new Ct(a,b):null})}; g.zt=function(a){a.cursor.continue(void 0);return At(a.request)}; roa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new goa(h.result,{closed:q}));return r} var h=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.Iea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(h.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&at("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:ct(a)});var u=f(),y=new vt(h.transaction); p&&p(u,function(A){return t.oldVersion=A},y); y.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(){at("IDB_UNEXPECTEDLY_CLOSED",{dbName:ct(a),dbVersion:t.version});n&&n()}); d(f())}); h.addEventListener("error",function(){e(h.error)}); l&&h.addEventListener("blocked",function(){l()})})}; soa=function(a,b,c){c=c===void 0?{}:c;return roa(a,b,c)}; Dt=function(a,b){b=b===void 0?{}:b;var c,d,e,f;return g.J(function(h){if(h.j==1)return g.wa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.G(h,coa(c),4); if(h.j!=2)return g.xa(h,0);f=g.ya(h);throw ht(f,a,"",-1);})}; Et=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0}; toa=function(a,b){return new g.dt("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; g.Ft=function(a,b){if(!b)throw g.it("openWithToken",ct(a.name));return a.open()}; uoa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,g.Ft(Gt,b),2);c=d.B;return d.return(g.rt(c,["databases"],{Pb:!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.tt(f,a).then(function(){})})}))})}; Ht=function(a,b){var c;return g.J(function(d){if(d.j==1)return a?g.G(d,g.Ft(Gt,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})}; voa=function(a,b){var c,d;return g.J(function(e){return e.j==1?(c=[],g.G(e,g.Ft(Gt,b),2)):e.j!=3?(d=e.B,g.G(e,g.rt(d,["databases"],{Pb:!0,mode:"readonly"},function(f){c.length=0;return g.xt(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.zt(h)})}),3)):e.return(c)})}; woa=function(a,b){return voa(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)}; xoa=function(){var a,b,c,d;return g.J(function(e){switch(e.j){case 1:a=Ts();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);if(It&&Hr()&&!Ir()||g.Jt)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.wa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.G(e,uoa(d,Kt),4);case 4:return g.G(e,Ht("yt-idb-test-do-not-use",Kt),5);case 5:return e.return(!0);case 2:return g.ya(e),e.return(!1)}})}; yoa=function(){if(Lt!==void 0)return Lt;Zs=!0;return Lt=xoa().then(function(a){Zs=!1;var b;if((b=Ss())!=null&&b.j){var c;b={hasSucceededOnce:((c=Ts())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Ss())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; Mt=function(){return g.Ma("ytglobal.idbToken_")||void 0}; g.Nt=function(){var a=Mt();return a?Promise.resolve(a):yoa().then(function(b){(b=b?Kt:void 0)&&g.La("ytglobal.idbToken_",b);return b})}; zoa=function(a){if(!g.Js())throw a=new g.dt("AUTH_INVALID",{dbName:a}),$s(a),a;var b=g.Is();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; Aoa=function(a,b,c,d){var e,f,h,l,m,n;return g.J(function(p){switch(p.j){case 1:return f=(e=Error().stack)!=null?e:"",g.G(p,g.Nt(),2);case 2:h=p.B;if(!h)throw l=g.it("openDbImpl",a,b),g.hr("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),$s(l),l;bt(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:zoa(a);g.wa(p,3);return g.G(p,uoa(m,h),5);case 5:return g.G(p,soa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.ya(p),g.wa(p,7),g.G(p,Ht(m.actualName, h),9);case 9:g.xa(p,8);break;case 7:g.ya(p);case 8:throw n;}})}; Boa=function(a,b,c){c=c===void 0?{}:c;return Aoa(a,b,!1,c)}; Coa=function(a,b,c){c=c===void 0?{}:c;return Aoa(a,b,!0,c)}; Doa=function(a,b){b=b===void 0?{}:b;var c,d;return g.J(function(e){if(e.j==1)return g.G(e,g.Nt(),2);if(e.j!=3){c=e.B;if(!c)return e.return();bt(a);d=zoa(a);return g.G(e,Dt(d.actualName,b),3)}return g.G(e,Ht(d.actualName,c),0)})}; Eoa=function(a,b,c){a=a.map(function(d){return g.J(function(e){return e.j==1?g.G(e,Dt(d.actualName,b),2):g.G(e,Ht(d.actualName,c),0)})}); return Promise.all(a).then(function(){})}; Foa=function(a){var b=b===void 0?{}:b;var c,d;return g.J(function(e){if(e.j==1)return g.G(e,g.Nt(),2);if(e.j!=3){c=e.B;if(!c)return e.return();bt(a);return g.G(e,woa(a,c),3)}d=e.B;return g.G(e,Eoa(d,b,c),0)})}; Goa=function(a,b){b=b===void 0?{}:b;var c;return g.J(function(d){if(d.j==1)return g.G(d,g.Nt(),2);if(d.j!=3){c=d.B;if(!c)return d.return();bt(a);return g.G(d,Dt(a,b),3)}return g.G(d,Ht(a,c),0)})}; Ot=function(a,b){Et.call(this,a,b);this.options=b;bt(a)}; Hoa=function(a,b){var c;return function(){c||(c=new Ot(a,b));return c}}; g.Pt=function(a,b){return Hoa(a,b)}; Qt=function(a){return g.Ft(Ioa(),a)}; Joa=function(a,b,c,d){var e,f,h;return g.J(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:(0,g.T)()},g.G(l,Qt(c),2);case 2:return f=l.B,g.G(l,f.clear("hotConfigStore"),3);case 3:return g.G(l,g.ut(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})}; Koa=function(a,b,c,d,e){var f,h,l;return g.J(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:(0,g.T)()},g.G(m,Qt(d),2);case 2:return h=m.B,g.G(m,h.clear("coldConfigStore"),3);case 3:return g.G(m,g.ut(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})}; Loa=function(a){var b,c;return g.J(function(d){return d.j==1?g.G(d,Qt(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.rt(b,["coldConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.Bt(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; Moa=function(a){var b,c;return g.J(function(d){return d.j==1?g.G(d,Qt(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.rt(b,["hotConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.Bt(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; Noa=function(){return g.J(function(a){return g.G(a,Foa("ytGcfConfig"),0)})}; Rt=function(){g.O.call(this);this.B=[];this.j=[];var a=g.Ma("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.x(a)),this.j=a):(this.j=[],g.La("yt.gcf.config.hotUpdateCallbacks",this.j))}; Xt=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Rt;this.hd={soa:function(){a.G=!0}, xna:function(){return a.j}, Apa:function(b){St(a,b)}, Ks:function(b){a.Ks(b)}, tpa:function(b){Tt(a,b)}, Q8:function(){return a.coldHashData}, Z8:function(){return a.hotHashData}, Ona:function(){return a.B}, Gna:function(){return Ut()}, Ina:function(){return Vt()}, Hna:function(){return g.Ma("yt.gcf.config.coldHashData")}, Jna:function(){return g.Ma("yt.gcf.config.hotHashData")}, Spa:function(){Ooa(a)}, mpa:function(){a.Ks(void 0);Wt(a);delete Xt.instance}, xpa:function(b){a.C=b}, Cna:function(){return a.C}}}; Poa=function(){if(!Xt.instance){var a=new Xt;Xt.instance=a}return Xt.instance}; Soa=function(a){var b;g.J(function(c){if(c.j==1)return g.hr("start_client_gcf")||g.hr("delete_gcf_config_db")?g.hr("start_client_gcf")?g.G(c,g.Nt(),3):c.Ha(2):c.return();c.j!=2&&((b=c.B)&&g.Js()&&!g.hr("delete_gcf_config_db")?(a.G=!0,Ooa(a)):(Qoa(a),Roa(a)));return g.hr("delete_gcf_config_db")?g.G(c,Noa(),0):c.Ha(0)})}; Yt=function(){var a;return(a=Vt())!=null?a:g.Eq("RAW_HOT_CONFIG_GROUP")}; Toa=function(a){var b,c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.B)return l.return(Vt());if(!a.G)return b=g.it("getHotConfig IDB not initialized"),Nq(b),l.return(Promise.reject(b));c=Mt();d=g.Eq("TIME_CREATED_MS");if(!c){e=g.it("getHotConfig token error");Nq(e);l.Ha(2);break}return g.G(l,Moa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return St(a,f.config),a.Ks(f.hashData),l.return(Vt());case 2:Roa(a);if(!(c&&a.B&&a.hotHashData)){l.Ha(4);break}return g.G(l,Joa(a.B,a.hotHashData,c,d),4);case 4:return a.B? l.return(Vt()):(h=new g.Hs("Config not available in ytConfig"),Nq(h),l.return(Promise.reject(h)))}})}; Voa=function(a){var b,c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.j)return l.return(Ut());if(!a.G)return b=g.it("getColdConfig IDB not initialized"),Nq(b),l.return(Promise.reject(b));c=Mt();d=g.Eq("TIME_CREATED_MS");if(!c){e=g.it("getColdConfig");Nq(e);l.Ha(2);break}return g.G(l,Loa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Tt(a,f.config),Uoa(a,f.configData),Wt(a,f.hashData),l.return(Ut());case 2:Qoa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ha(4);break}return g.G(l,Koa(a.j, a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(Ut()):(h=new g.Hs("Config not available in ytConfig"),Nq(h),l.return(Promise.reject(h)))}})}; Ooa=function(a){if(!a.B||!a.j){if(!Mt()){var b=g.it("scheduleGetConfigs");Nq(b)}a.D||(a.D=g.Eo.Wi(function(){return g.J(function(c){switch(c.j){case 1:return g.wa(c,2),g.G(c,Toa(a),4);case 4:g.xa(c,3);break;case 2:g.ya(c);case 3:return g.wa(c,5),g.G(c,Voa(a),7);case 7:g.xa(c,6);break;case 5:g.ya(c);case 6:a.D&&(a.D=0),g.va(c)}})},100))}}; Woa=function(a,b,c){var d,e,f;return g.J(function(h){switch(h.j){case 1:if(!g.hr("start_client_gcf")){h.Ha(0);break}c&&St(a,c);a.Ks(b);d=Mt();if(!d){h.Ha(3);break}if(c){h.Ha(4);break}return g.G(h,Moa(d),5);case 5:e=h.B,c=(f=e)==null?void 0:f.config;case 4:return g.G(h,Joa(c,b,d),3);case 3:if(c)for(var l=c,m=g.w(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.va(h)}})}; Xoa=function(a,b,c){var d,e,f,h;return g.J(function(l){if(l.j==1){if(!g.hr("start_client_gcf"))return l.Ha(0);Wt(a,b);return(d=Mt())?c?l.Ha(4):g.G(l,Loa(d),5):l.Ha(0)}l.j!=4&&(e=l.B,c=(f=e)==null?void 0:f.config);if(!c)return l.Ha(0);h=c.configData;return g.G(l,Koa(c,b,h,d),0)})}; Yoa=function(){var a=Poa(),b=(0,g.T)()-a.C;if(!(a.C!==0&&b0&&(b.request={internalExperimentFlags:c});$oa(a,void 0,b);apa(void 0,b);bpa(void 0,b);cpa(a,void 0,b);dpa(void 0,b);g.hr("start_client_gcf")&&epa(void 0,b);g.Eq("DELEGATED_SESSION_ID")&& !g.hr("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.Eq("DELEGATED_SESSION_ID")});!g.hr("fill_delegate_context_in_gel_killswitch")&&(a=g.Eq("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.w(Object.entries(Qq(g.Eq("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.w(h.value);h=l.next().value;l=l.next().value;h==="cbrand"?e.deviceMake=l:h==="cmodel"?e.deviceModel=l:h==="cbr"? e.browserName=l:h==="cbrver"?e.browserVersion=l:h==="cos"?e.osName=l:h==="cosver"?e.osVersion=l:h==="cplatform"&&(e.platform=l)}b.client=c.call(a,d,e);return b}; $oa=function(a,b,c){a=a.HQ;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=sg(b,nq,96)||new nq;var d=ys();d=Object.keys(fpa).indexOf(d);d=d===-1?null:d;d!==null&&Fg(c,3,d);tg(b,nq,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=ys())}; apa=function(a,b){var c=g.Ma("yt.embedded_player.embed_url");c&&(a?(b=sg(a,rq,7)||new rq,Dg(b,4,c),tg(a,rq,7,b)):b&&(b.thirdParty={embedUrl:c}))}; bpa=function(a,b){var c;if(g.hr("web_log_memory_total_kbytes")&&((c=g.Ka.navigator)==null?0:c.deviceMemory)){var d;c=(d=g.Ka.navigator)==null?void 0:d.deviceMemory;a?Yf(a,95,Cf(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}}; cpa=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=sg(b,mq,62))!=null?d:new mq;Dg(c,6,a.appInstallData);tg(b,mq,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)}; dpa=function(a,b){var c=Pna();c&&(a?Fg(a,61,gpa[c]):b&&(b.client.connectionType=c));g.hr("web_log_effective_connection_type")&&(c=Rna())&&(a?Fg(a,94,hpa[c]):b&&(b.client.effectiveConnectionType=c))}; ipa=function(a,b,c){c=c===void 0?{}:c;var d={};g.Eq("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.Eq("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.Eq("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.WW||g.Eq("AUTHORIZATION");b||(a?b="Bearer "+g.Ma("gapi.auth.getToken")().access_token:(a=Jna().cF(au),g.hr("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d}; epa=function(a,b){var c=Yoa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=sg(a,mq,62))!=null?f:new mq;d=Dg(b,1,d);Dg(d,3,e).Ks(c);tg(a,mq,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}}; bu=function(a,b){this.version=a;this.args=b}; cu=function(a,b){this.topic=a;this.j=b}; eu=function(a,b){var c=du();c&&c.publish.call(c,a.toString(),a,b)}; lpa=function(a){var b=jpa,c=du();if(!c)return 0;var d=c.subscribe(b.toString(),function(e,f){var h=g.Ma("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(fu[d])try{if(f&&b instanceof cu&&b!=e)try{var l=b.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Jv){var n=new l;l.Jv=n.version}var p=l.Jv}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l, g.Tb(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+b.toString()+": "+q.message,q;}a.call(window,f)}catch(q){g.Hq(q)}},kpa[b.toString()]?g.Ps()?g.Eo.Wi(h):g.cr(h,0):h())}); fu[d]=!0;gu[b.toString()]||(gu[b.toString()]=[]);gu[b.toString()].push(d);return d}; opa=function(){var a=mpa,b=lpa(function(c){a.apply(void 0,arguments);npa(b)}); return b}; npa=function(a){var b=du();b&&(typeof a==="number"&&(a=[a]),g.cc(a,function(c){b.unsubscribeByKey(c);delete fu[c]}))}; du=function(){return g.Ma("ytPubsub2Pubsub2Instance")}; nu=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()upa||h=ypa&&(Bu++,g.hr("abandon_compression_after_N_slow_zips")?Au===g.ir("compression_disable_point")&&Bu>zpa&&(xu=!1):xu=!1);Apa(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)}; Bpa=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,g.T)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Ma("yt.logging.gzipForFetch",!1):!0;if(xu&&f){if(!a.body)return a;try{var h=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=h;if(!c&&typeof h==="string"){var l=tpa(h);if(l!=null&&(l>upa||l=ypa)if(Bu++,g.hr("abandon_compression_after_N_slow_zips")||g.hr("abandon_compression_after_N_slow_zips_lr")){b=Bu/Au;var n=zpa/g.ir("compression_disable_point");Au>0&&Au%g.ir("compression_disable_point")===0&&b>=n&&(xu=!1)}else xu=!1;Apa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return Nq(p),a}}else return a}; tpa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return Nq(b),null}}; Apa=function(a){g.hr("gel_compression_csi_killswitch")||!g.hr("log_gel_compression_latency")&&!g.hr("log_gel_compression_latency_lr")||nu("gel_compression",a,{sampleRate:.1})}; Du=function(a){var b=this;this.bJ=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){}; this.yA=function(){}; this.now=Date.now;this.IE=!1;this.hd={wpa:function(p){b.Af=p}, Tpa:function(){b.FC()}, v7:function(){b.HO()}, EF:function(p){return g.J(function(q){return g.G(q,b.EF(p),0)})}, pM:function(p,q){return b.pM(p,q)}, sM:function(){b.sM()}}; var c;this.Q2=(c=a.Q2)!=null?c:100;var d;this.Q1=(d=a.Q1)!=null?d:1;var e;this.I1=(e=a.I1)!=null?e:2592E6;var f;this.C1=(f=a.C1)!=null?f:12E4;var h;this.P1=(h=a.P1)!=null?h:5E3;var l;this.Af=(l=a.Af)!=null?l:void 0;this.DJ=!!a.DJ;var m;this.kJ=(m=a.kJ)!=null?m:.1;var n;this.aM=(n=a.aM)!=null?n:10;a.handleError&&(this.handleError=a.handleError);a.yA&&(this.yA=a.yA);a.IE&&(this.IE=a.IE);a.bJ&&(this.bJ=a.bJ);this.kb=a.kb;this.Ho=a.Ho;this.Mh=a.Mh;this.nh=a.nh;this.sendFn=a.sendFn;this.xS=a.xS;this.HR= a.HR;Cu(this)&&(!this.kb||this.kb("networkless_logging"))&&Cpa(this)}; Cpa=function(a){Cu(a)&&!a.IE&&(a.j=!0,a.DJ&&Math.random()<=a.kJ&&a.Mh.z7(a.Af),a.sM(),a.nh.Kh()&&a.FC(),a.nh.listen(a.xS,a.FC.bind(a)),a.nh.listen(a.HR,a.HO.bind(a)))}; Fpa=function(a,b){if(!Cu(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.J(function(p){switch(p.j){case 1:h=Dpa(f);(l=Epa(f))&&a.kb&&a.kb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.kb&&a.kb("nwl_consider_error_code")&&h||a.kb&&!a.kb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.aM)){p.Ha(2);break}if(!a.nh.wM){p.Ha(3);break}return g.G(p,a.nh.wM(),3);case 3:if(a.nh.Kh()){p.Ha(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||((m=b)==null?void 0: m.id)===void 0){p.Ha(6);break}return g.G(p,a.Mh.jT(b.id,a.Af,!1),6);case 6:return p.return();case 2:if(a.kb&&a.kb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.aM)return p.return();a.potentialEsfErrorCounter++;if(((n=b)==null?void 0:n.id)===void 0){p.Ha(8);break}return b.sendCount=400&&a<=599?!1:!0}; Epa=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)}; Gpa=function(){if(Fu)return Fu();var a={};Fu=g.Pt("LogsDatabaseV2",{zs:(a.LogsRequestsStore={In:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.pt(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.wt(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&qt(b,"sapisid");c(9)&&qt(b,"SWHealthLog")}, version:9});return Fu()}; Gu=function(a){return g.Ft(Gpa(),a)}; Ipa=function(a,b){var c,d,e,f;return g.J(function(h){if(h.j==1)return c={startTime:(0,g.T)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.G(h,Gu(b),2);if(h.j!=3)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.Eq("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.G(h,g.ut(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.T)();Hpa(c);return h.return(f)})}; Jpa=function(a,b){var c,d,e,f,h,l,m,n;return g.J(function(p){if(p.j==1)return c={startTime:(0,g.T)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.G(p,Gu(b),2);if(p.j!=3)return d=p.B,e=g.Eq("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.T)()],l=IDBKeyRange.bound(f,h),m="prev",g.hr("use_fifo_for_networkless")&&(m="next"),n=void 0,g.G(p,g.rt(d,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(q){return g.Bt(q.objectStore("LogsRequestsStore").index("newRequestV2"), {query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),a==="NEW"&&(n.status="QUEUED",r.update(n)))})}),3); c.ticks.tc=(0,g.T)();Hpa(c);return p.return(n)})}; Kpa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,Gu(b),2);c=d.B;return d.return(g.rt(c,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.tt(f,h).then(function(){return h})})}))})}; Lpa=function(a,b,c,d){c=c===void 0?!0:c;var e;return g.J(function(f){if(f.j==1)return g.G(f,Gu(b),2);e=f.B;return f.return(g.rt(e,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),d!==void 0&&(m.options.compress=d),g.tt(l,m).then(function(){return m})):g.kt.resolve(void 0)})}))})}; Mpa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,Gu(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})}; Npa=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,Gu(a),2);b=d.B;c=(0,g.T)()-2592E6;return g.G(d,g.rt(b,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){return g.xt(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.zt(f)})})}),0)})}; Opa=function(){g.J(function(a){return g.G(a,Foa("LogsDatabaseV2"),0)})}; Hpa=function(a){g.hr("nwl_csi_killswitch")||nu("networkless_performance",a,{sampleRate:1})}; Qpa=function(a){return g.Ft(Ppa(),a)}; Rpa=function(a){var b,c;g.J(function(d){if(d.j==1)return g.G(d,Qpa(a),2);b=d.B;c=(0,g.T)()-2592E6;return g.G(d,g.rt(b,["SWHealthLog"],{mode:"readwrite",Pb:!0},function(e){return g.xt(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.zt(f)})})}),0)})}; Spa=function(a){var b;return g.J(function(c){if(c.j==1)return g.G(c,Qpa(a),2);b=c.B;return g.G(c,b.clear("SWHealthLog"),0)})}; g.Hu=function(a,b,c,d,e,f,h){e=e===void 0?"":e;f=f===void 0?!1:f;h=h===void 0?!1:h;if(a)if(c&&!g.Dr()){if(a){a=g.md(g.qd(a));if(a===g.pd.toString()||a.startsWith("data"))a="";else{var l=l===void 0?{}:l;a instanceof g.ud?l=a:(a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),l.ipa&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 ")),l.hpa&&(a=a.replace(/(\r\n|\n|\r)/g,"
")),l.jpa&&(a=a.replace(/(\t+)/g,'$1')), l=wd(a));a=g.Qd(g.si(g.vd(l).toString()))}g.qb(a)||(l=ge("IFRAME",{src:'javascript:""',style:"display:none"}),Xd(l).body.appendChild(l))}}else if(e)lr(a,b,"POST",e,d);else if(g.Eq("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)lr(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Vka({url:a});if(m.C&&m.B||m.D){var n=xi(g.zi(5,a));var p=!(!n||!n.endsWith("/aclk")||Ji(a,"ri")!=="1");break b}}catch(q){}p=!1}p?Tpa(a)?(b&&b(),l=!0):l=!1:l=!1;l||Upa(a,b)}}; Tpa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,b===void 0?"":b))return!0}catch(c){}return!1}; Upa=function(a,b){var c=new Image,d=""+Vpa++;Iu[d]=c;c.onload=c.onerror=function(){b&&Iu[d]&&b();delete Iu[d]}; c.src=a}; Wpa=function(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"}; Ku=function(){Ju||(Ju=new Rs("yt.offline"));return Ju}; Xpa=function(a){if(g.hr("offline_error_handling")){var b=Ku().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Ku().set("errors",b,2592E3,!0)}}; Lu=function(){this.j=new Map;this.B=!1}; Mu=function(){if(!Lu.instance){var a=g.Ma("yt.networkRequestMonitor.instance")||new Lu;g.La("yt.networkRequestMonitor.instance",a);Lu.instance=a}return Lu.instance}; Nu=function(){g.Uc.call(this);var a=this;this.B=!1;this.j=lla();this.j.listen("networkstatus-online",function(){if(a.B&&g.hr("offline_error_handling")){var b=Ku().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Hs(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.Hq(d)}Ku().set("errors",{},2592E3,!0)}}})}; Ypa=function(){if(!Nu.instance){var a=g.Ma("yt.networkStatusManager.instance")||new Nu;g.La("yt.networkStatusManager.instance",a);Nu.instance=a}return Nu.instance}; g.Ou=function(a){a=a===void 0?{}:a;g.Uc.call(this);var b=this;this.j=this.D=0;this.B=Ypa();var c=g.Ma("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Zpa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Zpa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; Zpa=function(a,b){a.rateLimit?a.j?(g.Eo.lk(a.D),a.D=g.Eo.Wi(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.T)())},a.rateLimit-((0,g.T)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.T)()):a.dispatchEvent(b)}; Qu=function(){var a=Du.call;Pu||(Pu=new g.Ou({Foa:!0,Yma:!0}));a.call(Du,this,{Mh:{z7:Npa,Zz:Mpa,zY:Jpa,F$:Kpa,jT:Lpa,set:Ipa},nh:Pu,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var h;Nq(new g.Hs(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code),void 0,void 0,void 0,!0)}else g.Hq(b)}, yA:Nq,sendFn:$pa,now:g.T,T3:Xpa,Ho:g.Os(),xS:"publicytnetworkstatus-online",HR:"publicytnetworkstatus-offline",DJ:!0,kJ:.1,aM:g.ir("potential_esf_error_limit",10),kb:g.hr,IE:!(g.Js()&&g.Ai(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.cj;g.hr("networkless_immediately_drop_all_requests")&&Opa();Goa("LogsDatabaseV2")}; Ru=function(){var a=g.Ma("yt.networklessRequestController.instance");a||(a=new Qu,g.La("yt.networklessRequestController.instance",a),g.hr("networkless_logging")&&g.Nt().then(function(b){a.Af=b;Cpa(a);a.C.resolve();a.DJ&&Math.random()<=a.kJ&&a.Af&&Rpa(a.Af);g.hr("networkless_immediately_drop_sw_health_store")&&aqa(a)})); return a}; aqa=function(a){var b;g.J(function(c){if(!a.Af)throw b=g.it("clearSWHealthLogsDb"),b;return c.return(Spa(a.Af).catch(function(d){a.handleError(d)}))})}; $pa=function(a,b,c,d){d=d===void 0?!1:d;b=g.hr("web_fp_via_jspb")?Object.assign({},b):b;g.hr("use_cfr_monitor")&&bqa(a,b);if(g.hr("use_request_time_ms_header"))b.headers&&Vq(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.T)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.T)())}c&&Object.keys(b).length===0?g.Hu(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),zu(a,b.postBody, b,g.mr,d)):zu(a,JSON.stringify(b.postParams),b,nr,d):g.mr(a,b)}; Su=function(a,b){g.hr("use_event_time_ms_header")&&Vq(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.T)())));return b}; bqa=function(a,b){var c=b.onError?b.onError:function(){}; b.onError=function(e,f){Mu().requestComplete(a,!1);c(e,f)}; var d=b.onSuccess?b.onSuccess:function(){}; b.onSuccess=function(e,f){Mu().requestComplete(a,!0);d(e,f)}}; g.Tu=function(a){this.config_=null;a?this.config_=a:Zoa()&&(this.config_=g.Zt())}; g.Uu=function(a,b,c,d){function e(p){try{if((p===void 0?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?Ru().writeThenSend(n,f):Ru().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;typeof r!=="string"&&(r=JSON.stringify(f.postBody));zu(n,r,f,g.mr,q)}else zu(n,JSON.stringify(f.postParams),f,nr,q)}else g.hr("web_all_payloads_via_jspb")?g.mr(n,f):nr(n,f)}catch(t){if(t.name==="InvalidAccessError")Nq(Error("An extension is blocking network request.")); else throw t;}} !g.Eq("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&Nq(new g.Hs("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Hs("innertube xhrclient not ready",b,c,d),g.Hq(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_.BZ;h&&(c=h);var l=a.config_.CZ||!1;h=ipa(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_.KQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=g.Tq(""+c+b,l);g.Ma("ytNetworklessLoggingInitializationOptions")&& cqa.isNwlInitialized?yoa().then(function(p){e(p)}):e(!1)}; g.Zu=function(a,b,c){var d=g.Vu();if(d&&b){var e=d.subscribe(a,function(){function f(){Wu[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,h)} var h=arguments;try{g.Xu[a]?f():g.cr(f,0)}catch(l){g.Hq(l)}},c); Wu[e]=!0;Yu[a]||(Yu[a]=[]);Yu[a].push(e);return e}return 0}; dqa=function(a){var b=g.Zu("LOGGED_IN",function(c){a.apply(void 0,arguments);g.$u(b)})}; g.$u=function(a){var b=g.Vu();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.cc(a,function(c){b.unsubscribeByKey(c);delete Wu[c]}))}; g.av=function(a,b){var c=g.Vu();return c?c.publish.apply(c,arguments):!1}; fqa=function(a){var b=g.Vu();if(b)if(b.clear(a),a)eqa(a);else for(var c in Yu)eqa(c)}; g.Vu=function(){return g.Ka.ytPubsubPubsubInstance}; eqa=function(a){Yu[a]&&(a=Yu[a],g.cc(a,function(b){Wu[b]&&delete Wu[b]}),a.length=0)}; g.bv=function(a,b,c){gqa(a,b,c===void 0?null:c)}; gqa=function(a,b,c){c=c===void 0?null:c;var d=hqa(a),e=document.getElementById(d),f=e&&tna(e),h=e&&!f;f?b&&b():(b&&(f=g.Zu(d,b),b=""+g.Ta(b),iqa[b]=f),h||(e=jqa(a,d,function(){tna(e)||(sna(e),g.av(d),g.cr(function(){fqa(d)},0))},c)))}; jqa=function(a,b,c,d){d=d===void 0?null:d;var e=g.he("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.Od(e,g.jq(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; hqa=function(a){var b=document.createElement("a");g.Id(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ud(a)}; ev=function(a){var b=g.Da.apply(1,arguments);if(!cv(a)||b.some(function(d){return!cv(d)}))throw Error("Only objects may be merged."); b=g.w(b);for(var c=b.next();!c.done;c=b.next())dv(a,c.value)}; dv=function(a,b){for(var c in b)if(cv(b[c])){if(c in a&&!cv(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});dv(a[c],b[c])}else if(fv(b[c])){if(c in a&&!fv(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);kqa(a[c],b[c])}else a[c]=b[c];return a}; kqa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,cv(c)?a.push(dv({},c)):fv(c)?a.push(kqa([],c)):a.push(c);return a}; cv=function(a){return typeof a==="object"&&!Array.isArray(a)}; fv=function(a){return typeof a==="object"&&Array.isArray(a)}; gv=function(a){g.O.call(this);this.B=a}; hv=function(a){gv.call(this,!0);this.j=a}; lqa=function(a,b){g.O.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.qa=null;var d=(0,g.Ua)(a,b);this.j=new g.Lo(function(){return d(c.qa)},300); g.P(this,this.j);this.Y=this.Z=Infinity}; mqa=function(a,b){if(!b)return!1;for(var c=0;c-1)throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(d.AU!==void 0)var e=d.AU;else if(d.mfa)e=d[tv]?qqa(a,d[tv],c):[],e=d.mfa.apply(d,g.x(e));else if(d.G3){e=d.G3;var f=e[tv]?qqa(a,e[tv],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.x(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Lpa||a.B.set(b,e); return e}; qqa=function(a,b,c){return b?b.map(function(d){return d instanceof qv?uv(a,d.key,c,!0):uv(a,d,c)}):[]}; wv=function(){vv||(vv=new pqa);return vv}; yv=function(){var a,b;return"h5vcc"in xv&&((a=xv.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=xv.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in xv&&xv.performance.mark&&xv.performance.measure?2:0}; zv=function(a){var b=yv();switch(b){case 1:xv.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:xv.performance.mark(a+"-start");break;case 0:break;default:Kd(b,"unknown trace type")}}; rqa=function(a){var b=yv();switch(b){case 1:xv.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";xv.performance.mark(c);xv.performance.measure(a,b,c);break;case 0:break;default:Kd(b,"unknown trace type")}}; sqa=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?g.Os():d;this.C=c;this.scheduler=d;this.B=new g.cj;this.j=a;for(a={tx:0};a.tx=1E3?f():e>=a?Wv||(Wv=Xv(function(){f();Wv=void 0},0)):h-m>=10&&(Jqa(c,d.tier),l.D=h)}; Eqa=function(a,b){if(a.endpoint==="log_event"){Pv(a);var c=Qv(a),d=new Map;d.set(c,[a.payload]);var e=Bqa(a.payload)||"";b&&(Uv=new b);return new g.Ce(function(f,h){Uv&&Uv.isReady()?Yv(d,Uv,f,h,{bypassNetworkless:!0},!0,Sv(e)):f()})}}; Hqa=function(a,b,c){if(b.endpoint==="log_event"){Pv(void 0,b);var d=Qv(b,!0),e=new Map;e.set(d,[ch(b.payload)]);c&&(Uv=new c);return new g.Ce(function(f){Uv&&Uv.isReady()?Zv(e,Uv,f,{bypassNetworkless:!0},!0,Sv(a)):f()})}}; Qv=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(b===void 0?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Bq;c.videoId?d.setVideoId(c.videoId):c.playlistId&&mg(d,2,$v,Df(c.playlistId));aw[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),bw[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; Tv=function(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new g.Ce(function(e,f){var h=Vv(c,d),l=h.C;h.C=!1;cw(h.B);cw(h.j);h.j=0;Uv&&Uv.isReady()?d===void 0&&g.hr("enable_web_tiered_gel")?Kqa(e,f,a,b,c,300,l):Kqa(e,f,a,b,c,d,l):(Jqa(c,d),e())})}; Kqa=function(a,b,c,d,e,f,h){var l=Uv;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;h=h===void 0?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(d!==void 0)e?(b=g.hr("enable_web_tiered_gel")?Nv().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Nv().extractMatchingEntries(q),m.set(d,b),Zv(m,l,a,c,!1,h)):(m=g.hr("enable_web_tiered_gel")?Nv().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Nv().extractMatchingEntries(q),n.set(d,m), Yv(n,l,a,b,c,!1,h));else if(e){b=g.w(Object.keys(Rv));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.hr("enable_web_tiered_gel")?Nv().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Nv().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),f.length>0&&m.set(n,f),(g.hr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.hr("web_fp_via_jspb_and_json"))&&delete Rv[n];Zv(m,l,a,c,!1,h)}else{m=g.w(Object.keys(Rv));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.hr("enable_web_tiered_gel")?Nv().smartExtractMatchingEntries({keys:[{isJspb:!1, cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):Nv().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),q.length>0&&n.set(p,q),(g.hr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.hr("web_fp_via_jspb_and_json"))&&delete Rv[p];Yv(n,l,a,b,c,!1,h)}}; Jqa=function(a,b){function c(){Tv({writeThenSend:!0},void 0,a,b)} a=a===void 0?!1:a;b=b===void 0?200:b;var d=Vv(a,b),e=d===Lqa||d===Mqa?5E3:Nqa;g.hr("web_gel_timeout_cap")&&!d.j&&(e=Xv(function(){c()},e),d.j=e); cw(d.B);e=g.Eq("LOGGING_BATCH_TIMEOUT",g.ir("web_gel_debounce_ms",1E4));g.hr("shorten_initial_gel_batch_timeout")&&dw&&(e=Oqa);e=Xv(function(){g.ir("gel_min_batch_size")>0?Nv().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=Pqa&&c():c()},e); d.B=e}; Yv=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;var l=Math.round((0,g.T)()),m=a.size,n=Qqa(h);a=g.w(a);var p=a.next();for(h={};!p.done;h={DR:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,qS:void 0,SR:void 0},p=a.next()){var q=g.w(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.Fc({context:g.$t(b.config_||g.Zt())});if(!g.Qa(q)&&!g.hr("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=bw[p])&&Rqa(h.batchRequest,p,q);delete bw[p];h.dangerousLogToVisitorSession= p==="visitorOnlyApprovedKey";Sqa(h.batchRequest,l,h.dangerousLogToVisitorSession);Tqa(e);h.qS=function(r){g.hr("start_client_gcf")&&g.Eo.Wi(function(){return g.J(function(t){return g.G(t,Uqa(r),0)})}); m--;m||c()}; h.DR=0;h.SR=function(r){return function(){r.DR++;if(e.bypassNetworkless&&r.DR===1)try{g.Uu(b,n,r.batchRequest,ew({writeThenSend:!0},r.dangerousLogToVisitorSession,r.qS,r.SR,f)),dw=!1}catch(t){g.Hq(t),d()}m--;m||c()}}(h); try{g.Uu(b,n,h.batchRequest,ew(e,h.dangerousLogToVisitorSession,h.qS,h.SR,f)),dw=!1}catch(r){g.Hq(r),d()}}}; Zv=function(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round((0,g.T)()),l={value:a.size},m=new Map([].concat(g.x(a)));m=g.w(m);for(var n=m.next();!n.done;n=m.next()){var p=g.w(n.value).next().value,q=a.get(p);n=new zma;var r=b.config_||g.Zt(),t=new uq,u=new oq;Dg(u,1,r.JQ);Dg(u,2,r.IQ);Fg(u,16,r.AZ);Dg(u,17,r.innertubeContextClientVersion);if(r.GK){var y=r.GK,A=new mq;y.coldConfigData&&Dg(A,1,y.coldConfigData);y.appInstallData&&Dg(A,6,y.appInstallData);y.coldHashData&&Dg(A,3,y.coldHashData);y.hotHashData&& A.Ks(y.hotHashData);tg(u,mq,62,A)}(y=g.Ka.devicePixelRatio)&&y!=1&&Yf(u,65,uf(y));y=jr();y!==""&&Dg(u,54,y);y=kr();if(y.length>0){A=new qq;for(var D=0;DXqa&&(a=1);Dq("BATCH_CLIENT_COUNTER",a);return a}; Rqa=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}]}; Pv=function(a,b){if(!g.Ma("yt.logging.transport.enableScrapingForTest")){var c=gr("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")hw=[],g.La("yt.logging.transport.enableScrapingForTest",!0),g.La("yt.logging.transport.scrapedPayloadsForTesting",hw),g.La("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.La("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.La("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Ma("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Ma("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Ma("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Ma("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var e=0;e0&&qra(a,b,f)}else qra(a,b)}; qra=function(a,b,c){a=rra(a);b=b?g.Gi(b):"";c=c||5;Pr()&&g.wr(a,b,c)}; rra=function(a){for(var b=g.w(sra),c=b.next();!c.done;c=b.next())a=Ki(a,c.value);return"ST-"+Ud(a).toString(36)}; tra=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")}; ura=function(){this.Gt=[];this.xs=[]}; tw=function(){if(!rw){var a=rw=new ura;a.xs.length=0;a.Gt.length=0;vra(a,wra)}return rw}; vra=function(a,b){b.xs&&a.xs.push.apply(a.xs,b.xs);b.Gt&&a.Gt.push.apply(a.Gt,b.Gt)}; xra=function(a){function b(){return a.charCodeAt(d++)} var c=a.length,d=0;do{var e=uw(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=uw(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=uw(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f=typeof h!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(h=xra(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?vw(f+".ve",h,l,m):0;d+=f;d+=vw(e,a[e],b,c);if(d>500)break}}else c[b]=ww(a),d+=c[b].length;else c[b]=ww(a),d+=c[b].length;return d}; vw=function(a,b,c,d){c+="."+a;a=ww(b);d[c]=a;return c.length+a.length}; ww=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}}; Ws=function(a){g.xw(a)}; g.yw=function(a){g.xw(a,"WARNING")}; g.xw=function(a,b){var c=c===void 0?{}:c;c.name=g.Eq("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Eq("INNERTUBE_CONTEXT_CLIENT_VERSION");b=b===void 0?"ERROR":b;var d=!1;b=b===void 0?"ERROR":b;d=d===void 0?!1:d;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.hr("console_log_js_exceptions")){var e=[];e.push("Name: "+a.name);e.push("Message: "+a.message);a.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&e.push("Error args: "+JSON.stringify(a.args)); e.push("File name: "+a.fileName);e.push("Stacktrace: "+a.stack);window.console.log(e.join("\n"),a)}if(!(zra>=5)){e=Ara;var f=Nba(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.B||"Not available";if(m.startsWith(l+": "+h)){var n=m.split("\n");n.shift();m=n.join("\n")}n=f.lineNumber||"Not available";f=f.fileName||"Not available";var p=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var q=0;q=500);q++);else if(a.hasOwnProperty("params")&& a.params){var r=a.params;if(typeof a.params==="object")for(q in r){if(r[q]){var t="params."+q,u=ww(r[q]);c[t]=u;p+=t.length+u.length;if(p>500)break}}else c.params=ww(r)}if(e.length)for(q=0;q=500);q++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:h,name:l,lineNumber:n,fileName:f,stack:m,params:c,sampleWeight:1};e=Number(a.columnNumber);isNaN(e)||(c.lineNumber=c.lineNumber+":"+e);if(a.level==="IGNORED")a= 0;else a:{a=tw();e=g.w(a.xs);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.rB)){a=h.weight;break a}a=g.w(a.Gt);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.callback(c)){a=e.weight;break a}a=1}c.sampleWeight=a;a=g.w(Bra);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.RL[c.name])for(l=g.w(e.RL[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.Qj)){c.params["params.error.original"]=h[0];l=q.groups;q={};for(n=0;n1E3&&g.yw(new g.Hs("IL Attach cache exceeded limit"))}l= Lw(c,b);Gw.has(l)?Mw(c,b):Iw.set(l,!0)}}d=d.filter(function(p){p.csn!==b?(p.csn=b,p=!0):p=!1;return p}); c={csn:b,parentVe:c.getAsJson(),childVes:g.nl(d,function(p){return p.getAsJson()})}; b==="UNDEFINED_CSN"?Nw("visualElementAttached",f,c):a?jw("visualElementAttached",c,a,f):g.Xs("visualElementAttached",c,f)}; Qra=function(a,b,c,d,e){Ow(c,b);d=Fw({cttAuthInfo:pw(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:1};e&&(c.clientData=e);b==="UNDEFINED_CSN"?Nw("visualElementShown",d,c):a?jw("visualElementShown",c,a,d):g.Xs("visualElementShown",c,d)}; Rra=function(a,b,c,d){var e=(d=d===void 0?!1:d)?16:8;d=Fw({cttAuthInfo:pw(b)||void 0,endOfSequence:d},b);c={csn:b,ve:c.getAsJson(),eventType:e};b==="UNDEFINED_CSN"?Nw("visualElementHidden",d,c):a?jw("visualElementHidden",c,a,d):g.Xs("visualElementHidden",c,d)}; Tra=function(a,b,c,d){Sra(a,b,c,d)}; Sra=function(a,b,c,d){var e=void 0;Ow(c,b);e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=Fw({cttAuthInfo:pw(b)||void 0},b);c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);b==="UNDEFINED_CSN"?Nw("visualElementGestured",f,c):a?jw("visualElementGestured",c,a,f):g.Xs("visualElementGestured",c,f)}; Ura=function(){var a=jv(16);for(var b=[],c=0;c0&&c.push(g.he("BR"));c.push(g.ie(f))}):c.push(g.ie(d))}return c}; cx=function(a,b,c,d){if(c==="child"){g.me(b);var e;d===void 0?e=void 0:e=!Array.isArray(d)||d&&typeof d.I==="string"?[d]:d;c=Wra(a,e);c=g.w(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else c==="style"?g.Vl(b,"cssText",d?d:""):d===null||d===void 0?b.removeAttribute(c):(a=d.toString(),c==="href"&&(a=g.md(g.qd(a))),b.setAttribute(c,a))}; g.U=function(a){g.ax.call(this,a);this.Gb=!0;this.Z=!1;this.listeners=[]}; g.dx=function(a,b){b?a.show():a.hide()}; g.ex=function(a){g.U.call(this,a);this.Ra=new g.Xw;g.P(this,this.Ra)}; fx=function(a,b,c,d,e,f,h){h=h===void 0?null:h;g.ex.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.yb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.jb=f;this.Ya=null;this.nT=new hv(this.element);g.P(this,this.nT);this.ob=this.T(this.element,"click",this.onClick);this.Fa=[];this.Aa=new lqa(this.onClick,this);g.P(this,this.Aa);this.Ab=!1;this.Ma=this.qa=null}; gx=function(a,b){a=a===void 0?null:a;b=b===void 0?null:b;if(a==null)return g.yw(Error("Got null or undefined adText object")),"";var c=g.Td(a.text);if(!a.isTemplated)return c;if(b==null)return g.yw(Error("Missing required parameters for a templated message")),c;a=g.w(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.w(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c}; Xra=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].url!=null)?g.Td(a.thumbnails[0].url):""}; Yra=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].width!=null&&a.thumbnails[0].height!=null)?new g.Gd(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Gd(0,0)}; g.hx=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.w(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""}; g.ix=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c1){for(var b=[a[0]],c=1;c0&&(this.j=new g.Lo(this.XW,b,this),g.P(this,this.j));this.G=new g.Lo(this.XW,c,this);g.P(this,this.G);this.Z=sla(this.B,e,1,d);g.P(this,this.Z);this.N=sla(this.B,0,d,1);g.P(this,this.N);this.D=new ns;g.P(this,this.D)}; Isa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Kd(a,"unknown result type")}}; Jsa=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;case "f.i_":return 16;case "a.b_":return 18;case "a.o_":return 20;case "g.o_":return 22;case "p.i_":return 24;case "p.m_":return 26;case "i.k_":return 28;case "i.f_":return 30;case "a.s_":return 32;default:Kd(a,"Unknown method type")}}; Ksa=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?getComputedStyle(e).display==="none"?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}a.isTrusted===!0?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):a.isTrusted===!1?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"): d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);Dq("ISDSTAT",c);$x(c,"i.s_",{Tea:"sk",metadata:b,states:d});return c}; Lsa=function(a,b){var c=[];b?b.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):b.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");$x(0,"a.s_",{metadata:a,states:c},!1);Dq("ASDSTAT",0)}; $x=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h={detected:a===0,source:""+b+((e=c.Tea)!=null?e:"")+((f=c.j7)!=null?f:""),detectionStates:c.states,durationMs:c.i7};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.Xs("biscottiBasedDetection",h);d&&(a=Isa(a),b=Jsa(b),Dq("CATSTAT",Number(g.Eq("CATSTAT",0))&~(3<0}; gy=function(a,b,c,d,e,f){Qx.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Ga=!1;this.Wa=f;this.G=this.api.U().experiments.kb("enable_modern_skip_button_on_web");this.Xa=!1;this.D=new g.ex({I:"span",Na:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.P(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.fb=new g.Tx(this.D,500,!1,100,function(){return h.hide()}); g.P(this,this.fb);this.Ka=new Zx(this.D.element,15E3,5E3,.5,.5,this.G);g.P(this,this.Ka);this.hide()}; Nsa=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.Q(a.clickCommand,g.hy)&&g.Q(a.clickCommand,g.hy).commands||[]).some(function(b){return b.adLifecycleCommand?Msa(b.adLifecycleCommand):!1})}; Msa=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"}; iy=function(a,b,c,d,e,f){Qx.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()}; Osa=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ga.hide():a.B.hide()),b?(a=a.C,a.fb.show(),a.show()):a.C.show())}; jy=function(a,b,c,d){xx.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; ky=function(a,b,c,d,e,f){fx.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.B=e;this.C=f;this.j=this.Ea("ytp-ad-simple-ad-badge");this.hide()}; ly=function(a,b,c,d,e){e=e===void 0?!1:e;Ww.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.CM=e}; my=function(a,b){g.Xw.call(this);this.api=a;this.durationMs=b;this.j=null;this.Hd=new ns(this);g.P(this,this.Hd);this.B=Psa;this.Hd.T(this.api,"presentingplayerstatechange",this.G5);this.j=this.Hd.T(this.api,"onAdPlaybackProgress",this.Tc)}; ny=function(a){g.Xw.call(this);this.j=!1;this.rj=0;this.Hd=new ns(this);g.P(this,this.Hd);this.durationMs=a;this.Ye=new g.Je(100);g.P(this,this.Ye);this.Hd.T(this.Ye,"tick",this.Tc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()}; g.oy=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";d>0&&(b+=" "+d+" Days");if(d>0||e>0)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";d>0&&(b+=d+":",e<10&&(b+="0"));if(d>0||e>0)b+=e+":",f<10&&(b+="0");b+=f+":";c<10&&(b+="0");d=b+c}return a>=0?d:"-"+d}; g.py=function(a){return(!("button"in a)||typeof a.button!=="number"||a.button===0)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; qy=function(a,b,c,d,e,f){Qx.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()}; ry=function(a,b,c,d){Ox.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; sy=function(a,b,c,d){fx.call(this,a,{I:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()}; ty=function(a,b){this.B=a;this.j=b}; Qsa=function(a,b){return a.B+b*(a.j-a.B)}; uy=function(a,b,c){return a.j-a.B?g.Bd((b-a.B)/(a.j-a.B),0,1):c!=null?c:Infinity}; vy=function(a,b){g.ex.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.P(this,this.B);this.progressBar=this.Ea("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; wy=function(a,b,c,d,e,f){fx.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"},{I:"div",S:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Ea("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.Ea("ytp-ad-player-overlay-instream-info");this.D=null;Rsa(this)&&(a=ge("div"),g.To(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 ry(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(a),c.init(Vw("ad-title"),{text:b.title},this.macros),g.P(this,c)),this.D=a);this.G=this.Ea("ytp-ad-player-overlay-skip-or-preview"); this.Ka=this.Ea("ytp-ad-player-overlay-progress-bar");this.Ga=this.Ea("ytp-ad-player-overlay-instream-user-sentiment");this.ra=this.Ea("ytp-ad-player-overlay-ad-disclosure-banner");this.B=e;g.P(this,this.B);this.hide()}; Rsa=function(a){a=a.api.U();return g.yy(a)&&a.B}; zy=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.Hi("/sharing_services",a);g.Hu(d)}; g.Ay=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 a<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; By=function(a){this.j=new op(a)}; Ssa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(g.Eq("INNERTUBE_CLIENT_NAME")==="WEB"||g.Eq("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a}; Cy=function(a){if(g.Eq("LOGGED_IN",!0)&&Ssa()){var b=g.Eq("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Ai(window.location.href);c&&b.push(c);c=g.Ai(a);g.Nb(b,c)||!c&&ob(a,"/")?(b=Bi(a),(b=Gfa(b))?(b=rra(b),b=(b=g.xr(b)||null)?Qq(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;Ssa()?(d||(d=g.Eq("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&qw(a,b)}}; g.Tsa=function(a){var b=b===void 0?{}:b;var c=c===void 0?"":c;var d=d===void 0?window:d;a=g.Hi(a,b);Cy(a);c=g.qd(a+c);d=d.location;c=rd(c);c!==void 0&&(d.href=c)}; g.Dy=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=g.Eq("EVENT_ID");d&&(b.ei||(b.ei=d));b&&qw(a,b);c||(Cy(a),g.Tsa(a))}; g.Ey=function(a,b,c,d,e){e=e===void 0?!1:e;c&&qw(a,c);c=g.qd(a);var f=g.md(c);a!=f&&Nq(Error("Unsafe window.open URL: "+a));a=f;b=b||Ud(a).toString(36);try{if(e){e=a;e=Wpa(e);Cy(e);g.Ld(e,b,"attributionsrc");return}}catch(h){g.Hq(h)}Cy(a);g.Ld(c,b,d)}; Usa=function(a){Fy=a}; Vsa=function(a){Gy=a}; Wsa=function(a){Hy=a}; Ysa=function(){Xsa=Hy=Gy=Fy=null}; $sa=function(){var a=a===void 0?window.location.href:a;if(g.hr("kevlar_disable_theme_param"))return null;xi(g.zi(5,a));try{var b=g.Sq(a).theme;return Zsa.get(b)||null}catch(c){}return null}; Iy=function(){this.j={};if(this.B=bna()){var a=g.xr("CONSISTENCY");a&&ata(this,{encryptedTokenJarContents:a})}}; ata=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},c*1E3); a.B&&g.wr("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}; Ky=function(){this.B=-1;var a=g.Eq("LOCATION_PLAYABILITY_TOKEN");g.Eq("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Jy(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)}; Jy=function(a){return a.localStorage===void 0?new Rs("yt-client-location"):a.localStorage}; g.Ly=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=g.Eq("INNERTUBE_CONTEXT");if(!d)return g.xw(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Fc(d);g.hr("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=g.Eq("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=f===void 0?!1:f;g.Bs();var h="USER_INTERFACE_THEME_LIGHT";g.Cs(0,165)?h="USER_INTERFACE_THEME_DARK":g.Cs(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.hr("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:$sa()||h;e.userInterfaceTheme=f;if(!b){if(f=Pna())e.connectionType=f;g.hr("web_log_effective_connection_type")&&(f=Rna())&&(d.client.effectiveConnectionType=f)}var l;if(g.hr("web_log_memory_total_kbytes")&&((l=g.Ka.navigator)==null?0:l.deviceMemory)){var m;l=(m=g.Ka.navigator)==null?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+l*1E6}g.hr("web_gcf_hashes_innertube")&&(f=Yoa())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo|| {},m&&(d.client.configInfo.coldConfigData=m),l&&(d.client.configInfo.coldHashData=l),f&&(d.client.configInfo.hotHashData=f));m=g.Sq(g.Ka.location.href);!g.hr("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo={graftUrl:g.Ka.location.href},g.hr("kevlar_woffle")&&Ina.instance&&(m=Ina.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=ys(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.hr("web_lr_app_quality_killswitch")&&(m=g.Eq("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.Eq("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.hr("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}n=void 0}n&&(e.timeZone=n)}(n=jr())?e.experimentsToken=n:delete e.experimentsToken;n=kr();Iy.instance||(Iy.instance=new Iy);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.wc(Iy.instance.j)});!g.hr("web_prequest_context_killswitch")&&(n=g.Eq("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.Bs();n=g.Cs(0,58);e=e.get("gsml","");d.user=Object.assign({}, d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.hr("warm_op_csn_cleanup")?c&&(b=g.ow())&&(d.clientScreenNonce=b):!b&&(b=g.ow())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ma("yt.mdx.remote.remoteClient_"))d.remoteClient=a;Ky.getInstance().setLocationOnInnerTubeContext(d);try{var p=$q(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.w(Object.entries(p)),t=r.next();!t.done;t=r.next()){var u=g.w(t.value),y=u.next().value, A=u.next().value;p=y;q=A;a=void 0;(a=d.adSignalsInfo.params)==null||a.push({key:p,value:""+q})}var D;if(((D=d.client)==null?void 0:D.clientName)==="TVHTML5"){var F=g.Eq("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(H){g.xw(H)}return d}; cta=function(a,b){if(!a)return!1;var c,d=(c=g.Q(a,My))==null?void 0:c.signal;if(d&&b.Sy)return!!b.Sy[d];var e;if((c=(e=g.Q(a,bta))==null?void 0:e.request)&&b.aP)return!!b.aP[c];for(var f in a)if(b.UO[f])return!0;return!1}; dta=function(a){var b={"Content-Type":"application/json"};g.Eq("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.Eq("EOM_VISITOR_DATA"):g.Eq("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.Eq("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.Eq("LOGGED_IN",!1);g.Eq("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.Eq("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.Eq("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.Eq("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]= a),(a=g.Eq("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.Eq("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b}; eta=function(){this.j={}}; Ny=function(){this.mappings=new eta}; Oy=function(a){return function(){return new a}}; gta=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=fta[b];if(c){c=new RegExp(c);for(var d=g.w(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(fta).forEach(function(h){var l=g.w(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.w(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]}; g.Py=function(a){return"/youtubei/v1/"+gta(a)}; Qy=function(){}; Ry=function(){}; Sy=function(){}; Ty=function(a){return g.Ma("ytcsi."+(a||"")+"data_")||hta(a)}; ita=function(){var a=Ty();a.info||(a.info={});return a.info}; Uy=function(a){a=Ty(a);a.metadata||(a.metadata={});return a.metadata}; Vy=function(a){a=Ty(a);a.tick||(a.tick={});return a.tick}; Wy=function(a){a=Ty(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}; jta=function(a){a=Wy(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}; Xy=function(a){var b=Ty(a).nonce;b||(b=g.kv(16),Ty(a).nonce=b);return b}; hta=function(a){var b={tick:{},info:{}};g.La("ytcsi."+(a||"")+"data_",b);return b}; rz=function(){var a=g.Ma("ytcsi.debug");a||(a=[],g.La("ytcsi.debug",a),g.La("ytcsi.reference",{}));return a}; sz=function(a){a=a||"";var b=kta();if(b[a])return b[a];var c=rz(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d}; lta=function(a){a=a||"";var b=kta();b[a]&&delete b[a];var c=rz(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d}; kta=function(){var a=g.Ma("ytcsi.reference");if(a)return a;rz();return g.Ma("ytcsi.reference")}; tz=function(a){return mta[a]||"LATENCY_ACTION_UNKNOWN"}; uz=function(a,b){bu.call(this,1,arguments);this.Ye=b}; vz=function(){this.j=0}; wz=function(){vz.instance||(vz.instance=new vz);return vz.instance}; yz=function(a,b){xz[b]=xz[b]||{count:0};var c=xz[b];c.count++;c.time=(0,g.T)();a.j||(a.j=g.Ms(0,function(){var d=(0,g.T)(),e;for(e in xz)xz[e]&&d-xz[e].time>6E4&&delete xz[e];a&&(a.j=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.Hs("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.yw(c)),!0):!1}; nta=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; ota=function(){var a;if(g.hr("csi_use_performance_navigation_timing")||g.hr("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=zz==null?void 0:(a=zz.getEntriesByType)==null?void 0:(b=a.call(zz,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=Az(e.requestStart),e.responseEnd=Az(e.responseEnd),e.redirectStart=Az(e.redirectStart),e.redirectEnd=Az(e.redirectEnd),e.domainLookupEnd=Az(e.domainLookupEnd),e.connectStart=Az(e.connectStart), e.connectEnd=Az(e.connectEnd),e.responseStart=Az(e.responseStart),e.secureConnectionStart=Az(e.secureConnectionStart),e.domainLookupStart=Az(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=zz.timing}else a=g.hr("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(zz.timing)):zz.timing;return a}; Az=function(a){return Math.round(Bz()+a)}; Bz=function(){return(g.hr("csi_use_time_origin")||g.hr("csi_use_time_origin_tvhtml5"))&&zz.timeOrigin?Math.floor(zz.timeOrigin):zz.timing.navigationStart}; Dz=function(a,b){Cz("_start",a,b)}; Ez=function(a,b){if(!g.hr("web_csi_action_sampling_enabled")||!Ty(b).actionDisabled){var c=sz(b||"");ev(c.info,a);a.loadType&&(c=a.loadType,Uy(b).loadType=c);ev(jta(b),a);c=Xy(b);b=Ty(b).cttAuthInfo;wz().info(a,c,b)}}; pta=function(){var a,b,c,d;return((d=wv().resolve(new qv(Xt))==null?void 0:(a=Yt())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})}; Cz=function(a,b,c){if(!g.hr("web_csi_action_sampling_enabled")||!Ty(c).actionDisabled){var d=Xy(c),e;if(e=g.hr("web_csi_debug_sample_enabled")&&d){(wv().resolve(new qv(Xt))==null?0:Yt())&&!qta&&(qta=!0,Cz("gcfl",(0,g.T)(),c));var f,h,l;e=(wv().resolve(new qv(Xt))==null?void 0:(f=Yt())==null?void 0:(h=f.loggingHotConfig)==null?void 0:(l=h.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(f=e!==0)b:{f=pta();if(f.length>0)for(h=0;hc.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(Cz("wffs",Az(b.startTime)),Cz("wffe",Az(b.responseEnd)))}; xta=function(a,b,c){zz&&zz.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?zz.measure(a,b,c):b?zz.measure(a,b):zz.measure(a))}; yta=function(a){var b=Fz("aft",a);if(b)return b;b=g.Eq((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0&&Ez(b);b={isNavigation:!0,actionType:tz(g.Eq("TIMING_ACTION"))};var c=g.Eq("PREVIOUS_ACTION");c&&(b.previousAction=tz(c));if(c=g.Eq("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.Eq("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.ow())&&c!=="UNDEFINED_CSN"&&(b.clientScreenNonce=c);c=tta();if(c===1||c===-1)b.isVisible= !0;c=Uy().loadType==="cold";var d=ita();c||(c=d.yt_lt==="cold");if(c){b.loadType="cold";c=ita();d=ota();var e=Bz(),f=g.Eq("CSI_START_TIMESTAMP_MILLIS",0);f>0&&!g.hr("embeds_web_enable_csi_start_override_killswitch")&&(e=f);e&&(Cz("srt",d.responseStart),c.prerender!==1&&Dz(e));c=Bta();c>0&&Cz("fpt",c);c=ota();c.isPerformanceNavigationTiming&&Ez({performanceNavigationTiming:!0},void 0);Cz("nreqs",c.requestStart,void 0);Cz("nress",c.responseStart,void 0);Cz("nrese",c.responseEnd,void 0);c.redirectEnd- c.redirectStart>0&&(Cz("nrs",c.redirectStart,void 0),Cz("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(Cz("ndnss",c.domainLookupStart,void 0),Cz("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(Cz("ntcps",c.connectStart,void 0),Cz("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=Bz()&&c.connectEnd-c.secureConnectionStart>0&&(Cz("nstcps",c.secureConnectionStart,void 0),Cz("ntcpe",c.connectEnd,void 0));zz&&"getEntriesByType"in zz&&wta();c=[];if(document.querySelector&& zz&&zz.getEntriesByName)for(var h in Iz)Iz.hasOwnProperty(h)&&(d=Iz[h],vta(h,d)&&c.push(d));if(c.length>0)for(b.resourceInfo=[],h=g.w(c),c=h.next();!c.done;c=h.next())b.resourceInfo.push({resourceCache:c.value})}Ez(b);b=Wy();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);h=b.preLoggedGelInfos;b=jta();c=void 0;for(d=0;d-1&&(delete v["@type"],ba=v);y&&a.B.has(y)&&a.B.delete(y);((cb=b.config)==null?0:cb.Gda)&&Kz(b.config.Gda);if(ba||(Ab=a.C)==null||!Ab.Mma(b.input,b.eq)){Va.Ha(15);break}return g.G(Va,a.C.Doa(b.input,b.eq),16);case 16:ba=Va.B;case 15:return Tta(a,ba,b),d(),Va.return(ba||void 0)}})}; Ota=function(a,b){a:{a=a.sP;var c,d=(c=g.Q(b,My))==null?void 0:c.signal;if(d&&a.Sy&&(c=a.Sy[d])){var e=c();break a}var f;if((c=(f=g.Q(b,bta))==null?void 0:f.request)&&a.aP&&(f=a.aP[c])){e=f();break a}for(e in b)if(a.UO[e]&&(b=a.UO[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)}; Qta=function(a,b,c){var d,e,f,h,l,m,n,p,q,r;return g.J(function(t){if(t.j==1){f=((d=b)==null?void 0:(e=d.Gw)==null?void 0:e.identity)||au;m=(h=b)==null?void 0:(l=h.Gw)==null?void 0:l.sessionIndex;q=((p=g.Q((n=b)==null?void 0:n.command,My))==null?void 0:p.signal)==="GET_ACCOUNT_MENU"?!0:!1;var u=Ee(a.j.cF(f,{sessionIndex:m,sZ:q}));return g.G(t,u,2)}r=t.B;return t.return(Promise.resolve(Object.assign({},dta(c),r)))})}; Pta=function(a,b,c){var d,e=(b==null?void 0:(d=b.Gw)==null?void 0:d.identity)||au,f;d=b==null?void 0:(f=b.Gw)==null?void 0:f.sessionIndex;var h;b=((h=g.Q(b==null?void 0:b.command,My))==null?void 0:h.signal)==="GET_ACCOUNT_MENU"?!0:!1;a=a.j.cF(e,{sessionIndex:d,sZ:b});return Object.assign({},dta(c),a)}; Tz=function(){}; Uz=function(){}; Vz=function(a){this.K=a}; Wz=function(){}; Xz=function(){}; Yz=function(){}; Zz=function(){}; g.$z=function(a,b){var c=g.Da.apply(2,arguments);a=a===void 0?0:a;g.Hs.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)}; aA=function(a){this.j=a}; Vta=function(a,b,c){if(a.j){var d=xi(g.zi(5,Ki(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.hr("wug_networking_gzip_request")&&(a=Bpa(c));return new window.Request(b,a)}; g.cA=function(a,b){if(!bA){var c=wv();rv(c,{bH:Wta,G3:aA});var d={UO:{feedbackEndpoint:Oy(Wz),modifyChannelNotificationPreferenceEndpoint:Oy(Xz),playlistEditEndpoint:Oy(Yz),shareEntityEndpoint:Oy(Vz),subscribeEndpoint:Oy(Tz),unsubscribeEndpoint:Oy(Uz),webPlayerShareEntityServiceEndpoint:Oy(Zz)}},e=Ky.getInstance(),f={};e&&(f.client_location=e);a===void 0&&(a=Jna());b===void 0&&(b=c.resolve(Wta));Nta(d,b,a,f);rv(c,{bH:Xta,AU:Qz.instance});bA=c.resolve(Xta)}return bA}; Yta=function(a){var b=new bj;if(a.interpreterJavascript){var c=tma(a.interpreterJavascript);c=zd(c).toString();var d=new $i;Dg(d,6,c);tg(b,$i,1,d)}else a.interpreterUrl&&(c=iq(a.interpreterUrl),c=g.jd(c).toString(),d=new aj,Dg(d,4,c),tg(b,aj,2,d));a.interpreterHash&&Eg(b,3,a.interpreterHash);a.program&&Eg(b,4,a.program);a.globalName&&Eg(b,5,a.globalName);return b}; Zta=function(a){var b={};a=a.split("&");a=g.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b}; aua=function(){if(!g.hr("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.hr("disable_biscotti_fetch_entirely_for_all_web_clients")&&Pr()){var a=g.Eq("PLAYER_VARS",{});if(g.Cc(a,"privembed",!1)!="1"&&!ina(a)){var b=function(){dA=!0;"google_ad_status"in window?Dq("DCLKSTAT",1):Dq("DCLKSTAT",2)}; try{g.bv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}$ta.push(g.Eo.Wi(function(){if(!(dA||"google_ad_status"in window)){try{if(b){var c=""+g.Ta(b),d=iqa[c];d&&g.$u(d)}}catch(e){}dA=!0;Dq("DCLKSTAT",3)}},5E3))}}}; eA=function(){var a=Number(g.Eq("DCLKSTAT",0));return isNaN(a)?0:a}; gA=function(a,b,c){var d=this;this.network=a;this.B=c;this.j=null;b&&bua(this,new Promise(function(e){g.Ms(0,function(){e(fA(d))},0)}))}; fA=function(a,b){b=b===void 0?0:b;var c,d,e,f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(d=gj().j)c.interpreterHash=d;g.wa(u,2);return g.G(u,hA(a,c),4);case 4:e=u.B;if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");f=e.challenge;h=Zta(f);if("c1a"in h&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.xa(u,3);break;case 2:l= g.ya(u);g.yw(l);b++;if(b>=5)return g.yw(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),cua(a,864E5),u.return({challenge:"",zr:{},kp:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(y){g.Ms(0,function(){y(fA(a,b))},m)})); case 3:n=Number(h.t)||7200;cua(a,n*1E3);p=void 0;if(!("c1a"in h&&e.bgChallenge)){u.Ha(5);break}q=Yta(e.bgChallenge);g.wa(u,6);return g.G(u,hj(gj(),q),8);case 8:g.xa(u,7);break;case 6:return r=g.ya(u),g.yw(r),u.return({challenge:f,zr:h,kp:p,bgChallenge:q});case 7:return g.wa(u,9),p=new dj({challenge:q,hH:!0,lh:"aGIf"}),g.G(u,p.IH,11);case 11:g.xa(u,5);break;case 9:t=g.ya(u),g.yw(t),p=void 0;case 5:return u.return({challenge:f,zr:h,kp:p,bgChallenge:q})}})}; hA=function(a,b){var c;return g.J(function(d){c=a.B;return!c||c.Kh()?d.return(hA(a.network,b)):d.return(new Promise(function(e){c.eG("publicytnetworkstatus-online",function(){hA(a.network,b).then(e)})}))})}; bua=function(a,b){a.j=b}; dua=function(a){var b,c,d;return g.J(function(e){if(e.j==1)return g.G(e,Promise.race([a.j,null]),2);b=e.B;var f=fA(a);a.j=f;(c=b)==null||(d=c.kp)==null||d.dispose();g.va(e)})}; cua=function(a,b){function c(){var e;return g.J(function(f){e=d-Date.now();return e<1E3?g.G(f,dua(a),0):(Ls(c,0,Math.min(e,6E4)),f.Ha(0))})} var d=Date.now()+b;c()}; eua=function(a,b){return new Promise(function(c){g.Ms(0,function(){c(b())},a)})}; g.fua=function(a,b){var c;return g.J(function(d){var e=g.Ma("yt.aba.att");return(c=e?e:gA.instance!==void 0?gA.instance.C.bind(gA.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.gua=function(){var a;return(a=(a=g.Ma("yt.aba.att2"))?a:gA.instance!==void 0?gA.instance.D.bind(gA.instance):null)?a():Promise.resolve(!1)}; iua=function(a,b){var c=g.Ma("ytDebugData.callbacks");c||(c={},g.La("ytDebugData.callbacks",c));if(g.hr("web_dd_iu")||hua.includes(a))c[a]=b}; kua=function(a){for(var b="",c=0;c=1?a[a.length-1]:null;for(var d=g.w(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;b>=0;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]}; nua=function(a){return{isReady:a.isr.bind(a),mG:function(b){var c=void 0;b.jk&&(c={ca:b.jk.rE,ma:b.jk.v_,at:b.jk.VI,st:b.jk.JM});var d;return a.mawst((d=b.Br)!=null?d:"",c)}, ready:a.rea.bind(a),start:function(){}}}; iA=function(){this.state=1;this.kp=null}; pua=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.zd(2),g.bv(c,function(){if(window[h])oua(a,d,h,e);else{a.zd(3);var l=hqa(c),m=document.getElementById(l);m&&(fqa(l),m.parentNode.removeChild(m));g.yw(new g.Hs("Unable to load Botguard","from "+c))}},f)):b?(f=g.he("SCRIPT"),b instanceof yd?(f.textContent=zd(b),Nd(f)):f.textContent=b,f.nonce=Md(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?oua(a,d,h,e):(a.zd(4),g.yw(new g.Hs("Unable to load Botguard from JS")))): g.yw(new g.Hs("Unable to load VM; no url or JS provided"))}; oua=function(a,b,c,d){a.zd(5);try{var e=new dj({program:b,globalName:c,hH:g.hr("att_web_record_metrics"),lh:"aGIf"});e.IH.then(function(){a.zd(6);d&&d(b)}); a.ET(e)}catch(f){a.zd(7),f instanceof Error&&g.yw(f)}}; jA=function(){var a=g.Ma("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null}; kA=function(){iA.apply(this,arguments)}; lA=function(){}; qua=function(a,b,c){for(var d=!1,e=g.w(a.pj.entries()),f=e.next();!f.done;f=e.next())f=g.w(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.bb==="core"&&(d=!0);if(d){a:if(!c){a=g.w(a.pj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.w(c.value),c=d.next().value,d=d.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.bb==="core"){c=d.layoutId;break a}c=void 0}c?b.rQ(c):cy("No triggering layout ID available when attempting to mute.")}}; mA=function(a,b){this.Kl=a;this.Lo=b}; nA=function(){}; oA=function(){}; sua=function(a){g.O.call(this);var b=this;this.od=a;this.j=new Map;pA(this,"commandExecutorCommand",function(c,d,e){rua(b,c.commands,d,e)}); pA(this,"clickTrackingParams",function(){})}; tua=function(a,b){pA(a,b.Jr(),function(c,d,e){b.ju(c,d,e)})}; pA=function(a,b,c){a.La();a.j.get(b)&&g.xw(Error("Extension name "+b+" already registered"));a.j.set(b,c)}; rua=function(a,b,c,d){b=b===void 0?[]:b;a.La();var e=[],f=[];b=g.w(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.Q(h,uua)||g.Q(h,vua)?e.push(h):f.push(h);e=g.w(e);for(b=e.next();!b.done;b=e.next())qA(a,b.value,c,d);f=g.w(f);for(e=f.next();!e.done;e=f.next())qA(a,e.value,c,d)}; qA=function(a,b,c,d){a.La();b.loggingUrls&&wua(a,"loggingUrls",b.loggingUrls,c,d);b=g.w(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.w(e.value);e=f.next().value;f=f.next().value;e==="openPopupAction"?a.od.get().Zu("innertubeCommand",{openPopupAction:f}):e==="confirmDialogEndpoint"?a.od.get().Zu("innertubeCommand",{confirmDialogEndpoint:f}):xua.hasOwnProperty(e)||wua(a,e,f,c,d)}}; wua=function(a,b,c,d,e){if((a=a.j.get(b))&&typeof a==="function")try{a(c,d,e)}catch(f){g.xw(f)}else b=new g.Hs("Unhandled field",b),g.yw(b)}; rA=function(a,b,c){this.Lf=a;this.j=b;this.Oa=c}; sA=function(a){this.value=a}; tA=function(a){this.value=a}; uA=function(a){this.value=a}; vA=function(a){this.value=a}; wA=function(a){this.value=a}; xA=function(a){this.value=a}; yA=function(a){this.value=a}; zA=function(){sA.apply(this,arguments)}; AA=function(a){this.value=a}; BA=function(a){this.value=a}; CA=function(a){this.value=a}; DA=function(a){this.value=a}; EA=function(a){this.value=a}; FA=function(a){this.value=a}; GA=function(a){this.value=a}; HA=function(a){this.value=a}; IA=function(a){this.value=a}; JA=function(a){this.value=a}; KA=function(){sA.apply(this,arguments)}; LA=function(a){this.value=a}; MA=function(a){this.value=a}; NA=function(a){this.value=a}; OA=function(a){this.value=a}; PA=function(a){this.value=a}; QA=function(a){this.value=a}; RA=function(a){this.value=a}; SA=function(a){this.value=a}; TA=function(a){this.value=a}; UA=function(a){this.value=a}; VA=function(a){this.value=a}; WA=function(a){this.value=a}; XA=function(a){this.value=a}; YA=function(a){this.value=a}; ZA=function(a){this.value=a}; $A=function(a){this.value=a}; aB=function(a){this.value=a}; bB=function(a){this.value=a}; cB=function(a){this.value=a}; dB=function(a){this.value=a}; eB=function(a){this.value=a}; fB=function(a){this.value=a}; gB=function(a){this.value=a}; hB=function(a){this.value=a}; iB=function(a){this.value=a}; jB=function(a){this.value=a}; kB=function(a){this.value=a}; lB=function(a){this.value=a}; mB=function(a){this.value=a}; nB=function(a){this.value=a}; oB=function(a){this.value=a}; pB=function(a){this.value=a}; qB=function(a){this.value=a}; rB=function(a){this.value=a}; sB=function(a){this.value=a}; tB=function(a){this.value=a}; uB=function(a){this.value=a}; vB=function(a){this.value=a}; wB=function(){sA.apply(this,arguments)}; xB=function(a){this.value=a}; yB=function(){sA.apply(this,arguments)}; zB=function(){sA.apply(this,arguments)}; AB=function(){sA.apply(this,arguments)}; BB=function(){sA.apply(this,arguments)}; CB=function(){sA.apply(this,arguments)}; DB=function(a){this.value=a}; EB=function(a){this.value=a}; FB=function(a){this.value=a}; GB=function(a){this.value=a}; HB=function(a){this.value=a}; JB=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.w(b);for(c=b.next();!c.done;c=b.next())if(!IB(a.Ba,c.value))return!1;return!0}; KB=function(){return""}; yua=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}}; LB=function(a,b,c,d){d=d===void 0?!1:d;jb.call(this,a);this.rl=c;this.Fw=d;this.args=[];b&&this.args.push(b)}; MB=function(a,b,c,d){d=d===void 0?!1:d;jb.call(this,a);this.rl=c;this.Fw=d;this.args=[];b&&this.args.push(b)}; NB=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)}); this.j=b}; IB=function(a,b){return a.j.has(b)}; OB=function(a,b){a=a.j.get(b);if(a!==void 0)return a.get()}; PB=function(a){return Array.from(a.j.keys())}; QB=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.w(b);for(c=b.next();!c.done;c=b.next())if(!IB(a.Ba,c.value))return!1;return!0}; Aua=function(a){var b;return((b=zua.get(a))==null?void 0:b.Vy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; SB=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:Bua.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=RB(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.w(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(RB(d.value)); b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.w(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(RB(a.value))}return c}; Cua=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Bua.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c}; RB=function(a,b){var c={type:a.triggerType};b!=null&&(c.category=b);a.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c}; Dua=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.nl(d||[],function(e){return SB(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{})); return b}; UB=function(a,b){return function(c){return Eua(TB(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.bb,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.bb)}}; Eua=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:SB(a,{slotId:b,slotType:c,slotPhysicalPosition:d,bb:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ba:new NB([])}),layoutData:Cua(a,{layoutId:m,layoutType:n,bb:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Db:new Map,Ba:new NB([]),ac:{}})}}}; WB=function(a){this.Ca=a;a=Math.random();var b=this.Ca.get();b=g.VB(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=a1){g.yw(new g.Hs("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0}; gwa=function(a,b){var c=new Map;a=g.w(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.layoutType==="LAYOUT_TYPE_MEDIA")var e="v";else d.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(e=OB(d.Ba,"metadata_type_linked_in_player_layout_type"),e=e==="LAYOUT_TYPE_ENDCAP"||e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":e==="LAYOUT_TYPE_SURVEY"?"s":e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):e="u";c.set(d.layoutId,e);e==="u"&&(e={},UD(b,"uct",(e.c=d.layoutId,e)))}a=b.Im();VD={contentCpn:a,Ht:c}; d={};UD(b,"acc",(d.ct=c.size,d.c=a,d))}; hwa=function(){VD={contentCpn:"",Ht:new Map}}; WD=function(a){var b;return(b=VD.Ht.get(a))!=null?b:"u"}; XD=function(a,b,c){UD(a,b,c);iwa(a)}; jwa=function(a){var b=a.layoutId,c=a.gs;if(a.Fo){var d={};XD(a.Lf,"slso",(d.ec=b,d.is=c,d.ctp=WD(b),d))}}; YD=function(a){var b=a.layoutId,c=a.gs;if(a.Fo){var d={};XD(a.Lf,"slse",(d.ec=b,d.is=c,d.ctp=WD(b),d))}}; kwa=function(a){var b=a.layoutId,c=a.gs,d=a.Lf;a.Fo&&(a={},XD(d,"sleo",(a.xc=b,a.is=c,a.ctp=WD(b),a)),iwa(d))}; lwa=function(a){var b=a.cpn,c=a.Lf;a=a.gs;var d=c.Im(),e={};XD(c,"ce",(e.ec=b,e.ia=b!==d,e.r=VD.Ht.has(b),e.is=a,e.ctp=WD(b),e))}; iwa=function(a){if(a.Im()!==VD.contentCpn){var b={};UD(a,"ccm",(b.c=VD.contentCpn,b))}}; mwa=function(a){var b=a.cpn,c=a.Lf;a=a.gs;var d=c.Im(),e={};XD(c,"cx",(e.xc=b,e.ia=b!==d,e.r=VD.Ht.has(b),e.is=a,e.ctp=WD(b),e))}; nwa=function(a,b){this.Lf=a;this.Ca=b}; ZD=function(a){var b=[];if(a){a=g.w(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;d!==void 0&&(d=typeof d==="boolean"?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")}; $D=function(a,b,c){b=b===void 0?{}:b;this.errorCode=a;this.details=b;this.severity=c===void 0?0:c}; aE=function(a){return a===1||a===2}; bE=function(a,b){b=b===void 0?0:b;if(a instanceof $D)return a;a=a&&a instanceof Error?a:Error(""+a);aE(b)?g.xw(a):g.yw(a);return new $D(b===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)}; g.pwa=function(a){return(a=owa[a.toString()])?a:"LICENSE"}; qwa=function(a,b){function c(){var d=g.Da.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.x(d))} a.addEventListener("playing",c)}; cE=function(){var a=g.Ma("yt.player.utils.videoElement_");a||(a=g.he("VIDEO"),g.La("yt.player.utils.videoElement_",a));return a}; dE=function(a){var b=cE();return!!(b&&b.canPlayType&&b.canPlayType(a))}; fE=function(a){if(/opus/.test(a)&&g.eE&&!kp("38")&&!g.Dr())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Gr())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!dE(a)}; rwa=function(a){try{var b=fE('video/mp4; codecs="avc1.42001E"')||fE('video/webm; codecs="vp9"');return(fE('audio/mp4; codecs="mp4a.40.2"')||fE('audio/webm; codecs="opus"'))&&(b||!a)||dE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}}; gE=function(){var a=cE();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")}; hE=function(){var a=cE();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1}; g.iE=function(){ns.apply(this,arguments)}; jE=function(a,b,c,d,e,f){this.sampleRate=a===void 0?0:a;this.numChannels=b===void 0?0:b;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=d===void 0?!1:d;this.C=e===void 0?0:e;this.B=f===void 0?0:f}; mE=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||kE(a,b);this.j=g.lE[this.quality];this.fps=c||0;this.stereoLayout=!e||d!=null&&d!=="UNKNOWN"&&d!=="RECTANGULAR"?0:e;this.projectionType=d?d==="EQUIRECTANGULAR"&&e===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.lE[this.quality],a===0?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c==="MESH"?"s":"p")+(b>55?"60":b>49?"50":b>39?"48":""))); this.qualityLabel=a;this.B=l||"";this.primaries=m||""}; kE=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=nE[0];for(var d=0;d=Math.floor(f*16/9)*1.3||a>=f*1.3)return b;b=e}return"tiny"}; qE=function(a,b,c){c=c===void 0?{}:c;this.id=a;this.mimeType=b;c.tb>0||(c.tb=16E3);Object.assign(this,c);a=g.w(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=oE(b);this.rb=pE[this.itag]||""}; rE=function(a){return a.rb==="9"||a.rb==="("||a.rb==="9h"||a.rb==="(h"}; swa=function(a){return a.rb==="H"||a.rb==="h"}; sE=function(a){return a.rb==="9h"||a.rb==="(h"}; tE=function(a){return a.rb==="1"||a.rb==="1h"}; uE=function(a){return a.rb==="mac3"||a.rb==="meac3"||a.rb==="m"}; vE=function(a){return a.rb==="MAC3"||a.rb==="MEAC3"||a.rb==="M"}; g.wE=function(a){return a.containerType===1}; twa=function(a){return a.rb==="("||a.rb==="(h"||a.rb==="H"}; xE=function(a){return a.mimeType==="application/x-mpegURL"}; yE=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}}; zE=function(a,b){a=yE(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags}; uwa=function(a){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||a.rb==="f")return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:a.tb*8||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.tb*8||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})}; AE=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)}; BE=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)}; CE=function(a){return a.includes("vtt")||a.includes("text/mp4")}; oE=function(a){return a.indexOf("/mp4")>=0?1:a.indexOf("/webm")>=0?2:a.indexOf("/x-flv")>=0?3:a.indexOf("/vtt")>=0?4:0}; DE=function(a,b,c,d,e,f){var h=new jE;b in g.lE||(b="small");b==="light"&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.lE[b],d=Math.round(e*16/9));f=new mE(d,e,0,null,void 0,b,f);a=unescape(a.replace(/"/g,'"'));return new qE(c,a,{audio:h,video:f})}; EE=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+((c=a.Hw)==null?void 0:c.toFixed(0))+", "+((d=a.tb)==null?void 0:d.toFixed(0))+")"}; FE=function(a,b){return{start:function(c){return a[c]}, end:function(c){return b[c]}, length:a.length}}; vwa=function(a,b,c){for(var d=[],e=[],f=0;f=b)return c}catch(d){}return-1}; IE=function(a,b){return HE(a,b)>=0}; wwa=function(a,b){if(!a)return NaN;b=HE(a,b);return b>=0?a.start(b):NaN}; JE=function(a,b){if(!a)return NaN;b=HE(a,b);return b>=0?a.end(b):NaN}; KE=function(a){return a&&a.length?a.end(a.length-1):NaN}; LE=function(a,b){a=JE(a,b);return a>=0?a-b:0}; ME=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 FE(d,e)}; NE=function(a,b,c,d){g.Xw.call(this);var e=this;this.Jd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.YY={error:function(){!e.La()&&e.isActive&&e.publish("error",e)}, updateend:function(){!e.La()&&e.isActive&&e.publish("updateend",e)}}; g.Yw(this.Jd,this.YY);this.qI=this.isActive}; PE=function(a,b,c,d,e,f){g.Xw.call(this);var h=this;this.Qb=a;this.wg=b;this.id=c;this.containerType=d;this.rb=e;this.Ag=f;this.fR=this.YF=this.Hf=null;this.mJ=!1;this.appendWindowStart=this.timestampOffset=0;this.CO=FE([],[]);this.sE=!1;this.XF=[];this.jC=OE?[]:void 0;this.pI=!1;this.Hd=function(m){return h.publish(m.type,h)}; var l;if((l=this.Qb)==null?0:l.addEventListener)this.Qb.addEventListener("updateend",this.Hd),this.Qb.addEventListener("error",this.Hd)}; QE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; RE=function(a,b){this.resource=a;this.j=b===void 0?!1:b;this.B=!1}; SE=function(a,b,c){c=c===void 0?!1:c;g.O.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.ra=0;this.callback=null;this.qa=!1;this.Qa||(this.wg=this.mediaElement.Ib());this.events=new g.iE(this);g.P(this,this.events);this.C=new RE(this.Qa?window.URL.createObjectURL(this.Qa):this.wg.webkitMediaSourceURL,!0);a=this.Qa||this.wg;os(this.events,a,["sourceopen","webkitsourceopen"],this.tca);os(this.events,a,["sourceclose","webkitsourceclose"],this.sca);this.D={updateend:this.H5}}; xwa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; ywa=function(a,b){TE(a)?g.Ae(function(){b(a)}):a.callback=b}; zwa=function(a,b,c){if(UE){var d;VE(a.mediaElement,{l:"mswssb",sr:(d=a.mediaElement.ea)==null?void 0:WE(d)},!1);g.Yw(b,a.D,a);g.Yw(c,a.D,a)}a.j=b;a.B=c;g.P(a,b);g.P(a,c)}; Awa=function(a,b,c,d){d=b.mimeType+(d===void 0?"":d);var e=c.mimeType;b=b.rb;c=c.rb;var f;a.Z=(f=a.Qa)==null?void 0:f.addSourceBuffer(e);var h;a.Y=d.split(";")[0]==="fakesb"?void 0:(h=a.Qa)==null?void 0:h.addSourceBuffer(d);a.wg&&(a.wg.webkitSourceAddId("0",e),a.wg.webkitSourceAddId("1",d));f=new PE(a.Z,a.wg,"0",oE(e),c,!1);d=new PE(a.Y,a.wg,"1",oE(d),b,!0);zwa(a,f,d)}; XE=function(a){return!!a.j||!!a.B}; TE=function(a){try{return YE(a)==="open"}catch(b){return!1}}; YE=function(a){if(a.Qa)return a.Qa.readyState;switch(a.wg.webkitSourceState){case a.wg.SOURCE_OPEN:return"open";case a.wg.SOURCE_ENDED:return"ended";default:return"closed"}}; ZE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; Bwa=function(a){TE(a)&&(a.Qa?a.Qa.endOfStream():a.wg.webkitSourceEndOfStream(a.wg.EOS_NO_ERROR))}; Cwa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Jd:a.j,f=a.B.isView()?a.B.Jd:a.B,h=new SE(a.mediaElement,a.Qa,!0);h.C=a.C;zwa(h,new NE(e,b,c,d),new NE(f,b,c,d));TE(a)||a.j.Oq(a.j.Dc());return h}; Dwa=function(a){var b;(b=a.j)==null||b.Lz();var c;(c=a.B)==null||c.Lz();a.K=!1}; $E=function(){var a=this;this.ZS=this.hC=qaa;this.promise=new g.Ce(function(b,c){a.hC=b;a.ZS=c})}; aF=function(){g.O.call(this);this.DK=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Uc;this.ea=null;g.P(this,this.D)}; bF=function(a){a=a.vA();return a.length<1?NaN:a.end(a.length-1)}; Ewa=function(a){!a.B&&xwa()&&(a.C?a.C.then(function(){return Ewa(a)}):a.gi()||(a.B=a.Mr()))}; Fwa=function(a){a.B&&(a.B.dispose(),a.B=void 0)}; VE=function(a,b,c){var d;((d=a.ea)==null?0:d.zc())&&a.ea.oa("rms",b,c===void 0?!1:c)}; Gwa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||c>10||(a.play(),g.cr(function(){Gwa(a,a.getCurrentTime(),c+1)},500))}; Hwa=function(a,b){a.resource&&b!==null&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)}; cF=function(a){return LE(a.Fh(),a.getCurrentTime())}; Iwa=function(a,b){if(a.ll()===0||a.hasError())return!1;var c=a.getCurrentTime()>0;return b>=0&&(a=a.vA(),a.length||!c)?IE(a,b):c}; dF=function(a){a.gi()&&(a.ea&&a.ea.Ev("rs_s"),It&&a.getCurrentTime()>0&&a.seekTo(0),a.lM(),a.load(),Hwa(a,null));delete a.C}; eF=function(a){switch(a.Zh()){case 2:return"progressive.net.retryexhausted";case 3:var b;return((b=a.Yf())==null?0:b.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.fF=function(a,b,c){this.fh=b===void 0?null:b;this.seekSource=c===void 0?null:c;this.state=a||64}; gF=function(a,b){return Jwa(a,b.getCurrentTime(),(0,g.T)(),cF(b))}; hF=function(a,b,c,d){if(!(b===a.state&&c===a.fh&&d===a.seekSource||b!==void 0&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.fF(b,c,e?d?d:a.seekSource:null)}return a}; iF=function(a,b,c){return hF(a,a.state|b,null,c===void 0?null:c)}; jF=function(a,b){return hF(a,a.state&~b,null,null)}; kF=function(a,b,c,d){return hF(a,(a.state|b)&~c,null,d===void 0?null:d)}; g.Z=function(a,b){return!!(a.state&b)}; g.lF=function(a,b){return b.state===a.state&&b.fh===a.fh}; mF=function(a){return a.isPlaying()&&!g.Z(a,16)&&!g.Z(a,32)}; nF=function(a){return g.Z(a,128)?-1:g.Z(a,2)?0:g.Z(a,2048)?3:g.Z(a,64)?-1:g.Z(a,1)&&!g.Z(a,32)?3:g.Z(a,8)?1:g.Z(a,4)?2:-1}; pF=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A){g.O.call(this);var D=this;this.fp=a;this.slot=b;this.layout=c;this.Oa=d;this.zb=e;this.Sa=f;this.Ia=h;this.Cc=l;this.Mb=m;this.Fq=n;this.position=q;this.K=r;this.Ca=t;this.hs=u;this.Qg=y;this.context=A;this.kh=!0;this.G=!1;this.lc="not_rendering";this.j=!1;this.B=new SD;this.C=!1;a=OB(this.layout.Ba,"metadata_type_ad_placement_config");this.eb=new gD(c.Db,this.Oa,a,c.layoutId);var F;a=((F=oF(this))==null?void 0:F.progressCommands)||[];this.D=new Jva(m, a,c.layoutId,function(){return D.oA()})}; qF=function(a){return{layoutId:a.pA(),gs:a.hs,Lf:a.Sa.get(),Fo:a.We()}}; rF=function(a,b){return b.layoutId!==a.layout.layoutId?(a.fp.If(a.slot,b,new LB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; sF=function(a){a.lc="rendering_start_requested";a.Fq(-1)}; oF=function(a){return OB(a.layout.Ba,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; Kwa=function(a){cy("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)}; Lwa=function(a){var b;return((b=tF(a.Sa.get(),2))==null?void 0:b.clientPlaybackNonce)||""}; uF=function(a,b){switch(b){case "normal":a.Xb("complete");break;case "skipped":a.Xb("skip");break;case "abandoned":mD(a.eb,"impression")&&a.Xb("abandon")}}; vF=function(a,b){a.G||(b=new g.dy(b.state,new g.fF),a.G=!0);return b}; wF=function(a,b){PD(b)?a.Fq(1):g.fy(b,4)&&!g.fy(b,2)&&a.g3();ey(b,4)<0&&!(ey(b,2)<0)&&a.j3()}; Mwa=function(a){a.position===0&&(a.Cc.get(),a=OB(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:xF(a)},Kz("ad_bl"),g.Lz(a))}; yF=function(a,b){kD(a.eb,b,!a.j)}; Owa=function(a){var b;return(((b=oF(a))==null?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.Q(c==null?void 0:c.command,Nwa)})!==-1}; zF=function(a,b){var c=OB(a.Ba,"metadata_type_eligible_for_ssap");return c===void 0?(cy("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.We(c)}; AF=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return cy("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Kd(a,"unexpected transition reason")}}; BF=function(a,b,c){Nz(a,c)||Pz(a,b,c);Nz(a,"video_to_ad")||Pz(a,b,"video_to_ad");Nz(a,"ad_to_video")||Pz(a,b,"ad_to_video");Nz(a,"ad_to_ad")||Pz(a,b,"ad_to_ad")}; CF=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D){pF.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,u,y,A,D);var F=this;this.od=m;this.xo=q;this.KK=!0;this.iR=this.rj=0;this.qJ=bd(function(){jwa(qF(F));F.fp.vc(F.slot,F.layout)}); this.wE=bd(function(){kwa(qF(F));F.lc!=="rendering_stop_requested"&&F.xo(F);F.WO()}); this.Ye=new g.Je(200);this.Ye.listen("tick",function(){F.Tc()}); g.P(this,this.Ye)}; EF=function(a){a.iR=Date.now();DF(a,a.rj);a.Ye.start()}; Pwa=function(a){a.rj=a.oA();a.cz(a.rj/1E3,!0);DF(a,a.rj)}; DF=function(a,b){b={current:b/1E3,duration:a.oA()/1E3};a.od.get().Zu("onAdPlaybackProgress",b)}; FF=function(a){CF.call(this,a.fp,a.slot,a.Of,a.Oa,a.zb,a.Sa,a.Ia,a.Cc,a.od,a.Mb,a.Fq,a.xo,a.Rq,a.Yy,a.Ca,a.hs,a.Qg,a.context)}; GF=function(a){CF.call(this,a.fp,a.slot,a.Of,a.Oa,a.zb,a.Sa,a.Ia,a.Cc,a.od,a.Mb,a.Fq,a.xo,a.Rq,a.Yy,a.Ca,a.hs,a.Qg,a.context)}; HF=function(){GF.apply(this,arguments)}; Qwa=function(a){return zF(a.slot,a.Ca.get())?new HF(a):new FF(a)}; KF=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M,N){pF.call(this,a,b,c,d,e,l,m,p,r,u,y,A,D,F,H,N,M);var S=this;this.jf=f;this.md=h;this.Pc=n;this.od=q;this.Zf=t;this.xo=y;this.adCpn="";this.OW=0;this.cZ=!1;this.qJ=bd(function(){jwa(qF(S));S.fp.vc(S.slot,S.layout)}); this.wE=bd(function(){kwa(qF(S));S.lc!=="rendering_stop_requested"&&S.xo(S);S.WO()}); this.We()||(this.dL=new g.Lo(function(){S.pL("load_timeout",new LB("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=IF(this.Ca.get()),F=JF(F.get()),a&&F&&(this.pB=new g.Lo(function(){var ba=OB(c.Ba,"metadata_type_preload_player_vars"); ba&&S.md.get().J.preloadVideoByPlayerVars(ba,2,300)})))}; Swa=function(a,b){var c=OB(b.Ba,"metadata_type_ad_video_id"),d=OB(b.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Zf.get().J.U().Ka.add(c,{jJ:d});(b=OB(b.Ba,"metadata_type_sodar_extension_data"))&&Yua(a.jf.get(),b);Rwa(a.Ia.get(),!1)}; Twa=function(a){Rwa(a.Ia.get(),!0);var b;((b=a.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ia.get().tC(!1)}; LF=function(a){KF.call(this,a.callback,a.slot,a.Of,a.Oa,a.zb,a.jf,a.md,a.Sa,a.Ia,a.Pc,a.Cc,a.od,a.Mb,a.Zf,a.Fq,a.xo,a.Rq,a.Yy,a.Ca,a.hs,a.context,a.Qg)}; MF=function(){LF.apply(this,arguments)}; Uwa=function(a){return Qwa(Object.assign({},a,{fp:a.callback,Fq:function(){}}))}; Vwa=function(a){return new KF(a.callback,a.slot,a.Of,a.Oa,a.zb,a.jf,a.md,a.Sa,a.Ia,a.Pc,a.Cc,a.od,a.Mb,a.Zf,function(b){a.od.get().Zu("onAdIntroStateChange",b)},a.xo,a.Rq,a.Yy,a.Ca,a.hs,a.context,a.Qg)}; Wwa=function(a){function b(c){a.od.get().cH(c)} return zF(a.slot,a.Ca.get())?new MF(Object.assign({},a,{Fq:b})):new KF(a.callback,a.slot,a.Of,a.Oa,a.zb,a.jf,a.md,a.Sa,a.Ia,a.Pc,a.Cc,a.od,a.Mb,a.Zf,b,a.xo,a.Rq,a.Yy,a.Ca,a.hs,a.context,a.Qg)}; NF=function(a){for(var b=a.Of,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.w(hD()),e=d.next();!e.done;e=d.next())c.push(e.value);if(AD(b,{Nd:c,Ge:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Uwa(a);b=a.Of;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.w(hD());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(AD(b,{Nd:c,Ge:["LAYOUT_TYPE_MEDIA"]}))return IB(a.Of.Ba,"metadata_type_ad_intro")?Vwa(a):Wwa(a)}; Ywa=function(a){var b=OB(a.Ba,"metadata_type_ad_placement_config").kind,c=OB(a.Ba,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:Xwa(c),adBreakType:xF(b)}}; xF=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; Xwa=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Zwa=function(a){try{return new OF(a)}catch(b){}}; PF=function(a,b,c,d,e,f,h,l,m,n,p){g.O.call(this);this.Fv=a;this.slot=b;this.layout=c;this.Yd=d;this.hf=e;this.Sa=f;this.Gc=h;this.md=l;this.qc=m;this.Ia=n;this.kh=!0;a=NF(p);if(!a)throw Error("Invalid params for sublayout");this.Ld=a}; OF=function(a){PF.call(this,a.Fv,a.slot,a.layout,a.Yd,a.hf,a.Sa,a.Gc,a.md,a.qc,a.Ia,a.Bea);this.params=a}; $wa=function(){this.j=1;this.B=new SD}; QF=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.O.call(this);this.callback=a;this.Sa=b;this.Gc=c;this.md=d;this.Ia=e;this.Cc=f;this.Qq=h;this.slot=l;this.layout=m;this.Yd=n;this.Pi=p;this.qc=q;this.Ca=r;this.kh=!0;this.yx=!1;this.Sh=[];this.gE=-1;this.OQ=!1;this.Qw=new $wa}; axa=function(a){var b;return(b=a.layout.Uy)!=null?b:OB(a.layout.Ba,"metadata_type_sub_layouts")}; RF=function(a){return{Lf:a.Sa.get(),gs:!1,Fo:a.We()}}; bxa=function(a,b,c){if(a.Bl()===a.Sh.length-1){var d,e;cy("Unexpected skip requested during the last sublayout",(d=a.Bf())==null?void 0:d.Zb(),(e=a.Bf())==null?void 0:e.Za(),{requestingSlot:b,requestingLayout:c})}}; cxa=function(a,b,c){return c.layoutId!==SF(a,b,c)?(cy("onSkipRequested for a PlayerBytes layout that is not currently active",a.Zb(),a.Za()),!1):!0}; dxa=function(a){a.Bl()===a.Sh.length-1&&cy("Unexpected skip with target requested during the last sublayout")}; exa=function(a,b,c){return c.renderingContent===void 0&&c.layoutId!==SF(a,b,c)?(cy("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.Zb(),a.Za(),{requestingSlot:b,requestingLayout:c}),!1):!0}; fxa=function(a,b,c,d){var e=OB(b.Za().Ba,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e0)){cy("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});break a}a.gE=b;b=a.Bf();if(a.Bl()>0&&!a.We()){var c=a.Cc.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});Mz("ad_to_ad",d)}a.ZT(b)}}; WF=function(a){QF.call(this,a.Fv,a.Sa,a.Gc,a.md,a.Ia,a.Cc,a.Qq,a.slot,a.layout,a.Yd,a.Pi,a.qc,a.Ca)}; XF=function(a){QF.call(this,a.Fv,a.Sa,a.Gc,a.md,a.Ia,a.Cc,a.Qq,a.slot,a.layout,a.Yd,a.Pi,a.qc,a.Ca)}; YF=function(){XF.apply(this,arguments);this.Dh=void 0}; ixa=function(a,b,c){b.kA().currentState<2&&(c=AF(c),b.Kd(b.Za(),c));c=b.kA().j;a.XO(a.slot,b.Za(),c)}; jxa=function(a,b){a.Qw.j===2&&b!==a.Im()&&cy("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})}; kxa=function(a,b){var c=a.Bf();c?(c.Kd(c.Za(),b),b=a.Bl()+1,b>=0&&be&&h.iI(p,e-d);return p}; txa=function(a,b){var c=OB(b.Ba,"metadata_type_sodar_extension_data");if(c)try{Yua(0,c)}catch(d){cy("Unexpected error when loading Sodar",a,b,{error:d})}}; uxa=function(a,b,c,d,e,f){eG(a,b,new g.dy(c,new g.fF),d,e,!1,f)}; eG=function(a,b,c,d,e,f,h){f=f===void 0?!0:f;PD(c)&&QD(e,0,null)&&(!mD(a,"impression")&&h&&h(),a.Xb("impression"));mD(a,"impression")&&(g.fy(c,4)&&!g.fy(c,2)&&a.Th("pause"),ey(c,4)<0&&!(ey(c,2)<0)&&a.Th("resume"),g.fy(c,16)&&e>=.5&&a.Th("seek"),f&&g.fy(c,2)&&fG(a,c.state,b,d,e))}; fG=function(a,b,c,d,e,f,h){if(mD(a,"impression")){var l=Math.abs(d-e)<=1;gG(a,b,l?d:e,c,d,f,h&&l);l&&a.Xb("complete")}}; gG=function(a,b,c,d,e,f,h){lD(a,c*1E3,h);e<=0||c<=0||(b==null?0:g.Z(b,16))||(b==null?0:g.Z(b,32))||(QD(c,e*.25,d)&&(f&&!mD(a,"first_quartile")&&f("first"),a.Xb("first_quartile")),QD(c,e*.5,d)&&(f&&!mD(a,"midpoint")&&f("second"),a.Xb("midpoint")),QD(c,e*.75,d)&&(f&&!mD(a,"third_quartile")&&f("third"),a.Xb("third_quartile")))}; vxa=function(a,b){mD(a,"impression")&&a.Th(b?"fullscreen":"end_fullscreen")}; wxa=function(a){mD(a,"impression")&&a.Th("clickthrough")}; xxa=function(a){a.Th("active_view_measurable")}; yxa=function(a){mD(a,"impression")&&!mD(a,"seek")&&a.Th("active_view_fully_viewable_audible_half_duration")}; zxa=function(a){mD(a,"impression")&&!mD(a,"seek")&&a.Th("active_view_viewable")}; Axa=function(a){mD(a,"impression")&&!mD(a,"seek")&&a.Th("audio_audible")}; Bxa=function(a){mD(a,"impression")&&!mD(a,"seek")&&a.Th("audio_measurable")}; Cxa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Gc=d;this.eb=e;this.Ia=f;this.Ts=h;this.zb=l;this.jf=m;this.Ca=n;this.Oa=p;this.Sa=q;this.KK=!0;this.rd=this.lc=null;this.adCpn=void 0;this.j=!1}; Dxa=function(a,b,c){var d;dG(a.Oa.get(),"ads_qua","cpn."+OB(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((d=tF(a.Sa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; Exa=function(a,b){var c,d;dG(a.Oa.get(),"ads_imp","cpn."+OB(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((c=tF(a.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.Q((d=OB(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,hG))}; iG=function(a){return{enterMs:OB(a.Ba,"metadata_type_layout_enter_ms"),exitMs:OB(a.Ba,"metadata_type_layout_exit_ms")}}; jG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){$F.call(this,a,b,c,d,e,h,l,m,n,q);this.Ts=f;this.jf=p;this.zb=r;this.Ca=t;this.rd=this.lc=null}; Fxa=function(a,b){var c;dG(a.Oa.get(),"ads_imp","acpn."+((c=tF(a.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b)}; Gxa=function(a,b,c){var d;dG(a.Oa.get(),"ads_qua","cpn."+OB(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((d=tF(a.Sa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; kG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M){this.qc=a;this.Yd=b;this.Pi=c;this.Sa=d;this.Gc=e;this.Ia=f;this.Oa=h;this.Ts=l;this.yf=m;this.zb=n;this.jf=p;this.md=q;this.Pc=r;this.Cc=t;this.od=u;this.Mb=y;this.Zf=A;this.Ca=D;this.j=F;this.context=H;this.Qg=M}; lG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D){this.qc=a;this.Yd=b;this.Pi=c;this.Oa=d;this.zb=e;this.jf=f;this.md=h;this.Sa=l;this.Ia=m;this.Pc=n;this.Cc=p;this.od=q;this.Mb=r;this.Zf=t;this.Ca=u;this.Gc=y;this.context=A;this.Qg=D}; Hxa=function(a,b,c,d){Ww.call(this,"survey-interstitial",a,b,c,d)}; mG=function(a,b,c,d,e){$C.call(this,c,a,b,d);this.Oa=e;a=OB(b.Ba,"metadata_type_ad_placement_config");this.eb=new gD(b.Db,e,a,b.layoutId)}; nG=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; RG=function(a,b,c){c=c===void 0?oG:c;c.widtha.width*a.height*.2)return{jN:3,lI:501,errorMessage:"ad("+nG(c)+") to container("+nG(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{jN:3,lI:501,errorMessage:"ad("+nG(c)+") covers container("+nG(a)+") center."}}; Ixa=function(a,b){var c=OB(a.Ba,"metadata_type_ad_placement_config");return new gD(a.Db,b,c,a.layoutId)}; UG=function(a){return OB(a.Ba,"metadata_type_invideo_overlay_ad_renderer")}; VG=function(a,b,c,d){Ww.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d}; WG=function(a,b,c,d,e,f,h,l,m,n,p,q){$C.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ia=l;this.Mb=m;this.Ca=n;this.K=p;this.G=q;this.eb=Ixa(b,c)}; Jxa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];hD().forEach(function(b){a.push(b)}); return{Nd:a,Ge:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; XG=function(a,b,c,d,e,f,h,l,m,n,p,q,r){$C.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Z=l;this.Ia=m;this.Mb=n;this.Ca=p;this.K=q;this.G=r;this.eb=Ixa(b,c)}; Kxa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.w(hD()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Nd:a,Ge:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; YG=function(a){this.Ia=a;this.j=!1}; Lxa=function(a,b,c){Ww.call(this,"survey",a,{},b,c)}; ZG=function(a,b,c,d,e,f,h){$C.call(this,c,a,b,d);this.D=e;this.Ia=f;this.Ca=h}; Mxa=function(a,b,c,d,e,f,h,l,m,n){this.Ac=a;this.Ia=b;this.Oa=c;this.D=d;this.zb=e;this.B=f;this.C=h;this.Mb=l;this.Ca=m;this.j=n}; Nxa=function(a,b,c,d,e,f,h,l,m,n){this.Ac=a;this.Ia=b;this.Oa=c;this.D=d;this.zb=e;this.B=f;this.C=h;this.Mb=l;this.Ca=m;this.j=n}; $G=function(a,b,c,d,e,f,h,l,m,n){ID.call(this,a,b,c,d,e,f,h,m);this.Gn=l;this.Sa=n}; Oxa=function(){var a=awa();a.Nd.push("metadata_type_ad_info_ad_metadata");return a}; Pxa=function(a,b,c,d,e,f,h){this.Ac=a;this.Ia=b;this.Oa=c;this.B=d;this.Gn=e;this.j=f;this.Sa=h}; Qxa=function(a,b,c,d,e,f,h,l){this.Ac=a;this.Ia=b;this.Oa=c;this.B=d;this.Gn=e;this.j=f;this.Ca=h;this.Sa=l}; aH=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)}; bH=function(a,b){this.adPodIndex=a;this.j=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); var c=0;for(a+=1;a0}; GH=function(a){return!!(a.g$&&a.slot&&a.layout)}; HH=function(a){var b,c=(b=a.config)==null?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||c.kind==null||!a)}; dya=function(a){if(!zH(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.Q(a,ND)||g.Q(a,LD)||g.Q(a,MD)?!0:!1}; IH=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0}; NH=function(a){if(!zH(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.Q(a,eya);return b?fya(b):(b=g.Q(a,JH))?IH(b):(b=g.Q(a,KH))?b.playerVars!==void 0:(b=g.Q(a,ND))?b.durationMilliseconds!==void 0:g.Q(a,LH)||g.Q(a,MH)?!0:!1}; fya=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.Q(b,OH)}); return a.length>0&&a.every(NH)}; jya=function(a){if(!zH(a.adLayoutMetadata))return!1;if(g.Q(a.renderingContent,gya))return!0;a=g.Q(a.renderingContent,PH);return g.Q(a==null?void 0:a.sidePanel,hya)||g.Q(a==null?void 0:a.sidePanel,iya)?!0:!1}; oya=function(a){var b=a.adSlotMetadata;if((b==null?void 0:b.slotId)===void 0||(b==null?void 0:b.slotType)===void 0||!(kya(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=(c=a.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.Q(a,OH))?NH(c):(c=g.Q(a,QH))?jya(c):(c=g.Q(a,lya))?dya(c):(c=g.Q(a,mya))?bya(c):(a=g.Q(a,nya))?zH(a.adLayoutMetadata)?g.Q(a.renderingContent,AH)?!0:!1:!1:!1}; kya=function(a){var b;a=g.Q((b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,QH);var c;return a&&((c=a.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&a.layoutExitNormalTriggers===void 0}; qya=function(a,b){var c;if((c=a.questions)==null||!c.length||!a.playbackCommands||(b===void 0||!b)&&a.questions.length!==1)return!1;a=g.w(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=((c=g.Q(b,RH))==null?void 0:c.surveyAdQuestionCommon)||((d=g.Q(b,SH))==null?void 0:d.surveyAdQuestionCommon);if(!pya(e))return!1}return!0}; rya=function(a){a=((a==null?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&a.questions.length===1){var c,d=((b=g.Q(a.questions[0],RH))==null?void 0:b.surveyAdQuestionCommon)||((c=g.Q(a.questions[0],SH))==null?void 0:c.surveyAdQuestionCommon);b=pya(d)}else b=!1;else b=!1;return b}; pya=function(a){if(!a)return!1;a=g.Q(a.instreamAdPlayerOverlay,TH);var b=g.Q(a==null?void 0:a.skipOrPreviewRenderer,hG),c=g.Q(a==null?void 0:a.adInfoRenderer,UH);return(g.Q(a==null?void 0:a.skipOrPreviewRenderer,VH)||b)&&c?!0:!1}; sya=function(a){return a.linearAds!=null&&zH(a.adLayoutMetadata)}; tya=function(a){return a.linearAd!=null&&a.adVideoStart!=null}; uya=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.Q(a.ctaButton,g.WH)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.Q(a.backgroundImage,XH)&&((b=g.Q(a.backgroundImage,XH))==null?0:b.landscape)?!0:!1}; YH=function(a,b,c,d,e,f,h){g.O.call(this);this.Ca=a;this.j=b;this.C=d;this.Sa=e;this.D=f;this.B=h}; xya=function(a,b,c){var d,e=((d=c.adSlots)!=null?d:[]).map(function(f){return g.Q(f,ZH)}); c.EC?OB(b.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?WC(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Ca.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Dw.filter(function(f){var h; return((h=f.renderer)==null?void 0:h.clientForecastingAdRenderer)!=null}),d.length!==0?vya(a.B,d,e,b.slotId,c.ssdaiAdsConfig):WC(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):WC(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),wya(a.D,b)):vya(a.B,c.Dw,e,b.slotId,c.ssdaiAdsConfig)}; zya=function(a,b,c,d,e,f){var h=tF(a.Sa.get(),1);WC(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return yya(a.C.get(),c,d,e,h.clientPlaybackNonce,h.Np,h.daiEnabled,h,f)},b)}; Bya=function(a,b,c,d,e,f,h){b=Aya(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof MB?b:$H(a,d,e,b,c);return a instanceof MB?a:[a]}; Cya=function(a,b,c,d,e){var f=XC(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new rB({getAdBreakUrl:d.getAdBreakUrl,WS:0,VS:0}),new FB(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new uH(a.j,f),slotFulfillmentTriggers:[new Rxa(a.j)],slotExpirationTriggers:[new oH(a.j,e),new rH(a.j,f)],bb:"core",Ba:new NB(d),adSlotLoggingData:c}:new MB("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new MB("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return a instanceof MB?a:[a]}; Dya=function(a){var b,c;return((b=a.renderer)==null?void 0:(c=b.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0}; aI=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new cH(KB,b,a.id):new MB("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=(d=a.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new iH(KB,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new MB("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;((e=a.layoutExitedForReasonTrigger)==null?0:e.triggeringLayoutId)&& ((f=a.layoutExitedForReasonTrigger)==null?0:f.layoutExitReason)?(b=Sxa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof MB?b:new hH(KB,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new MB("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=(h=a.onLayoutSelfExitRequestedTrigger)!=null&&h.triggeringLayoutId?new nH(KB,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new MB("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a= a.onNewPlaybackAfterContentVideoIdTrigger?new oH(KB,b,a.id):new MB("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=(l=a.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new pH(KB,a.skipRequestedTrigger.triggeringLayoutId,a.id):new MB("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=(m=a.slotIdEnteredTrigger)!=null&&m.triggeringSlotId?new qH(KB,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new MB("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n; b=(n=a.slotIdExitedTrigger)!=null&&n.triggeringSlotId?new rH(KB,a.slotIdExitedTrigger.triggeringSlotId,a.id):new MB("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=(p=a.surveySubmittedTrigger)!=null&&p.triggeringLayoutId?new wH(KB,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new MB("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new Uxa(a.id):new MB("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q; b=(q=a.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new dH(KB,a.closeRequestedTrigger.triggeringLayoutId,a.id):new MB("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=(r=a.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new uH(KB,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new MB("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number((t=a.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var u;h=Number((u= a.mediaTimeRangeTrigger)==null?void 0:u.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(u=h,u===-1&&(u=c),c=d>u?new MB("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===c&&d-500<=u):new ip(d,u),a=c instanceof MB?c:new kH(KB,b,c,!1,a.id)):a=new MB("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new eH(KB,b,!1,a.id):new MB("Not able to create ContentVideoIdEndedTrigger"); else{if(a.layoutIdEnteredTrigger){var y;b=(y=a.layoutIdEnteredTrigger)!=null&&y.triggeringLayoutId?new gH(KB,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new MB("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=(A=a.timeRelativeToLayoutEnterTrigger)!=null&&A.triggeringLayoutId?new xH(KB,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new MB("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var D; b=(D=a.onDifferentLayoutIdEnteredTrigger)!=null&&D.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new lH(KB,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new MB("Not able to create CloseRequestedTrigger")}else b=new MB("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}; Fya=function(a,b,c,d,e,f,h,l){return b===null?new MB("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[Eya(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new NB([new tA(d),new FA(e)]);n=DC(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Db:new Map, layoutExitNormalTriggers:[new oH(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:q,ac:m(r),adLayoutLoggingData:p}})]}; Gya=function(a,b,c,d,e,f,h,l){return b===null?new MB("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[Eya(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new NB([new uA(d),new FA(e)]);n=DC(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Db:new Map,layoutExitNormalTriggers:[new oH(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:q,ac:m(r),adLayoutLoggingData:p}})]}; Kya=function(a,b,c,d,e,f){if(!f)for(b=g.w(b),f=b.next();!f.done;f=b.next())f=f.value,bI(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return Hya(p)}); b=[];f=g.w(a);for(var h=f.next(),l={};!h.done;l={Mw:void 0},h=f.next()){l.Mw=h.value;h=g.w(l.Mw.jO);for(var m=h.next(),n={};!m.done;n={Hn:void 0},m=h.next())n.Hn=m.value,m=function(p,q){return function(r){return p.Hn.eP(r,q.Mw.instreamVideoAdRenderer.elementId,p.Hn.iO)}}(n,l),n.Hn.isContentVideoCompanion?b.push(Iya(c,d,e,l.Mw.instreamVideoAdRenderer.elementId,n.Hn.associatedCompositePlayerBytesLayoutId,n.Hn.adSlotLoggingData,m)):a.length>1?b.push(Jya(c,d,e,l.Mw.instreamVideoAdRenderer.elementId,n.Hn.adSlotLoggingData, function(p,q){return function(r){return p.Hn.eP(r,q.Mw.instreamVideoAdRenderer.elementId,p.Hn.iO,p.Hn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(Jya(c,d,e,l.Mw.instreamVideoAdRenderer.elementId,n.Hn.adSlotLoggingData,m))}return b}; bI=function(a,b,c){if(b=Lya(b)){b=g.w(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=cI(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.IF=c)}else cy("InstreamVideoAdRenderer without externalVideoId")}}; Lya=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.Q(a.sandwichedLinearAdRenderer.linearAd,JH);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.w(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.Q(c,JH)&&b.push(g.Q(c,JH));return b}return null}; Hya=function(a){if(a.instreamVideoAdRenderer===void 0)return cy("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.w(a.jO),c=b.next();!c.done;c=b.next()){c=c.value;if(c.eP===void 0)return!1;if(c.iO===void 0)return cy("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.IF===void 0||c.OI===void 0||a.IF!==c.OI&&c.OI!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return cy("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:a.IF,"matching APSR kind":c.OI}),!1}return!0}; cI=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,IF:void 0,adVideoId:b,jO:[]});return a.get(b)}; dI=function(a,b,c,d,e,f,h,l,m){e?cI(a,e).jO.push({Ama:b,OI:c,isContentVideoCompanion:d,iO:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,eP:m}):cy("Companion AdPlacementSupportedRenderer without adVideoId")}; Mya=function(a){var b,c=(b=OB(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=OB(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=OB(a.Ba,"metadata_type_content_cpn"),f=OB(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=OB(a.Ba,"metadata_type_player_underlay_renderer"),l=OB(a.Ba,"metadata_type_ad_placement_config"),m=OB(a.Ba,"metadata_type_video_length_seconds");var n=IB(a.Ba,"metadata_type_layout_enter_ms")&&IB(a.Ba, "metadata_type_layout_exit_ms")?(OB(a.Ba,"metadata_type_layout_exit_ms")-OB(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Tq:d,contentCpn:e,KS:c,kO:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,cL:n,inPlayerLayoutId:OB(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:OB(a.Ba,"metadata_type_linked_in_player_slot_id")}}; Pya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){d=XC(d,"SLOT_TYPE_PLAYER_BYTES");a=Nya(e,a,h,c,d,m,n);if(a instanceof MB)return a;var y;n=(y=OB(a.Ba,"metadata_type_fulfilled_layout"))==null?void 0:y.layoutId;if(!n)return new MB("Invalid adNotify layout");b=Oya(n,e,f,c,l,b,m,p,q,r,t,u,h);return b instanceof MB?b:[a].concat(g.x(b))}; Oya=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=Qya(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof MB)return c;a=Rya(b,a,h,e,c);return a instanceof MB?a:[].concat(g.x(a.rg),[a.yy])}; Tya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=Qya(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof MB)return b;a=Sya(a,c,f,h,d,l.Vb,b);return a instanceof MB?a:a.rg.concat(a.yy)}; Qya=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=eI(d,c,n);return r instanceof LB?new MB(r):n.J.U().experiments.kb("html5_refactor_in_player_slot_generation")?function(t){var u=new bH(0,[r.Ep]);t=Uya(b,r.layoutId,r.ip,c,fI(r.playerVars,r.ZB,f,m,u),r.Ep,e,u,h(t),l.get(r.ip.externalVideoId),q);u=[];if(r.ip.playerOverlay.instreamAdPlayerOverlayRenderer){var y=Mya(t);if(!y)return cy("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,rg:[]}; u=[Vya(a,y.contentCpn,y.Tq,function(D){return gI(b,D.slotId,"core",y,UB(p,D))},y.inPlayerSlotId)].concat(g.x(u)); if(y.instreamAdPlayerUnderlayRenderer&&hI(n)){var A=y.instreamAdPlayerUnderlayRenderer;u=[Wya(a,y.contentCpn,y.Tq,function(D){return Xya(b,D.slotId,A,y.adPlacementConfig,y.Tq,UB(p,D))})].concat(g.x(u))}}return{layout:t, rg:u}}:function(t){var u=new bH(0,[r.Ep]); return{layout:Uya(b,r.layoutId,r.ip,c,fI(r.playerVars,r.ZB,f,m,u),r.Ep,e,u,h(t),l.get(r.ip.externalVideoId),q),rg:[]}}}; eI=function(a,b,c){if(!a.playerVars)return new LB("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(a.elementId==null||a.playerVars==null||a.playerOverlay==null||((d=a.playerOverlay)==null?void 0:d.instreamAdPlayerOverlayRenderer)==null&&((e=a.playerOverlay)==null?void 0:e.playerOverlayLayoutRenderer)==null||a.pings==null||a.externalVideoId==null)return new LB("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=Qq(a.playerVars);e=Number(d.length_seconds); isNaN(e)&&(e=0,cy("Expected valid length seconds in player vars but got NaN"));if(c.We(b.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new LB("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,ip:a,playerVars:d,ZB:a.playerVars,Ep:e}}; fI=function(a,b,c,d,e){a.iv_load_policy=d;b=Qq(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){cy(f)}c.mj&&(a.ctrl=c.mj);c.Rj&&(a.ytr=c.Rj);c.Pw&&(a.ytrcc=c.Pw);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.yn&&(a.vss_credentials_token_type=c.yn),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));e.j>=2&&(a.slot_pos=e.adPodIndex);a.autoplay="1";return a}; Yya=function(a){var b=new Map;a=g.w(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b}; iI=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; bza=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.w(a),t=r.next();!t.done;t=r.next()){t=t.value;var u;if(u=!kya(t)){var y=void 0;u=(t==null?void 0:(y=t.adSlotMetadata)==null?void 0:y.slotType)!=="SLOT_TYPE_IN_PLAYER"}if(u){y=iI(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var A=m.We(y),D=Zya(t,n,d,c.Np,A);if(D instanceof MB)return D;var F=void 0;u={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:(F=t.adSlotMetadata.slotPhysicalPosition)!=null? F:1,bb:"core",slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:D.slotExpirationTriggers};if(D=g.Q(t.fulfillmentContent.fulfilledLayout,OH)){if(!NH(D))return new MB("Invalid PlayerBytesAdLayoutRenderer");A=$ya(u,t.adSlotMetadata.triggerEvent,D,b,c,d,e,f,h,l,m,n,a,p,A);if(A instanceof MB)return A;D=[];iI(t)&&D.push(new GB({Au:iI(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c.Vb&&D.push(new zB({}));D.push(new EB(y));t=Object.assign({}, u,{Ba:new NB(D),fulfilledLayout:A.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.x(A.rg));q.push(t)}else if(y=g.Q(t.fulfillmentContent.fulfilledLayout,QH),D=A=void 0,((A=y)==null?void 0:(D=A.adLayoutMetadata)==null?void 0:D.layoutType)!=="LAYOUT_TYPE_PANEL_QR_CODE"||t.slotEntryTrigger!==void 0)if(y){if(!jya(y))return new MB("Invalid PlayerUnderlayAdLayoutRenderer");A=y;F=d;var H=c.Np,M=f;D=u;y=t.adSlotMetadata.triggerEvent;if(A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"){var N= g.Q(A.renderingContent,PH);if(N)if(N=g.Q(N.sidePanel,iya)){var S={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,bb:"core"};F=jI(A,F,H);y=F instanceof MB?F:Object.assign({},S,{renderingContent:A.renderingContent,Db:new Map([["impression",N.impressionPings||[]],["resume",N.resumePings||[]]])},F,{ac:UB(M,D)(S),Ba:new NB([new FA(kI(y))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})}else y=new MB("DismissablePanelTextPortraitImageRenderer is missing");else y= new MB("SqueezebackPlayerSidePanelRenderer is missing")}else if(A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING")g.Q(A.renderingContent,gya)?(N={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,bb:"core"},F=jI(A,F,H),y=F instanceof MB?F:Object.assign({},N,{renderingContent:A.renderingContent,Db:new Map},F,{ac:UB(M,D)(N),Ba:new NB([new FA(kI(y))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})):y=new MB("CounterfactualRenderer is missing");else{var ba; A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?ba=new MB("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):ba=new MB("LayoutType ["+A.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");y=ba}if(y instanceof MB)return y;t=Object.assign({},u,{Ba:new NB([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(y=g.Q(t.fulfillmentContent.fulfilledLayout,mya)){if(!bya(y))return new MB("Invalid AboveFeedAdLayoutRenderer"); y=aza(y,d,c.Np,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof MB)return y;t=Object.assign({},u,{Ba:new NB([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(y=g.Q(t.fulfillmentContent.fulfilledLayout,nya)){if(!zH(y.adLayoutMetadata)||!g.Q(y.renderingContent,AH))return new MB("Invalid BelowPlayerAdLayoutRenderer");y=aza(y,d,c.Np,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof MB)return y;t=Object.assign({},u,{Ba:new NB([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new MB("Unable to retrieve a client slot ["+u.slotType+"] from a given AdSlotRenderer")}}return q}; aza=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,bb:"core"};b=jI(a,b,c);if(b instanceof MB)return b;c=[];c.push(new FA(kI(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&h!==void 0&&c.push(new XA(h));return Object.assign({},l,{renderingContent:a.renderingContent,Db:new Map([["impression",cza(a)]])},b,{ac:UB(d,e)(l),Ba:new NB(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}; $ya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){var y=jI(c,f,e.Np);if(y instanceof MB)return y;if(g.Q(c.renderingContent,JH)){m=dza([c],e,m);if(m instanceof MB)return m;if(m.length!==1)return new MB("Only expected one media layout.");a=eza(a,b,c,y,m[0],void 0,"core",d,f,h,l,n,r,t,u,e.Np,q);return a instanceof MB?a:{layout:a.layout,rg:a.rf?[a.rf]:[]}}var A=g.Q(c.renderingContent,eya);if(A){if(!zH(c.adLayoutMetadata))return new MB("Invalid ad layout metadata");if(!fya(A))return new MB("Invalid sequential layout"); A=A.sequentialLayouts.map(function(D){return D.playerBytesAdLayoutRenderer}); a=fza(a,b,c.adLayoutMetadata,y,A,d,f,e,m,h,l,n,p,q,u,r,t);return a instanceof MB?a:{layout:a.G7,rg:a.rg}}return new MB("Not able to convert a sequential layout")}; fza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A){var D=new JA({current:null}),F=dza(e,l,m);if(F instanceof MB)return F;m=[];for(var H=[],M=void 0,N=0;N0&&(N.push(D),N.push(new IA(M.adPodSkipTarget))); (f=n.get(M.externalVideoId))&&N.push(new tB(f));f=N}else f=new MB("Invalid vod media renderer")}if(f instanceof MB)return f;a=Object.assign({},h,d,{Db:F,renderingContent:c.renderingContent,Ba:new NB(f),ac:UB(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.Q(c.renderingContent,JH);if(!c||!IH(c))return new MB("Invalid meida renderer");q=cI(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.IF="AD_PLACEMENT_KIND_START";return t?(m=hza(r,a,m,y,p,A,u,D),m instanceof MB?m:jza(a.layoutId, r)&&m?{layout:Object.assign({},a,{Ba:new NB(f.concat(new QA(m)))})}:{layout:a,rf:m}):{layout:a}}; gza=function(a,b,c,d,e){if(!NH(b))return new MB("Invalid PlayerBytesAdLayoutRenderer");var f=g.Q(b.renderingContent,ND);if(!f||f.durationMilliseconds===void 0)return new MB("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,bb:"adapter"};d=[new vB(f.durationMilliseconds),new yB({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new FA(d), new ZA("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new HA(e.Ew.adPodIndex-1));d.push(new lB(e.Ew.adPodIndex));var l;d.push(new IA((l=e.adPodSkipTarget)!=null?l:-1))}return Object.assign({},h,lI,{renderingContent:b.renderingContent,Ba:new NB(d),Db:f.skipPings?new Map([["skip",f.skipPings]]):new Map,ac:UB(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})}; hza=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId}); if(a.length!==0){if(a.length!==1)return new MB("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=Zya(a,f,c,d,h);if(h instanceof MB)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(m=a.adSlotMetadata.slotPhysicalPosition)!=null?m:1,bb:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.Q(a.fulfillmentContent.fulfilledLayout, lya);if(!m||!dya(m))return new MB("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,bb:"core"};c=jI(m,c,d);if(c instanceof MB)return c;d=[];if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.x(kza(a.adSlotMetadata.triggerEvent,b)));else if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new FA(kI(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new MB("Not able to parse an SDF InPlayer layout"); e=Object.assign({},h,c,{renderingContent:m.renderingContent,Db:new Map,ac:UB(e,f)(h),Ba:new NB(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Ba:new NB([])})}}; kza=function(a,b){var c=[];c.push(new FA(kI(a)));c.push(new XA(b.layoutId));(a=OB(b.Ba,"metadata_type_player_bytes_callback_ref"))&&c.push(new bB(a));(a=OB(b.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new JA(a));(a=OB(b.Ba,"metadata_type_remote_slots_data"))&&c.push(new tB(a));(a=OB(b.Ba,"metadata_type_ad_next_params"))&&c.push(new xA(a));(a=OB(b.Ba,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new yA(a));(a=OB(b.Ba,"metadata_type_ad_pod_info"))&&c.push(new GA(a));(b= OB(b.Ba,"metadata_type_ad_video_id"))&&c.push(new KA(b));return c}; iza=function(a,b,c,d,e,f){function h(n){return mI(b,n)} var l=d.HJ.inPlayerSlotId,m={layoutId:d.HJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",bb:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:new gH(h,a),slotFulfillmentTriggers:[new qH(h,l)],slotExpirationTriggers:[new rH(h,l),new oH(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new iH(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Db:new Map,Ba:new NB([new SA(d.HJ),new FA(d.adPlacementConfig), e]),ac:UB(f,c)(m),adLayoutLoggingData:d.HJ.adLayoutLoggingData});return Object.assign({},c,{Ba:new NB([new qB(a)])})}; jza=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var d=g.Q(c.fulfillmentContent.fulfilledLayout,QH);if(d&&(d=g.Q(d.renderingContent,PH))&&d.associatedPlayerBytesLayoutId===a)return c}}; Zya=function(a,b,c,d,e){var f=lza(aI(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof MB)return f;for(var h=[],l=g.w(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=aI(m.value,c,d);if(m instanceof MB)return m;h.push(m)}h=mza(h,e,a,b);b=[];a=g.w(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=aI(e.value,c,d);if(e instanceof MB)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}}; lza=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof cH?new aH(function(e){return mI(d,e)},c.adSlotMetadata.slotId):a}; mza=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(e){return e instanceof qH?new uH(function(f){return mI(d,f)},c.adSlotMetadata.slotId):e}):a}; jI=function(a,b,c){for(var d=[],e=g.w(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=aI(f.value,b,c);if(f instanceof MB)return f;d.push(f)}e=[];f=g.w(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=aI(h.value,b,c);if(h instanceof MB)return h;e.push(h)}f=[];h=g.w(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=aI(l.value,b,c);if(l instanceof MB)return l;f.push(l)}h=[];a=g.w(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l= a.next()){l=aI(l.value,b,c);if(l instanceof MB)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Yc:[]}}; dza=function(a,b,c){for(var d=[],e=g.w(a),f=e.next();!f.done;f=e.next())if(f=g.Q(f.value.renderingContent,JH)){if(!IH(f))return new MB("Invalid vod media renderer");d.push(nza(f))}e=d.map(function(q){return q.Ep}); f=[];for(var h=0,l=0;l=2&&(D.slot_pos=A.adPodIndex);D.autoplay="1";var F,H;D=n.videoLengthSeconds;var M=n.playerVars,N=n.Db, S=n.Bt,ba=n.instreamAdPlayerOverlayRenderer,ha=n.playerOverlayLayoutRenderer,na=n.adVideoId,Y=(F=g.Q(b,JH))==null?void 0:F.adLayoutLoggingData;F=(H=g.Q(b,JH))==null?void 0:H.sodarExtensionData;H=DC(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var R={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};A={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Db:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"adapter",Ba:new NB([new LA(h), new fB(D),new gB(M),new jB(p),new kB(r),new lB(q),new bB({current:null}),ba&&new MA(ba),ha&&new NA(ha),new FA(f),new KA(na),new GA(A),F&&new iB(F),y&&new AB(y),new mB({}),new BB(S)].filter(Aza)),ac:e(R),adLayoutLoggingData:Y};D=vza(g.Q(b,JH),f,h,A.layoutId,d);return{W7:A,Eea:D}}}; yza=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=Qq(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=e.instreamAdPlayerOverlayRenderer===void 0?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay|| {};f=f.playerOverlayLayoutRenderer===void 0?null:f.playerOverlayLayoutRenderer;var h=c.video_id;h||(h=(h=a.externalVideoId)?h:void 0);if(!h)throw new TypeError("Expected valid video id in IVAR");if(b&&d===0){var l;b=(l=Gza[h])!=null?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Db:a.pings?fD(a.pings):new Map,Bt:eD(a.pings)}}; zza=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a}; xza=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{VX:b,YX:a}}; Iza=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[Hza(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=DC(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",bb:"core"},u=fD(n),y=[new oH(b.j,f)],A;var D=n==null?void 0:(A=n.activeViewTracking)==null?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Db:u,layoutExitNormalTriggers:y,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[], layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:new NB([new FA(d),new BB(eD(n)),new CB(D),new fB(h/1E3)]),ac:p(t),adLayoutLoggingData:r}})]:new MB("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})}; Kza=function(a,b,c,d,e,f,h,l){a=Jza(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=DC(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",bb:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Db:q,layoutExitNormalTriggers:[new nH(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:new NB([new oB(e),new FA(c)]),ac:m(p)}}); return a instanceof MB?a:[a]}; Mza=function(a,b,c,d,e,f,h){return[Lza(a,f,d,function(l){var m=l.slotId;l=h(l);m=DC(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bb:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[new oH(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:new NB([new MA(e),new FA(c)]),ac:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]}; Oza=function(a,b,c,d,e,f,h,l){a=Nza(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=DC(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=qI(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,rI(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=DC(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=qI(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,rI(b,n,p))):q.imageOverlayAdContentRenderer?(q=DC(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", p),n=rI(b,n,p),n.push(new xH(b.j,45E3,q)),n=qI(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new LB("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new LB("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); return a instanceof MB?a:[a]}; Rza=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new MB("Expected valid duration for AdActionInterstitialRenderer."):function(p){return Pza(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 Qza(a,q,e,function(r,t){var u=r.slotId;r=h(r);u=DC(b.B.get(),"LAYOUT_TYPE_ENDCAP", u);return pI(b,u,t,c,r,"LAYOUT_TYPE_ENDCAP",[new SA(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}}; Sza=function(a,b,c,d){if(!c.playerVars)return new MB("No playerVars available in AdIntroRenderer.");var e=Qq(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=DC(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};return{Of:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Db:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"adapter",Ba:new NB([new nB({}), new FA(b),new bB({current:null}),new gB(e)]),ac:f(l)},Em:[new hH(a.j,h,["error"])],pk:[],Sz:[],Rz:[]}}}; Uza=function(a,b,c,d,e,f,h,l,m,n){n=n===void 0?!1:n;var p=nI(e);if(!qya(e,n))return new MB("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(p<=0)return new MB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=pza(a,b,e,f,c,d,h);return q instanceof MB?q:function(r){return Tza(b,r.slotId,c,p,e,oI(e),h(r),q,l,m)}}; Vza=function(a,b,c,d,e,f,h,l){function m(q){return Qza(a,q,d,n)} function n(q,r){var t=q.slotId;q=h(q);t=DC(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return pI(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new TA(e),f],e.adLayoutLoggingData)} if(!uya(e))return new MB("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=e.timeoutSeconds*1E3;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=sI(b,r,c,p,t,new Map,q,m,void 0,tI(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new YA(r.NL);q=new HA(l);return{Of:{layoutId:r.layoutId,layoutType:r.layoutType,Db:r.Db,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:r.bb,Ba:new NB([].concat(g.x(r.Oz),[t,q])),ac:r.ac,adLayoutLoggingData:r.adLayoutLoggingData},Em:[],pk:r.layoutExitMuteTriggers,Sz:r.layoutExitUserInputSubmittedTriggers,Rz:r.Yc,rf:r.rf}}}; Xza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y){a=XC(a,"SLOT_TYPE_PLAYER_BYTES");d=Nya(b,h,d,e,a,n,p);if(d instanceof MB)return d;var A;h=(A=OB(d.Ba,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!h)return new MB("Invalid adNotify layout");b=Wza(h,b,c,e,f,m,l,n,q,r,t,u,y);return b instanceof MB?b:[d].concat(g.x(b))}; Wza=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=Yza(b,c,d,f,h,l,m,n,p,q,r);Zza(f)?(d=$za(b,a),a=XC(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=DC(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=uI(b,d,l),b=[].concat(g.x(l.slotExpirationTriggers),[new dH(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,bb:l.bb},{slotId:a,layoutId:f}),e=a instanceof MB?a:{yy:Object.assign({}, l,{slotExpirationTriggers:b,Ba:new NB([new qB(a.layout)]),adSlotLoggingData:e}),rg:a.rg}):e=Rya(b,a,l,e,c);return e instanceof MB?e:[].concat(g.x(e.rg),[e.yy])}; bAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=Yza(a,b,c,e,f,h,m,n,p,q,r,t);Zza(e)?(e=aAa(a,c,h,l),e instanceof MB?a=e:(l=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=DC(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.x(e.slotExpirationTriggers),[new dH(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,bb:e.bb,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof MB?l: {yy:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:vI(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:wI(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,bb:e.bb,Ba:new NB([new EB(xI(c)),new qB(l.layout),new GB({Au:a.Au(c)})]),adSlotLoggingData:d},rg:l.rg})):a=Sya(a,c,h,l,d,m.Vb,b);return a instanceof MB?a:a.rg.concat(a.yy)}; Zza=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(g.Q(b.value,LH))return!0;return!1}; Yza=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(IF(p)&&JF(p))a:{var u=cAa(d,c,p);if(u instanceof MB)t=u;else{for(var y=0,A=[],D=[],F=[],H=[],M=[],N=[],S=new cB({current:null}),ba=new JA({current:null}),ha=!1,na=[],Y=0,R=[],W=0;W0?Y:-1;else if(v=g.Q(W,ND)){W=Rza(a,b,c,v,f,y,l,ba,Y);if(W instanceof MB){t=W;break a}W= W(r);A.push(W.Of);D=[].concat(g.x(W.Em),g.x(D));F=[].concat(g.x(W.pk),g.x(F));W.rf&&(na=[W.rf].concat(g.x(na)))}else if(v=g.Q(W,LH)){if(t===void 0){t=new MB("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:v});break a}W=Uza(a,b,c,f,v,S,l,t,y,yI(p,"supports_multi_step_on_desktop"));if(W instanceof MB){t=W;break a}W=W(r);A.push(W.Of);W.rf&&na.push(W.rf);D=[].concat(g.x(W.Em),g.x(D));F=[].concat(g.x(W.pk),g.x(F));H=[].concat(g.x(W.Sz),g.x(H));M=[].concat(g.x(W.Rz), g.x(M));N=[S].concat(g.x(N))}else if(W=g.Q(W,MH)){W=Vza(a,b,c,f,W,S,l,y);if(W instanceof MB){t=W;break a}W=W(r);A.push(W.Of);W.rf&&na.push(W.rf);F=[].concat(g.x(W.pk),g.x(F))}else{t=new MB("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Uy:A,layoutExitSkipTriggers:D,layoutExitUserInputSubmittedTriggers:H,Yc:M,layoutExitMuteTriggers:F,Oz:N,rg:na}}}else a:if(y=cAa(d,c,p),y instanceof MB)t=y;else{A=0;D=[];F=[];H=[];M=[];N=[];S=[];ba=new cB({current:null});ha=new JA({current:null}); na=!1;R=[];Y=-1;u=g.w(d);for(W=u.next();!W.done;W=u.next())if(W=W.value,g.Q(W,KH)){W=Sza(b,c,g.Q(W,KH),l);if(W instanceof MB){t=W;break a}W=W(r);D.push(W.Of);F=[].concat(g.x(W.Em),g.x(F));H=[].concat(g.x(W.pk),g.x(H));W.rf&&(R=[W.rf].concat(g.x(R)))}else if(g.Q(W,JH)){Y=eI(g.Q(W,JH),c,p);if(Y instanceof LB){t=new MB(Y);break a}W=new bH(A,y);W=dAa(b,Y.layoutId,Y.ip,c,fI(Y.playerVars,Y.ZB,h,n,W),Y.Ep,f,W,l(r),ha,m.get(Y.ip.externalVideoId),void 0,q);A++;D.push(W.Of);F=[].concat(g.x(W.Em),g.x(F));H= [].concat(g.x(W.pk),g.x(H));na||(S.push(ha),na=!0);Y=(Y=Y.ip.adPodSkipTarget)&&Y>0?Y:-1}else if(g.Q(W,ND)){W=Rza(a,b,c,g.Q(W,ND),f,A,l,ha,Y);if(W instanceof MB){t=W;break a}W=W(r);D.push(W.Of);F=[].concat(g.x(W.Em),g.x(F));H=[].concat(g.x(W.pk),g.x(H));W.rf&&(R=[W.rf].concat(g.x(R)))}else if(g.Q(W,LH)){if(t===void 0){t=new MB("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Q(W,LH)});break a}W=Uza(a,b,c,f,g.Q(W,LH),ba,l,t,A,yI(p,"supports_multi_step_on_desktop")); if(W instanceof MB){t=W;break a}W=W(r);D.push(W.Of);W.rf&&R.push(W.rf);F=[].concat(g.x(W.Em),g.x(F));H=[].concat(g.x(W.pk),g.x(H));M=[].concat(g.x(W.Sz),g.x(M));N=[].concat(g.x(W.Rz),g.x(N));S=[ba].concat(g.x(S))}else if(g.Q(W,MH)){W=Vza(a,b,c,f,g.Q(W,MH),ba,l,A);if(W instanceof MB){t=W;break a}W=W(r);D.push(W.Of);W.rf&&R.push(W.rf);H=[].concat(g.x(W.pk),g.x(H))}else{t=new MB("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Uy:D,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:M, Yc:N,layoutExitMuteTriggers:H,Oz:S,rg:R}}t instanceof MB?r=t:(N=r.slotId,y=t.Uy,A=t.layoutExitSkipTriggers,D=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,H=t.Oz,r=l(r),M=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=e?e.layoutId:DC(b.B.get(),M,N),S={layoutId:N,layoutType:M,bb:"core"},r={layout:{layoutId:N,layoutType:M,Db:new Map,layoutExitNormalTriggers:[new nH(b.j,N)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:D,layoutExitUserInputSubmittedTriggers:F,Yc:[],bb:"core", Ba:new NB([new dB(y)].concat(g.x(H))),ac:r(S)},rg:t.rg});return r}}; cAa=function(a,b,c){var d=[];a=g.w(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.Q(e,JH)){e=eI(g.Q(e,JH),b,c);if(e instanceof LB)return new MB(e);d.push(e.Ep)}return d}; fAa=function(a,b,c,d,e,f,h,l){if(!qya(c,l===void 0?!1:l))return new MB("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=nI(c);if(m<=0)return new MB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new cB({current:null}),p=pza(a,b,c,n,d,f,h);return eAa(a,d,f,m,e,function(q,r){var t=q.slotId,u=oI(c);q=h(q);var y,A=(y=tI(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null? y:DC(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bb:"core"};y=p(A,r);var D=OB(y.Ba,"metadata_type_fulfilled_layout");D||cy("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new FA(d),new vB(m),new yB(u),n];D&&u.push(new ZA(D.layoutType));return{N$:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Db:new Map,layoutExitNormalTriggers:[new nH(b.j,A)],layoutExitSkipTriggers:[new pH(b.j,r.layoutId)], layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new wH(b.j,r.layoutId)],Yc:[],bb:"core",Ba:new NB(u),ac:q(t)},c$:y}})}; gAa=function(a){if(!tya(a))return!1;var b=g.Q(a.adVideoStart,zI);return b?g.Q(a.linearAd,JH)&&GH(b)?!0:(cy("Invalid Sandwich with notify"),!1):!1}; hAa=function(a){if(a.linearAds==null)return!1;a=g.Q(a.adStart,zI);return a?GH(a)?!0:(cy("Invalid LASR with notify"),!1):!1}; iAa=function(a){if(!sya(a))return!1;a=g.Q(a.adStart,zI);return a?GH(a)?!0:(cy("Invalid LASR with notify"),!1):!1}; AI=function(a,b,c,d,e,f,h,l,m){this.D=a;this.B=b;this.j=c;this.Ca=d;this.Ne=e;this.C=f;this.Ia=h;this.vk=l;this.loadPolicy=m===void 0?1:m}; yya=function(a,b,c,d,e,f,h,l,m){var n=[];if(b.length===0&&d.length===0&&c.length===0)return n;b=b.filter(HH);var p=c.filter(oya),q=d.filter(HH),r=new Map,t=Yya(b),u=c.some(function(W){var v;return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),y=c.some(function(W){var v; return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),A=c.some(function(W){var v; return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_IN_PLAYER"}); c=c.some(function(W){var v,V;return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(W==null?void 0:(V=W.adSlotMetadata)==null?void 0:V.slotType)==="SLOT_TYPE_ABOVE_FEED"}); if(u||y||A||c)c=bza(p,b,l,e,t,a.Ne.get(),a.loadPolicy,r,a.Ca.get(),a.D.get(),A),c instanceof MB?cy(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.x(c));c=g.w(b);for(y=c.next();!y.done;y=c.next())y=y.value,A=jAa(a,r,y,e,f,h,u,l,t,m,p),A instanceof MB?cy(A,void 0,void 0,{renderer:y.renderer,config:y.config.adPlacementConfig,kind:y.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.x(A));kAa(a.Ca.get())||(f=lAa(a,q,e,l,t,r),n.push.apply(n,g.x(f)));if(a.C===null||h&&!l.GX){var D, F,H;a=l.Vb&&b.length===1&&((D=b[0].config)==null?void 0:(F=D.adPlacementConfig)==null?void 0:F.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((H=b[0].renderer)==null?void 0:H.adBreakServiceRenderer);if(!n.length&&!a){var M,N,S,ba;cy("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":(M=b[0])==null?void 0:(N=M.config)==null?void 0:(S=N.adPlacementConfig)==null?void 0:S.kind,renderer:(ba=b[0])==null?void 0:ba.renderer})}return n}D= d.filter(HH);n.push.apply(n,g.x(Kya(r,D,a.B.get(),a.C,e,u)));if(!n.length){var ha,na,Y,R;cy("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":(ha=b[0])==null?void 0:(na=ha.config)==null?void 0:(Y=na.adPlacementConfig)==null?void 0:Y.kind,renderer:(R=b[0])==null?void 0:R.renderer})}return n}; lAa=function(a,b,c,d,e,f){function h(r){return UB(a.Ne.get(),r)} var l=[];b=g.w(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&&gAa(p)?(cy("Found AdNotify with SandwichedLinearAdRenderer"),q=g.Q(p.adVideoStart,zI),p=g.Q(p.linearAd,JH),bI(f,n,m.config.adPlacementConfig.kind),n=void 0,q=Oya((n=q)==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ca.get(),a.Ne.get()),q instanceof MB?cy(q):l.push.apply(l,g.x(q))): q&&(!q.adLayoutMetadata&&hAa(q)||q.adLayoutMetadata&&iAa(q))&&(cy("Found AdNotify with LinearAdSequenceRenderer"),bI(f,n,m.config.adPlacementConfig.kind),n=void 0,p=Wza((n=g.Q(q.adStart,zI))==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,zH(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ca.get()),p instanceof MB?cy(p):l.push.apply(l,g.x(p)))}return l}; jAa=function(a,b,c,d,e,f,h,l,m,n,p){function q(D){return UB(a.Ne.get(),D)} var r=c.renderer,t=c.config.adPlacementConfig,u=t.kind,y=c.adSlotLoggingData,A=l.GX&&u==="AD_PLACEMENT_KIND_START";A=f&&!A;if(r.adsEngagementPanelRenderer!=null)return dI(b,c.elementId,u,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),S=D.slotId,ba=r.adsEngagementPanelRenderer;D=UB(a.Ne.get(),D);return BI(N,S,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new vA(ba),F,H,ba.impressionPings,D,r.adsEngagementPanelRenderer.adLayoutLoggingData,M)}),[]; if(r.adsEngagementPanelLayoutViewModel)return dI(b,c.elementId,u,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),S=D.slotId,ba=r.adsEngagementPanelLayoutViewModel;D=UB(a.Ne.get(),D);return CI(N,S,"LAYOUT_TYPE_PANEL",new wA(ba),F,H,D,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,M)}),[]; if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Fya(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,y,d,q);dI(b,c.elementId,u,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),S=D.slotId,ba=r.actionCompanionAdRenderer;D=UB(a.Ne.get(),D);return BI(N,S,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new tA(ba),F,H,ba.impressionPings,D,r.actionCompanionAdRenderer.adLayoutLoggingData,M)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Gya(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,y,d,q); dI(b,c.elementId,u,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),S=D.slotId,ba=r.topBannerImageTextIconButtonedLayoutViewModel;D=UB(a.Ne.get(),D);return CI(N,S,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new uA(ba),F,H,D,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,M)})}else if(r.imageCompanionAdRenderer)dI(b, c.elementId,u,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),S=D.slotId,ba=r.imageCompanionAdRenderer; D=UB(a.Ne.get(),D);return BI(N,S,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new AA(ba),F,H,ba.impressionPings,D,r.imageCompanionAdRenderer.adLayoutLoggingData,M)}); else if(r.bannerImageLayoutViewModel)dI(b,c.elementId,u,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),S=D.slotId,ba=r.bannerImageLayoutViewModel;D=UB(a.Ne.get(),D);return CI(N,S,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new BA(ba),F,H,D,r.bannerImageLayoutViewModel.adLayoutLoggingData,M)}); else if(r.shoppingCompanionCarouselRenderer)dI(b,c.elementId,u,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),S=D.slotId,ba=r.shoppingCompanionCarouselRenderer;D=UB(a.Ne.get(),D);return BI(N,S,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new CA(ba),F,H,ba.impressionPings,D,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,M)}); else if(r.adBreakServiceRenderer){if(!Dya(c))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return Cya(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Bya(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.vk)return new MB("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Vb||cy("Received non-live cue point triggered AdBreakServiceRenderer", void 0,void 0,{kind:u,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Vb),clientPlaybackNonce:l.clientPlaybackNonce});mAa(a.vk,{adPlacementRenderer:c,contentCpn:d,Np:e});if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.Ia)return new MB("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no playerControlsApiProvider set for interface");e=a.Ia.get().getCurrentTimeSec(1,!1);return nAa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,y,f)}}else{if(r.clientForecastingAdRenderer)return Kza(a.B.get(), a.j.get(),t,y,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return Oza(a.B.get(),a.j.get(),t,y,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return Mza(a.B.get(),a.j.get(),t,y,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&A)return Dza(a.B.get(),a.j.get(),c,d,q,n,!a.Ca.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];bI(b,r,u);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!sya(r.linearAdSequenceRenderer))return new MB("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds== null)return new MB("Received invalid LinearAdSequenceRenderer.");if(g.Q(r.linearAdSequenceRenderer.adStart,zI)){cy("Found AdNotify in LinearAdSequenceRenderer");c=g.Q(r.linearAdSequenceRenderer.adStart,zI);if(!cya(c))return new MB("Invalid AdMessageRenderer.");f=r.linearAdSequenceRenderer.linearAds;return Xza(a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),t,y,c,zH(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,a.loadPolicy,a.Ca.get())}return bAa(a.B.get(), a.j.get(),t,y,r.linearAdSequenceRenderer.linearAds,zH(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.Ca.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];bI(b,r,u);return Tya(a.B.get(),a.j.get(),t,y,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Ca.get(),a.Ne.get(),p)}if(r.instreamSurveyAdRenderer)return fAa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,y,d,q,yI(a.Ca.get(),"supports_multi_step_on_desktop")); if(r.sandwichedLinearAdRenderer!=null)return tya(r.sandwichedLinearAdRenderer)?g.Q(r.sandwichedLinearAdRenderer.adVideoStart,zI)?(cy("Found AdNotify in SandwichedLinearAdRenderer"),c=g.Q(r.sandwichedLinearAdRenderer.adVideoStart,zI),cya(c)?(f=g.Q(r.sandwichedLinearAdRenderer.linearAd,JH))?Pya(c,f,t,a.D.get(),a.B.get(),a.j.get(),a.Ne.get(),y,d,e,l,q,m,a.loadPolicy,a.Ca.get()):new MB("Missing IVAR from Sandwich"):new MB("Invalid AdMessageRenderer.")):bAa(a.B.get(),a.j.get(),t,y,[r.sandwichedLinearAdRenderer.adVideoStart, r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Ca.get()):new MB("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return l=yI(a.Ca.get(),"enable_h5_shorts_ad_terminal_events")&&l.Ck,Iza(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,y,d,e,l,q)}}return[]}; DI=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.B=a;this.C=b;this.yf=d;this.Ia=e;this.Ca=f;this.Oa=h;this.Gc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.La()||c.get().removeListener(m)}); d.get().addListener(this);this.addOnDisposeCallback(function(){d.La()||d.get().removeListener(m)})}; mAa=function(a,b){if(a.j)cy("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.w(a.yf.get().WM);for(var c=b.next();!c.done;c=b.next())oAa(a,a.j,c.value)}}; oAa=function(a,b,c){var d=a.Ia.get().getCurrentTimeSec(1,!1);a.Ca.get().J.U().zc()&&dG(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Eh.toFixed(3));WC(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=EI(a.Ca.get()),n=a.Oa;if(e.Ca.get().J.U().experiments.kb("enable_smearing_expansion_dai")){var p=g.VB(e.Ca.get().J.U().experiments, "max_prefetch_window_sec_for_livestream_optimization");var q=g.VB(e.Ca.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={cn:pAa(c),YB:!1,cueProcessedMs:d*1E3};var r=c.startSecs+c.Eh;if(d===0)m.Tn=new ip(0,r*1E3);else{q=c.startSecs-q;var t=q-d;m.Tn=t<=0?new ip(q*1E3,r*1E3):new ip(Math.floor(d+Math.random()*Math.min(t,p))*1E3,r*1E3)}p=m}else p={cn:pAa(c),YB:!1},r=c.startSecs+c.Eh,c.startSecs<=d?m=new ip((c.startSecs-4)*1E3,r*1E3):(q=Math.max(0,c.startSecs-d-10),m=new ip(Math.floor(d+ Math.random()*(m?d===0?0:Math.min(q,5):q))*1E3,r*1E3)),p.Tn=m;f=$H(e,f,h,p,l,[new eB(c)]);e.Ca.get().J.U().experiments.kb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Tn.start/1E3-d,n=c.startSecs-d,(h=h.J.Vc())!=null&&(h=h.hc(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=g.FI(h.provider)*1E3,p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(n*1E3).toFixed(0)),h.j.daism=p)))):dG(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Tn.start/1E3- d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})}; GI=function(a){var b,c=(b=OB(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=OB(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=OB(a.Ba,"metadata_type_content_cpn"),f=OB(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=OB(a.Ba,"metadata_type_player_overlay_layout_renderer"),l=OB(a.Ba,"metadata_type_player_underlay_renderer"),m=OB(a.Ba,"metadata_type_ad_placement_config"),n=OB(a.Ba,"metadata_type_video_length_seconds"); var p=IB(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?OB(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):IB(a.Ba,"metadata_type_layout_enter_ms")&&IB(a.Ba,"metadata_type_layout_exit_ms")?(OB(a.Ba,"metadata_type_layout_exit_ms")-OB(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Tq:d,contentCpn:e,KS:c,kO:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,cL:p,inPlayerLayoutId:OB(a.Ba,"metadata_type_linked_in_player_layout_id"), inPlayerSlotId:OB(a.Ba,"metadata_type_linked_in_player_slot_id")}}; rAa=function(a,b){return qAa(a,b)}; sAa=function(a,b){b=qAa(a,b);if(!b)return null;var c;b.cL=(c=OB(a.Ba,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return b}; qAa=function(a,b){var c,d=(c=OB(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!d)return null;c=Yva(a,b);return{h7:Xva(a,b),adPlacementConfig:OB(a.Ba,"metadata_type_ad_placement_config"),k7:c,contentCpn:OB(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:OB(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:OB(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:OB(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0, instreamAdPlayerUnderlayRenderer:void 0,cL:void 0,KS:d,Tq:a.layoutId,videoLengthSeconds:OB(a.Ba,"metadata_type_video_length_seconds")}}; HI=function(a,b,c,d,e,f,h,l,m){g.O.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Ne=h;this.Ca=l;this.Sa=m;this.kh=!0}; tAa=function(a,b,c){return Wya(a.j.get(),b.contentCpn,b.Tq,function(d){return Xya(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Tq,UB(a.Ne.get(),d))})}; II=function(a,b,c,d,e,f,h,l){g.O.call(this);this.B=a;this.j=b;this.C=c;this.Ca=d;this.D=e;this.Sa=f;this.Ia=h;this.Cc=l}; JI=function(a){g.O.call(this);this.j=a}; WC=function(a,b,c,d){a.j().Rg(b,d);c=c();a=a.j();a.Rb.KI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.w(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Rb.ek("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Rb.ek("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.qb(c.slotId))throw new MB("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(cC(e,c))throw new MB("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.qh.Tt.has(c.slotType))throw new MB("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.qh.Av.has(c.slotType))throw new MB("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");tC(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);tC(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", c.slotFulfillmentTriggers);tC(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=oC(f,h);if(cC(f,c))throw new MB("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new Rua(c));f.j.set(h,l)}catch(ha){ha instanceof MB&&ha.rl?(d.Rb.nm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",ha.rl,c),cy(ha,c,void 0,void 0,ha.Fw)):(d.Rb.nm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", c),cy(ha,c));break a}cC(d.j,c).K=!0;try{var m=d.j,n=cC(m,c),p=c.slotEntryTrigger,q=m.qh.xn.get(p.triggerType);q&&(q.Rl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Aa.set(p.triggerId,q));for(var r=g.w(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var u=t.value,y=m.qh.xn.get(u.triggerType);y&&(y.Rl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,c,null),n.qa.set(u.triggerId,y))}for(var A=g.w(c.slotExpirationTriggers),D=A.next();!D.done;D=A.next()){var F=D.value,H=m.qh.xn.get(F.triggerType);H&&(H.Rl("TRIGGER_CATEGORY_SLOT_EXPIRATION", F,c,null),n.Y.set(F.triggerId,H))}var M=m.qh.Tt.get(c.slotType).get().build(m.C,c);n.N=M;var N=m.qh.Av.get(c.slotType).get().build(m.G,c);N.init();n.B=N}catch(ha){ha instanceof MB&&ha.rl?(d.Rb.nm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",ha.rl,c),cy(ha,c,void 0,void 0,ha.Fw)):(d.Rb.nm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),cy(ha,c));$B(d,c,!0);break a}d.Rb.ek("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Sg(c);for(var S=g.w(d.B),ba=S.next();!ba.done;ba= S.next())ba.value.Sg(c);fC(d,c)}}; KI=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.C=b;this.Pc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.La()||d.get().removeListener(f)})}; wya=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.w(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof kH?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):cy("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new ip(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Pc.get().addCueRange(c,d.start,d.end,!1,a);LI(a.context.Ca.get())&&(b=d.start,d=d.end,e={},a.context.On.Hk("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))}; MI=function(){g.O.apply(this,arguments);this.kh=!0;this.pj=new Map;this.j=new Map}; NI=function(a,b){a=g.w(a.pj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; OI=function(a,b){a=g.w(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}cy("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.qb(b)),layoutId:b})}; uAa=function(){this.j=new Map}; vAa=function(a,b){this.callback=a;this.slot=b}; PI=function(){}; wAa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c}; xAa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c;this.B=!1;this.j=0}; yAa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c}; QI=function(a){this.Ia=a}; RI=function(a){g.O.call(this);this.FN=a;this.Wb=new Map}; SI=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof wH&&f.triggeringLayoutId===b&&c.push(e)}c.length?lC(a.FN(),c):cy("Survey is submitted but no registered triggers can be activated.")}; TI=function(a,b,c){RI.call(this,a);var d=this;this.Ca=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.La()||b.get().removeListener(d)})}; UI=function(a){g.O.call(this);this.j=a;this.kh=!0;this.Wb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set}; VI=function(a){g.O.call(this);this.j=a;this.Wb=new Map}; WI=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&lC(a.j(),c)}; XI=function(a,b,c){g.O.call(this);var d=this;this.j=a;this.context=c;this.Wb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.La()||b.get().removeListener(d)})}; YI=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.Pc=b;this.Ia=c;this.Sa=d;this.context=e;this.kh=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.La()||c.get().removeListener(f)})}; zAa=function(a,b,c,d,e,f,h,l,m,n){if(tF(a.Sa.get(),1).clientPlaybackNonce!==m)throw new MB("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{pE:new yH(b,c,d,e),wJ:f});a.Pc.get().addCueRange(f,h,l,n,a);LI(a.context.Ca.get())&&(m={},a.context.On.Hk("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=e==null?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))}; AAa=function(a,b){a=g.w(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;if(b===d.wJ)return c}return""}; ZI=function(a,b){g.O.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.La()||b.get().removeListener(c)}); var d;this.j=((d=b.get().Tw)==null?void 0:d.slotId)||null}; BAa=function(a,b){var c=[];a=g.w(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; $I=function(a){g.O.call(this);this.j=a;this.kh=!0;this.Wb=new Map}; VF=function(a,b,c){b=b.layoutId;for(var d=[],e=g.w(a.Wb.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof nH){var h;if(h=f.trigger.layoutId===b){h=c;var l=Kua.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&lC(a.j(),d)}; aJ=function(a){g.O.call(this);this.j=a;this.kh=!0;this.Wb=new Map}; bJ=function(a){g.O.call(this);this.C=a;this.kh=!0;this.Wb=new Map;this.j=new Map;this.B=new Map}; CAa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.w(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c}; cJ=function(a){g.O.call(this);this.j=a;this.Wb=new Map}; DAa=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof aH&&e.trigger.slotId===b&&c.push(e);c.length>=1&&lC(a.j(),c)}; EAa=function(a,b){var c={slotId:XC(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],bb:"surface",Ba:new NB([])},d=Object,e=d.assign;b=DC(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"surface",Ba:new NB([]), ac:Eua(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.bb,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{g$:!0,slot:c,layout:b})}; Aya=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={cn:new ip(-0x8000000000000,-0x8000000000000),YB:d},c!=null&&(d.Tn=new ip(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={cn:new ip(0x7ffffffffffff,0x8000000000000),YB:d},c!=null&&(d.Tn=new ip(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||cy("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); e.offsetEndMilliseconds||cy("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);e===-1&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new MB("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={cn:new ip(a,e),YB:d};if(c!=null){a=Math.max(0,a-c);if(a===e)return d;d.Tn=new ip(a,e)}return d; default:return new MB("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}}; pAa=function(a){var b=a.startSecs*1E3;return new ip(b,b+a.Eh*1E3)}; FAa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.w(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;a=g.w(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if(((c=g.Q(b.value,ZH))==null?void 0:(d=c.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; dJ=function(a){this.Ca=a;this.B=new Map;this.j=new Map;this.C=new Map}; XC=function(a,b){if(eJ(a.Ca.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.kv(16)}; DC=function(a,b,c){if(eJ(a.Ca.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.kv(16)}; mI=function(a,b){if(eJ(a.Ca.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.kv(16)}; GAa=function(a){var b=[new XA(a.Tq),new aB(a.KS),new FA(a.adPlacementConfig),new fB(a.videoLengthSeconds),new uB(a.cL)];a.instreamAdPlayerOverlayRenderer&&b.push(new MA(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new NA(a.playerOverlayLayoutRenderer));a.kO&&b.push(new JA(a.kO));return b}; HAa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:DC(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?(h=c.instreamAdPlayerOverlayRenderer)==null?void 0:h.adLayoutLoggingData:(l=c.playerOverlayLayoutRenderer)==null?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[new iH(function(n){return mI(f, n)},c.Tq)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:b,Ba:d,ac:e(h),adLayoutLoggingData:m}}; fJ=function(a,b){var c=this;this.B=a;this.Ca=b;this.j=function(d){return mI(c.B.get(),d)}}; Xya=function(a,b,c,d,e,f){c=new NB([new OA(c),new FA(d)]);b=DC(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Db:new Map,layoutExitNormalTriggers:[new iH(function(h){return mI(a.B.get(),h)},e)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:c,ac:f(d),adLayoutLoggingData:void 0}}; gI=function(a,b,c,d,e){var f=GAa(d);return HAa(b,c,d,new NB(f),e,a.B.get())}; IAa=function(a,b,c,d,e){var f=GAa(d);f.push(new DA(d.h7));f.push(new EA(d.k7));return HAa(b,c,d,new NB(f),e,a.B.get())}; BI=function(a,b,c,d,e,f,h,l,m,n){b=DC(a.B.get(),c,b);var p={layoutId:b,layoutType:c,bb:"core"},q=new Map;h&&q.set("impression",h);h=[new lH(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new hH(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Db:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:new NB([d,new FA(f),new XA(e)]),ac:l(p),adLayoutLoggingData:m}}; CI=function(a,b,c,d,e,f,h,l,m){b=DC(a.B.get(),c,b);var n={layoutId:b,layoutType:c,bb:"core"},p=[new lH(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new hH(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Db:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:new NB([d,new FA(f),new XA(e)]),ac:h(n),adLayoutLoggingData:l}}; rI=function(a,b,c){var d=[];d.push(new mH(a.j,c));b&&d.push(b);return d}; qI=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,bb:"core"};return{layoutId:b,layoutType:c,Db:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new dH(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:new NB([new zA(d),new FA(e)]),ac:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; pI=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,bb:"core"};return{layoutId:b,layoutType:f,Db:new Map,layoutExitNormalTriggers:[new iH(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:new NB([new FA(d)].concat(g.x(h))),ac:e(m),adLayoutLoggingData:l}}; tI=function(a,b,c,d){if(a.Ca.get().We(b.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)cy("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c}; Pza=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=sI(a,b,c,e,f,h,l,m,q,tI(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Oz;c=new YA(a.NL);d=a.layoutExitSkipTriggers;n>0&&(b.push(c),b.push(new IA(n)),d=[]);b.push(new HA(p));return{Of:{layoutId:a.layoutId,layoutType:a.layoutType,Db:a.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:a.bb,Ba:new NB(b),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData}, Em:d,pk:a.layoutExitMuteTriggers,Sz:a.layoutExitUserInputSubmittedTriggers,Rz:a.Yc,rf:a.rf}}; Tza=function(a,b,c,d,e,f,h,l,m,n){b=sI(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,tI(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); a=new wH(a.j,b.NL);c=new YA(b.NL);n=new HA(n);return{Of:{layoutId:b.layoutId,layoutType:b.layoutType,Db:b.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:b.bb,Ba:new NB([].concat(g.x(b.Oz),[c,n])),ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},Em:b.layoutExitSkipTriggers,pk:b.layoutExitMuteTriggers,Sz:[].concat(g.x(b.layoutExitUserInputSubmittedTriggers),[a]),Rz:b.Yc,rf:b.rf}}; sI=function(a,b,c,d,e,f,h,l,m,n,p){b=n!=null?n:DC(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bb:"adapter"};l=l(b);var q=OB(l.Ba,"metadata_type_fulfilled_layout");q||cy("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new FA(c),new vB(d),new yB(e)];q&&c.push(new ZA(q.layoutType));p&&c.push(new lB(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Db:f,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new pH(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"adapter",Oz:c,ac:h(n),adLayoutLoggingData:m,rf:l,NL:r}}; Uya=function(a,b,c,d,e,f,h,l,m,n,p){a=JAa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Db:a.Db,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Yc:a.Yc,bb:a.bb,Ba:new NB(a.uX),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData}}; dAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=JAa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.uX;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(e.push(n),e.push(new IA(c.adPodSkipTarget)),d=[]);e.push(new HA(l.adPodIndex));c.isCritical&&(d=[new hH(a.j,b.layoutId,["error"])].concat(g.x(d)));return{Of:{layoutId:b.layoutId,layoutType:b.layoutType,Db:b.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:b.bb,Ba:new NB(e), ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},Em:d,pk:b.layoutExitMuteTriggers,Sz:b.layoutExitUserInputSubmittedTriggers,Rz:b.Yc}}; JAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",bb:c};e=[new FA(e),new GA(m),new KA(d.externalVideoId),new LA(l),new yB({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new gB(f),new bB({current:null}),new fB(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new MA(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new NA(h)); q&&e.push(new hB(q));(q=d.playerUnderlay)&&e.push(new OA(q));l=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:h==null?void 0:h.layoutId)?q:DC(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new YA(q));e.push(new $A(l));e.push(new lB(m.adPodIndex));d.adNextParams&&e.push(new xA(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new RA(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new yA(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new wB(d.legacyInfoCardVastExtension)); d.sodarExtensionData&&e.push(new iB(d.sodarExtensionData));p&&e.push(new tB(p));e.push(new BB(eD(d.pings)));m=fD(d.pings);if(r){a:{r=g.w(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.Q(p.fulfillmentContent.fulfilledLayout,QH))&&(f=g.Q(f.renderingContent,PH))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new PA(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Db:m,layoutExitNormalTriggers:[new nH(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds? [new pH(a.j,q)]:[],layoutExitMuteTriggers:[new pH(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:c,uX:e,ac:n(t),adLayoutLoggingData:d.adLayoutLoggingData}}; Fza=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return JB(p,[],["LAYOUT_TYPE_MEDIA"])})||cy("Unexpect subLayout type for DAI composite layout"); b=DC(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Db:new Map,layoutExitNormalTriggers:[new jH(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ba:new NB([new jB(c),new kB(l),new dB(d),new FA(e),new pB(f),new mB({}),new DB(m)]),ac:h(n)}}; Aza=function(a){return a!=null}; gJ=function(a,b,c){var d=this;this.B=a;this.C=b;this.Ca=c;this.j=function(e){return mI(d.B.get(),e)}}; nAa=function(a,b,c,d,e,f,h){if(!c.highCcvPrefetchConfig)return new MB("AdPlacementConfig for Live Prefetch is missing high_ccv_prefetch_config");c=c.highCcvPrefetchConfig;d*=1E3;var l=[];if(!c.breakLengthMs)return new MB("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var m=g.w(c.breakLengthMs),n=m.next();!n.done;n=m.next())if(n=n.value,Number(n)>0){var p=d+Number(c.startTimeOffsetMs),q=p+Number(c.cacheFetchSmearingDurationMs);p={cn:new ip(q,q+Number(n)),YB:!1,Tn:new ip(Math.floor(p+ Math.random()*Number(c.cacheFetchSmearingDurationMs)),q)};q=[];q.push(new HB({breakLengthMs:Number(n)}));h&&q.push(new mB({}));l.push($H(a,b,e,p,f,q))}return l}; $H=function(a,b,c,d,e,f){f=f===void 0?[]:f;var h=XC(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Tn&&d.Tn.start!==d.cn.start&&l.push(new kH(a.j,c,new ip(d.Tn.start,d.cn.start),!1));l.push(new kH(a.j,c,new ip(d.cn.start,d.cn.end),d.YB));d={getAdBreakUrl:b.getAdBreakUrl,WS:d.cn.start,VS:d.cn.end,cueProcessedMs:d.cueProcessedMs};b=new tH(a.j,h);f=[new rB(d)].concat(g.x(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new oH(a.j, c),new rH(a.j,h),new sH(a.j,h)],bb:"core",Ba:new NB(f),adSlotLoggingData:e}}; LAa=function(a,b,c){var d=[];c=g.w(c);for(var e=c.next();!e.done;e=c.next())d.push(KAa(a,b,e.value));return d}; KAa=function(a,b,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===a?c.clone(b):c}; oza=function(a,b,c,d,e){return MAa(a,b,c,d,e)}; Qza=function(a,b,c,d){var e=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER");return MAa(a,e,b,c,d)}; MAa=function(a,b,c,d,e){var f=new gH(a.j,c),h=[new qH(a.j,b)];a=[new rH(a.j,b),new oH(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,bb:"core",Ba:new NB([new qB(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}}; eAa=function(a,b,c,d,e,f){var h=XC(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=DC(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=hJ(a,b,c,d);var n=[new qH(a.j,h)];c=[new rH(a.j,h),new oH(a.j,c),new dH(a.j,m)];if(d instanceof MB)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.N$;l=l.c$;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:vI(a,b,h,d),slotFulfillmentTriggers:wI(a,b,h,n),slotExpirationTriggers:c,bb:"core",Ba:new NB([new qB(f),new EB(xI(b)),new GB({Au:a.Au(b)})]),adSlotLoggingData:e},l]}; xI=function(a){return a.kind==="AD_PLACEMENT_KIND_START"}; Vya=function(a,b,c,d,e){e=e?e:XC(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new gH(a.j,c);var f=[new qH(a.j,e)];a=[new oH(a.j,b),new rH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,bb:"core",Ba:new NB([new qB(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}}; Wya=function(a,b,c,d){var e=XC(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new gH(a.j,c);var f=[new qH(a.j,e)];a=[new oH(a.j,b),new rH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,bb:"core",Ba:new NB([new qB(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}}; Nya=function(a,b,c,d,e,f,h){var l=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=DC(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=NAa(a,d,f,h,m);if(d instanceof MB)return d;h=[new qH(a.j,l)];e=[new oH(a.j,f),new qH(a.j,e),new vH(a.j,e)];c=UB(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bb:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Db:new Map,layoutExitNormalTriggers:[new Zxa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new aya(a.j,m,b.durationMs)],Yc:[new $xa(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],bb:"core",Ba:new NB([new xB(b)]),ac:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ba:new NB([new qB(b)])}}; Nza=function(a,b,c,d,e,f){b=hJ(a,b,c,d);if(b instanceof MB)return b;var h=b instanceof kH?new Wxa(a.j,c,b.j):null;d=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new qH(a.j,d)];a=[new oH(a.j,c),new rH(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof LB?new MB(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a, bb:"core",Ba:new NB([new qB(f)]),adSlotLoggingData:e}}; Lza=function(a,b,c,d){var e=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new cH(a.j,b),h=[new uH(a.j,e)];a=[new oH(a.j,b),new rH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,bb:"core",Ba:new NB([new qB(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}}; uza=function(a,b,c,d){var e=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new gH(a.j,c);var f=[new qH(a.j,e)],h=[new rH(a.j,e),new oH(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new qH(a.j,e)],slotExpirationTriggers:[new oH(a.j,b),new rH(a.j,e)],bb:"core",Ba:new NB([new qB(d(f))])}}; rza=function(a,b,c,d,e){var f=XC(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new fH(a.j,d,c);d=[new qH(a.j,f)];a=[new oH(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,bb:"core",Ba:new NB([new qB(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}}; Jya=function(a,b,c,d,e,f){var h=XC(a.B.get(),b);return iJ(a,h,b,new gH(a.j,d),[new oH(a.j,c),new rH(a.j,h),new hH(a.j,d,["error"])],e,f)}; Iya=function(a,b,c,d,e,f,h){var l=XC(a.B.get(),b);return iJ(a,l,b,new hH(a.j,e,["normal"]),[new oH(a.j,c),new rH(a.j,l),new hH(a.j,d,["error"])],f,h)}; Eya=function(a,b,c,d,e){var f=XC(a.B.get(),b);return iJ(a,f,b,new cH(a.j,c),[new oH(a.j,c),new rH(a.j,f)],d,e)}; Hza=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=XC(a.B.get(),c);b=new cH(a.j,b);var h=[new qH(a.j,f)];a=[new rH(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,bb:"core",Ba:new NB([new qB(e({slotId:f,slotType:c,slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}}; Bza=function(a,b,c,d){var e=XC(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new Txa(a.j),h=[new uH(a.j,e)];b=[new oH(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Ca.get();return!g.iC(a.J.U())&&a.J.U().experiments.kb("enable_pacf_slot_asde_player_byte_h5")||g.iC(a.J.U())&&a.J.U().experiments.kb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,bb:"core",Ba:new NB([new qB(d(l)),new mB({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,bb:"core",Ba:new NB([new qB(d(l)),new mB({})])}}; $za=function(a,b){return kAa(a.Ca.get())?new hH(a.j,b,["normal","error","skipped"]):new hH(a.j,b,["normal"])}; Rya=function(a,b,c,d,e){b=$za(a,b);a=uI(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,bb:a.bb});return e instanceof MB?e:{yy:Object.assign({},a,{Ba:new NB([new qB(e.layout)]),adSlotLoggingData:d}),rg:e.rg}}; Sya=function(a,b,c,d,e,f,h){c=aAa(a,b,c,d);if(c instanceof MB)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,bb:c.bb});if(h instanceof MB)return h;d=[new EB(xI(b)),new qB(h.layout),new GB({Au:a.Au(b)})];f&&d.push(new zB({}));return{yy:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:vI(a, b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:wI(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,bb:c.bb,Ba:new NB(d),adSlotLoggingData:e},rg:h.rg}}; vI=function(a,b,c,d){return a.Ca.get().We(xI(b))?new aH(a.j,c):d}; wI=function(a,b,c,d){return a.Ca.get().We(xI(b))?[new uH(a.j,c)]:d}; uI=function(a,b,c){var d=XC(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new qH(a.j,d)];a=[new rH(a.j,d),new oH(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,bb:"core"}}; aAa=function(a,b,c,d){b=hJ(a,b,c,d);return b instanceof MB?b:uI(a,b,c)}; Jza=function(a,b,c,d,e,f){var h=XC(a.B.get(),"SLOT_TYPE_FORECASTING");b=hJ(a,b,c,d);if(b instanceof MB)return b;d=[new qH(a.j,h)];a=[new rH(a.j,h),new oH(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,bb:"core",Ba:new NB([new qB(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}}; OAa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new cH(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Aya(b,d),a instanceof MB?a:e(a.cn,f);case "AD_PLACEMENT_KIND_END":return new eH(a.j,c,f);default:return new MB("Cannot construct entry trigger",{kind:b.kind})}}; NAa=function(a,b,c,d,e){return OAa(a,b,c,d,function(f,h){return new Vxa(a.j,c,f,h,e)})}; hJ=function(a,b,c,d){return OAa(a,b,c,d,function(e,f){return new kH(a.j,c,e,f)})}; iJ=function(a,b,c,d,e,f,h){a=[new uH(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,bb:"core",Ba:new NB([new qB(h({slotId:b,slotType:c,slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}}; jJ=function(a,b){g.O.call(this);this.Ca=a;this.j=b;this.eventCount=0}; kJ=function(a,b,c,d){jJ.call(this,a,b);this.Ca=a;this.Sa=c;this.context=d}; lJ=function(){this.j=new Map}; mJ=function(a){return window.Int32Array?new Int32Array(a):Array(a)}; sJ=function(a){g.O.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!PAa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;b<256;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);nJ=new Uint8Array(256);oJ=mJ(256);pJ=mJ(256);qJ=mJ(256);rJ=mJ(256);for(var f=0;f<256;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;nJ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;oJ[f]=b<<24|e<<16|e<<8|h;pJ[f]=h<<24|oJ[f]>>>8;qJ[f]=e<<24|pJ[f]>>>8;rJ[f]=e<<24|qJ[f]>>>8}PAa=!0}e=mJ(44);for(c= 0;c<4;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;c<44;c++)a=e[c-1],c%4||(a=(nJ[a>>16&255]^d)<<24|nJ[a>>8&255]<<16|nJ[a&255]<<8|nJ[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; tJ=function(a,b){for(var c=0;c<4;c++)a.counter[c]=b[c*4]<<24|b[c*4+1]<<16|b[c*4+2]<<8|b[c*4+3];a.j=16}; QAa=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;h>=0&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;n<40;)h=oJ[c>>>24]^pJ[d>>16&255]^qJ[e>>8&255]^rJ[f&255]^b[n++],l=oJ[d>>>24]^pJ[e>>16&255]^qJ[f>>8&255]^rJ[c&255]^b[n++],m=oJ[e>>>24]^pJ[f>>16&255]^qJ[c>>8&255]^rJ[d&255]^b[n++],f=oJ[f>>>24]^pJ[c>>16&255]^qJ[d>>8&255]^rJ[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=nJ[c>>>24]^h>>>24;a[1]=nJ[d>>16&255]^h>>16&255;a[2]=nJ[e>>8&255]^ h>>8&255;a[3]=nJ[f&255]^h&255;h=b[41];a[4]=nJ[d>>>24]^h>>>24;a[5]=nJ[e>>16&255]^h>>16&255;a[6]=nJ[f>>8&255]^h>>8&255;a[7]=nJ[c&255]^h&255;h=b[42];a[8]=nJ[e>>>24]^h>>>24;a[9]=nJ[f>>16&255]^h>>16&255;a[10]=nJ[c>>8&255]^h>>8&255;a[11]=nJ[d&255]^h&255;h=b[43];a[12]=nJ[f>>>24]^h>>>24;a[13]=nJ[c>>16&255]^h>>16&255;a[14]=nJ[d>>8&255]^h>>8&255;a[15]=nJ[e&255]^h&255}; wJ=function(){if(!uJ&&!g.Jt){if(vJ)return vJ;var a;vJ=(a=window.crypto)==null?void 0:a.subtle;var b,c,d;if(((b=vJ)==null?0:b.importKey)&&((c=vJ)==null?0:c.sign)&&((d=vJ)==null?0:d.encrypt))return vJ;vJ=void 0}}; g.xJ=function(a){this.D=a}; g.yJ=function(a){this.B=a}; zJ=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;a<64;a++)this.G[a]^=92,this.C[a]^=54;this.reset()}; RAa=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,u,y=0;y<64;)y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=q+AJ[y]+u+((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,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r= d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=p+AJ[y]+u+((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,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=n+AJ[y]+u+((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,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=m+AJ[y]+u+((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),u=q,q=l,l=u,u=p,p=h,h=u,u=n,n=f,f=u,m=e+r,e=r+t,y++;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}; TAa=function(a){var b=new Uint8Array(32),c=64-a.B;a.B>55&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=a.D*8,f=1;f<9;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;c<8;c++)b[c*4]=a.j[c]>>>24,b[c*4+1]=a.j[c]>>>16&255,b[c*4+2]=a.j[c]>>>8&255,b[c*4+3]=a.j[c]&255;SAa(a);return b}; SAa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0}; UAa=function(a){this.j=a}; VAa=function(a,b,c){a=new zJ(a.j);a.update(b);a.update(c);b=TAa(a);a.update(a.G);a.update(b);b=TAa(a);a.reset();return b}; WAa=function(a){this.B=a}; XAa=function(a,b,c,d){var e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.j){l.Ha(2);break}return g.G(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.G(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})}; YAa=function(a,b,c){a.C||(a.C=new UAa(a.B));return VAa(a.C,b,c)}; ZAa=function(a,b,c){var d,e;return g.J(function(f){if(f.j==1){d=wJ();if(!d)return f.return(YAa(a,b,c));g.wa(f,3);return g.G(f,XAa(a,b,c,d),5)}if(f.j!=3)return f.return(f.B);e=g.ya(f);g.yw(e);uJ=!0;return f.return(YAa(a,b,c))})}; BJ=function(){var a=$Aa;var b=b===void 0?[]:b;var c=c===void 0?[]:c;b=nma.apply(null,[oma.apply(null,g.x(b))].concat(g.x(c)));this.store=qma(a,void 0,b)}; g.CJ=function(a,b,c){for(var d=Object.assign({},a),e=g.w(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(l===void 0)delete d[f];else if(h===void 0)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.x(h),g.x(l)):l;else if(!Array.isArray(l)&&g.Ra(l)&&!Array.isArray(h)&&g.Ra(h))d[f]=g.CJ(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Hs("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Xoa:h,updateValue:l}),g.xw(b), a}return d}; DJ=function(a){var b=this;a=a===void 0?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})}; aBa=function(a,b){return a.j.length===0?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset}; EJ=function(a,b){b=g.w(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)}; FJ=function(a,b,c){return a.split(b).un.split(c).zK}; GJ=function(a){a.D=void 0;a.B=0;a.C=0}; HJ=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length}; bBa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D}; cBa=function(a,b,c){b=b===void 0?0:b;c=c===void 0?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));c<0&&(c=a.totalLength-b);a.focus(b);if(!HJ(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);GJ(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)}; IJ=function(a,b,c){a=cBa(a,b===void 0?0:b,c===void 0?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; JJ=function(a,b,c){a=IJ(a,b===void 0?0:b,c===void 0?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c>10;f=56320|f&1023}OJ[e++]=f}}f=String.fromCharCode.apply(String,OJ); e<1024&&(f=f.substr(0,e));c.push(f)}return c.join("")}; RJ=function(a,b){var c;if((c=QJ)==null?0:c.encodeInto)return b=QJ.encodeInto(a,b),b.read>6|192:((e&64512)===55296&&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}; SJ=function(a){if(QJ)return QJ.encode(a);var b=new Uint8Array(Math.ceil(a.length*1.2)),c=RJ(a,b);b.lengthc&&(b=b.subarray(0,c));return b}; TJ=function(a){this.j=a;this.pos=0;this.B=-1}; UJ=function(a){var b=KJ(a.j,a.pos);++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=KJ(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c}; VJ=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){c<0&&(c=UJ(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:UJ(a);break;case 1:a.pos+=8;break;case 2:d=UJ(a);a.pos+=d;break;case 5:a.pos+=4}}return!1}; WJ=function(a,b){if(VJ(a,b))return UJ(a)}; XJ=function(a,b){if(VJ(a,b))return!!UJ(a)}; YJ=function(a,b){if(VJ(a,b)){b=UJ(a);var c=IJ(a.j,a.pos,b);a.pos+=b;return c}}; ZJ=function(a,b){if(a=YJ(a,b))return g.PJ(a)}; $J=function(a,b,c){if(a=YJ(a,b))return c(new TJ(new DJ([a])))}; aK=function(a,b){for(var c=[];VJ(a,b);)c.push(UJ(a));return c.length?c:void 0}; bK=function(a,b,c){for(var d=[],e;e=YJ(a,b);)d.push(c(new TJ(new DJ([e]))));return d.length?d:void 0}; cK=function(a,b){a=a instanceof Uint8Array?new DJ([a]):a;return b(new TJ(a))}; fBa=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}; gBa=function(a,b){this.wd=b;this.pos=0;this.B=[];this.j=fBa(a===void 0?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; dK=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=a.j.length*2;c268435455){dK(a,4);for(var c=b&1073741823,d=0;d<4;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(dK(a,4);b>127;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1}; fK=function(a,b,c){c!==void 0&&(eK(a,b*8),eK(a,c))}; gK=function(a,b,c){c!==void 0&&fK(a,b,c?1:0)}; hK=function(a,b,c){c!==void 0&&(eK(a,b*8+2),b=c.length,eK(a,b),dK(a,b),a.j.set(c,a.pos),a.pos+=b)}; iK=function(a,b,c){c!==void 0&&(hBa(a,b,Math.ceil(Math.log2(c.length*4+2)/7)),dK(a,c.length*1.2),b=RJ(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(dK(a,b),b=RJ(c,a.j.subarray(a.pos))),a.pos+=b,iBa(a))}; hBa=function(a,b,c){c=c===void 0?2:c;eK(a,b*8+2);a.B.push(a.pos);a.B.push(c);a.pos+=c}; iBa=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}}; jK=function(a,b,c,d,e){c&&(hBa(a,b,e===void 0?3:e),d(a,c),iBa(a))}; g.kK=function(a,b,c){c=new gBa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)}; g.lK=function(a){var b=new TJ(new DJ([Re(decodeURIComponent(a))]));a=ZJ(b,2);b=WJ(b,4);var c=jBa[b];if(typeof c==="undefined")throw a=new g.Hs("Failed to recognize field number",{name:"EntityKeyHelperError",lna:b}),g.xw(a),a;return{r8:b,entityType:c,entityId:a}}; g.mK=function(a,b){var c=new gBa;hK(c,2,SJ(a));a=kBa[b];if(typeof a==="undefined")throw b=new g.Hs("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.xw(b),b;fK(c,4,a);fK(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Pe(b))}; nK=function(a,b,c,d){if(d===void 0)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))}; lBa=function(a,b,c,d,e){var f=a[b];if(f==null||!f[c])return a;d=g.CJ(f[c],d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; mBa=function(a,b){a=a===void 0?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=(f=e.options)==null?void 0:f.persistenceOption;if(h&&h!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&h!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return g.xw(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return g.xw(new g.Hs("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.vc(e.payload); return nK(d,l,e.entityKey,e.payload[l])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var m=g.lK(e).entityType;l=nK(d,m,e);break a}catch(q){if(q instanceof Error){g.xw(new g.Hs("Failed to deserialize entity key",{entityKey:e,yS:q.message}));l=d;break a}throw q;}l=void 0}return l}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return g.xw(new g.Hs("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.vc(e.payload);var n,p;return lBa(d,l,e.entityKey, e.payload[l],(n=e.fieldMask)==null?void 0:(p=n.mergeOptions)==null?void 0:p.repeatedFieldsMergeOption)}return d},a); case "REPLACE_ENTITY":var c=b.payload;return nK(a,c.entityType,c.key,c.q8);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 nK(h,e,l,f[l])},d)},a); case "UPDATE_ENTITY":return c=b.payload,lBa(a,c.entityType,c.key,c.q8,c.Ioa);default:return a}}; oK=function(a,b,c){return a[b]?a[b][c]||null:null}; qK=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+c*60+b*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;b<=0?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=b.hours===void 0?0:b.hours;c=b.minutes===void 0?0:b.minutes;a=b.seconds===void 0?0:b.seconds;d=e>0;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(pK)?e.replace(",","\u00a0"):f.includes(pK)?e.replace(",","\u202f"):h.includes(pK)?e.replace(",","."):e;b.push(e)}d=d===void 0?!1:d;c=(["af","be","lt"].includes(pK)||d)&&c<10?nBa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=nBa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(pK)&&(c=".");return b.join(c)}; nBa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; oBa=function(a,b){var c,d;a=((c=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=c.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(c=0;ca}; FBa=function(a,b){EBa(a.program,b.rda)&&(Pz("bg_i",void 0,"player_att"),g.EK.initialize(a,function(){Pz("bg_l",void 0,"player_att");DK=(0,g.T)()},b.cspNonce))}; GBa=function(a){a=a===void 0?{}:a;return g.EK.invoke(a)}; EBa=function(a,b){return a?g.EK.isLoading()?!1:DBa(b):!1}; HBa=function(a){a=a.split("");FK.Iy(a,60);FK.G6(a,2);FK.Iy(a,12);FK.G6(a,2);FK.Iy(a,80);return a.join("")}; g.GK=function(a,b){return a.Fa+"timedtext_video?ref=player&v="+b.videoId}; g.HK=function(a,b){a.feature=b}; g.IBa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.EK.isInitialized()){var d="";b.videoData&&b.videoData.xr&&(d=b.videoData.xr+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);Pz("bg_v",void 0,"player_att");(d=GBa(d))?(Pz("bg_s",void 0,"player_att"),c.push("r1a="+d)):(Pz("bg_e",void 0,"player_att"),c.push("r1c=2"))}else Pz("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.EK.getState()); return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^eA())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.Eq("CATSTAT",0)))},a); this.videoData&&this.videoData.xr?this.zr=Qq(this.videoData.xr):this.zr={}}; g.JBa=function(a){if(a.videoData&&a.videoData.xr){for(var b=[a.videoData.xr],c=g.w(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.zr[d]&&a.j[d]&&(d=a.j[d](a.zr))&&b.push(d);return b.join("&")}return null}; g.IK=function(a,b){FBa(a,{rda:g.VB(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})}; KBa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3}; JK=function(a){a=a===void 0?2592E3:a;if(a>0&&!(Hna()>(0,g.T)()-a*1E3))return 0;a=g.vs("yt-player-quality");if(typeof a==="string"){if(a=g.lE[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0}; KK=function(){var a=g.vs("yt-player-proxima-pref");return a==null?null:a}; LBa=function(){var a=g.vs("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality0&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.us("yt-player-performance-cap",d,c?2592E3:604800))}; OBa=function(a,b){b=b===void 0?!0:b;var c=LK();return b?+c[a]||8192:c[a]}; LK=function(){return g.vs("yt-player-performance-cap")||{}}; MK=function(){var a;return(a=g.vs("yt-player-performance-cap-active-set"))!=null?a:[]}; PBa=function(a){(a===void 0?0:a)?(a=MK().filter(function(b){return b.startsWith("1")}),g.us("yt-player-performance-cap-active-set",a,2592E3)):g.us("yt-player-performance-cap-active-set",[],2592E3)}; QBa=function(a){g.us("yt-player-watch-later-pending",a)}; RBa=function(){return!!g.vs("yt-player-headers-readable")}; SBa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}}; g.NK=function(){var a=g.vs("yt-player-caption-language-preferences");return a?a:[]}; VBa=function(a,b){jK(a,2,b.Ar,OK,3);jK(a,3,b.LQ,TBa,3);hK(a,4,b.onesieUstreamerConfig);hK(a,9,b.pp);jK(a,10,b.CC,PK,3);jK(a,15,b.reloadPlaybackParams,UBa,3)}; XBa=function(a,b){jK(a,1,b.formatId,QK,3);fK(a,2,b.startTimeMs);fK(a,3,b.durationMs);fK(a,4,b.qn);fK(a,5,b.Zi);jK(a,9,b.Dma,WBa,3);jK(a,11,b.bpa,RK,1);jK(a,12,b.DS,RK,1)}; YBa=function(a,b){iK(a,1,b.videoId);fK(a,2,b.lmt)}; WBa=function(a,b){if(b.MW)for(var c=0;c>31));fK(a,16,b.q$);fK(a,17,b.detailedNetworkType);fK(a,18,b.D7);fK(a,19,b.C7);fK(a,21,b.xea);fK(a,23,b.t7);fK(a,28,b.MS);fK(a,29,b.Nea);fK(a,34,b.visibility);c=b.playbackRate;if(c!==void 0){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(c!==void 0)for(eK(a,285),dK(a,4),d=0;d<4;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}fK(a,36,b.g8); jK(a,38,b.mediaCapabilities,$Ba,3);fK(a,39,b.Mea);fK(a,40,b.Ww);fK(a,44,b.playerState);gK(a,46,b.d8);fK(a,48,b.My);fK(a,50,b.Lw);fK(a,51,b.Wy);fK(a,54,b.Hq);gK(a,56,b.U$);fK(a,57,b.I7);gK(a,58,b.To);fK(a,59,b.xj);fK(a,60,b.Wx);gK(a,61,b.isPrefetch);fK(a,62,b.Pz);hK(a,63,b.sabrLicenseConstraint);fK(a,64,b.s$);fK(a,66,b.r$);fK(a,67,b.Koa);fK(a,68,b.G$)}; $Ba=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c>31));iK(a,2,b.message)}; hCa=function(a,b){fK(a,1,b.clientState);jK(a,2,b.Moa,fCa,1)}; eCa=function(a,b){hK(a,1,b.Tca);jK(a,2,b.Sca,gCa,3);jK(a,3,b.coldStartInfo,hCa,3)}; dCa=function(a,b){fK(a,1,b.type);hK(a,2,b.value)}; cCa=function(a,b){iK(a,12,b.deviceMake);iK(a,13,b.deviceModel);fK(a,16,b.clientName);iK(a,17,b.clientVersion);iK(a,18,b.osName);iK(a,19,b.osVersion)}; iCa=function(a,b){iK(a,1,b.name);iK(a,2,b.value)}; jCa=function(a,b){iK(a,1,b.url);if(b.DQ)for(var c=0;c1&&(this.G=a[1]==="2")}; XK=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.tb=e===void 0?0:e}; ZK=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!YK||a.tb===b.tb)}; g.$K=function(a,b,c,d){return new XK(g.lE[a]||0,g.lE[b]||0,c,d)}; aL=function(a){if(YK&&a.tb)return!1;var b=g.lE.auto;return a.B===b&&a.j===b}; cL=function(a){return bL[a.j||a.B]||"auto"}; WCa=function(a,b){b=g.lE[b];return a.B<=b&&(!a.j||a.j>=b)}; dL=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")}; eL=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;c==null||c({ainfolen:this.j.length});b=g.w(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.dc||a.has(d.dc.id)){var e=void 0,f=void 0,h=void 0;(h=c)==null||h({atkerr:!!d.dc,itag:d.itag,xtag:d.j,lang:((e=d.dc)==null?void 0:e.name)||"",langid:((f=d.dc)==null?void 0:f.id)||""})}else e=new g.WK(d.id,d.dc),a.add(d.dc.id),this.audioTracks.push(e);c==null||c({atklen:this.audioTracks.length})}}; fL=function(){g.O.apply(this,arguments);this.j=null}; $Ca=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(gL(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.rb]=[a.info]);return n}p=XCa(b,d,l);f&&e({aftsrt:hL(p)});for(var q={},r=g.w(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var u=g.w(p[t]),y=u.next();!y.done;y=u.next()){y=y.value;var A=y.itag,D=void 0,F=t+"_"+(((D=y.video)==null?void 0:D.fps)||0);q.hasOwnProperty(F)?q[F]===!0?n[t].push(y):l[A]=q[F]:(D=iL(b,y,c,d.isLive,m),D!==!0?(h.add(t),l[A]=D, D==="disablevp9hfr"&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(y),q[F]=!0))}}f&&e({bfflt:hL(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].Ag()&&(n[d]=n[d],n[d]=YCa(b,n[d],l),n[d]=ZCa(n[d],l)));f&&e(l);b=g.w(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.O1;f&&e({aftflt:hL(n)});a.j=g.sc(n,function(M){return!!M.length}); return a.j}; bDa=function(a,b,c,d,e,f,h,l){l=l===void 0?!1:l;if(b.Rc&&h&&h.length>1&&!(b.xj>0||b.Y)){for(var m=b.B||!!e,n=m&&b.Ob?f:void 0,p=XCa(b,d),q=[],r=[],t={},u=0;u0&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(D){return D})); if(A.length&&!b.To){lL(A,p);if(m){m=[];b=g.w(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return tr(new eL(A,a,n))}A=kDa(b);A=g.Lb(A,l);if(!A){if(q[h])return f=q[h],lL(f),tr(new eL(f,a,n));m&&f({novideo:1});return sr()}b.yc&&(A==="1"||A==="1h")&&q[c]&&(h=mL(q[A]),p=mL(q[c]),p>h?A=c:b.Ed&&p===h&&lDa(q[c])&&(A=c));A==="9"&&q.h&&mL(q.h)>mL(q["9"])&&(A="h");b.Jb&&d.isLive&&A==="("&&q.H&&mL(q["("])<1440&&(A="H");m&&f({vfmly:nL(A)});b=q[A];if(!b.length)return m&&f({novfmly:nL(A)}), sr();lL(b);return tr(new eL(b,a,n))}; dDa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c}; lDa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&mDa.has(b.itag))return!0;return!1}; nL=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}}; hL=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(nL(d));d=g.w(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")}; cDa=function(a,b,c,d,e,f){var h={},l={};g.pc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.oe)return l[q]="noenc",!1;if(f.Ab&&p.rb==="(h"&&f.yb)return l[q]="lichdr",!1;if(p.rb==="("||p.rb==="(h"){if(a.D&&c&&c.flavor==="widevine"){var r=p.mimeType+"; experimental=allowed";(r=!!p.oe[c.flavor]&&!!c.j[r])||(l[q]=p.oe[c.flavor]?"unspt":"noflv");return r}if(!oL(a,pL.CRYPTOBLOCKFORMAT)&&!a.Ga||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.oe[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.oe[c.flavor]? "unspt":"noflv":"nosys",!1)}); m.length&&(h[n]=m)}); d&&Object.entries(l).length&&e(l);return h}; ZCa=function(a,b){var c=pl(a,function(d,e){return e.video.fps>32?Math.min(d,e.video.width):d},Infinity); c32||d.video.widtha.K)return"max"+a.K;if(a.fb&&b.rb==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.rb==="(h"&&!c.K)return"enchdr";if((d===void 0?0:d)&&vE(b)&&!a.Ra)return"blk51live";if((b.rb==="MAC3"||b.rb==="mac3")&&!a.D)return"blkac3";if((b.rb==="MEAC3"||b.rb==="meac3")&&!a.G)return"blkeac3";if((b.rb==="M"||b.rb==="m")&&!a.ra)return"blkaac51";if((b.rb=== "so"||b.rb==="sa")&&!a.Aa)return"blkamb";if(!a.Ab&&b.oe&&b.oe.fairplay&&(b.rb==="("||b.rb==="(h"||b.rb==="A"||b.rb==="MEAC3"))return"cbc";if(b.rb==="i"&&!a.Kb)return"blkiamf";var f,h;if(a.Ya&&(b.rb==="1"||b.rb==="1h")&&((f=b.video)==null?0:f.j)&&((h=b.video)==null?void 0:h.j)>a.Ya)return"av1cap";if((d=c.C.get(b.rb))&&d.O1>0)return e.add(b.rb),"byerr";var l;if((l=b.video)==null?0:l.fps>32){if(!c.Fa&&!oL(c,pL.FRAMERATE))return"capHfr";if(a.Xa&&b.video.j>=4320)return"blk8khfr";if(rE(b)&&a.Zd&&b.oe&& b.video.j>=1440)return"disablevp9hfr"}if(a.tb&&b.tb>a.tb)return"ratecap";a=nDa(c,b);return a!==!0?a:!0}; lL=function(a,b){b=b===void 0?[]:b;g.$b(a,function(c,d){var e=d.tb-c.tb;if(!c.Ag()||!d.Ag())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&b.length>0&&(c=b.indexOf(c.rb)+1,d=b.indexOf(d.rb)+1,f=c===0||d===0?d||-1:c-d);f||(f=e);return f})}; g.qL=function(a,b){this.B=a;this.D=b===void 0?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""}; sL=function(a){rL(a);return a.C}; tL=function(a){return a.B?a.B.startsWith("local"):a.scheme==="local"}; oDa=function(a){rL(a);return g.uc(a.j,function(b){return b!==null})}; uL=function(a){rL(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return a.path==="/videoplayback"&&b.length>1&&!!b[1]}; vL=function(a,b){b=b===void 0?!1:b;rL(a);if(a.path!=="/videoplayback"){var c=a.clone();c.set("playerfallback","1");return c}var d=a.De();c=new g.Xj(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&f.length>1&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.Zj(c,(d.indexOf("rr")===0?"rr":"r")+e+"---"+f[1]+a),c=new g.qL(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")? (g.Zj(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Zj(c,"www.youtube.com"),d=c.toString()):(c=lva(d),HC(c)&&(d=c));c=new g.qL(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c}; rL=function(a){if(a.B){if(!HC(a.B)&&!a.B.startsWith("local"))throw new g.Hs("Untrusted URL",a.B);var b=g.gk(a.B);a.scheme=b.G;a.C=b.j+(b.C!=null?":"+b.C:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);d>0&&e>0?(a.path=c.slice(0,e),c=c.slice(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=pDa(c);Object.assign(a.j, qDa(b.D.toString()));Object.assign(a.j,d);a.j.file==="index.m3u8"&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(rL(a),b=a.j.n||null)&&(b=rDa[0](b),a.set("n",b),rDa.length||wma(""))}}; sDa=function(a){rL(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(oDa(a)){var c=[];g.pc(a.j,function(d,e){d!==null&&c.push(e+"="+d)}); b+="?"+c.join("&")}return b}; pDa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b0?tDa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b}; tDa=function(a,b,c){if(b==="cmo"){var d;(d=c.indexOf("="))>=0?(b="cmo="+c.slice(0,d),c=c.slice(d+1)):(d=c.indexOf("%3D"))>=0&&(b="cmo="+c.slice(0,d),c=c.slice(d+3))}a[b]=c}; wL=function(a){var b=g.Q(a,uDa)||a.signatureCipher;a={aZ:!1,tE:"",QH:"",s:""};if(!b)return a;b=Qq(b);a.aZ=!0;a.tE=b.url;a.QH=b.sp;a.s=b.s;return a}; xL=function(a,b,c,d,e,f,h,l,m){this.Pa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.dh=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.dh=m||null}; g.yL=function(){this.segments=[];this.j=null;this.B=!0;this.C=""}; vDa=function(a,b){if(b>a.qd())a.segments=[];else{var c=Kb(a.segments,function(d){return d.Pa>=b},a); c>0&&a.segments.splice(0,c)}}; zL=function(a,b,c,d,e){e=e===void 0?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j}; AL=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; BL=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; CL=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; DL=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; EL=function(a){var b=a.data;var c=a.offset+a.j;b=b.getUint32(c)*4294967296+b.getUint32(c+4);a.j+=8;return b}; FL=function(a,b){b=b===void 0?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c1?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=AL(a)<<16|BL(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=DL(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e1?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}}; OL=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.ML(a,0,1836476516))?g.NL(a):NaN}; GDa=function(a){var b=g.ML(a,0,1937011556);if(!b)return null;b=PL(a,b.dataOffset+8,1635148593)||PL(a,b.dataOffset+8,1635135537);if(!b)return null;var c=PL(a,b.dataOffset+78,1936995172),d=PL(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),AL(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=PL(a,d.dataOffset,1886547818)){var h=PL(a,d.dataOffset,1886546020),l=PL(a,d.dataOffset,2037673328);if(!l&&(l=PL(a,d.dataOffset,1836279920), !l))return null;h&&(h.skip(4),c=CL(h)/65536,f=CL(h)/65536,e=CL(h)/65536);a=wDa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new EDa(b,c,f,e,a)}return null}; PL=function(a,b,c){for(;QL(a,b);){var d=RL(a,b);if(d.type===c)return d;b+=d.size}return null}; g.ML=function(a,b,c){for(;QL(a,b);){var d=RL(a,b);if(d.type===c)return d;b=SL(d.type)?b+8:b+d.size}return null}; g.TL=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=b.getUint32(a)*4294967296+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b}; RL=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new zL(a,b,c,d)}; g.NL=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)}; HDa=function(a){a=new zL(a.data,a.offset,a.size,a.type,a.B);var b=AL(a);a.skip(7);var c=DL(a);if(b===0){b=DL(a);var d=DL(a)}else b=EL(a),d=EL(a);a.skip(2);for(var e=BL(a),f=[],h=[],l=0;l122)return!1}return!0}; SL=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768}; IDa=function(a){a.skip(4);return{Qda:FL(a,0),value:FL(a,0),Us:DL(a),gpa:DL(a),bna:DL(a),id:DL(a),F_:FL(a),offset:a.offset}}; g.JDa=function(a){var b=PL(a,0,1701671783);if(!b)return null;var c=IDa(b),d=c.Qda;c=LL(c.F_);if(a=PL(a,b.offset+b.size,1701671783))if(a=IDa(a),a=LL(a.F_),c&&a){b=g.w(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new JL(c,d):null}; UL=function(a,b){for(var c=PL(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=PL(a,c.offset+c.size,b)}}; g.VL=function(a,b){for(var c=0,d=[];QL(a,c);){var e=RL(a,c);e.type===b&&d.push(e);c=SL(e.type)?c+8:c+e.size}return d}; KDa=function(a,b){var c=g.ML(a,0,1937011556),d=g.ML(a,0,1953654136);if(!c||!d||a.getUint32(c.offset+12)>=2)return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.ML(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;d=new xDa(a.byteLength+b);GL(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;GL(d,a,c.offset+16,c.size-16);GL(d,e,e.byteOffset+f.dataOffset+8,b);GL(d,a,c.offset+c.size,a.byteLength- (c.offset+c.size));c=g.w([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.ML(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.ML(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data}; LDa=function(a){var b=g.ML(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;b=PL(a,b.offset+24+(c===1701733217?28:78),1936289382);if(!b)return null;c=PL(a,b.offset+8,1935894637);if(!c||a.getUint32(c.offset+12)!==1667392371)return null;b=PL(a,b.offset+8,1935894633);if(!b)return null;b=PL(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=a.getInt8(b.offset+16+d);return c}; WL=function(a,b){this.j=a;this.pos=0;this.start=b||0}; XL=function(a){return a.pos>=a.j.byteLength}; bM=function(a,b,c){var d=new WL(c);if(!YL(d,a))return!1;d=ZL(d);if(!$L(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=aM(d,!0);d=a+(d.start+d.pos-b)+e;d=d>9?MDa(d-9,8):MDa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;bc;e++)c=c*256+gM(a),d*=128;return b?c-d:c}; dM=function(a){var b=aM(a,!0);a.pos+=b}; PDa=function(a){if(!$L(a,440786851,!0))return null;var b=a.pos;aM(a,!1);var c=aM(a,!0)+a.pos-b;a.pos=b+c;if(!$L(a,408125543,!1))return null;aM(a,!0);if(!$L(a,357149030,!0))return null;var d=a.pos;aM(a,!1);var e=aM(a,!0)+a.pos-d;a.pos=d+e;if(!$L(a,374648427,!0))return null;var f=a.pos;aM(a,!1);var h=aM(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}; hM=function(a){var b=a.pos;a.pos=0;var c=1E6;YL(a,[408125543,357149030,2807729])&&(c=cM(a));a.pos=b;return c}; QDa=function(a,b){var c=a.pos;a.pos=0;if(a.j.getUint8(a.pos)!==160&&!iM(a)||!$L(a,160))return a.pos=c,NaN;aM(a,!0);var d=a.pos;if(!$L(a,161))return a.pos=c,NaN;aM(a,!0);gM(a);var e=gM(a)<<8|gM(a);a.pos=d;if(!$L(a,155))return a.pos=c,NaN;d=cM(a);a.pos=c;return(e+d)*b/1E9}; iM=function(a){if(!RDa(a)||!$L(a,524531317))return!1;aM(a,!0);return!0}; RDa=function(a){if(a.Do()){if(!$L(a,408125543))return!1;aM(a,!0)}return!0}; YL=function(a,b){for(var c=0;c0){var d=qDa(b.substr(c+1));g.pc(d,function(e,f){this.set(f,e)},a); b=b.substr(0,c)}b=pDa(b);g.pc(b,function(e,f){this.set(f,e)},a)}; TDa=function(a){var b=a.base.De(),c=[];g.pc(a.j,function(e,f){c.push(f+"="+e)}); if(!c.length)return b;var d=c.join("&");a=oDa(a.base)?"&":"?";return b+a+d}; kM=function(a,b){var c=new g.qL(b);(b=c.get("req_id"))&&a.set("req_id",b);g.pc(a.j,function(d,e){c.set(e,null)}); return c}; UDa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0}; lM=function(a){a.G=(0,g.T)();a.started=0;a.timedOut=0;a.j=0}; VDa=function(a,b){var c=a.started+a.j*4;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)}; mM=function(a,b){a[b]||(a[b]=new UDa);return a[b]}; nM=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()}; pM=function(a,b,c){a=b?oM(a,c):a.j;return new jM(a)}; oM=function(a,b){b=b?b.qm:!1;a.D||(a.D=vL(a.C,b));return a.D}; qM=function(a,b,c){return sL(b?oM(a,c):a.j)}; rM=function(a,b,c){c=mM(c,qM(a,a.Yj(b,c),b));b=Math.max(a.G,c.timedOut)+b.gD*(a.B-a.G)+.25*a.K;b=b>3?1E3*Math.pow(1.6,b-3):0;return b===0?!0:a.Z+b<(0,g.T)()}; WDa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)}; XDa=function(a,b,c,d,e){++a.B;b&&++a.G;sL(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.eD&&delete e[sL(a.j)])}; sM=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new nM(a)}; tM=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; uM=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&a.length===2&&(a=new tM(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a}; vM=function(a,b){return new tM(a,a+b-1)}; YDa=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}}; wM=function(a){if(!a)return new tM(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new tM(b,a),b.length>0))return b}; xM=function(a,b,c,d,e,f,h,l,m,n,p,q){d=d===void 0?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Tj=p;this.clipId=q===void 0?"":q;this.G=[];this.C="";this.Pa=-1;this.pO=this.K=0;this.C=d;this.Pa=e>=0?e:-1;this.startTime=f||0;this.duration=h||0;this.Ub=l||0;this.B=m>=0?m:this.range?this.range.length:NaN;this.Te=this.range?this.Ub+this.B===this.range.length:n===void 0?!!this.B:n;this.range?(this.Xe=this.startTime+this.duration*this.Ub/this.range.length,this.D=this.duration*this.B/this.range.length, this.Nf=this.Xe+this.D):ZDa(this)}; ZDa=function(a){a.Xe=a.startTime;a.D=a.duration;a.Nf=a.Xe+a.D}; $Da=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Ub+b.B===a.Ub+a.B:d}; yM=function(a){return a.type===1||a.type===2}; zM=function(a){return a.type===3||a.type===6}; AM=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Ub+a.B===b.range.start+b.Ub:a.Pa===b.Pa?a.Ub+a.B===b.Ub:a.Pa+1===b.Pa&&b.Ub===0&&a.Te:!1}; aEa=function(a,b){return AM(a,b)||Math.abs(a.Nf-b.Xe)<=1E-6||a.Pa+1===b.Pa&&b.Ub===0&&a.Te?!0:!1}; BM=function(a){return a.Pa+(a.Te?1:0)}; bEa=function(a){a.length===1||g.ol(a,function(c){return!!c.range}); for(var b=1;b=b.range.start+b.Ub&&a.range.start+a.Ub+a.B<=b.range.start+b.Ub+b.B:a.Pa===b.Pa&&a.Ub>=b.Ub&&(a.Ub+a.B<=b.Ub+b.B||b.Te)}; lHa=function(a,b){return a.j!==b.j?!1:a.type===4&&b.type===3&&a.j.pg()?(a=a.j.gC(a),qm(a,function(c){return lHa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Ub+b.B>a.Ub&&b.Ub+b.B<=a.Ub+a.B}; DM=function(a,b){var c=b.Pa;a.C="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.K,a.duration=b.duration,ZDa(a)}; EM=function(a,b){var c=this;this.gb=a;this.D=this.j=null;this.G=this.ih=NaN;this.Yj=this.requestId=null;this.hd={doa:function(){return c.range}}; this.resource=a[0].j.resource;this.B=b||"";this.gb[0].range&&this.gb[0].B>0&&(cEa(a)?(this.range=bEa(a),this.C=this.range.length):(this.range=this.gb[this.gb.length-1].range,this.C=qFa(a)))}; FM=function(a){return!yM(a.gb[a.gb.length-1])}; GM=function(a){return a.gb[a.gb.length-1].type===4}; g.HM=function(a,b,c){c=a.Yj===null?a.resource.Yj(b,c,a.gb[0].type):a.Yj;if(a.j){b=c?vL(a.j,b.qm):a.j;var d=new jM(b);d.get("alr")||d.set("alr","yes");a.B&&SDa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new jM(new g.qL(a.B)):(d=pM(a.resource,c,b),a.B&&SDa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.gb[0].j.Fx()&&a.gb.length===1&&a.gb[0].Ub&&d.set("range",a.gb[0].Ub+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.ih)||d.set("headm",a.ih.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&& g.pc(a.urlParams,function(e,f){d.set(f,e)}); return d}; mHa=function(a){if(a.range)return a.C;a=a.gb[0];return Math.round(a.D*a.j.info.tb)}; nHa=function(a,b){return Math.max(0,a.gb[0].Xe-b)}; IM=function(a,b,c,d,e,f){f=f===void 0?0:f;sM.call(this,a,b,d,void 0);this.G=c;this.Vj=f;this.index=e||new g.yL}; oHa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.Eh=c;this.j=d||NaN;this.B=e||NaN}; JM=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""}; KM=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(c.length>0)return c[0]}return null}; pHa=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?(Number(b[2])|0)*3600+(Number(b[4])|0)*60+(Number(b[6])|0):Number(a)|0}; qHa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a}; LM=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1}; rHa=function(a){var b=a.C;a.C=[];return b}; sHa=function(){this.D=[];this.j=null;this.B={};this.C={}}; wHa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.w(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;e.nodeName==="Period"?f=tHa(a):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=uHa(a,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",f=vHa(a,e));if(f==null)return;f.update(d);g.Ub(c,rHa(f))}g.Ub(a.D,c);Laa(a.D,function(h){return h.startSecs*1E3+h.j})}; xHa=function(a){a.j&&(a.j.j=[]);g.pc(a.B,function(b){b.j=[]}); g.pc(a.C,function(b){b.j=[]})}; tHa=function(a){a.j||(a.j=new LM);return a.j}; uHa=function(a,b){a.B[b]||(a.B[b]=new LM);return a.B[b]}; vHa=function(a,b){a.C[b]||(a.C[b]=new LM);return a.C[b]}; NM=function(a){var b=a===void 0?{}:a;a=b.Vj===void 0?0:b.Vj;var c=b.Jn===void 0?!1:b.Jn;var d=b.Cr===void 0?0:b.Cr;var e=b.gf===void 0?0:b.gf;var f=b.zi===void 0?Infinity:b.zi;var h=b.lB===void 0?0:b.lB;b=b.Wd===void 0?!1:b.Wd;g.yL.call(this);this.Tr=this.bq=-1;this.Wj=a;this.Cr=d;this.Jn=c;this.gf=e;this.zi=f;this.lB=h;((this.Wd=b)||isFinite(f)&&this.zi>0)&&c&&MM&&(this.B=!1,this.C="postLive")}; OM=function(a,b){return Zb(a.segments,function(c){return b-c.Pa})}; PM=function(a,b,c){c=c===void 0?{}:c;IM.call(this,a,b,"",void 0,void 0,c.Vj||0);this.index=new NM(c)}; QM=function(a,b,c){sM.call(this,a,b);this.G=c;a=this.index=new g.yL;a.B=!1;a.C="d"}; yHa=function(a,b,c){var d=a.index.iK(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.tb*f;return new EM([new xM(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)}; zHa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.D;b=b.G.split(",").filter(function(p){return p.length>0}); for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n0&&(b-=a.timestampOffset);var c=UM(a)+b;BHa(a,c);a.timestampOffset=b}; BHa=function(a,b){g.wE(a.info.j.info)||a.info.j.info.Me();a.C=b;if(g.wE(a.info.j.info)){var c=SM(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;QL(c,f);){var h=RL(c,f);isNaN(d)&&(h.type===1936286840?d=h.data.getUint32(h.dataOffset+8):h.type===1836476516&&(d=g.NL(h)));if(h.type===1952867444){!d&&a&&(d=OL(a));var l=g.TL(h);isNaN(e)&&(e=Math.round(b*d)-l);var m=h;l+=e;if(m.data.getUint8(m.dataOffset)){var n=m.data;m=m.dataOffset+4;n.setUint32(m,Math.floor(l/4294967296));n.setUint32(m+4,l&4294967295)}else m.data.setUint32(m.dataOffset+ 4,l)}f=SL(h.type)?f+8:f+h.size}return!0}c=new WL(SM(a));a=a.G?c:new WL(new DataView(a.info.j.j.buffer));d=hM(a);a=c.pos;c.pos=0;if(iM(c)&&$L(c,231))if(e=aM(c,!0),b=Math.floor(b*1E9/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;d>=0;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b}; WM=function(a,b){b=b===void 0?!1:b;var c=VM(a);a=b?0:a.info.D;return c||a}; VM=function(a){g.wE(a.info.j.info)||a.info.j.info.Me();if(a.B&&a.info.type===6)return a.B.Vj;if(g.wE(a.info.j.info)){var b=SM(a);var c=0;b=g.VL(b,1936286840);b=g.w(b);for(var d=b.next();!d.done;d=b.next())d=HDa(d.value),c+=d.dU[0]/d.Us;c=c||NaN;if(!(c>=0))a:{c=SM(a);b=a.info.j.j;for(var e=d=0,f=0;QL(c,d);){var h=RL(c,d);if(h.type===1836476516)e=g.NL(h);else if(h.type===1836019558){!e&&b&&(e=OL(b));if(!e){c=NaN;break a}var l=PL(h.data,h.dataOffset,1953653094),m=l;l=e;var n=PL(m.data,m.dataOffset,1952868452); m=PL(m.data,m.dataOffset,1953658222);var p=CL(n);CL(n);p&2&&CL(n);n=p&8?CL(n):0;var q=CL(m),r=q&1;p=q&4;var t=q&256,u=q&512,y=q&1024;q&=2048;var A=DL(m);r&&CL(m);p&&CL(m);for(var D=r=0;D2048?"":b.indexOf("https://")===0?b:""}; bN=function(a,b,c){b.match(NHa);return a(b,c).then(function(d){var e=g.MHa(d.xhr);return e?bN(a,e,c):d.xhr})}; fN=function(a,b,c){a=a===void 0?"":a;b=b===void 0?null:b;c=c===void 0?!1:c;g.Xw.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.ob=this.duration=0;this.isPremiere=this.Wd=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.zi=this.gf=0;this.isOtf=this.Vb=!1;this.Ya=(0,g.T)();this.ra=Infinity;this.j={};this.K=new Map;this.state=this.Bg=0;this.timeline=null;this.isManifestless=!1;this.Ga=[];this.G=null;this.Ma=0;this.D="";this.Ka=NaN;this.Ra=this.Tb=this.timestampOffset=this.N= 0;this.Z=this.Fa=NaN;this.Rc=0;this.Xa=this.fb=this.qa=!1;this.Va=[];this.Wa={};this.Aa=NaN;this.hd={Bma:function(l){cN(d,l)}}; var e;this.yb=(e=b)==null?void 0:e.kb("html5_use_network_error_code_enums");OHa=!!b&&b.kb("html5_modern_vp9_mime_type");var f;dN=!((f=b)==null||!f.kb("html5_enable_flush_during_seek"))&&g.Dr();var h;eN=!((h=b)==null||!h.kb("html5_enable_reset_audio_decoder"))&&g.Dr()}; PHa=function(a){return g.uc(a.j,function(b){return!!b.info.video&&b.info.video.j>=2160})}; jDa=function(a){return g.uc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})}; jL=function(a){return g.uc(a.j,function(b){return!!b.info.oe})}; QHa=function(a){return g.uc(a.j,function(b){return CE(b.info.mimeType)})}; RHa=function(a){return g.uc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})}; SHa=function(a){return g.uc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; THa=function(a){return g.uc(a.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})}; UHa=function(a){return g.uc(a.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})}; VHa=function(a){return Zaa(a.j,function(b){return b.info.video?b.HS():!0})}; gL=function(a){return g.uc(a.j,function(b){return tL(b.resource.j)})}; cN=function(a,b){a.j[b.info.id]=b;a.K.set(zE(b.info,a.Vb),b)}; WHa=function(a,b){return(b.itag||"")+";"+((a.Vb?0:b.lmt||0)||0)+";"+(b.xtags||"")}; XHa=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")}; iN=function(a,b,c){c=c===void 0?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(BE(d)){var h=a.width||640;e=a.height||360;var l=a.fps,m=a.qualityLabel,n=a.colorInfo,p=a.projectionType,q;a.stereoLayout&&(q=YHa[a.stereoLayout]);var r=KHa(a)||void 0;if(n==null?0:n.primaries)var t=ZHa[n.primaries]||void 0;h=new mE(h,e,l,p,q,void 0,m,r,t);d=gN(d,h,pE[a.itag||""]);dN&&(d+="; enableflushduringseek=true");eN&&(d+="; enableresetaudiodecoder=true")}var u;if(AE(d)){var y= a.audioSampleRate;q=a.audioTrack;y=new jE(y?+y:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(u=new g.aN(t,e||"",!!q)))}var A;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(A=new IHa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&& m){var D={};m=g.w(m);for(n=m.next();!n.done;n=m.next())(n=hN[n.value])&&(D[n]=b[n])}return new qE(f,d,{audio:y,video:h,dc:u,oe:D,tb:q,Hw:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})}; jN=function(a,b,c){c=c===void 0?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(BE(d)){var h=(a.size||"640x360").split("x");h=new mE(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=gN(d,h,pE[a.itag]);dN&&(d+="; enableflushduringseek=true");eN&&(d+="; enableresetaudiodecoder=true")}var l;if(AE(d)){var m=new jE(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.aN(a.name,a.audio_track_id, a.isDefault==="1"))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(n=new IHa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.w(a.drm_families.split(",")),u=t.next();!u.done;u=t.next())u=u.value,r[u]=b[u]}return new qE(e,d,{audio:m,video:h,dc:l,oe:r,tb:f,Hw:c,contentLength:p,lastModified:q,captionTrack:n, streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})}; $Ha=function(a){return qm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; aIa=function(a){return qm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; bIa=function(a,b){return a.timeline?Vb(a.timeline.D,b):a.Ga.length?Vb(a.Ga,b):[]}; kN=function(a,b,c){b=b===void 0?"":b;c=c===void 0?"":c;a=new g.qL(a,!0);a.set("alr","yes");c&&(c=HBa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a}; fIa=function(a,b){var c=JM(b,"id");c=c.replace(":",";");var d=JM(b,"mimeType"),e=JM(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(JM(b,"bandwidth"))/8;var f=Number(KM(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(BE(d)){var l=Number(JM(b,"width"));var m=Number(JM(b,"height")),n=Number(JM(b,"frameRate")),p=cIa(JM(b,a.D+":projectionType"));a:switch(JM(b,a.D+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q= 0}l=new mE(l,m,n,p,q)}if(AE(d)){var r=Number(JM(b,"audioSamplingRate"));var t=Number(JM(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=dIa(JM(b,a.D+":spatialAudioType"));r=new jE(r,t,m);a:{t=JM(b,"lang")||"und";if(m=KM(b,"Role"))if(p=JM(m,"value")||"",g.yc(eIa,p)){m=t+"."+eIa[p];n=p==="main";a=JM(b,a.D+":langName")||t+" - "+p;t=new g.aN(a,m,n);break a}t=void 0}}if(b=KM(b,"ContentProtection"))if(b.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var u={};for(b= b.firstChild;b!=null;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(u[a]=m.trim()))}else u=void 0;return new qE(c,d,{audio:r,video:l,dc:t,oe:u,tb:e,Hw:h,contentLength:f})}; cIa=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; dIa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; hIa=function(a,b){b=b===void 0?"":b;a.state=1;a.Ya=(0,g.T)();return LHa(b||a.sourceUrl).then(function(c){if(!a.La()){a.Bg=c.status;c=c.responseText;var d=new DOMParser;c=Pba(d,vma(c)).getElementsByTagName("MPD")[0];a.ra=pHa(JM(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){d=g.w(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.value==="http://youtube.com/yt/2012/10/10"){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=a.ra=a.ra}; jIa=function(a){a.G&&a.G.stop()}; gIa=function(a){var b=a.ra;isFinite(b)&&(lN(a)?a.refresh():(b=Math.max(0,a.Ya+b-(0,g.T)()),a.G||(a.G=new g.Lo(a.refresh,b,a),g.P(a,a.G)),a.G.start(b)))}; kIa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.qd()+1}return 0}; mN=function(a){return a.Tb?a.Tb-(a.N||a.timestampOffset):0}; nN=function(a){return a.Ra?a.Ra-(a.N||a.timestampOffset):0}; oN=function(a){if(!isNaN(a.Ka))return a.Ka;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!CE(b[c].info.mimeType)){b=0;for(c=d.Wn();c<=d.qd();c++)b+=d.getDuration(c);b/=d.tA();b=Math.round(b/.5)*.5;d.tA()>10&&(a.Ka=b);return b}if(a.isLive&&(d=b[c],d.Vj))return d.Vj}return NaN}; lIa=function(a,b){a=aba(a.j,function(d){return d.index.isLoaded()}); if(!a)return NaN;a=a.index;var c=a.Mi(b);return a.getStartTime(c)===b?b:c=0&&e.segments.splice(f,1)}}}; oIa=function(a){for(var b in a.j)CE(a.j[b].info.mimeType)||vDa(a.j[b].index,Infinity)}; qN=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.Jn&&(f&&(e.bq=Math.max(e.bq,f)),h&&(e.Tr=Math.max(e.Tr||0,h)))}c&&(a.Aa=c/1E3)}; pIa=function(a){a.Ra=0;a.Tb=0;a.Rc=0}; rN=function(a){return a.fb&&a.isManifestless?a.isLiveHeadPlayable:a.isLive}; gN=function(a,b,c){sN===null&&(sN=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(OHa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return sN||c!=="9"&&c!=="("?sN||c!=="9h"&&c!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!sN&&!tN||a!=='video/webm; codecs="vp9"'&&a!=='video/webm; codecs="vp9.2"')return a; c="00";var d="08",e="01",f="01",h="01";a==='video/webm; codecs="vp9.2"'&&(c="02",d="10",b.primaries==="bt2020"&&(h=e="09"),b.B==="smpte2084"&&(f="16"),b.B==="arib-std-b67"&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'}; g.uN=function(a){this.tag=a}; rIa=function(a,b){qIa.apply(null,[6,a,b].concat(g.x(g.Da.apply(2,arguments))))}; sIa=function(a,b){qIa.apply(null,[5,a,b].concat(g.x(g.Da.apply(2,arguments))))}; qIa=function(a,b,c){var d=g.Da.apply(3,arguments),e=a===6?"ERROR":"WARNING",f="b"+c;g.xw(new (Function.prototype.bind.apply(g.Hs,[null,f].concat(g.x(d)))),e);d.unshift(f);d=d.join(", ");e=tIa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(m){}tIa.set(b,f);e=f}if(!(a0&&(e.j=Math.min(e.j+h,10),e.B=f);e.j>0?(e.j--,e=!0):e=!1;if(e)typeof d==="function"&&(d=d()),console.log("plyr."+b,d);else{var l;d=((l=wIa.get(b))!=null?l:0)+1;wIa.set(b,d);d%100===1&&console.warn("plyr","plyr."+b+" is chatty, dropping logs.")}}}; vIa=function(){this.j=10;this.B=Date.now()}; wN=function(a,b,c,d){b=""+b+(c>49?"p60":c>32?"p48":"");if(!a.L("html5_gradual_perf_cap"))return OBa(b);a=OBa(b,!1);if(a!=null&&a>0)return a;a=vN.get(b);if(a!=null&&a>0)return a;d=d==null?void 0:d.get(b);return d!=null&&d>0?d:8192}; xIa=function(a){this.Da=a;this.wc=this.To=this.Ka=this.G=this.D=this.ra=this.Ma=this.Wa=this.Aa=!1;this.N=this.K=0;this.fb=!1;this.Fa=!0;this.Xa=!1;this.xj=0;this.Ga=!1;this.Tb=Infinity;this.SI=!1;this.yc=!0;this.Va=this.Ra=!1;this.j={};this.Jb=this.B=this.Y=!1;this.Vf=0;this.disableAv1=this.yb=this.ob=!1;this.Ob=this.Da.zc();this.Ab=this.Da.experiments.kb("html5_enable_vp9_fairplay");this.Fd=this.Da.L("html5_force_av1_for_testing");this.Ya=g.VB(this.Da.experiments,"html5_av1_ordinal_cap");this.Zd= this.Da.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Rc=this.Da.L("html5_account_onesie_format_selection_during_format_filter");this.Ed=this.Da.L("html5_prefer_hbr_vp9_over_av1");this.tb=g.VB(this.Da.experiments,"html5_max_byterate");this.Z=this.Da.L("html5_prefer_high_aac_by_default");this.Je=this.Da.L("html5_prefer_language_over_codec");this.Kb=this.Da.L("html5_enable_iamf_audio");this.Wc=this.Da.experiments.kb("html5_allow_capability_merge")}; kDa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ga&&(b.unshift("1"),b.unshift("1h"));a.To&&b.unshift("h");a.qa&&(b=(yIa[a.qa]||[a.qa]).concat(b));return b}; eDa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");a.Vf===1&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Aa&&(b=["so","sa"].concat(b));!a.wc||a.Ka||a.C||b.unshift("a");!a.Z&&a.Ma&&b.unshift("ah");a.C&&(b=(yIa[a.C]||[a.C]).concat(b));a.Kb&&b.unshift("i");return b}; xN=function(a,b,c,d){b=b===void 0?{}:b;if(d===void 0?0:d)return b.disabled=1,0;if(oL(a.G,pL.AV1_CODECS)&&oL(a.G,pL.HEIGHT)&&oL(a.G,pL.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=SBa();if(e)return b.localPref=e}catch(l){}d=1080;navigator.hardwareConcurrency<=2&&(d=480);b.coreCount=navigator.hardwareConcurrency;ena()&&(b.isArm=1,d=240);if(c){var f,h;if(e=(f=c.videoInfos.find(function(l){return tE(l)}))==null?void 0:(h=f.B)==null?void 0:h.powerEfficient)d=8192,b.isEfficient=1; c=c.videoInfos[0].video;a=Math.min(wN(a,"1",c.fps),wN(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=wN(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=wN(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d}; yN=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.fb=this.keySystemAccess=null;this.ww=this.xw=-1;this.qm=null;this.C=!!d&&d.kb("edge_nonprefixed_eme")}; AN=function(a){return a.C?!1:!a.keySystemAccess&&!!zN()&&a.keySystem==="com.microsoft.playready"}; BN=function(a){return a.keySystem==="com.microsoft.playready"}; CN=function(a){return!a.keySystemAccess&&!!zN()&&a.keySystem==="com.apple.fps.1_0"}; DN=function(a){return a.keySystem==="com.youtube.fairplay"}; EN=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"}; g.FN=function(a){return a.flavor==="fairplay"}; zN=function(){var a=window,b=a.MSMediaKeys;Hr()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; HN=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.eE&&!g.Dr())return kp("45");if(g.Jt||g.Xl)return a.kb("edge_nonprefixed_eme");if(g.GN)return kp("47");if(g.gt){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.VB(a,"html5_safari_desktop_eme_min_version"))return kp(a)}return!0}; zIa=function(a,b,c,d){var e=Er(),f=(c=e||c&&Hr())?["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.x(f),g.x(IN.playready)):[].concat(g.x(IN.playready),g.x(f))}; KN=function(){this.B=this.Ln=0;this.j=Array.from({length:JN.length}).fill(0)}; AIa=function(){}; BIa=function(){this.startTimeMs=(0,g.T)();this.j=!1}; CIa=function(){this.j=new AIa}; DIa=function(a,b,c,d){d=d===void 0?1:d;c>=0&&(b in a.j||(a.j[b]=new KN),a.j[b].Rh(c,d))}; EIa=function(a,b,c,d,e){var f=(0,g.T)(),h=e?e(b):void 0,l;e=(l=h==null?void 0:h.Ln)!=null?l:1;if(e!==0){var m;l=(m=h==null?void 0:h.profile)!=null?m:c;DIa(a,l,f-d,e)}return b}; LN=function(a,b,c,d,e){if(b&&typeof b==="object"){var f=function(h){return EIa(a,h,c,d,e)}; if("then"in b&&typeof b.then==="function")return b.then(f);if("andThen"in b&&typeof b.nf==="function")return b.nf(f)}return EIa(a,b,c,d,e)}; FIa=function(){}; MN=function(a,b,c,d,e){d=d===void 0?!1:d;g.O.call(this);this.Da=b;this.useCobaltWidevine=d;this.oa=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)}; HIa=function(a,b){a.callback=b;a.D=[];HN(a.Da.experiments)?NN(a):GIa(a)}; NN=function(a){if(!a.La())if(a.B.length===0)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=IIa(a,c);if(ON&&ON.keySystem===b&&ON.Dda===JSON.stringify(d))a.oa("remksa",{re:!0}),JIa(a,c,ON.keySystemAccess);else{var e,f;a.oa("remksa",{re:!1,ok:(f=(e=ON)==null?void 0:e.keySystem)!=null?f:""});ON=void 0;(PN.isActive()?PN.fv("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(rK(function(h){JIa(a,c,h,d)}),rK(function(){a.G=!a.G&&a.C[a.B[0]].flavor=== "widevine"; a.G||a.B.shift();NN(a)}))}}}; JIa=function(a,b,c,d){if(!a.La()){d&&(ON={keySystem:b.keySystem,keySystemAccess:c,Dda:JSON.stringify(d)});b.keySystemAccess=c;if(BN(b)){c=cE();d=g.w(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.w(c.audioCapabilities),e=d.next();!e.done;e=d.next())KIa(a,b,e.value);if(c.videoCapabilities)for(c=g.w(c.videoCapabilities),d=c.next();!d.done;d=c.next())KIa(a,b,d.value)}a.D.push(b); a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&EN(b)?(a.B.shift(),NN(a)):a.callback(a.D)}}; KIa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; IIa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&DN(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];BN(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.w(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.indexOf("audio/")===0,h=f?c.audioCapabilities:c.videoCapabilities;b.flavor!== "widevine"||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.eE&&g.Br("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"}),g.QN(a.Da)==="MWEB"&&(Nr()||Cr())&&(a.oa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; GIa=function(a){if(zN()&&(g.gt||Jr&&a.L("html5_drm_support_ios_mweb")))a.D.push(new yN("fairplay","com.apple.fps.1_0","",a.Da.experiments));else{var b=LIa(),c=g.Lb(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||l.indexOf("audio/")===0,h=h||l.indexOf("video/")===0);return f&&h}); c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)}; LIa=function(){var a=zN();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=cE(); return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; MIa=function(a){this.experiments=a;this.C=0;this.K=(this.D=this.experiments.kb("html5_consider_end_stall"))&&RN;this.B=this.experiments.kb("html5_measure_max_progress_handling");this.G=this.L("html5_treat_requests_pre_elbow_as_metadata");this.j=this.L("html5_use_media_for_elbow")}; NIa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=Oq(b||"","&");a={};b=g.w(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; g.VB=function(a,b){return Number(a.flags[b])||0}; SN=function(a,b){return(a=a.flags[b])?a.toString():""}; OIa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]}; PIa=function(a){if(a.j)return a.j;if(a.experimentIds.length<=1)return a.j=a.experimentIds,a.j;var b=[].concat(g.x(a.experimentIds)).map(function(d){return Number(d)}); b.sort();for(var c=b.length-1;c>0;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()}); a.j.unshift("v1");return a.j}; RIa=function(a){return QIa.then(a)}; TN=function(a,b,c){this.experiments=a;this.Fa=b;this.Ga=c===void 0?!1:c;this.Z=!!g.Ma("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.j=new Map;this.qa=this.experiments.kb("html5_disable_vp9_encrypted");this.Aa=g.VB(this.experiments,"html5_max_ps4_av1_vertical_resolution");a=g.Ma("cast.receiver.platform.getValue");this.ra=g.VB(this.experiments,"html5_kaios_max_resolution");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null}; nDa=function(a,b,c){c=c===void 0?1:c;var d=b.itag;if(d==="0")return!0;var e=b.mimeType;if(b.Me()&&Er()&&a.experiments.kb("html5_appletv_disable_vp9"))return"dwebm";if(tE(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(oL(a,pL.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(d==="338"&&!(g.eE?kp(53):g.GN&&kp(64)))return"dopus"; var f;if(a.Aa&&!g.Br("ps4 pro")&&Gr()&&tE(b)&&((f=b.video)==null?void 0:f.height)>a.Aa)return"pavert";var h;if(a.ra&&UN&&((h=b.video)==null?void 0:h.j)>a.ra)return"kaios";f=c;f=f===void 0?1:f;c={};b.video&&(b.video.width&&(c[pL.WIDTH.name]=b.video.width),b.video.height&&(c[pL.HEIGHT.name]=b.video.height),b.video.fps&&(c[pL.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[pL.EOTF.name]=b.video.B),b.tb&&(c[pL.BITRATE.name]=b.tb*8*f),b.rb==="("&&(c[pL.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType=== "EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType==="MESH")&&(c[pL.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[pL.CHANNELS.name]=b.audio.numChannels);a.D&&rE(b)&&(c[pL.EXPERIMENTAL.name]="allowed");f=g.w(Object.keys(pL));for(h=f.next();!h.done;h=f.next())if(h=pL[h.value],c[h.name]&&!(h===pL.EOTF&&b.mimeType.indexOf("vp09.02")>0||a.experiments.kb("html5_ignore_h264_framerate_cap")&&h===pL.FRAMERATE&&swa(b)))if(oL(a,h))if(a.G){if(a.G[h.name]< c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(sE(b)&&h===pL.EOTF)return"dvp92";a.Z&&b.video&&b.video.j>1080&&b.oe&&(e+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||a.experiments.kb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"}; VN=function(){var a=Cr()&&!kp(29),b=g.Br("google tv")&&g.Br("chrome")&&!kp(30);return a||b?!1:xwa()}; SIa=function(a,b,c){var d=480;b=g.w(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;f<=1080&&f>d&&nDa(a,e,c)===!0&&(d=f)}return d}; g.WN=function(a,b){b=b===void 0?!1:b;return VN()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(cE(),"application/x-mpegURL")?!0:!1}; UIa=function(a){TIa(function(){for(var b=g.w(Object.keys(pL)),c=b.next();!c.done;c=b.next())oL(a,pL[c.value])})}; oL=function(a,b){b.name in a.N||(a.N[b.name]=VIa(a,b));return a.N[b.name]}; VIa=function(a,b){if(a.G)return!!a.G[b.name];if(b===pL.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===pL.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Ao);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.Ao)}; WIa=function(a){a.D||(a.D=!0,a.B=!0)}; XIa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).B8);a.C.set(b,{B8:c+1,O1:Math.pow(2,c+1)});a.B=!0}; kL=function(a){for(var b=[],c=g.w(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(".")}; fDa=function(a,b){for(var c=new Map,d=g.w(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}; hDa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,rb:b,Hh:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=l==null?void 0:l.width;h.maxHeight=l==null?void 0:l.height;h.maxFramerate=e;oL(a,pL.BITRATE)&&(h.maxBitrateBps=c.tb*8);h.LF=l==null?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,rb:b,Hh:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth|| 0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,LF:c.LF},oL(a,pL.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)}; iDa=function(a,b,c){var d,e=((d=c.video)==null?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&&((n=c.video)==null?0:n.height)&&l.maxHeight&&l.maxHeight>=((p=c.video)==null?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,rb:b,Hh:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=f==null?void 0:f.width,b.maxHeight=f==null?void 0:f.height,b.maxFramerate=e,oL(a,pL.BITRATE)&&(b.maxBitrateBps=c.tb* 8),b.LF=f==null?void 0:f.isHdr()),a.j.set(d,b))}; XN=function(){g.Xw.call(this);this.items={}}; YN=function(){g.xJ.apply(this,arguments)}; ZN=function(){g.yJ.apply(this,arguments)}; YIa=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)}; ZIa=function(a){a.B||(a.B=new YN(a.j));return a.B}; $N=function(a){try{return Re(a)}catch(b){return null}}; $Ia=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?$N(b.clientKey):null;var c=b.encryptedClientKey?$N(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.T)():null;a&&c&&d&&(this.j=new YIa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=$N(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; aO=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)}; bO=function(a,b,c,d){c=c===void 0?.5:c;d=d===void 0?0:d;this.resolution=b;this.B=0;this.C=!1;this.yl=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a0)b=a.byterate,this.Z=!0;else if(this.policy.Z){var d;c=(((d=navigator.connection)== null?void 0:d.downlink)||0)*65536;c>0&&(b=c,this.Z=!0)}this.B.Am(this.policy.K,b);a.delay>0&&this.N.Am(1,Math.min(a.delay,2));a.stall>0&&this.G.Am(1,a.stall);a.init>0&&(this.Fa=Math.min(a.init,this.Fa));a.interruptions&&(this.j=this.j.concat(a.interruptions),this.j.length>16&&this.j.pop());this.Y=(0,g.T)();this.policy.N>0&&(this.Ga=new g.Lo(this.Va,this.policy.N,this),g.P(this,this.Ga),this.Ga.start())}; dO=function(a,b,c,d){a.B.Am(d===void 0?b:d,c/b);a.D=(0,g.T)()}; bJa=function(a){a.C||(a.C=(0,g.T)());a.policy.qa&&(a.D=(0,g.T)())}; cJa=function(a,b){if(a.C){var c=b-a.C;if(c>1E3){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e}); d.length>16&&d.pop()}a.ra+=c}a.C=b}; eO=function(a,b,c){a.N.Am(1,b);a.Ka.Am(1,c)}; fO=function(a,b,c,d,e,f){f=f===void 0?!1:f;a.Aa.Am(b,c/b);a.D=(0,g.T)();e||a.K.Am(1,b-d);f||(a.C=0);a.Y>-1&&(0,g.T)()-a.Y>3E4&&dJa(a)}; gO=function(a,b,c){b=Math.max(b,2048);a.G.Am(1,c/b)}; hO=function(a){a=a.N.gh()+a.Ka.gh()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)}; iO=function(a,b,c){isNaN(c)||(a.qa+=c);isNaN(b)||(a.Ma+=b)}; jO=function(a){a=a.B.gh();return a>0?a:1}; kO=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?1048576:c;var d=jO(a);d=1/((a.G.gh()||0)*a.policy.ra+1/d);var e=a.Aa.gh();e=e>0?e:1;var f=Math.max(d,e);a.policy.G>0&&(f=Math.min(a.policy.G,1),f=(1-f)*d+f*e);if(!b)return f;b=1E-9+hO(a);c=f*Math.min(1,c/(f*b));a.policy.C||(a=((a.K.percentile(.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c}; eJa=function(a){var b={delay:hO(a),stall:a.G.gh()||0,byterate:jO(a),init:a.Fa},c=a.j[0];c.stamp=Math.round(a.D/36E5)*36E5;c.net=Math.ceil(a.ra);c.max=a.interruptions[0]||0;b.interruptions=a.j;return b}; dJa=function(a){g.us("yt-player-bandwidth",eJa(a),2592E3);a.Y=(0,g.T)();a.Z=!0}; lO=function(a){return(0,g.T)()-a.D>=4E3}; fJa=function(a,b){b.Ws=a.qa;b.Gv=a.Ma;b.bandwidthEstimate=kO(a);b.j={ttr:(a.N.gh()*1E3).toFixed(),ttm:(a.Ka.gh()*1E3).toFixed(),d:hO(a).toFixed(2),st:((a.G.gh()||0)*1E9).toFixed(2),bw:a.B.gh().toFixed(0),abw:a.Aa.gh().toFixed(0),v50:a.K.percentile(.5).toFixed(2),v92:a.K.percentile(.92).toFixed(2),v96:a.K.percentile(.96).toFixed(2),v98:a.K.percentile(.98).toFixed(2)};b=b.j;b["int"]=a.interruptions.join(".");b.intDur=Math.ceil(a.ra);b.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")}; gJa=function(a){this.experiments=a;this.j=17;this.B=13E4;this.Z=this.experiments.kb("html5_default_bandwidth_from_browser");this.K=.5;this.C=this.D=!1;this.G=g.VB(this.experiments,"html5_auxiliary_estimate_weight");this.ra=g.VB(this.experiments,"html5_stall_factor")||1;this.N=g.VB(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.kb("html5_trigger_loader_when_idle_network");this.qa=this.experiments.kb("html5_sabr_fetch_on_idle_network_preloaded_players")}; iJa=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;g.O.call(this);var c=this;this.values=a;this.Qr=b;this.B={};this.C=this.j=0;this.D=new g.Lo(function(){hJa(c)},1E4); g.P(this,this.D)}; mO=function(a,b){jJa(a,b);return a.values[b]&&a.Qr[b]?a.values[b]/Math.pow(2,a.j/a.Qr[b]):0}; jJa=function(a,b){a.values[b]||(b=MBa(),a.values=b.values||{},a.Qr=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})}; hJa=function(a){var b=MBa();if(b.values){b=b.values;for(var c={},d=g.w(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=mO(a,e);a.B=c}b=a.Qr;c={};c.values=a.B;c.halfLives=b;g.us("yt-player-memory",c,2592E3)}; EO=function(a,b,c,d,e){g.O.call(this);this.webPlayerContextConfig=b;this.gm=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Gj=this.Ae=this.fb=this.Cj=this.userDisplayName=this.userDisplayImage=this.Xi="";this.j={};this.Ob={};this.controlsType="0";this.Zd=NaN;this.ob=!1;this.Tf=(0,g.T)();this.Kb=0;this.im=this.xp=!1;this.Cn=!0;this.preferGapless=this.Zl=this.Sf=this.C=this.fm=this.Rf=!1;this.yh=[];this.wm=!0;this.Uf=!1;a=a?g.Ec(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType); b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new NIa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:Tr("",a.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:Tr("",a.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(S){f=""}this.lf=f;this.ancestorOrigins= (d=window.location.ancestorOrigins)?Array.from(d):[];this.D=Qr(!1,b?b.isEmbed:a.is_embed);if(b&&b.device){if(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.androidPlayServicesVersion&&(this.j.capsv=""+d.androidPlayServicesVersion),d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.j.ccrv=""+d.cobaltReleaseVehicle),this.j.c=d.interfaceName||"WEB",this.j.cver=d.interfaceVersion|| "html5",d.interfaceTheme&&(this.j.ctheme=d.interfaceTheme),this.j.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.j.cmodel=d.model),d.network&&(this.j.cnetwork=d.network),d.os&&(this.j.cos=d.os),d.osVersion&&(this.j.cosver=d.osVersion),d.platform&&(this.j.cplatform=d.platform),f=SN(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.Ob.cchip=d.chipset),d.cobaltAppVersion&&(this.Ob.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Ob.cfrmver= d.firmwareVersion),d.deviceYear&&(this.Ob.crqyear=d.deviceYear)}else this.j.c=a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=b?this.D||kJa(this)&&b.loaderUrl?b.loaderUrl||"":this.lf:this.D||kJa(this)&&a.loaderUrl?Tr("",a.loaderUrl):this.lf;this.D&&g.La("yt.embedded_player.embed_url",this.loaderUrl);this.N=FC(this.loaderUrl,lJa);d=this.loaderUrl;var h=h===void 0?!1:h;this.iq=EC(FC(d,mJa),d,h,"Trusted Ad Domain URL");this.yc=Qr(!1,a.privembed);this.protocol=this.lf.indexOf("http:")=== 0?"http":"https";this.Fa=GC((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||GC(this.lf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";h==="adunit"?d=this.D?"embedded":"detailpage":h==="embedded"||this.N?d=Rr(d,h,nJa):h&&(d="embedded");this.Ma=d;oqa();h=null;d=b?b.playerStyle:a.ps;f=g.Nb(oJa,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.K=g.Nb(oJa,this.playerStyle);this.houseBrandUserStatus=b==null?void 0:b.houseBrandUserStatus;this.ra=this.K&&this.playerStyle!=="play"&& this.playerStyle!=="jamboard";this.aq=!this.ra;this.Ra=Qr(!1,a.disableplaybackui);this.disablePaidContentOverlay=Qr(!1,b==null?void 0:b.disablePaidContentOverlay);this.disableSeek=Qr(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(cE().defaultPlaybackRate?nO||g.Mr||UN?g.GN&&kp("20")||g.eE&&kp("4")||g.oO&&kp("11")||Ir():!(g.oO&&!g.Br("chrome")||nO||g.Br("android")||g.Br("silk")):!1);this.zp=Qr(!1,a.enable_faster_speeds);this.B=Qr(this.playerStyle=== "blazer",a.is_html5_mobile_device||b&&b.isMobileDevice);this.Wa=Lr()||Nr();this.Qp=this.L("mweb_allow_background_playback")?!1:this.B&&!this.K;this.Va=hE();this.Gq=g.pO;var l;this.pm=!!(b==null?0:(l=b.embedsHostFlags)==null?0:l.optOutApiDeprecation);var m;this.Ap=!!(b==null?0:(m=b.embedsHostFlags)==null?0:m.allowPfpImaIntegration);this.Cp=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?b.hideInfo!==void 0&&(n=!b.hideInfo):n=a.showinfo;this.An=g.qO(this)&&!this.pm|| Qr(!rO(this)&&!sO(this)&&!this.K,n);this.qm=b?!!b.mobileIphoneSupportsInlinePlayback:Qr(!1,a.playsinline);l=this.B&&tO&&uO!=null&&uO>0&&uO<=2.3;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.qO(this)&&this.B;n=this.B&&!this.Z;m=g.vO(this)||!l&&Qr(n,m)?"3":"1";this.disableOrganicUi=!(b==null||!b.disableOrganicUi);n=b?b.controlsType:a.controls;this.controlsType=this.disableOrganicUi?"0":n!=="0"&&n!==0?m:"0";this.bk=this.B;this.color=Rr("red",b?b.progressBarColor:a.color,pJa);this.mq=this.controlsType=== "3";this.wc=!this.D;this.Bn=(m=!this.wc&&!sO(this)&&!this.ra&&!this.K&&!rO(this))&&!this.mq&&this.controlsType==="1";this.Fd=g.wO(this)&&m&&this.controlsType==="0"&&!this.Bn&&!(b==null?0:b.embedsEnableEmc3ds);this.er=this.zq=l;this.Wc=(this.controlsType==="3"||this.B||Qr(!1,a.use_media_volume))&&!this.Z;this.Dn=Jr&&!g.kc(601)?!1:!0;this.Dp=this.D||!1;this.Rc=sO(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Tr("",b?b.widgetReferrer:a.widget_referrer);var p; b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||Qr(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.Nj=this.L("enable_cast_for_web_unplugged")&&g.xO(this)&&l||g.yy(this)&&l||p&&l&&this.controlsType==="1"&&!this.B&&(sO(this)||g.wO(this)||g.yO(this));this.Xq=!!window.document.pictureInPictureEnabled||gE();p=b?!!b.supportsAutoplayOverride:Qr(!1,a.autoplayoverride);this.Gi=!(this.B&&!g.qO(this))&&!g.Br("nintendo wiiu")||p;this.Vi=(b?!!b.enableMutedAutoplay:Qr(!1,a.mutedautoplay))&&!1;p=(sO(this)|| rO(this))&&this.playerStyle==="blazer";this.Wk=b?!!b.disableFullscreen:!Qr(!0,a.fs);l=g.Xr(g.zO(this))&&g.qO(this);this.Ab=!this.Wk&&(p||g.ds())&&!l;this.Yl=this.L("uniplayer_block_pip")&&(Cr()&&kp(58)&&!Nr()||It);p=g.qO(this)&&!this.pm;var q;b?b.disableRelatedVideos!==void 0&&(q=!b.disableRelatedVideos):q=a.rel;this.Ed=p||Qr(!this.K,q);this.zn=Qr(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=Nr()&&uO>0&&uO<=4.4?"_top":"_blank";this.Jg=g.yO(this);this.Zj=Qr(this.playerStyle==="blazer",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.qa=q;this.Aa=Tr("",b?b.authorizedUserIndex:a.authuser);this.Tb=g.qO(this)&& (this.yc||!bna()||this.Wa);var r;b?b.disableWatchLater!==void 0&&(r=!b.disableWatchLater):r=a.showwatchlater;this.Je=((q=!this.Tb)||!!this.Aa&&q)&&Qr(!this.ra,this.N?r:void 0);this.kf=b?b.isMobileDevice||!!b.disableKeyboardControls:Qr(!1,a.disablekb);this.loop=Qr(!1,a.loop);this.pageId=Tr("",b?b.initialDelegatedSessionId:a.pageid);this.Uq=Qr(!0,a.canplaylive);this.yb=Qr(!1,a.livemonitor);this.disableSharing=Qr(this.K,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"),q.length!==2?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||r*q<=0?null:new g.Gd(r,q))):r=null;this.En=r;this.mute=b?!!b.startMuted:Qr(!1,a.mute);this.storeUserVolume=!this.mute&&Qr(this.controlsType!=="0",b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Rr(void 0,r,AO);this.captionsLanguagePreference=b?b.captionsLanguagePreference|| "":Tr("",a.cc_lang_pref);r=Rr(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,AO);this.controlsType==="3"&&r===2&&(r=3);this.Jb=r;this.Aj=b?b.hl||"en_US":Tr("en_US",a.hl);this.region=b?b.contentRegion||"US":Tr("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Tr("en",a.host_language);this.yp=!this.yc&&Math.random()=480;this.schedule=new cO(q,new MIa(this.experiments),e);g.P(this,this.schedule);var t;this.enableSafetyMode=(t=b==null?void 0:b.initialEnableSafetyMode)!=null?t:Qr(!1,a.enable_safety_mode);e=this.Ra?!1:sO(this)&&this.playerStyle!=="blazer";var u;b?b.disableAutonav!=null&&(u=!b.disableAutonav): u=a.allow_autonav;this.ge=Qr(e,!this.ra&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:Qr(!1,a.send_visitor_id_header);var y;this.playerStyle==="docs"&&(b?y=b.disableNativeContextMenu:y=a.disable_native_context_menu);this.disableNativeContextMenu=Qr(!1,y);this.Bp=hC(this)&&this.L("enable_skip_intro_button");this.embedConfig=Tr("",b?b.serializedEmbedConfig:a.embed_config);this.Ga=Wr(a,g.qO(this));this.C=this.Ga==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(b==null||!b.embedsErrorLinks); this.Yk=Qr(!1,a.full_window);var A;this.Ya=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var D;this.livingRoomAppMode=Rr("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(b==null?void 0:(D=b.device)==null?void 0:D.livingRoomAppMode),sJa);var F;u=Sr(NaN,b==null?void 0:(F=b.device)==null?void 0:F.deviceYear);isNaN(u)||(this.deviceYear=u);this.transparentBackground=b?!!b.transparentBackground:Qr(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:Qr(!1, a.show_miniplayer_button);var H;g.qO(this)&&!(b==null?0:(H=b.embedsHostFlags)==null?0:H.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:Qr(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:Qr(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var M;this.Cn=(M=a.show_loop_video_toggle)!=null?M:!0;this.jq=Math.random()<1E-4;this.bl=a.onesie_hot_config||(b==null?0:b.onesieHotConfig)? new $Ia(a.onesie_hot_config,b==null?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=b==null?void 0:b.canaryStage;this.Qf=new iJa;g.P(this,this.Qf);this.fm=Qr(!1,a.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.Eq("DATASYNC_ID");this.hm=g.Eq("LOGGED_IN",!1);this.Fj=(b==null?void 0:b.allowWoffleManagement)||!1;this.fl=Infinity;this.il=NaN;this.livingRoomPoTokenId=b==null?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")? this.Sf=!0:this.Sf=Math.random()*100=0&&a0&&a.jq&&(d.sort(),g.yw(new g.Hs("Player client parameters changed after startup",d)));a.userAge=Sr(a.userAge,b.user_age);a.Xi=Tr(a.Xi,b.user_display_email);a.userDisplayImage=Tr(a.userDisplayImage,b.user_display_image);g.IC(a.userDisplayImage)||(a.userDisplayImage= "");a.userDisplayName=Tr(a.userDisplayName,b.user_display_name);a.Cj=Tr(a.Cj,b.user_gender);a.csiPageType=Tr(a.csiPageType,b.csi_page_type);a.csiServiceName=Tr(a.csiServiceName,b.csi_service_name);a.Zj=Qr(a.Zj,b.enablecsi);a.pageId=Tr(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Vf=b.living_room_session_po_token.toString())}; FO=function(a,b){return!a.K&&Cr()&&kp(55)&&a.controlsType==="3"&&!b}; g.GO=function(a){a=BO(a.Fa);return a==="www.youtube-nocookie.com"?"www.youtube.com":a}; HO=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")}; IO=function(a){return sO(a)&&!g.xO(a)}; g.vO=function(a){return a.L("html5_local_playsinline")?Jr&&!g.kc(602)&&!("playsInline"in cE()):Jr&&!a.qm||g.Br("nintendo wiiu")?!0:!1}; g.QN=function(a){return a.j.c}; g.iC=function(a){return/^TVHTML5/.test(g.QN(a))}; kJa=function(a){return g.QN(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; rJa=function(a){return a.j.cmodel==="CHROMECAST ULTRA/STEAK"||a.j.cmodel==="CHROMECAST/STEAK"}; g.JO=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; hC=function(a){return/web/i.test(g.QN(a))}; g.KO=function(a){return g.QN(a).toUpperCase()==="WEB"}; DO=function(a){return g.QN(a)==="WEB_KIDS"}; g.xO=function(a){return g.QN(a)==="WEB_UNPLUGGED"}; LO=function(a){return g.QN(a)==="TVHTML5_UNPLUGGED"}; g.gC=function(a){return g.xO(a)||g.QN(a)==="TV_UNPLUGGED_CAST"||LO(a)}; g.yy=function(a){return g.QN(a)==="WEB_REMIX"}; g.MO=function(a){return g.QN(a)==="WEB_EMBEDDED_PLAYER"}; g.OO=function(a){return(a.deviceIsAudioOnly||!g.eE||It||a.controlsType==="3"?!1:g.Mr?a.D&&g.kc(51):!0)||(a.deviceIsAudioOnly||!g.GN||It||a.controlsType==="3"?!1:g.Mr?a.D&&g.kc(48):g.kc(38))||(a.deviceIsAudioOnly||!g.oO||It||a.controlsType==="3"?!1:g.Mr?a.D&&g.kc(37):g.kc(27))||!a.deviceIsAudioOnly&&g.NO&&!gna()&&g.kc(11)||!a.deviceIsAudioOnly&&g.gt&&g.kc("604.4")}; vJa=function(a){if(g.wO(a)&&tO)return!1;if(g.GN){if(!g.kc(47)||!g.kc(52)&&g.kc(51))return!1}else if(g.gt)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; PO=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.iC(a)}; xJa=function(a,b){return a.enabledEngageTypes.has(b.toString())||wJa.includes(b)}; sO=function(a){return a.Ma==="detailpage"}; g.wO=function(a){return a.Ma==="embedded"}; QO=function(a){return a.Ma==="leanback"}; rO=function(a){return a.Ma==="adunit"||a.playerStyle==="gvn"}; g.yO=function(a){return a.Ma==="profilepage"}; g.qO=function(a){return a.D&&g.wO(a)&&!rO(a)&&!a.K}; RO=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(b.length===5)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(b.length===8)return b.splice(7,0,"s20-c"),b.join("/");if(b.length===9)return b[7]+="-s20-c",b.join("/");g.yw(new g.Hs("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; g.SO=function(a){var b=g.GO(a);yJa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b}; g.TO=function(a,b){b=b===void 0?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.gm){var c=new $E,d,e=a.gm();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.yw(new g.Hs("b189348328_oauth_callback_failed",{error:f})); c.resolve(b)}); return d!==void 0?tr(d):new rr(c)}return tr(b)}; BO=function(a){var b=g.Ai(a);return(a=Number(g.zi(4,a))||null)?b+":"+a:b}; UO=function(a,b){b=b===void 0?!1:b;var c=pE[a],d=zJa[c],e=AJa[a];if(!e||!d)return null;b=new mE(b?e.height:e.width,b?e.width:e.height,e.fps);d=gN(d,b,c);return new qE(a,d,{video:b,tb:e.bitrate/8})}; CJa=function(a){var b=zJa[pE[a]],c=BJa[a];return c&&b?new qE(a,b,{audio:new jE(c.audioSampleRate,c.numChannels)}):null}; VO=function(a){this.j=a}; WO=function(a,b,c,d){if(c)return sr();c={};var e=cE();b=g.w(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.getInfo().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].getInfo().Me())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.w(nE);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?tr(a):sr()}; DJa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""}; EJa=function(a,b){a.C.some(function(c){var d;return((d=c.dc)==null?void 0:d.getId())===b}); a.j=b}; XO=function(a,b,c){a.cpn&&(b=g.Hi(b,{cpn:a.cpn}));c&&(b=g.Hi(b,{paired:c}));return b}; FJa=function(a,b){a=a.itag.toString();b!==null&&(a+=b.itag.toString());return a}; GJa=function(a){for(var b=[],c=[],d=g.w(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate}); c.sort(function(f,h){return f.bitrate-h.bitrate}); a.B=b.concat(c)}; HJa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=((b=a.audioItag)==null?void 0:b.split(","))||[];this.MC=a.MC;this.oe=a.oe||"";this.dc=a.dc;this.audioChannels=a.audioChannels;this.j=""}; IJa=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!0:c;d=d===void 0?{}:d;var e={};a=g.w(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||f.eotf!=="smpte2084"&&f.eotf!=="arib-std-b67"){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/); m=m?m[1]:"";f.audio_track_id&&(h=new g.aN(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new HJa({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,MC:n?l[n]:void 0,oe:f.drm_families,dc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e}; YO=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null}; JJa=function(a,b){if(!(It||Hr()||Er()))return null;a=IJa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.w(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.w(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.dc&&(f=h.dc.getId(),c[f]||(h=new g.WK(f,h.dc),c[f]=h,b.push(h)))}}return b.length>0?b:null}; OJa=function(a,b,c,d,e,f,h){if(!(It||Hr()||Er()))return sr();var l={},m=KJa(c),n=IJa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),sr();LJa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],u=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new HJa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,dc:new g.aN("English","en",!1)}):null;for(var A=g.w(Object.keys(n)),D=A.next();!D.done;D=A.next())if(D=D.value,!a.L("html5_disable_drm_hfr_1080")|| D!=="383"&&D!=="373"){D=g.w(n[D]);for(var F=D.next();!F.done;F=D.next())if(F=F.value,F.width){for(var H=g.w(F.B),M=H.next();!M.done;M=H.next())if(M=M.value,n[M]){F.j=M;break}F.j||(F.j=MJa(n,F));if(H=n[F.j])if(c.push(F),F.oe==="fairplay"&&(q=p),M="",F.MC==="PQ"?M="smpte2084":F.MC==="HLG"&&(M="arib-std-b67"),M&&(y=M),t.push(NJa(H,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,M)),!u||F.width*F.height*F.fps>u.width*u.height*u.fps)u=F}else r.push(F)}else l[D]="disdrmhfr";t.reduce(function(N, S){return S.getInfo().isEncrypted()&&N},!0)&&(q=p); e=Math.max(e,0);p=u||{};n=p.fps===void 0?0:p.fps;u=p.width===void 0?0:p.width;p=p.height===void 0?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(NJa(r,c,d,f,"93",u,p,n,m,"auto",e,q,y,A));Object.entries(l).length&&h(l);return WO(a.G,t,FO(a,b),!1)}; NJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=0,y="",A=g.w(a),D=A.next();!D.done;D=A.next())D=D.value,y||(y=D.itag),D.audioChannels&&D.audioChannels>u&&(u=D.audioChannels,y=D.itag);e=new qE(e,"application/x-mpegURL",{audio:new jE(0,u),video:new mE(f,h,l,null,void 0,n,void 0,r),oe:q,M_:y});a=new DJa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new YO(e,a,m)}; KJa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(b.length<=1)))return+b[1].split("/")[0];return NaN}; MJa=function(a,b){for(var c=g.w(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.oe===b.oe&&!e.audioChannels)return d}return""}; LJa=function(a){for(var b=new Set,c=g.w(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.w(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.w(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]}; ZO=function(a,b){this.j=a;this.B=b}; PJa=function(a,b,c,d){var e=[];c=g.w(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.qL(h.url,!0);if(h.s){var l=f,m=h.sp,n=HBa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.w(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=DE(h.type,h.quality,h.itag,h.width,h.height);e.push(new ZO(h,f))}}return WO(a.G,e,FO(a,b),!1)}; $O=function(a,b){this.j=a;this.B=b}; QJa=function(a,b,c){var d=[];c=g.w(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=DE(e.type,"medium","0");d.push(new $O(f,e.url))}return WO(a.G,d,FO(a,b),!1)}; RJa=function(a,b){var c=[],d=DE(b.type,"auto",b.itag);c.push(new $O(d,b.url));return WO(a.G,c,!1,!0)}; TJa=function(a){return a&&SJa[a]?SJa[a]:null}; UJa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.pp=$N(a.ustreamerConfig)||void 0)}; VJa=function(a,b){var c;if(b=b==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)a.vS=new UJa(b)}; g.aP=function(a){a=a===void 0?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name===void 0?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.cP=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.bP(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.dP=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; g.WJa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.dP(a));return b}; g.bP=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);a.kind==="asr"&&c.indexOf("(")===-1&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")}; $Ja=function(a,b,c,d){a||(a=b&&XJa.hasOwnProperty(b)&&YJa.hasOwnProperty(b)?YJa[b]+"_"+XJa[b]:void 0);b=a;if(!b)return null;a=b.match(ZJa);if(!a||a.length!==5)return null;if(a=b.match(ZJa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(Number(a[1])===1&&e===8)&&f.indexOf(e)>=0}else a=!1;return c||d||a?b:null}; eP=function(a,b){for(var c={},d=g.w(Object.keys(aKa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.IC(f)&&(c[aKa[e]]=f)}return c}; fP=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.w(Object.keys(bKa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=bKa[e];for(var f=g.w(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=cKa(h.url);g.IC(e)&&(b[d]=e);break}}(a=a.pop())&&a.width>=1280&&(a=cKa(a.url),g.IC(a)&&(b["maxresdefault.jpg"]=a));return b}; cKa=function(a){return a.startsWith("//")?"https:"+a:a}; gP=function(a){return a&&a.baseUrl||""}; hP=function(a){a=g.Sq(a);for(var b=g.w(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}; dKa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(a.xr=b)}; gKa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.Q(h,eKa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.Q(h,fKa))return Object.assign({is_yto_interstitial:!0},Qq(h))}); d=g.w(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,jp:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,jp: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, jp:f===0?5:7})}}}; hKa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; iKa=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)}; jKa=function(a,b){b!=null?(a.Sp=b,a.Gf=!0):(a.Sp="",a.Gf=!1)}; iP=function(a,b){this.type=a||"";this.id=b||""}; g.jP=function(a){return new iP(a.substr(0,2),a.substr(2))}; g.kP=function(a,b){this.Da=a;this.author="";this.QE=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=Oq(a,"&");var c;this.j=((c=b.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.Z=eP(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new iP("UU","PLAYER_"+c)).toString();break;default:if(a= b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.jP(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.lP=function(a,b){this.Da=a;this.Dt=this.author="";this.QE=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Mx=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Dt=b.Dt||"";if(a=b.endscreen_autoplay_session_data)this.QE=Oq(a,"&");this.RE=b.RE;this.isLivePlayback=b.live_playback==="1";this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds=typeof a==="string"?Number(a):a;this.lengthText= b.lengthText||"";this.Mx=b.Mx||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Oq(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=eP(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; kKa=function(a){var b,c,d=(b=a.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=(e=a.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:(l=h.endScreen)==null?void 0:(m=l.watchNextEndScreenRenderer)==null?void 0:m.results;if(!a){var n,p;a=d==null?void 0:(n=d.endScreen)==null?void 0:(p=n.endScreen)==null?void 0:p.results}return a}; g.nP=function(a){var b,c,d;a=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,mP);return g.Q(a==null?void 0:a.playerBar,lKa)}; mKa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url}; nKa=function(){if(oP===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.vp(g.Is()+"::yt-player"))){oP=new By(a);break a}oP=void 0}}return oP}; g.pP=function(){var a=nKa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; g.oKa=function(a){var b=nKa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; g.qP=function(a){return g.pP()[a]||0}; g.rP=function(a,b){var c=g.pP();b!==c[a]&&(b!==0?c[a]=b:delete c[a],g.oKa(c))}; g.sP=function(a){return g.J(function(b){return b.return(g.Ft(pKa(),a))})}; uP=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:return m=g.qP(a),m===4?u.return(4):g.G(u,g.Nt(),2);case 2:n=u.B;if(!n)throw g.it("wiac");if(!l||h===void 0){u.Ha(3);break}return g.G(u,qKa(l,h),4);case 4:h=u.B;case 3:return p=c.lastModified||"0",g.G(u,g.sP(n),5);case 5:return q=u.B,g.wa(u,6),tP++,g.G(u,g.rt(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Pb:!0},function(y){if(f!==void 0&&h!==void 0){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10, "0");A=g.tt(y.objectStore("media"),h,A)}else A=g.kt.resolve(void 0);var D=rKa(a,b.Ag()),F=rKa(a,!b.Ag()),H={fmts:sKa(d),format:c||{}};D=g.tt(y.objectStore("index"),H,D);var M=d.downloadedEndTime===-1;H=M?y.objectStore("index").get(F):g.kt.resolve(void 0);var N={fmts:"music",format:{}};y=M&&e&&!b.Ag()?g.tt(y.objectStore("index"),N,F):g.kt.resolve(void 0);return g.kt.all([y,H,A,D]).then(function(S){S=g.w(S);S.next();S=S.next().value;tP--;var ba=g.qP(a);if(ba!==4&&M&&e||S!==void 0&&g.tKa(S.fmts))ba= 1,g.rP(a,ba);return ba})}),8); case 8:return u.return(u.B);case 6:r=g.ya(u);tP--;t=g.qP(a);if(t===4)return u.return(t);g.rP(a,4);throw r;}})}; g.uKa=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,g.Nt(),2);if(d.j!=3){b=d.B;if(!b)throw g.it("ri");return g.G(d,g.sP(b),3)}c=d.B;return d.return(g.rt(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})}; wKa=function(a,b,c,d,e){var f,h,l;return g.J(function(m){if(m.j==1)return g.G(m,g.Nt(),2);if(m.j!=3){f=m.B;if(!f)throw g.it("rc");return g.G(m,g.sP(f),3)}h=m.B;l=g.rt(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(n===void 0)throw Error("No data from indexDb");return vKa(e,n)}).catch(function(n){throw new g.Hs("Error while reading chunk: "+n.name+", "+n.message); })):m.return(l)})}; g.tKa=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; rKa=function(a,b){return""+a+"|"+(b?"v":"a")}; sKa=function(a){var b={};return Pq((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; yKa=function(a){var b={},c={};a=g.w(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.xKa)?(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.w(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}; vP=function(a){g.Xw.call(this);this.j=null;this.C=new yp;this.j=null;this.K=new Set;this.crossOrigin=a||""}; zKa=function(a,b,c){for(c=wP(a,c);c>=0;){var d=a.levels[c];if(d.isLoaded(xP(d,b))&&(d=g.yP(d,b)))return d;c--}return g.yP(a.levels[0],b)}; BKa=function(a,b,c){c=wP(a,c);for(var d,e;c>=0;c--)if(d=a.levels[c],e=xP(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.enqueue(f,{d_:f,L_:e}))}AKa(a)}; AKa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=CKa(a,b)}}; CKa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.d_].De(b.L_);c.onload=function(){var d=b.d_,e=b.L_;a.j!==null&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);AKa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.XJ()-1);e=[e,d];a.publish("l",e[0],e[1])}; return c}; g.zP=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}; xP=function(a,b){return Math.floor(b/(a.columns*a.rows))}; g.yP=function(a,b){b>=a.IN()&&a.vz();var c=xP(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.vz()+1-d*c;if(f1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; DKa=function(a,b,c){return(a=a.levels[b])?a.LI(c):-1}; wP=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1}; BP=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.zP.call(this,a,b,c,0);this.B=null;this.G=d?2:0}; CP=function(a,b,c,d){AP.call(this,a,0,void 0,b,!(d===void 0||!d));for(a=0;a1&&g.yw(new g.Hs("There are more than one engaged_view_urls.")),a.Fj=Lg.engagedViewUrls[0])}}var $y=a.playerResponse.playerCueRanges;$y&&$y.length>0&&(a.cueRanges=$y);var zG=a.playerResponse.playerCueRangeSet;zG&&g.JP(a,zG);a:{var AG=a.playerResponse.adPlacements; if(AG)for(var BG=g.w(AG),az=BG.next();!az.done;az=BG.next()){var CG=void 0,bz=void 0,DG=(CG=az.value.adPlacementRenderer)==null?void 0:(bz=CG.renderer)==null?void 0:bz.videoAdTrackingRenderer;if(DG){var EG=DG;break a}}EG=null}var FG=EG;ca&&ca.promotedPlaybackTracking&&FG&&g.yw(new g.Hs("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));FG&&(a.R3=!0);var GG=a.playerResponse.playerAds;if(GG)for(var BR=b,HG=g.w(GG),cz=HG.next();!cz.done;cz=HG.next()){var IG=cz.value;if(IG){var JG= IG.playerLegacyDesktopWatchAdsRenderer;if(JG){var uo=JG.playerAdParams;if(uo){uo.autoplay=="1"&&(a.Qk=!0,a.Mq=!0);a.Tv=uo.encodedAdSafetyReason||null;uo.showContentThumbnail!==void 0&&(a.gm=!!uo.showContentThumbnail);BR.enabled_engage_types=uo.enabledEngageTypes;break}}}}var le=a.playerResponse.playerConfig;if(le){var vo=le.manifestlessWindowedLiveConfig;if(vo){var dz=Number(vo.minDvrSequence),ez=Number(vo.maxDvrSequence),fz=Number(vo.minDvrMediaTimeMs),Lq=Number(vo.maxDvrMediaTimeMs),CR=Number(vo.startWalltimeMs); dz&&(a.gf=dz);fz&&(a.Ra=fz/1E3);ez&&(a.zi=ez);Lq&&(a.Tb=Lq/1E3);CR&&(a.Rc=CR/1E3);(dz||fz)&&(ez||Lq)&&(a.Ka=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.Wd=!1)}var hm=le.daiConfig;if(hm){if(hm.enableDai){a.Ff=!0;var KG=hm.enableServerStitchedDai;KG&&(a.enableServerStitchedDai=KG);var LG=hm.enablePreroll;LG&&(a.enablePreroll=LG)}var gz;if(hm.daiType==="DAI_TYPE_SS_DISABLED"||((gz=hm.debugInfo)==null?0:gz.isDisabledUnpluggedChannel))a.dE=!0;hm.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(a.HU=!0)}var Jk=le.audioConfig; if(Jk){var ku=Jk.loudnessDb;ku!=null&&(a.Ij=ku);var MG=Jk.trackAbsoluteLoudnessLkfs;MG!=null&&(a.P2=MG);var DR=Jk.loudnessTargetLkfs;DR!=null&&(a.loudnessTargetLkfs=DR);Jk.audioMuted&&(a.bl=!0);Jk.muteOnStart&&(a.kZ=!0);var lu=Jk.loudnessNormalizationConfig;if(lu){lu.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);lu.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var Mq=lu.minimumLoudnessTargetLkfs;Mq!=null&&(a.minimumLoudnessTargetLkfs=Mq);var dEa=lu.maxStatefulTimeThresholdSec; dEa!=null&&(a.maxStatefulTimeThresholdSec=dEa)}}var Y8=le.playbackEndConfig;if(Y8){var eEa=Y8.endSeconds,fEa=Y8.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(eEa&&(a.endSeconds=eEa),fEa&&(a.limitedPlaybackDurationInSeconds=fEa))}var ER=le.fairPlayConfig;if(ER){var gEa=ER.certificate;gEa&&(a.fb=$N(gEa));var hEa=Number(ER.keyRotationPeriodMs);hEa>0&&(a.xw=hEa);var iEa=Number(ER.keyPrefetchMarginMs);iEa>0&&(a.ww=iEa)}var hz=le.playbackStartConfig;if(hz){a.ZC=Number(hz.startSeconds);var jEa=hz.liveUtcStartSeconds, kEa=!!a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0;jEa&&!kEa&&(a.liveUtcStartSeconds=Number(jEa));var Z8=hz.startPosition;if(Z8){var lEa=Z8.utcTimeMillis;lEa&&!kEa&&(a.liveUtcStartSeconds=Number(lEa)*.001);var mEa=Z8.streamTimeMillis;mEa&&(a.ge=Number(mEa)*.001)}a.progressBarStartPosition=hz.progressBarStartPosition;a.progressBarEndPosition=hz.progressBarEndPosition}else{var $8=le.skippableSegmentsConfig;if($8){var nEa=$8.introSkipDurationMs;nEa&&(a.cE=Number(nEa)/1E3);var oEa=$8.outroSkipDurationMs; oEa&&(a.VC=Number(oEa)/1E3)}}var a9=le.skippableIntroConfig;if(a9){var pEa=Number(a9.startMs),qEa=Number(a9.endMs);isNaN(pEa)||isNaN(qEa)||(a.Cj=pEa,a.Rf=qEa)}var rEa=le.streamSelectionConfig;rEa&&(a.Zd=Number(rEa.maxBitrate));var sEa=le.vrConfig;sEa&&(a.RA=sEa.partialSpherical=="1");var NG=le.webDrmConfig;if(NG){NG.skipWidevine&&(a.aY=!0);var tEa=NG.widevineServiceCert;tEa&&(a.qm=$N(tEa));NG.useCobaltWidevine&&(a.useCobaltWidevine=!0);NG.startWithNoQualityConstraint&&(a.Zj=!0)}var wo=le.mediaCommonConfig; if(wo){var FR=wo.dynamicReadaheadConfig;if(FR){a.maxReadAheadMediaTimeMs=FR.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=FR.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=FR.readAheadGrowthRateMs||NaN;var uEa,vEa=wo==null?void 0:(uEa=wo.mediaUstreamerRequestConfig)==null?void 0:uEa.videoPlaybackUstreamerConfig;vEa&&(a.Fi=$N(vEa));var b9=wo==null?void 0:wo.sabrContextUpdates;if(b9&&b9.length>0)for(var wEa=g.w(b9),c9=wEa.next();!c9.done;c9=wEa.next()){var mu=c9.value;if(mu.type&&mu.value){var leb= {type:mu.type,scope:mu.scope,value:$N(mu.value)||void 0,sendByDefault:mu.sendByDefault};a.sabrContextUpdates.set(mu.type,leb)}}}var xEa=wo.serverPlaybackStartConfig;xEa&&(a.serverPlaybackStartConfig=xEa);wo.useServerDrivenAbr&&(a.VD=!0);var yEa=wo.requestPipeliningConfig;yEa&&(a.requestPipeliningConfig=yEa)}var zEa=le.inlinePlaybackConfig;zEa&&(a.R1=!!zEa.showAudioControls);var GR=le.embeddedPlayerConfig;if(GR){a.embeddedPlayerConfig=GR;var d9=GR.embeddedPlayerMode;if(d9){var AEa=a.U();AEa.Ga=d9; AEa.C=d9==="EMBEDDED_PLAYER_MODE_PFL"}var BEa=GR.permissions;BEa&&(a.allowImaMonetization=!!BEa.allowImaMonetization)}var CEa=le.ssapConfig;CEa&&(a.o2=CEa.ssapPrerollEnabled||!1);var HR=le.webPlayerConfig;HR&&(HR.gatewayExperimentGroup&&(a.gatewayExperimentGroup=HR.gatewayExperimentGroup),HR.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var Kk=a.playerResponse.streamingData;if(Kk){var DEa=Kk.adaptiveFormats;if(DEa){var EEa=Kk.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&EEa)for(var FEa= g.w(DEa),e9=FEa.next();!e9.done;e9=FEa.next()){var IR=e9.value;!IR.url&&IR.distinctParams&&(IR.url=EEa+"&"+IR.distinctParams)}}var f9=Kk.formats;if(f9){for(var OG=[],GEa=g.w(f9),g9=GEa.next();!g9.done;g9=GEa.next()){var h9=g9.value;OG.push(h9.itag+"/"+h9.width+"x"+h9.height)}a.ZD=OG.join(",");OG=[];for(var HEa=g.w(f9),i9=HEa.next();!i9.done;i9=HEa.next()){var PG=i9.value,QG={itag:PG.itag,type:PG.mimeType,quality:PG.quality},IEa=PG.url;IEa&&(QG.url=IEa);var JR=wL(PG),meb=JR.tE,neb=JR.QH,oeb=JR.s;JR.aZ&& (QG.url=meb,QG.sp=neb,QG.s=oeb);OG.push(g.Gi(QG))}a.Uf=OG.join(",")}var j9=Kk.hlsFormats;if(j9){var JEa=le||null,KR={};if(JEa){var k9=JEa.audioPairingConfig;if(k9&&k9.pairs)for(var KEa=g.w(k9.pairs),l9=KEa.next();!l9.done;l9=KEa.next()){var LEa=l9.value,m9=LEa.videoItag;KR[m9]||(KR[m9]=[]);KR[m9].push(LEa.audioItag)}}for(var MEa={},NEa=g.w(j9),n9=NEa.next();!n9.done;n9=NEa.next()){var OEa=n9.value;MEa[OEa.itag]=OEa.bitrate}for(var PEa=[],QEa=g.w(j9),o9=QEa.next();!o9.done;o9=QEa.next()){var Th=o9.value, im={itag:Th.itag,type:Th.mimeType,url:Th.url,bitrate:Th.bitrate,width:Th.width,height:Th.height,fps:Th.fps},LR=Th.audioTrack;if(LR){var REa=LR.displayName;REa&&(im.name=REa,im.audio_track_id=LR.id,LR.audioIsDefault&&(im.is_default="1"))}if(Th.drmFamilies){for(var SEa=[],TEa=g.w(Th.drmFamilies),p9=TEa.next();!p9.done;p9=TEa.next())SEa.push(hN[p9.value]);im.drm_families=SEa.join(",")}var MR=KR[Th.itag];if(MR&&MR.length){im.audio_itag=MR.join(",");var UEa=MEa[MR[0]];UEa&&(im.bitrate+=UEa)}var VEa=KHa(Th); VEa&&(im.eotf=VEa);Th.audioChannels&&(im.audio_channels=Th.audioChannels);PEa.push(g.Gi(im))}a.hlsFormats=PEa.join(",")}var q9=Kk.licenseInfos;if(q9&&q9.length>0){for(var WEa={},XEa=g.w(q9),r9=XEa.next();!r9.done;r9=XEa.next()){var YEa=r9.value,ZEa=YEa.drmFamily,$Ea=YEa.url;ZEa&&$Ea&&(WEa[hN[ZEa]]=$Ea)}a.oe=WEa}var aFa=Kk.drmParams;aFa&&(a.drmParams=aFa);var bFa=Kk.dashManifestUrl;bFa&&(a.Wc=g.Hi(bFa,{cpn:a.clientPlaybackNonce}));var cFa=Kk.hlsManifestUrl;cFa&&(a.hlsvp=cFa);var dFa=Kk.probeUrl;dFa&& (a.probeUrl=JC(g.Hi(dFa,{cpn:a.clientPlaybackNonce})));var eFa=Kk.serverAbrStreamingUrl;eFa&&(a.fm=new g.qL(eFa,!0))}var fFa=a.playerResponse.trackingParams;fFa&&(a.Ma=fFa);var $c=a.playerResponse.videoDetails;if($c){var jm=b,s9=$c.videoId;s9&&(a.videoId=s9,jm.video_id||(jm.video_id=s9));var gFa=$c.channelId;gFa&&(a.N.uid=gFa.substr(2));var t9=$c.title;t9&&(a.title=t9,jm.title||(jm.title=t9));var u9=$c.lengthSeconds;u9&&(a.lengthSeconds=Number(u9),jm.length_seconds||(jm.length_seconds=u9));var hFa= $c.keywords;hFa&&(a.keywords=LKa(hFa));var v9=$c.channelId;v9&&(a.Xl=v9,jm.ucid||(jm.ucid=v9));var iFa=$c.viewCount;iFa&&(a.rawViewCount=Number(iFa));var w9=$c.author;w9&&(a.author=w9,jm.author||(jm.author=w9));var jFa=$c.shortDescription;jFa&&(a.shortDescription=jFa);var kFa=$c.isCrawlable;kFa&&(a.isListed=kFa);var lFa=$c.musicVideoType;lFa&&(a.musicVideoType=lFa);var x9=$c.isLive;x9!=null&&(a.isLivePlayback=x9);if(x9||$c.isUpcoming)a.isPremiere=!$c.isLiveContent;var mFa=$c.thumbnail;mFa&&(a.Z=fP(mFa)); var nFa=$c.isExternallyHostedPodcast;nFa&&(a.isExternallyHostedPodcast=nFa);var y9=$c.viewerLivestreamJoinPosition;if(y9==null?0:y9.utcTimeMillis)a.OC=Vd(y9.utcTimeMillis);var oFa=le||null,z9=b;$c.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);$c.isUpcoming&&(a.isUpcoming=!0);if($c.isPostLiveDvr){a.Wd=!0;var pFa=$c.latencyClass;pFa&&(a.latencyClass=TKa[pFa]||"UNKNOWN");$c.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var A9=!1;if(a.yb)a.allowLiveDvr=VN()?!0:Kr&&KP<5?!1:!0,a.isLivePlayback= !0;else if($c.isLive){z9.livestream="1";a.allowLiveDvr=$c.isLiveDvrEnabled?VN()?!0:Kr&&KP<5?!1:!0:!1;a.Va=27;$c.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var rFa=$c.latencyClass;rFa&&(a.latencyClass=TKa[rFa]||"UNKNOWN");var sFa=$c.liveChunkReadahead;sFa&&(a.liveChunkReadahead=sFa);var iz=oFa&&oFa.livePlayerConfig;if(iz){iz.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);iz.hasSubfragmentedWebm&&(a.DF=!0);iz.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var tFa=iz.liveExperimentalContentId; tFa&&(a.liveExperimentalContentId=Number(tFa));var uFa=iz.isLiveHeadPlayable;a.L("html5_live_head_playable")&&uFa!=null&&(a.isLiveHeadPlayable=uFa)}A9=!0}else $c.isUpcoming&&(A9=!0);A9&&(a.isLivePlayback=!0,z9.adformat&&z9.adformat.split("_")[1]!=="8"||a.Ga.push("heartbeat"),a.Uq=!0)}var vFa=$c.isPrivate;vFa!==void 0&&(a.isPrivate=Qr(a.isPrivate,vFa))}if(Y){var wFa=$c||null,xFa=!1,jz=Y.errorScreen;xFa=jz&&(jz.playerLegacyDesktopYpcOfferRenderer||jz.playerLegacyDesktopYpcTrailerRenderer||jz.ypcTrailerRenderer)? !0:wFa&&wFa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Y.status);if(!xFa){a.errorCode=TJa(Y.errorCode)||"auth";var NR=jz&&jz.playerErrorMessageRenderer;if(NR){a.playerErrorMessageRenderer=NR;var yFa=NR.reason;yFa&&(a.errorReason=g.hx(yFa));var B9=NR.subreason;B9&&(a.Rn=g.hx(B9),a.yw=B9)}else a.errorReason=Y.reason||null;var C9=Y.status;if(C9==="LOGIN_REQUIRED")a.errorDetail="1";else if(C9==="CONTENT_CHECK_REQUIRED")a.errorDetail="2";else if(C9==="AGE_CHECK_REQUIRED"){var zFa= Y.errorScreen,AFa=zFa&&zFa.playerKavRenderer;a.errorDetail=AFa&&AFa.kavUrl?"4":"3"}else a.errorDetail=Y.isBlockedInRestrictedMode?"5":"0"}}var BFa=a.playerResponse.interstitialPods;BFa&&gKa(a,BFa);a.Xa&&a.eventId&&(a.Xa=Uq(a.Xa,{ei:a.eventId}));var D9=a.playerResponse.captions;if(D9&&D9.playerCaptionsTracklistRenderer)a:{var km=D9.playerCaptionsTracklistRenderer;a.captionTracks=[];if(km.captionTracks)for(var CFa=g.w(km.captionTracks),E9=CFa.next();!E9.done;E9=CFa.next()){var lm=E9.value,DFa=IKa(lm.baseUrl); if(!DFa)break a;var F9={is_translateable:!!lm.isTranslatable,languageCode:lm.languageCode,languageName:lm.name&&g.hx(lm.name),url:DFa,vss_id:lm.vssId,kind:lm.kind};F9.name=lm.trackName;F9.displayName=lm.name&&g.hx(lm.name);a.captionTracks.push(new g.aP(F9))}a.GD=km.audioTracks||[];a.H_=km.defaultAudioTrackIndex||0;a.hw=[];if(km.translationLanguages)for(var EFa=g.w(km.translationLanguages),G9=EFa.next();!G9.done;G9=EFa.next()){var kz=G9.value,ou={};ou.languageCode=kz.languageCode;ou.languageName=g.hx(kz.languageName); if(kz.translationSourceTrackIndices){ou.translationSourceTrackIndices=[];for(var FFa=g.w(kz.translationSourceTrackIndices),H9=FFa.next();!H9.done;H9=FFa.next())ou.translationSourceTrackIndices.push(H9.value)}if(kz.excludeAudioTrackIndices){ou.excludeAudioTrackIndices=[];for(var GFa=g.w(kz.excludeAudioTrackIndices),I9=GFa.next();!I9.done;I9=GFa.next())ou.excludeAudioTrackIndices.push(I9.value)}a.hw.push(ou)}a.ID=[];if(km.defaultTranslationSourceTrackIndices)for(var HFa=g.w(km.defaultTranslationSourceTrackIndices), J9=HFa.next();!J9.done;J9=HFa.next())a.ID.push(J9.value);a.gw=!!km.contribute&&!!km.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&a.clipConfig.startTimeMs!=null&&(a.ZC=Number(a.clipConfig.startTimeMs)*.001);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&iKa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var IFa; a.compositeLiveIngestionOffsetToken=(IFa=a.playerResponse.playbackTracking)==null?void 0:IFa.compositeLiveIngestionOffsetToken;var JFa;a.compositeLiveStatusToken=(JFa=a.playerResponse.playbackTracking)==null?void 0:JFa.compositeLiveStatusToken}HP(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var KFa=b.hlsdvr;KFa!=null&&(a.allowLiveDvr=KFa=="1"?VN()?!0:Kr&&KP<5?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Tv||(a.Tv=b.encoded_ad_safety_reason||null);a.pX=b.agcid||null;a.dD=b.ad_id||null;a.hD=b.ad_sys|| null;a.WD=b.encoded_ad_playback_context||null;a.bl=Qr(a.bl,b.infringe||b.muted);a.xfa=b.authkey;a.Hda=b.authuser;a.mutedAutoplay=Qr(a.mutedAutoplay,b&&b.playmuted);a.HD=Qr(a.HD,b&&b.mutedautoplay);var OR=b.length_seconds;OR&&(a.lengthSeconds=typeof OR==="string"?Vd(OR):OR);if(a.isAd()||a.An||!g.Xr(g.zO(a.Da)))a.endSeconds=Sr(a.endSeconds,a.VC||b.end||b.endSeconds);else{var PR=a.lengthSeconds;switch(g.zO(a.Da)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":PR>30?a.limitedPlaybackDurationInSeconds= 30:PR<30&&PR>10&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=PR*.2}}a.Ma=Tr(a.Ma,b.itct);a.ZE=Qr(a.ZE,b.noiba);a.VF=Qr(a.VF,b.is_live_destination);a.isLivePlayback=Qr(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Vb();b.isUpcoming&&(a.isUpcoming=Qr(a.isUpcoming,b.isUpcoming));a.Wd=Qr(a.Wd,b.post_live_playback);a.Ka&&(a.Wd=!1);a.isMdxPlayback=Qr(a.isMdxPlayback,b.mdx); var QR=b.mdx_control_mode;QR&&(a.mdxControlMode=typeof QR==="number"?QR:Vd(QR));a.isInlinePlaybackNoAd=Qr(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.yc=Sr(a.yc,b.reload_count);a.reloadReason=Tr(a.reloadReason,b.reload_reason);a.gm=Qr(a.gm,b.show_content_thumbnail);a.sG=Qr(a.sG,b.utpsa);a.LD=Qr(a.LD,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.ND=b.tkn||null;var LFa=eP(b);Object.keys(LFa).length>0&&(a.Z=LFa);a.ra=Tr(a.ra,b.vvt);a.mdxEnvironment=Tr(a.mdxEnvironment,b.mdx_environment); b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);b.serialized_mdx_metadata&&(a.serializedMdxMetadata=b.serialized_mdx_metadata);a.s4=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Tr(a.playlistId,b.list);b.index&&(a.playlistIndex=a.playlistIndex===void 0?Sr(0,b.index):Sr(a.playlistIndex,b.index));a.xW=b.pyv_view_beacon_url;a.DW=b.pyv_quartile25_beacon_url;a.FW=b.pyv_quartile50_beacon_url;a.HW=b.pyv_quartile75_beacon_url;a.zW= b.pyv_quartile100_beacon_url;var MFa=b.session_data;!a.SW&&MFa&&(a.SW=Oq(MFa,"&").feature);a.isFling=Sr(a.isFling?1:0,b.is_fling)==1;a.vnd=Sr(a.vnd,b.vnd);a.forceAdsUrl=Tr(a.forceAdsUrl,b.force_ads_url);a.mj=Tr(a.mj,b.ctrl);a.Rj=Tr(a.Rj,b.ytr);a.Pw=b.ytrcc;a.qX=b.ytrexp;a.DD=b.ytrext;a.wc=Tr(a.wc,b.adformat);a.GC=Tr(a.GC,b.attrib);a.slotPosition=Sr(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.aq=Qr(a.aq,b.ssrt);a.videoId=Vr(b)||a.videoId;a.K=Tr(a.K,b.vss_credentials_token);a.yn=Tr(a.yn,b.vss_credentials_token_type); a.Nj=Qr(a.Nj,b.audio_only);a.ZN=Qr(a.ZN,b.aac_high);a.YC=Qr(a.YC,b.prefer_low_quality_audio);a.TD=Qr(a.TD,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.Cp=a.Cp.concat(b.qoe_cat.split(","))):a.yh=Tr(a.yh,b.qoe_cat);a.Cn=Qr(a.Cn,b.download_media);var NFa=b.prefer_gapless;var peb=NFa!=null?Qr(a.Y,NFa):a.Y?a.Y:a.Da.preferGapless&&a.Da.supportsGaplessShorts();a.Y=peb;FAa(a.playerResponse)&&(a.adModule=!0,a.Ga.push("ad"));var OFa=b.adaptive_fmts;OFa&&(a.adaptiveFormats=OFa,a.oa("adpfmts", {},!0));var PFa=b.allow_embed;PFa&&(a.allowEmbed=PFa=="1");var QFa=b.backgroundable;QFa&&(a.backgroundable=QFa=="1");var RFa=b.autonav;RFa&&(a.isAutonav=RFa=="1");var K9=b.autoplay;K9&&(a.Mq=K9=="1",a.Qk=K9=="1");var SFa=b.iv_load_policy;SFa&&(a.annotationsLoadPolicy=Rr(a.annotationsLoadPolicy,SFa,AO));var TFa=b.cc_lang_pref;TFa&&(a.captionsLanguagePreference=Tr(TFa,a.captionsLanguagePreference));var UFa=b.cc_load_policy;UFa&&(a.WC=Rr(a.WC,UFa,AO));var VFa;a.deviceCaptionsOn=(VFa=b.device_captions_on)!= null?VFa:void 0;var WFa;a.S_=(WFa=b.device_captions_lang_pref)!=null?WFa:"";var XFa;a.YN=(XFa=b.viewer_selected_caption_langs)!=null?XFa:[];if(!a.L("html5_enable_ssap_entity_id")){var YFa=b.cached_load;YFa&&(a.Ip=Qr(a.Ip,YFa))}b.dash=="0"&&(a.OD=!0);var ZFa=b.dashmpd;ZFa&&(a.Wc=g.Hi(ZFa,{cpn:a.clientPlaybackNonce}));var $Fa=b.delay;$Fa&&(a.Kb=Vd($Fa));var aGa=a.VC||b.end;aGa!=void 0&&(a.clipEnd=Sr(a.clipEnd,aGa));var bGa=b.fmt_list;bGa&&(a.ZD=bGa);b.heartbeat_preroll&&a.Ga.push("heartbeat");a.zn= -Math.floor(Math.random()*10);a.Ov=-Math.floor(Math.random()*40);var cGa=b.is_listed;cGa&&(a.isListed=Qr(a.isListed,cGa));var dGa=b.is_private;dGa&&(a.isPrivate=Qr(a.isPrivate,dGa));var eGa=b.is_dni;eGa&&(a.Gf=Qr(a.Gf,eGa));var fGa=b.dni_color;fGa&&(a.Sp=Tr(a.Sp,fGa));var gGa=b.pipable;gGa&&(a.pipable=Qr(a.pipable,gGa));a.KX=a.pipable&&a.Da.Xq;a.PY=a.KX&&!a.Da.showMiniplayerButton;var hGa=b.paid_content_overlay_duration_ms;hGa&&(a.paidContentOverlayDurationMs=Vd(hGa));var iGa=b.paid_content_overlay_text; iGa&&(a.paidContentOverlayText=iGa);var jGa=b.url_encoded_fmt_stream_map;jGa&&(a.Uf=jGa);var kGa=b.hls_formats;kGa&&(a.hlsFormats=kGa);var lGa=b.hlsvp;lGa&&(a.hlsvp=lGa);var RR=b.live_start_walltime;RR&&(a.sI=typeof RR==="number"?RR:Vd(RR));var SR=b.live_manifest_duration;SR&&(a.dk=typeof SR==="number"?SR:Vd(SR));var mGa=b.player_params;mGa&&(a.playerParams=mGa);var nGa=b.partnerid;nGa&&(a.Va=Sr(a.Va,nGa));var oGa=b.probe_url;oGa&&(a.probeUrl=JC(g.Hi(oGa,{cpn:a.clientPlaybackNonce})));var L9=b.pyv_billable_url; L9&&gva(L9)&&(a.Fj=L9);var M9=b.pyv_conv_url;M9&&gva(M9)&&(a.yW=M9);MKa(a,b);a.startSeconds>0||(a.startSeconds=Sr(a.startSeconds,a.ZC||a.cE||b.start||b.startSeconds),a.Ob=a.startSeconds);if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var pGa=b.live_utc_start;if(pGa!=null)a.liveUtcStartSeconds=Number(pGa);else{var N9=a.startSeconds;N9&&isFinite(N9)&&N9>1E9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var qGa=b.utc_start_millis;qGa&&(a.liveUtcStartSeconds= Number(qGa)*.001)}var rGa=b.stream_time_start_millis;rGa&&(a.ge=Number(rGa)*.001);var sGa=a.cE||b.start;sGa==void 0||b.resume=="1"||a.isLivePlayback||(a.clipStart=Sr(a.clipStart,sGa));var tGa=b.url_encoded_third_party_media;tGa&&(a.pm=Rq(tGa));var O9=b.ypc_offer_button_formatted_text;if(O9){var uGa=JSON.parse(O9);a.aO=uGa!=null?uGa:null;a.A1=O9}var vGa=b.ypc_offer_button_text;vGa&&(a.jz=vGa);var wGa=b.ypc_offer_description;wGa&&(a.Xq=wGa);var xGa=b.ypc_offer_headline;xGa&&(a.kz=xGa);var yGa=b.ypc_full_video_message; yGa&&(a.zq=yGa);var zGa=b.ypc_offer_id;zGa&&(a.tm=zGa);var AGa=b.ypc_buy_url;AGa&&(a.PC=AGa);var BGa=b.ypc_item_thumbnail;BGa&&(a.QC=BGa);var CGa=b.ypc_item_title;CGa&&(a.Gq=CGa);var DGa=b.ypc_item_url;DGa&&(a.RC=DGa);var EGa=b.ypc_vid;EGa&&(a.Mv=EGa);b.ypc_overlay_timeout&&(a.er=Number(b.ypc_overlay_timeout));var FGa=b.ypc_trailer_player_vars;FGa&&(a.wm=Qq(FGa));var GGa=b.ypc_original_itct;GGa&&(a.F4=GGa);a.Xl=Tr(a.Xl,b.ucid);b.baseUrl&&(a.N.baseUrl=b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid= b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=b.engaged);b.subscribed&&(a.N.subscribed=b.subscribed);a.N.focEnabled=Qr(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=Qr(a.N.rmktEnabled,b.rmktEnabled);a.oB=b.storyboard_spec||null;a.Aw=b.live_storyboard_spec||null;a.PU=b.iv_endscreen_url||null;a.dH=Qr(a.dH,b.iv3_module);a.Uq=Qr(a.Uq,b.ypc_license_checker_module);a.Oj=Qr(a.Oj,b.ypc_module);a.Gi=Qr(a.Gi,b.ypc_clickwrap_module);a.Oj&&a.Ga.push("ypc");a.Gi&&a.Ga.push("ypc_clickwrap"); a.oW={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};HKa(a,b);var HGa=b.cotn; HGa&&(a.cotn=HGa);if(UKa(a))LP(a)&&(a.isLivePlayback&&a.Wc&&(a.Aj=!0),a.fb&&(a.xp=!0));else if(VKa(a))a.Aj=!0;else{var KGa,LGa,MGa=((KGa=a.playerResponse)==null?void 0:(LGa=KGa.streamingData)==null?void 0:LGa.adaptiveFormats)||[];if(MGa.length>0)var SG=WKa(a,MGa);else{var OGa=a.adaptiveFormats;if(OGa&&!LP(a)){MP(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(tN=!0);var lz=NP(OGa),P9=a.oe,PGa=a.lengthSeconds,qeb=a.isLivePlayback,TG=a.Wd,mz=a.Da,reb=$Ha(lz);if(qeb||TG){var Fj=new fN("",mz==null? void 0:mz.experiments,!0);Fj.Vb=!0;Fj.isManifestless=!0;Fj.B=!TG;Fj.isLive=!TG;Fj.Wd=TG;for(var QGa=g.w(lz),Q9=QGa.next();!Q9.done;Q9=QGa.next()){var nz=Q9.value,RGa=jN(nz,P9),pu=kN(nz.url,nz.sp,nz.s),SGa=pu.get("id");SGa&&SGa.includes("%7E")&&(Fj.qa=!0);var seb=Number(nz.target_duration_sec)||5,teb=Number(nz.max_dvr_duration_sec)||14400,TGa=Number(pu.get("mindsq")||pu.get("min_sq")||"0"),UGa=Number(pu.get("maxdsq")||pu.get("max_sq")||"0")||Infinity;Fj.gf=Fj.gf||TGa;Fj.zi=Fj.zi||UGa;var ueb=!CE(RGa.mimeType); pu&&cN(Fj,new PM(pu,RGa,{Vj:seb,Jn:ueb,Cr:teb,gf:TGa,zi:UGa,lB:300,Wd:TG}))}var VGa=Fj}else{if(reb==="FORMAT_STREAM_TYPE_OTF"){var UR=PGa;UR=UR===void 0?0:UR;var oz=new fN("",mz==null?void 0:mz.experiments,!1);oz.duration=UR||0;for(var WGa=g.w(lz),R9=WGa.next();!R9.done;R9=WGa.next()){var pz=R9.value,S9=jN(pz,P9,oz.duration),T9=kN(pz.url,pz.sp,pz.s);if(T9)if(S9.streamType==="FORMAT_STREAM_TYPE_OTF")cN(oz,new QM(T9,S9,"sq/0"));else{var veb=uM(pz.init),web=uM(pz.index);cN(oz,new $M(T9,S9,veb,web))}}oz.isOtf= !0;var XGa=oz}else{var VR=PGa;VR=VR===void 0?0:VR;var WR=new fN("",mz==null?void 0:mz.experiments,!1);WR.duration=VR||0;for(var YGa=g.w(lz),U9=YGa.next();!U9.done;U9=YGa.next()){var qz=U9.value,xeb=jN(qz,P9,WR.duration),yeb=uM(qz.init),zeb=uM(qz.index),ZGa=kN(qz.url,qz.sp,qz.s);ZGa&&cN(WR,new $M(ZGa,xeb,yeb,zeb))}XGa=WR}VGa=XGa}var V9=VGa;if(lz.length>0){var $Ga=lz[0];if(a.U().playerStyle==="hangouts-meet"&&$Ga.url){var Aeb=g.Sq($Ga.url);a.jq=a.jq||Number(Aeb.expire)}}var Beb=a.isLivePlayback&&!a.Wd&& !a.Ka&&!a.isPremiere;a.L("html5_live_head_playable")&&(!OP(a)&&Beb&&a.oa("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(V9.fb=!0));V9.Xa=PP(a);SG=V9}else SG=null;a.oa("pafmts",{isManifestFilled:!!SG})}if(SG){QP(a,SG);var aHa=!0}else aHa=!1;aHa?a.enableServerStitchedDai=a.enableServerStitchedDai&&RP(a):!a.Wc||a.Da.qa==="yt"&&a.Vb()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")||(a.Aj=!0)}var X9=b.adpings;X9&&(a.Sv=X9?Qq(X9):null);var bHa=b.feature;bHa&&(a.Dp=bHa); var cHa=b.referrer;cHa&&(a.referrer=cHa);a.clientScreenNonce=Tr(a.clientScreenNonce,b.csn);a.uH=Sr(a.uH,b.root_ve_type);a.yp=Sr(a.yp,b.kids_age_up_mode);b.kids_app_info!=void 0&&(a.kidsAppInfo=b.kids_app_info);a.KB=Qr(a.KB,b.upg_content_filter_mode);a.unpluggedFilterModeType=Sr(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var dHa=b.unplugged_location_info;dHa&&(a.qa=dHa);var eHa=b.unplugged_partner_opt_out;eHa&&(a.bD=Tr("",eHa));a.pw=Qr(a.pw,b.disable_watch_next);a.Fn=Tr(a.Fn,b.internal_ip_override); a.UF=!!b.is_yto_interstitial;(a.interstitials.length||a.UF)&&a.Ga.push("yto");var fHa=b.Vm;fHa&&(a.Vm=fHa);b.GM&&(a.GM=b.GM);var gHa;a.Ya=(gHa=b.csi_timer)!=null?gHa:"";a.En=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var qu=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&qu&&VJa(a,qu);if(qu==null?0:qu.ustreamerConfig)a.pp=$N(qu.ustreamerConfig);var hHa,iHa,jHa=qu==null?void 0:(hHa=qu.loggingContext)==null?void 0:(iHa=hHa.qoeLoggingContext)==null?void 0:iHa.serializedContextData; jHa&&(a.C4=jHa);g.qO(a.Da)&&a.Da.Zl&&(a.embedsRct=Tr(a.embedsRct,b.rct),a.embedsRctn=Tr(a.embedsRctn,b.rctn));a.Yl=a.Yl||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)}; KKa=function(a,b,c){var d,e=(d=b.cpnInfo)==null?void 0:d.cpn;a.playerResponseCpn=e!=null?e:"";g.SP(a)&&!e&&a.Fy("ssei","eim_"+a.clientPlaybackNonce);var f;return((f=b.cacheMetadata)==null?0:f.isCacheHit)||a.Ip||!e?"":(TP.has(e)?c="":(b=XKa.push(e),TP.add(e),b>(c!=null?c:50)&&(c=XKa.shift())&&TP.delete(c),c=e),e!==c&&a.Fy("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)}; HP=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.Wa=c;var e=a.Wa.playerCueRangeSet;e&&g.JP(a,e);var f=a.Wa.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.Q(l,YKa),a.L("web_player_autonav_use_server_provided_state")&&UP(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.hx(p.title)),p.subtitle&&(b.subtitle=g.hx(p.subtitle)))}g.wO(a.Da)&&(a.Je=!!h.addToMenu);ZKa(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.qfa=g.Q(q,$Ka));var r,t,u,y=g.Q((r=a.getWatchNextResponse())==null?void 0: (t=r.playerOverlays)==null?void 0:(u=t.playerOverlayRenderer)==null?void 0:u.infoPanel,aLa);if(y){a.bE=Number(y==null?void 0:y.durationMs)||NaN;if(y==null?0:y.infoPanelOverviewViewModel)a.Qf=y==null?void 0:y.infoPanelOverviewViewModel;if(y==null?0:y.infoPanelDetailsViewModel)a.bk=y==null?void 0:y.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,D,F=(A=a.getWatchNextResponse())==null?void 0:(D=A.contents)==null?void 0:D.twoColumnWatchNextResults;if(F){var H=F.desktopOverlay&& g.Q(F.desktopOverlay,bLa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.Je=!1))}n&&cLa(a,b,n);var M=Sr(0,b.autoplay_count),N=a.getWatchNextResponse(),S,ba=(S=N.contents)==null?void 0:S.twoColumnWatchNextResults,ha,na,Y,R=(ha=N.playerOverlays)==null?void 0:(na=ha.playerOverlayRenderer)==null?void 0:(Y=na.autoplay)==null?void 0:Y.playerOverlayAutoplayRenderer,W=kKa(a),v,V=(v=N.contents)==null?void 0:v.singleColumnWatchNextResults;if(V){var cb;if(((cb=V.autoplay)== null?0:cb.autoplay)&&!V.playlist){var Ab=V.autoplay.autoplay.sets,Va={},fb=new g.lP(a.U()),bb=null,pb;if(Ab){for(var $a=g.w(Ab),B=$a.next();!B.done;B=$a.next()){var C=B.value.autoplayVideoRenderer;if(C&&C.compactVideoRenderer){bb=C.compactVideoRenderer;break}}if(pb=Ab[0].autoplayVideo){var E=pb.clickTrackingParams;E&&(Va.itct=E);Va.autonav="1";Va.playnext=String(M)}}else Va.feature="related-auto";var I=g.Q(pb,g.VP);if(bb){fb.videoId=bb.videoId;var L=bb.shortBylineText;L&&(fb.author=g.hx(L));var X= bb.title;X&&(fb.title=g.hx(X))}else I!=null&&I.videoId&&(fb.videoId=I.videoId);fb.QE=Va;a.suggestions=[];a.Vv=fb}}if(W){for(var fa=[],ca=g.w(W),K=ca.next();!K.done;K=ca.next()){var la=K.value,qa=void 0,ka=null;if(la.endScreenVideoRenderer){var Ha=la.endScreenVideoRenderer,lb=Ha.title;ka=new g.lP(a.U());ka.videoId=Ha.videoId;ka.lengthSeconds=Ha.lengthInSeconds||0;var Pb=Ha.publishedTimeText;Pb&&(ka.publishedTimeText=g.hx(Pb));var qc=Ha.shortBylineText;qc&&(ka.author=g.hx(qc));var Pa=Ha.shortViewCountText; Pa&&(ka.shortViewCount=g.hx(Pa));if(lb){ka.title=g.hx(lb);var Nc=lb.accessibility;if(Nc){var ke=Nc.accessibilityData;ke&&ke.label&&(ka.ariaLabel=ke.label)}}var Jd=Ha.navigationEndpoint;if(Jd){qa=Jd.clickTrackingParams;var Kg=g.Q(Jd,g.VP),ig=g.Q(Jd,g.Bx);Kg?ka.RE=Kg:ig!=null&&(ka.watchUrl=ig.url)}var Qh=Ha.thumbnailOverlays;if(Qh)for(var Oc=g.w(Qh),Rh=Oc.next();!Rh.done;Rh=Oc.next()){var uh=Rh.value.thumbnailOverlayTimeStatusRenderer;if(uh)if(uh.style==="LIVE"){ka.isLivePlayback=!0;break}else if(uh.style=== "UPCOMING"){ka.isUpcoming=!0;break}}ka.Z=fP(Ha.thumbnail)}else if(la.endScreenPlaylistRenderer){var jg=la.endScreenPlaylistRenderer,vh=jg.navigationEndpoint;if(!vh)continue;var gd=g.Q(vh,g.VP);if(!gd)continue;var Dj=gd.videoId;ka=new g.kP(a.U());ka.playlistId=jg.playlistId;ka.playlistLength=Number(jg.videoCount)||0;ka.j=Dj||null;ka.videoId=Dj;var Hk=jg.title;Hk&&(ka.title=g.hx(Hk));var Ik=jg.shortBylineText;Ik&&(ka.author=g.hx(Ik));qa=vh.clickTrackingParams;ka.Z=fP(jg.thumbnail)}ka&&(qa&&(ka.sessionData= {itct:qa}),fa.push(ka))}a.suggestions=fa}if(R){a.pW=!!R.preferImmediateRedirect;a.Tf=a.Tf||!!R.webShowNewAutonavCountdown;a.hm=a.hm||!!R.webShowBigThumbnailEndscreen;if(a.Tf||a.hm){var Ej=ba||null,Zc=new g.lP(a.U());Zc.videoId=R.videoId;var Sh=R.videoTitle;if(Sh){Zc.title=g.hx(Sh);var ic=Sh.accessibility;if(ic){var to=ic.accessibilityData;to&&to.label&&(Zc.ariaLabel=to.label)}}var Jq=R.byline;Jq&&(Zc.author=g.hx(Jq));var rc=R.publishedTimeText;rc&&(Zc.publishedTimeText=g.hx(rc));var pG=R.shortViewCountText; pG&&(Zc.shortViewCount=g.hx(pG));var qG=R.thumbnailOverlays;if(qG)for(var rG=g.w(qG),Yy=rG.next();!Yy.done;Yy=rG.next()){var gm=Yy.value.thumbnailOverlayTimeStatusRenderer;if(gm)if(gm.style==="LIVE"){Zc.isLivePlayback=!0;break}else if(gm.style==="UPCOMING"){Zc.isUpcoming=!0;break}else if(gm.style==="DEFAULT"&&gm.text){Zc.lengthText=g.hx(gm.text);var sG=gm.text.accessibility;if(sG){var hu=sG.accessibilityData;hu&&hu.label&&(Zc.Mx=hu.label||"")}break}}Zc.Z=fP(R.background);var tG=R.nextButton;if(tG){var uG= tG.buttonRenderer;if(uG){var vG=uG.navigationEndpoint;if(vG){var iu=g.Q(vG,g.VP);iu&&(Zc.RE=iu)}}}if(R.topBadges){var wG=R.topBadges[0];if(wG){var Ei=g.Q(wG,dLa);Ei&&Ei.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Zc.GM=!0)}}var ju=R.alternativeTitle;ju&&(Zc.Dt=g.hx(ju));var Kq={autonav:"1",playnext:String(M)};Zc.playlistId&&(Kq.autoplay="1");if(Ej){var yR,xG,zR,Zy,yG=(yR=Ej.autoplay)==null?void 0:(xG=yR.autoplay)==null?void 0:(zR=xG.sets)==null?void 0:(Zy=zR[0])==null?void 0:Zy.autoplayVideo;if(yG){var AR= yG.clickTrackingParams;AR&&(Kq.itct=AR);var Lg=g.Q(yG,g.VP);Lg&&(Zc.ZW=Lg)}}else if(R){var $y,zG,AG,BG=($y=R.nextButton)==null?void 0:(zG=$y.buttonRenderer)==null?void 0:(AG=zG.navigationEndpoint)==null?void 0:AG.clickTrackingParams;BG&&(Kq.itct=BG)}Kq.itct||(Kq.feature="related-auto");Zc.QE=Kq;a.suggestions||(a.suggestions=[]);a.Vv=Zc}R.countDownSecs!=null&&(a.PZ=R.countDownSecs*1E3);R.countDownSecsForFullscreen!=null&&(a.ED=R.countDownSecsForFullscreen>=0?R.countDownSecsForFullscreen*1E3:-1);if(a.L("web_player_autonav_next_button_renderer")){var az; a.i4=(az=R.nextButton)==null?void 0:az.buttonRenderer}var CG;a.yfa=(CG=R.cancelButton)==null?void 0:CG.buttonRenderer;a.L("web_autonav_color_transition")&&R.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.Q(R.watchToWatchTransitionRenderer,eLa))}var bz=kKa(a);if(bz){var DG,EG,FG,GG=bz==null?void 0:(DG=bz[0])==null?void 0:(EG=DG.endScreenVideoRenderer)==null?void 0:(FG=EG.navigationEndpoint)==null?void 0:FG.clickTrackingParams,BR=g.WP(a);GG&&BR&&(BR.sessionData={itct:GG})}a.Wa.currentVideoThumbnail&& (a.Z=fP(a.Wa.currentVideoThumbnail));var HG,cz,IG,JG,uo,le=(HG=a.Wa)==null?void 0:(cz=HG.contents)==null?void 0:(IG=cz.twoColumnWatchNextResults)==null?void 0:(JG=IG.results)==null?void 0:(uo=JG.results)==null?void 0:uo.contents;if(le&&le[1]){var vo,dz,ez,fz,Lq=(vo=le[1].videoSecondaryInfoRenderer)==null?void 0:(dz=vo.owner)==null?void 0:(ez=dz.videoOwnerRenderer)==null?void 0:(fz=ez.thumbnail)==null?void 0:fz.thumbnails;Lq&&Lq.length&&(a.profilePicture=Lq[Lq.length-1].url)}var CR=Vr(b),hm,KG=(hm= a.getWatchNextResponse())==null?void 0:hm.onResponseReceivedEndpoints;if(KG)for(var LG=g.w(KG),gz=LG.next();!gz.done;gz=LG.next()){var Jk=gz.value;g.Q(Jk,XP)&&(a.QU=g.Q(Jk,XP));var ku=g.Q(Jk,fLa),MG=void 0;if((MG=ku)==null?0:MG.entityKeys)a.Bw=ku.entityKeys||[],ku.visibleOnLoadKeys&&(a.visibleOnLoadKeys=ku.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var DR=g.YP.getState().entities,lu=g.mK("visibility_override","markersVisibilityOverrideEntity");var Mq=oK(DR,"markersVisibilityOverrideEntity", lu);a.kf=(Mq==null?void 0:Mq.videoId)===(a.videoId||CR)&&(Mq==null?0:Mq.visibilityOverrideMarkersKey)?Mq.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.x(a.kf))}}}; UP=function(a){var b;return((b=a.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0}; ZP=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)}; cQ=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&$P(a)&&(b=!1);var c=!!a.j&&a.j.Vb,d=a.Da,e=a.SQ(),f=aQ(a),h=a.ZN,l=b,m=a.isOtf();b=a.SI();var n=a.yb,p=a.Vf,q=bQ(a),r=new xIa(d);if(d.zc()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.Ma=h&&d.N;r.Vf=p;g.Br("windows nt 5.1")&&!g.GN&&(r.To=!0);if(f=e)f=g.OO(d)?vJa(d):!1;f&&(r.Aa=!0);l&&(r.To=!0,r.wc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.To=!0);d.playerStyle==="picasaweb"&&(m&&(r.To=!1),r.Fa=!1);n&&(r.To=!0);oL(d.G,pL.CHANNELS)&& (d.L("html5_enable_aac51")&&(r.ra=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Ka=!0));d.L("html5_block_8k_hfr")&&(r.Xa=!0);r.K=g.VB(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.VB(d.experiments,"html5_min_selectable_quality_ordinal");UN&&(r.Tb=480);if(c||e)r.Fa=!1;r.fb=!1;r.disableAv1=q;c=xN(d,r.j,void 0,r.disableAv1);c>0&&c<2160&&(QE()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+QE(),r.xj=c);c>=2160&& (r.Ga=!0);SBa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.yc=!1);r.SI=b;r.Va=g.Jt||Or()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");Er()&&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.Qv&&(r.qa=a.Qv),a.Pv&&(r.C=a.Pv));r.Ra=a.isLivePlayback&&a.ej()&&a.Da.L("html5_drm_live_audio_51");r.yb= a.QD;return a.lf=r}; bQ=function(a){return a.Da.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&$P(a)?!0:!1}; gLa=function(a){Kz("drm_pb_s",void 0,a.Ya);a.fb||a.j&&jL(a.j);var b={};a.j&&(b=$Ca(a.ow,cQ(a),a.Da.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set)); b=new MN(b,a.Da,a.aY,a.useCobaltWidevine?Er()?dQ(a):!1:!1,function(c,d){a.oa(c,d)}); g.P(a,b);a.xp=!1;a.loading=!0;HIa(b,function(c){Kz("drm_pb_f",void 0,a.Ya);for(var d=g.w(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.fb=a.fb;e.xw=a.xw;e.ww=a.ww;break;case "widevine":e.qm=a.qm}a.Bp=c;if(a.Bp.length>0&&(a.G=a.Bp[0],a.Da.zc())){c={};d=g.w(Object.entries(a.G.j));for(e=d.next();!e.done;e=d.next()){var f=g.w(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.oa("drmProbe",c)}GP(a)})}; WKa=function(a,b){if(b.length===0||LP(a))return null;MP(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(tN=!0);var c=a.oe;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Wd,h=a.Da,l=aIa(b);if(e||f){h=new fN("",h.experiments,!0);h.B=!f;h.Vb=!0;h.isManifestless=!0;h.isLive=!f;h.Wd=f;b=g.w(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=iN(m,c);e=wL(m);e=kN(e.tE||m.url||"",e.QH,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.qa=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400); var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.gf=h.gf||n;h.zi=h.zi||p;var q=!CE(d.mimeType);e&&cN(h,new PM(e,d,{Vj:l,Jn:q,Cr:m,gf:n,zi:p,lB:300,Wd:f}))}c=h}else if(l==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new fN("",h.experiments,!1);f.duration=d||0;h=g.w(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=iN(b,c,f.duration),e=wL(b),(e=kN(e.tE||b.url||"",e.QH,e.s))&&(d.streamType==="FORMAT_STREAM_TYPE_OTF"?cN(f,new QM(e,d,"sq/0")): cN(f,new $M(e,d,wM(b.initRange),wM(b.indexRange))));f.isOtf=!0;c=f}else{d=d===void 0?0:d;f=new fN("",h.experiments,!1);f.duration=d||0;h=g.w(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=iN(l,c,f.duration),d=wM(l.initRange),e=wM(l.indexRange),m=wL(l),(l=kN(m.tE||l.url||"",m.QH,m.s))&&cN(f,new $M(l,b,d,e));c=f}f=a.isLivePlayback&&!a.Wd&&!a.Ka&&!a.isPremiere;a.L("html5_live_head_playable")&&(!OP(a)&&f&&a.oa("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(c.fb=!0));c.Xa=PP(a);return c}; LP=function(a){return Er()?!dQ(a):Hr()?!(!a.fb||!a.L("html5_enable_safari_fairplay")):!1}; dQ=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.JP=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.FD.set(c.cueRangeSetIdentifier,(d=c.playerCueRanges)!=null?d:[])}}; RP=function(a){return!(!a.j||!a.j.isManifestless)}; eQ=function(a){return a.isLowLatencyLiveStream&&a.j!=void 0&&oN(a.j)>=5}; UKa=function(a){return Er()&&dQ(a)?!1:LP(a)&&g.gC(a.Da)&&!a.isLivePlayback||!VN()||a.OD?!0:!1}; iLa=function(a){a.loading=!0;a.Aj=!1;if(VKa(a))g.uKa(a.videoId).then(function(c){hLa(a,c)}).then(function(){GP(a)}); else{HC(a.Wc)||g.yw(new g.Hs("DASH MPD Origin invalid: ",a.Wc));var b=a.Wc;b=g.Hi(b,{mpd_version:g.VB(a.Da.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&a.latencyClass!="NORMAL"||(b=g.Hi(b,{pacing:0}));iIa(b,a.Da.experiments,a.isLivePlayback).then(function(c){a.La()||(QP(a,c,!0),Kz("mrc",void 0,a.Ya),GP(a))},function(c){a.La()||(a.loading=!1,a.publish("dataloaderror",new $D("manifest.net.retryexhausted",{backend:"manifest", rc:c.status},1)))}); Kz("mrs",void 0,a.Ya)}}; hLa=function(a,b){var c=b.map(function(m){return m.itag}),d; if((d=a.playerResponse)!=null&&d.streamingData){d=[];for(var e=g.w(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={bj:void 0},f=e.next())if(h.bj=f.value,a.L("html5_fix_multi_audio_offline_playback")){f=g.w(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.bj.itag&&l.xtags===h.bj.xtags&&(h.bj=Object.assign({},h.bj),h.bj.url=b.find(function(m){return function(n){return n.itag===m.bj.itag}}(h)).url,h.bj.signatureCipher="",d.push(h.bj))}else c.includes(h.bj.itag)&& (h.bj=Object.assign({},h.bj),h.bj.url=b.find(function(m){return function(n){return n.itag===m.bj.itag}}(h)).url,h.bj.signatureCipher="",d.push(h.bj)); b=WKa(a,d);aQ(a)&&mIa(b,!1);QP(a,b);a.oa("dlr",{})}else a.oa("offsdm",{cotn:a.tI?a.tI.cotn:"0",cpn:a.clientPlaybackNonce})}; fQ=function(a){if(!a.isProximaLatencyEligible)return!1;var b=KK(),c;return((c=a.Da.getWebPlayerContextConfig())==null?0:c.enableProximaLowLatency)&&a.L("html5_wpcc_proxima")?!0:b!=null?b===1:a.L("html5_enable_proxima")}; GP=function(a){a.La()||(a.loading=!1,a.publish("dataloaded"))}; QP=function(a,b,c){c=c===void 0?!1:c;a.j=b;g.P(a,b);b.gf=a.gf;b.zi=a.zi;b.Ra=a.Ra;b.Tb=a.Tb;b.Rc=a.Rc;a.fm&&(b.Y=new nM(a.fm));(a.SQ()||g.gQ(a))&&a.Ga.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");d.indexOf("manifest_duration")!=-1&&(a.dk=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.oa,a),c?b.subscribe("refresh",a.j0,a):b.subscribe("cuepointsadded",a.rX,a));jL(b)?a.xp=!0:ON=void 0;a.Ka&&(b.C=a.Ka,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere= a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable}; kLa=function(a,b){var c=b||UKa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.oa("skipDash",{dm:!!a.j,air:b,dd:a.OD,mss:VN(),"3pp":a.isExternallyHostedPodcast}),sr();aQ(a)&&mIa(a.j,a.isLivePlayback);MP(a,"html5_enable_cobalt_experimental_vp9_decoder")&&WIa(a.Da.G);return tr().then(function(){return bDa(a.ow,cQ(a),a.Da.G,a.j,a.G,function(d){return a.publish("ctmp","fmtflt",d)},a.UC,PP(a)&&a.L("html5_enable_server_format_filter")).then(function(d){jLa(a,d); a.ow.j=null;/^av/.test(a.clientPlaybackNonce)&&a.lf&&a.oa("av1",a.lf.j)})})}; lLa=function(a,b){if(b&&a.hlsvp)return sr();if(a.hlsFormats){b=NP(a.hlsFormats);var c;if(((c=a.lf)==null?0:c.B)&&b){c=[];for(var d=g.w(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.oa("hlsfmt",{itags:c.join(".")})}a.zw=JJa(a.Da,b);c=a.clientPlaybackNonce;var f,h,l,m;return OJa(a.Da,a.isAd(),b,(m=(f=a.playerResponse)==null?void 0:(h=f.captions)==null?void 0:(l=h.playerCaptionsRenderer)==null?void 0:l.baseUrl)!=null?m:null,a.Zd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p= 0,q=[],r=g.w(n),t=r.next();!t.done;t=r.next()){t=t.value; var u=void 0;q.push((u=t.getInfo())==null?void 0:u.itag);var y=u=void 0;((u=t.getInfo())==null?void 0:(y=u.audio)==null?void 0:y.numChannels)>p&&(p=t.getInfo().audio.numChannels)}p>2&&a.oa("hlschl",{mn:p});var A;((A=a.lf)==null?0:A.B)&&a.oa("hlsfmtaf",{itags:q.join(".")});var D;if(a.L("html5_enable_vp9_fairplay")&&((D=a.G)==null?0:EN(D)))for(a.oa("drm",{sbdlfbk:1}),p=g.w(a.Bp),q=p.next();!q.done;q=p.next())if(q=q.value,DN(q)){a.G=q;break}hQ(a,n)})}return sr()}; mLa=function(a){if(a.isExternallyHostedPodcast&&a.Uf){var b=NP(a.Uf);if(!b[0])return sr();a.D4=b[0];return RJa(a.Da,b[0]).then(function(c){hQ(a,c)})}return a.pm&&a.OU?QJa(a.Da,a.isAd(),a.pm).then(function(c){hQ(a,c)}):sr()}; oLa=function(a){if(a.isExternallyHostedPodcast)return sr();var b=NP(a.Uf,a.ZD);if(a.hlsvp){var c=EKa(a.hlsvp,a.clientPlaybackNonce,a.Zd);b.push(c)}return PJa(a.Da,a.isAd(),b,nLa(a)).then(function(d){hQ(a,d)})}; jLa=function(a,b){a.C=b;if(a.C){b=g.w(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;d!==0&&(a.KD[d]=c.id)}}iQ(a);if(a.G&&a.C&&a.C.videoInfos&&!(a.C.videoInfos.length<=0)&&(b=xE(a.C.videoInfos[0]),b!=(a.G.flavor=="fairplay")))for(c=g.w(a.Bp),d=c.next();!d.done;d=c.next())if(d=d.value,b==(d.flavor=="fairplay")){a.G=d;break}}; hQ=function(a,b){a.Fd=b;jLa(a,new eL(g.nl(a.Fd,function(c){return c.getInfo()})))}; nLa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Da.j.c,cver:a.Da.j.cver};a.Cw&&(b.ptk=a.Cw,b.oid=a.iW,b.ptchn=a.hW,b.pltype=a.jW,a.qw&&(b.m=a.qw));return b}; g.jQ=function(a){return LP(a)&&a.fb?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.oe||null}; pLa=function(a){var b=kQ(a);return b&&b.text?g.hx(b.text):a.paidContentOverlayText}; qLa=function(a){var b=kQ(a);return b&&b.durationMs?Vd(b.durationMs):a.paidContentOverlayDurationMs}; kQ=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Q((b=a.Wa)==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.playerDisclosure,rLa)||null}; lQ=function(a){var b="";if(a.rI)return a.rI;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Ka?"window":"live");a.Wd&&(b="post");return b}; g.mQ=function(a,b){return typeof a.keywords[b]!=="string"?null:a.keywords[b]}; sLa=function(a){return!!a.Fj||!!a.cD||!!a.Xw||!!a.zA||a.R3||a.N.focEnabled||a.N.rmktEnabled}; g.nQ=function(a){return!!(a.Wc||a.Uf||a.pm||a.hlsvp||a.sx())}; FP=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Nb(a.Ga,"ypc");a.ypcPreview&&(b=!1);return a.ue()&&!a.loading&&(g.nQ(a)||g.Nb(a.Ga,"heartbeat")||b)}; NP=function(a,b){a=Rq(a);var c={};if(b){b=g.w(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.w(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}; iQ=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.fl);for(var c=0;c0:b||a.adFormat!=="17_8"||a.isAutonav||g.MO(a.Da)||a.Mq?a.Jg?!1:a.Da.Gi||a.Da.Vi||!g.qO(a.Da)?!b&&yQ(a)=="adunit"&&a.Fj?!1:!0:!1:!1:(a.Jg?0:a.Vi)&&g.qO(a.Da)?!0:!1;a.L("html5_log_detailpage_autoplay")&&yQ(a)=="detailpage"&&a.oa("autoplay_info",{autoplay:a.Qk,autonav:a.isAutonav,result:b});return b}; g.DQ=function(a){return a.oauthToken||a.Da.Gj}; ELa=function(a){if(a.L("html5_stateful_audio_normalization")){var b=1,c=g.VB(a.Da.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;if(c=((d=a.D)==null?void 0:d.audio.B)||a.P2){d=(0,g.T)();a.zp=2;var e=d-a.Da.il<=a.maxStatefulTimeThresholdSec*1E3;a.applyStatefulNormalization&&e?a.zp=4:e||(a.Da.fl=Infinity,a.Da.il=NaN);e=(a.zp===4?g.Bd(a.Da.fl,a.minimumLoudnessTargetLkfs,a.loudnessTargetLkfs):a.loudnessTargetLkfs)-c;if(a.zp!==4){var f,h,l,m,n=((f=a.playerResponse)==null?void 0:(h=f.playerConfig)== null?void 0:(l=h.audioConfig)==null?void 0:(m=l.loudnessNormalizationConfig)==null?void 0:m.statelessLoudnessAdjustmentGain)||0;e+=n}e=Math.min(e,0);a.preserveStatefulLoudnessTarget&&(a.Da.fl=c+e,a.Da.il=d);a=Math.min(1,Math.pow(10,e/20))||b}else a=b}else{f=1;(h=g.VB(a.Da.experiments,"html5_default_ad_gain"))&&a.isAd()&&(f=h);if(h=((b=a.D)==null?void 0:b.audio.C)||a.Ij)a.zp=1;a=Math.min(1,Math.pow(10,-h/20))||f}return a}; aQ=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=g.QN(a.Da)==="TVHTML5_SIMPLY"&&a.Da.j.ctheme==="MUSIC";a.Nj||!g.yy(a.Da)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Nj=!0);if(b=g.Dr())b=/Starboard\/([0-9]+)/.exec(g.xb()),b=(b?parseInt(b[1],10):NaN)<10;c=a.Da;c=(g.QN(c)==="TVHTML5_CAST"||g.QN(c)==="TVHTML5"&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&a.Da.j.ctheme==="MUSIC";var d;if(d=!a.Nj)c||(c=a.Da,c= g.QN(c)==="TVHTML5"&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b=a.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&a.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",b||c||a.isExternallyHostedPodcast)&&(a.Nj=!0);return a.Da.deviceIsAudioOnly||a.Nj&&a.Da.N}; FLa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; EQ=function(a){return!(!a.Cn||!a.Da.N)&&a.sx()}; GLa=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; HLa=function(a){return a.L("html5_enable_sabr_from_watch_server")&&a.VD&&!a.fm}; PP=function(a){if(a.q3||a.cotn||!a.j||a.j.isOtf||a.HU&&!a.L("html5_enable_sabr_csdai"))return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.VD&&!!a.fm;var b=!a.j.Vb&&!a.ej(),c=b&&RN&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!RN&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=FQ(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.ej()&&!a.j.Vb&&RN&&(a.il==="1"?!1:!0);(c=c||b||d||e)&&!a.fm&&a.oa("sabr",{loc:"m"},!0); return c&&!!a.fm}; FQ=function(a){var b;if(!(b=a.Vb()&&a.ej()&&RN&&(a.il==="1"?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.Vb()&&!a.ej()&&RN;var c=a.Vb()&&a.latencyClass!=="ULTRALOW"&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e=a.latencyClass==="ULTRALOW"&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.L("html5_enable_sabr_ssdai_streaming_xhr"); c=!a.enableServerStitchedDai&&c;a=a.Vb()&&!RN&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a}; g.SP=function(a){return a.o2&&PP(a)}; VKa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&g.qP(b)===1;return b&&!a.Cn}; g.GQ=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&tL(b[a.B.id].resource.j);b=!!b[a.D.id]&&tL(b[a.D.id].resource.j);return(a.B.itag==="0"||c)&&b}; HQ=function(a){return a.Jw?["OK","LIVE_STREAM_OFFLINE"].includes(a.Jw.status):!0}; xLa=function(a){return(a=a.Dn)&&a.showError?a.showError:!1}; MP=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")}; OKa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")}; ILa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; MKa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.zA=new mKa(b));if(b=b.video_masthead_ad_quartile_urls)a.cD=b.quartile_0_url,a.rW=b.quartile_25_url,a.sW=b.quartile_50_url,a.wW=b.quartile_75_url,a.qW=b.quartile_100_url,a.Xw=b.quartile_0_urls,a.gD=b.quartile_25_urls,a.iD=b.quartile_50_urls,a.kD=b.quartile_75_urls,a.eD=b.quartile_100_urls}; LKa=function(a){var b={};a=g.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");d.length==2?b[d[0]]=d[1]:b[c]=!0}return b}; IKa=function(a){if(a){if(kva(a))return a;a=lva(a);if(kva(a,!0))return a}return""}; g.JLa=function(a){return a.captionsLanguagePreference||a.Da.captionsLanguagePreference||g.mQ(a,"yt:cc_default_lang")||a.Da.Aj}; IQ=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; g.WP=function(a){var b;return a.Vv||((b=a.suggestions)==null?void 0:b[0])||null}; KLa=function(a){var b={isSabr:PP(a)},c;if(a=(c=a.getHeartbeatResponse())==null?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b}; g.JQ=function(a){return a.Gf&&a.Da.Ap}; g.KQ=function(a){var b,c;return!!((b=a.embeddedPlayerConfig)==null?0:(c=b.embeddedPlayerFlags)==null?0:c.enableMusicUx)}; g.MQ=function(a){var b=a.U(),c=g.LQ(b),d=a.Ma;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=yQ(a);f==="leanback"?e="WATCH":b.L("gvi_channel_client_screen")&&f==="profilepage"?e="CHANNEL":a.yb?e="LIVE_MONITOR":f==="detailpage"?e="WATCH_FULL_SCREEN":f==="adunit"?e="ADUNIT":f==="sponsorshipsoffer"&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.yp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:LLa[e]}});if(b=a.KB)d.unpluggedAppInfo= {enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:MLa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Ed&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=NLa[b];c.request=d;d=c.user||{};if(b=a.ra)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Jb)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.LQ=function(a){var b=g.Ly(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.w(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.Rc)b.thirdParty={embedUrl:a};return b}; TLa=function(a,b,c){var d=a.videoId,e=g.MQ(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(ov()),referer:document.location.toString(),signatureTimestamp:19936};g.Bs();a.isAutonav&&(h.autonav=!0);g.Cs(0,141)&&(h.autonavState=g.Cs(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Cs(0,66);CQ(a)&&(h.autoplay=!0);f.N&&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.w(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");q.length!==3||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.w(q);for(var r=q.next();!r.done;r=q.next()){var t=g.w(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var u=Number(p.campaignid);if(p.adtype==="in_display_ad")q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),u&&(m.viralCampaignId=String(u)); else if(p.adtype==="video_ad"){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=OLa[p.breaktype])y.breakType=p;q&&(y.url=q);r&&(y.presetAd=r);t&&(y.viralAdResponseUrl=t);u&&(y.viralCampaignId=String(u));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.sI;if(m!=null){m={startWalltime:String(m)};if(n=a.dk)m.manifestDuration=String(n||14400);h.liveContext= m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Jg?0:a.Vi)h.splay=!0;m=a.vnd;m===5&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Pw)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Rj){n=a.DD;l=[];p=g.w(SCa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.qZ?"INACTIVE":"ACTIVE",clientFormFactor:PLa[r]||"UNKNOWN_FORM_FACTOR",clientName:UCa[q.C2]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:QLa[r]||"UNKNOWN_PLATFORM"};r= {};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.yw(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),t.limit_ad_tracking!==void 0&&t.limit_ad_tracking!==null&&(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;m>0&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);c!==0&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.qO(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});if(f=f.getWebPlayerContextConfig())h.encryptedHostFlags= f.encryptedHostFlags;d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);RLa&&a.startSeconds>0&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.Cs(g.Bs(),65);a.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.KO(e)&& (d.captionParams.deviceCaptionsOn=h!=null?!h:!1);a.S_&&(d.captionParams.deviceCaptionsLangPref=a.S_);a.YN.length?d.captionParams.viewerSelectedCaptionLangs=a.YN:g.KO(e)&&(h=g.NK(),h==null?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h=a.fetchType==="onesie"&&a.L("html5_onesie_attach_po_token");f=a.fetchType!=="onesie"&&a.L("html5_non_onesie_attach_po_token");if(h||f)h=a.U(),h.Vf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=h.Vf);e.L("fetch_att_independently")&& (d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=SLa());e.L("html5_report_supports_vp9_encoding")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=SLa(a));return d}; SLa=function(a){var b=!(a==null?0:a.SI())&&(a==null?void 0:a.Vb())&&Or();if(a==null?0:a.L("html5_report_supports_vp9_encoding")){if(a==null)var c=void 0;else{c=cQ(a);a=a.U().G;var d=UO("243");c=d?iL(c,d,a,!0)===!0:!1}b=c&&!b}else b=void 0;return{supportsVp9Encoding:b,supportXhr:RN}}; VLa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1)return c={context:g.LQ(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.Py(ULa),g.G(f,g.Sz(b,c,d),2);e=f.B;return f.return(e)})}; WLa=function(a,b,c){DBa(g.VB(b.experiments,"bg_vm_reinit_threshold"))&&VLa(a,c).then(function(d){d&&(d=d.botguardData)&&g.IK(d,b)},function(d){a.La()||(d=bE(d),a.oa("attf",d.details))})}; NQ=function(a,b){g.O.call(this);this.app=a;this.state=b}; PQ=function(a,b,c){a.state.j.hasOwnProperty(b)||OQ(a,b,c);a.state.N[b]=function(){return c.apply(a,g.Da.apply(0,arguments))}; a.state.K.add(b)}; QQ=function(a,b,c){a.state.j.hasOwnProperty(b)||OQ(a,b,c);a.app.U().N&&(a.state.Z[b]=function(){return c.apply(a,g.Da.apply(0,arguments))},a.state.K.add(b))}; OQ=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Da.apply(0,arguments))}}; g.RQ=function(a,b,c){return a.state.j[b].apply(a.state.j,g.x(c))}; SQ=function(){g.lp.call(this);this.G=new Map}; TQ=function(){g.O.apply(this,arguments);this.element=null;this.K=new Set;this.N={};this.Z={};this.j={};this.Y=new Set;this.C=new SQ;this.B=new SQ;this.D=new SQ;this.G=new SQ}; XLa=function(a,b,c){typeof a==="string"&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return UQ(a)}; UQ=function(a,b,c){if(typeof a==="string")return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.w(YLa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b}; ZLa=function(a,b,c,d){if(g.Ra(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d32&&d.push("hfr");b.isHdr()&&d.push("hdr");b.primaries==="bt2020"&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c}; $Q=function(){VQ.apply(this,arguments)}; aR=function(a,b){var c={};if(a.app.U().ra){a=g.w(cMa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);if(b=c.qoe_cat)a="",typeof b==="string"&&b.length>0&&(a=b.split(",").filter(function(e){return dMa.includes(e)}).join(",")),c.qoe_cat=a; eMa(c)}else for(a=g.w(fMa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c}; eMa=function(a){var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=JSON.parse(c))}delete a.player_response;delete a.raw_player_response;if(b){a.raw_player_response={streamingData:b.streamingData};var d;if((d=b.playbackTracking)==null?0:d.qoeUrl)a.raw_player_response=Object.assign({},a.raw_player_response,{playbackTracking:{qoeUrl:b.playbackTracking.qoeUrl}});var e;if((e=b.videoDetails)==null?0:e.videoId)a.raw_player_response=Object.assign({},a.raw_player_response,{videoDetails:{videoId:b.videoDetails.videoId}})}}; bR=function(a,b,c){var d=a.app.cf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a}; hMa=function(a){var b=b===void 0?5:b;return a?gMa[a]||b:b}; g.cR=function(){$Q.apply(this,arguments)}; iMa=function(a){OQ(a,"getInternalApiInterface",a.getInternalApiInterface);OQ(a,"addEventListener",a.n7);OQ(a,"removeEventListener",a.uda);OQ(a,"cueVideoByPlayerVars",a.R7);OQ(a,"loadVideoByPlayerVars",a.x$);OQ(a,"preloadVideoByPlayerVars",a.fda);OQ(a,"getAdState",a.getAdState);OQ(a,"sendAbandonmentPing",a.sendAbandonmentPing);OQ(a,"setLoopRange",a.setLoopRange);OQ(a,"getLoopRange",a.getLoopRange);OQ(a,"setAutonavState",a.setAutonavState);OQ(a,"seekTo",a.Tda);OQ(a,"seekBy",a.Rda);OQ(a,"seekToLiveHead", a.seekToLiveHead);OQ(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);OQ(a,"seekToStreamTime",a.seekToStreamTime);OQ(a,"startSeekCsiAction",a.startSeekCsiAction);OQ(a,"getStreamTimeOffset",a.getStreamTimeOffset);OQ(a,"getVideoData",a.m9);OQ(a,"setInlinePreview",a.setInlinePreview);OQ(a,"getAppState",a.getAppState);OQ(a,"updateLastActiveTime",a.updateLastActiveTime);OQ(a,"setBlackout",a.setBlackout);OQ(a,"setUserEngagement",a.setUserEngagement);OQ(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings); OQ(a,"getPresentingPlayerType",a.gK);OQ(a,"canPlayType",a.canPlayType);OQ(a,"updatePlaylist",a.updatePlaylist);OQ(a,"updateVideoData",a.updateVideoData);OQ(a,"updateEnvironmentData",a.updateEnvironmentData);OQ(a,"sendVideoStatsEngageEvent",a.Yda);OQ(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);OQ(a,"setSafetyMode",a.setSafetyMode);OQ(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)}); OQ(a,"getVideoAspectRatio",a.getVideoAspectRatio);OQ(a,"getPreferredQuality",a.getPreferredQuality);OQ(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);OQ(a,"setPlaybackQualityRange",a.fea);OQ(a,"onAdUxClicked",a.onAdUxClicked);OQ(a,"getFeedbackProductData",a.getFeedbackProductData);OQ(a,"getStoryboardFrame",a.getStoryboardFrame);OQ(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);OQ(a,"getStoryboardLevel",a.getStoryboardLevel);OQ(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels); OQ(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);OQ(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);OQ(a,"addCueRange",a.addCueRange);OQ(a,"addUtcCueRange",a.addUtcCueRange);OQ(a,"showAirplayPicker",a.showAirplayPicker);OQ(a,"dispatchReduxAction",a.dispatchReduxAction);OQ(a,"getPlayerResponse",a.d9);OQ(a,"getWatchNextResponse",a.r9);OQ(a,"getHeartbeatResponse",a.Y8);OQ(a,"changeMarkerVisibility",a.changeMarkerVisibility);OQ(a,"getCurrentTime",a.S8);OQ(a,"getDuration",a.nY); OQ(a,"getPlayerState",a.getPlayerState);OQ(a,"getPlayerStateObject",a.e9);OQ(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);OQ(a,"getProgressState",a.getProgressState);OQ(a,"getVolume",a.getVolume);OQ(a,"setVolume",a.BM);OQ(a,"isMuted",a.isMuted);OQ(a,"mute",a.lL);OQ(a,"unMute",a.ZM);OQ(a,"loadModule",a.loadModule);OQ(a,"unloadModule",a.unloadModule);OQ(a,"getOption",a.BY);OQ(a,"getOptions",a.getOptions);OQ(a,"setOption",a.setOption);OQ(a,"loadVideoById",a.i_);OQ(a,"loadVideoByUrl",a.j_);OQ(a, "playVideo",a.IS);OQ(a,"loadPlaylist",a.loadPlaylist);OQ(a,"nextVideo",a.nextVideo);OQ(a,"previousVideo",a.previousVideo);OQ(a,"playVideoAt",a.playVideoAt);OQ(a,"getDebugText",a.getDebugText);OQ(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);OQ(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);OQ(a,"getVideoContentRect",a.getVideoContentRect);OQ(a,"setSqueezeback",a.setSqueezeback);OQ(a,"setAutonav",a.setAutonav);OQ(a,"isNotServable",a.isNotServable);OQ(a,"channelSubscribed",a.channelSubscribed); OQ(a,"channelUnsubscribed",a.channelUnsubscribed);OQ(a,"togglePictureInPicture",a.togglePictureInPicture);OQ(a,"supportsGaplessAudio",a.supportsGaplessAudio);OQ(a,"supportsGaplessShorts",a.supportsGaplessShorts);OQ(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)}); OQ(a,"clearQueue",a.clearQueue);OQ(a,"getAudioTrack",a.K8);OQ(a,"setAudioTrack",a.Zda);OQ(a,"getAvailableAudioTracks",a.N8);OQ(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);OQ(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);OQ(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);OQ(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);OQ(a,"setMinimized",a.setMinimized);OQ(a,"setOverlayVisibility",a.setOverlayVisibility);OQ(a,"confirmYpcRental",a.confirmYpcRental); OQ(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);OQ(a,"isSubtitlesOn",a.isSubtitlesOn);OQ(a,"queueNextVideo",a.queueNextVideo);OQ(a,"handleExternalCall",a.handleExternalCall);OQ(a,"logApiCall",a.logApiCall);OQ(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);OQ(a,"setScreenLayer",a.setScreenLayer);OQ(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);OQ(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);OQ(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);OQ(a, "syncVolume",a.syncVolume);OQ(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);OQ(a,"openSettingsMenuItem",a.openSettingsMenuItem);OQ(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);OQ(a,"getVisibilityState",a.getVisibilityState);OQ(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);OQ(a,"setGlobalCrop",a.setGlobalCrop);OQ(a,"setInternalSize",a.setInternalSize);OQ(a,"setFauxFullscreen",a.setFauxFullscreen)}; eR=function(a,b,c){a=g.dR(a.Se(),b);return c?(c.addOnDisposeCallback(a),null):a}; g.fR=function(a,b,c){return a.app.U().kf?b:g.YC("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})}; jMa=function(a){a.Se().element.setAttribute("aria-live","polite")}; g.gR=function(a,b){g.cR.call(this,a,b);iMa(this);QQ(this,"addEventListener",this.p7);QQ(this,"removeEventListener",this.wda);QQ(this,"cueVideoByPlayerVars",this.S7);QQ(this,"loadVideoByPlayerVars",this.y$);QQ(this,"preloadVideoByPlayerVars",this.gda);QQ(this,"loadVideoById",this.i_);QQ(this,"loadVideoByUrl",this.j_);QQ(this,"playVideo",this.IS);QQ(this,"loadPlaylist",this.loadPlaylist);QQ(this,"nextVideo",this.nextVideo);QQ(this,"previousVideo",this.previousVideo);QQ(this,"playVideoAt",this.playVideoAt); QQ(this,"getVideoData",this.KY);QQ(this,"seekBy",this.Sda);QQ(this,"seekTo",this.Vda);QQ(this,"showControls",this.showControls);QQ(this,"hideControls",this.hideControls);QQ(this,"cancelPlayback",this.cancelPlayback);QQ(this,"getProgressState",this.getProgressState);QQ(this,"isInline",this.isInline);QQ(this,"setInline",this.setInline);QQ(this,"setLoopVideo",this.setLoopVideo);QQ(this,"getLoopVideo",this.getLoopVideo);QQ(this,"getVideoContentRect",this.getVideoContentRect);QQ(this,"getVideoStats",this.p9); QQ(this,"getCurrentTime",this.U8);QQ(this,"getDuration",this.nY);QQ(this,"getPlayerState",this.g9);QQ(this,"getVideoLoadedFraction",this.n9);QQ(this,"mute",this.lL);QQ(this,"unMute",this.ZM);QQ(this,"setVolume",this.BM);QQ(this,"loadModule",this.loadModule);QQ(this,"unloadModule",this.unloadModule);QQ(this,"getOption",this.BY);QQ(this,"getOptions",this.getOptions);QQ(this,"setOption",this.setOption);QQ(this,"addCueRange",this.addCueRange);QQ(this,"getDebugText",this.getDebugText);QQ(this,"getStoryboardFormat", this.getStoryboardFormat);QQ(this,"toggleFullscreen",this.toggleFullscreen);QQ(this,"isFullscreen",this.isFullscreen);QQ(this,"getPlayerSize",this.getPlayerSize);QQ(this,"toggleSubtitles",this.toggleSubtitles);QQ(this,"setCenterCrop",this.setCenterCrop);QQ(this,"setFauxFullscreen",this.setFauxFullscreen);QQ(this,"setSizeStyle",this.setSizeStyle);QQ(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);QQ(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);aMa(this)}; g.hR=function(a){a=a.Bb();var b=a.Ie.get("endscreen");return b&&b.xv()?!0:a.KH()}; g.iR=function(a,b){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.ib("onAutonavCancelled",b)}; g.kR=function(a){var b=jR(a.Bb());return a.app.Bj&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&b&&b.Hl()&&b.Zp()||!!a.getPlaylist()}; g.lR=function(a,b,c){g.RQ(a,"addEmbedsConversionTrackingParams",[b]);a.L("embeds_web_enable_referring_feature_deprecation")||g.HK(b,c)}; g.nR=function(a){return(a=g.mR(a.Bb()))?a.jK():{}}; g.kMa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"}; g.oR=function(a,b,c){a=a.qb().element;var d=Zb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1}); d<0&&(d=-(d+1));ne(a,b,d);b.setAttribute("data-layer",String(c))}; g.pR=function(a){var b=a.U();if(!b.ge)return!1;var c=a.getVideoData();if(!c||a.getPresentingPlayerType()===3)return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!IQ(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.Hl();var f=c.Wa&&c.Wa.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Gf&&f;return!c.ypcPreview&&(!d||e)&&!g.Nb(c.Ga,"ypc")&& !a&&(!g.qO(b)||f)}; lMa=function(a){a=g.ZQ(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||b.B.video.j<1080||b.FU)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";b.B.id.indexOf(";")>=0&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.oa("iqss",{trigger:d},!0),!0):!1}; qR=function(){zs.apply(this,arguments);this.requestHeaders={}}; sR=function(){rR||(rR=new qR);return rR}; tR=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization}; g.uR=function(a,b,c,d){d=d===void 0?!1:d;g.ex.call(this,b);var e=this;this.J=a;this.Fa=d;this.N=new g.iE(this);this.qa=new g.Tx(this,c,!0,void 0,void 0,function(){e.fY()}); g.P(this,this.N);g.P(this,this.qa)}; mMa=function(a){a.B&&(document.activeElement&&g.pe(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.ps(a.N);a.Y=void 0}; vR=function(a,b,c){a.Dk()?a.Nb():a.pd(b,c)}; wR=function(a,b,c,d){d=new g.U({I:"div",Na:["ytp-linked-account-popup-button"],va:d,X:{role:"button",tabindex:"0"}});b=new g.U({I:"div",S:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",va:b},{I:"div",S:"ytp-linked-account-popup-description",va:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.uR.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.P(this,this.dialog); d.listen("click",function(){e.Nb()}); g.P(this,d);g.oR(this.J,this.element,4);this.hide()}; g.xR=function(a,b,c,d){g.ex.call(this,a);this.priority=b;c&&this.Uj(c);d&&this.Dd(d)}; g.TR=function(a,b,c,d){a=a===void 0?{}:a;b=b===void 0?[]:b;c=c===void 0?!1:c;d=d===void 0?!1:d;b.push("ytp-menuitem");var e=a;"role"in e||(e.role="menuitem");c||(e=a,"tabindex"in e||(e.tabindex="0"));a={I:c?"a":"div",Na:b,X:a,V:[{I:"div",S:"ytp-menuitem-icon",va:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",va:"{{label}}"},{I:"div",S:"ytp-menuitem-content",va:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",va:"{{secondaryIcon}}"});return a}; YR=function(a){g.xR.call(this,g.TR({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Eb=a.Mm();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Mc(c)}); this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; ZR=function(a){return a?g.hx(a):""}; $R=function(a){g.O.call(this);this.api=a}; aS=function(a){$R.call(this,a);var b=this;OQ(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)}); OQ(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)}); a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)}); a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new YR(b.api);g.P(b,b.menuItem)})}; nMa=function(a){this.api=a;this.j={}}; bS=function(a,b,c,d){b in a.j||(c=new g.LC(c,d,{id:b,priority:2,namespace:"appad"}),a.api.mf([c],1),a.j[b]=c)}; cS=function(a){$R.call(this,a);var b=this;this.events=new g.iE(this);g.P(this,this.events);this.j=new nMa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}}); this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;bS(d,"part2viewed",1,0x8000000000000);bS(d,"engagedview",Math.max(1,c.Kb*1E3),0x8000000000000);c.isLivePlayback||(c=c.lengthSeconds*1E3,bS(d,"videoplaytime25",c*.25,c),bS(d,"videoplaytime50",c*.5,c),bS(d,"videoplaytime75",c*.75,c),bS(d,"videoplaytime100",c,0x8000000000000),bS(d,"conversionview",c,0x8000000000000),bS(d,"videoplaybackstart",1,c),bS(d,"videoplayback2s",2E3,c),bS(d,"videoplayback10s",1E4,c))}); this.events.T(this.api,g.NC("appad"),this.B);this.events.T(this.api,g.OC("appad"),this.B)}; rMa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.w(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.lo(c,d);d=void 0;d=d===void 0?!1:d;(d=EC(FC(c,oMa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=EC(FC(c,pMa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=EC(FC(c,qMa),c,d,"Nielsen OCR URL"));g.Hu(c,void 0,d)}return!0}; dS=function(a,b){sMa(a,b).then(function(c){g.Hu(b,void 0,void 0,c)})}; eS=function(a,b){b.forEach(function(c){dS(a,c)})}; sMa=function(a,b){return g.iC(a.api.U())&&Xq(b)&&Wq(b)?g.TO(a.api.U(),g.DQ(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):tr()}; tMa=function(a){$R.call(this,a);this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"videoready",function(b){if(a.getPresentingPlayerType()===1){var c,d,e={playerDebugData:{pmlSignal:!!((c=b.getPlayerResponse())==null?0:(d=c.adPlacements)==null?0:d.some(function(f){var h;return f==null?void 0:(h=f.adPlacementRenderer)==null?void 0:h.renderer})), contentCpn:b.clientPlaybackNonce}};g.Xs("adsClientStateChange",e)}})}; fS=function(a){g.U.call(this,{I:"button",Na:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.yD);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&& uMa(this);eR(a,this.element,this);this.yD()}; uMa=function(a){a.B.push(a.T(a.J,"videodatachange",a.yD));a.B.push(a.T(a.J,"videoplayerreset",a.yD));a.B.push(a.T(a.J,"onPlaylistUpdate",a.yD));a.B.push(a.T(a.J,"autonavchange",a.OV))}; vMa=function(a){a.isChecked=a.isChecked;a.Ea("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);a.J.Xh()}; wMa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&UP(a.Od())}; xMa=function(a){$R.call(this,a);var b=this;this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new fS(a);g.P(b,c);a.Dz(c)})}; gS=function(a,b){g.xR.call(this,g.TR({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; hS=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))}; yMa=function(a){var b=!a.U().Wk&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||b}; g.iS=function(a,b,c,d){var e=a.currentTarget;if((c===void 0||!c)&&g.py(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.Dy(a,d,!0);return!1}; g.jS=function(a,b,c){if(IO(b.U())&&b.getPresentingPlayerType()!==2){if(g.py(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.py(c);d&&b.pauseVideo();g.Dy(a,void 0,!0);d&&(g.Ey(a),c.preventDefault())}return!1}; AMa=function(){var a=zMa.includes("en")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a}; kS=function(){return{I:"div",S:"ytp-spinner-container",V:[{I:"div",S:"ytp-spinner-rotator",V:[{I:"div",S:"ytp-spinner-left",V:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",V:[{I:"div",S:"ytp-spinner-circle"}]}]}]}}; lS=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}}; oS=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";gS.call(this,b,g.mS.p4);var c=this;this.J=a;this.j=!1;this.B=new g.Lo(function(){g.Vo(c.element,"ytp-menuitem-highlighted")},0); this.Eb=a.Mm();this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen(nS,this.D);g.P(this,this.B)}; pS=function(a){$R.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){BMa(b)}); a.addEventListener("highlightSettingsMenu",function(c){BMa(b);var d=b.menuItem;c==="menu_item_cinematic_lighting"&&(g.To(d.element,"ytp-menuitem-highlighted"),g.To(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())}); OQ(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})}; BMa=function(a){a.menuItem||(a.menuItem=new oS(a.api),g.P(a,a.menuItem),a.menuItem.Ta(a.j))}; qS=function(a){$R.call(this,a);var b=this;this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"applicationvideodatachange",function(c,d){b.KR(c,d)})}; rS=function(a,b,c,d){gS.call(this,"Stable Volume",g.mS.U6);g.To(this.element,"ytp-drc-menu-item");this.Eb=a.Mm();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.B,this);hS(this,a);this.Eb.Uc(this)}; sS=function(a){$R.call(this,a);var b=this;this.events=new g.iE(a);g.P(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new rS(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.P(b,b.menuItem))}); OQ(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)}); OQ(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()}); OQ(this.api,"hasDrcAudioTrack",function(){return b.B()}); var c;this.j=(c=g.vs("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()}; tS=function(a){$R.call(this,a);var b=this;this.j={};this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()}); this.events.T(a,g.NC("embargo"),function(c){b.api.Vo(!0);var d,e=(d=b.j[c.id])!=null?d:[];d=g.w(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Mf("auth",2,"This video isn't available in your current playback area",ZD({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=(e=f.embargo)==null?void 0:e.onTrigger)&&b.api.ib("innertubeCommand",f)}})}; CMa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.B)}; DMa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number((d=c.playbackPosition)==null?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number((f=c.duration)==null?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}}; uS=function(a){$R.call(this,a);var b=this;this.j=[];this.events=new g.iE(a);g.P(this,this.events);OQ(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().Cp&&b.addEmbedsConversionTrackingParams(c)}); this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=yg(c.visualElement.getAsJspb(),2),b.j.push(c))})}; EMa=function(a){$R.call(this,a);var b=this;this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){xK(wK(),16623);b.j=g.ow();var d=a.U().Gi&&!c.Jg;if(BQ(c)&&d){xK(wK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=(e=c.getWatchNextResponse())==null?void 0:e.trackingParams;f&&zK(f)}if(c.getPlayerResponse()){var h;(c=(h=c.getPlayerResponse())==null?void 0:h.trackingParams)&&zK(c)}}else xK(wK(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=(f=c.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&zK(h)}); this.events.T(a,"loadvideo",function(){xK(wK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); this.events.T(a,"cuevideo",function(){xK(wK(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); this.events.T(a,"largeplaybuttonclicked",function(c){xK(wK(),27240,c.visualElement)}); this.events.T(a,"playlistnextbuttonclicked",function(c){xK(wK(),27240,c.visualElement)}); this.events.T(a,"playlistprevbuttonclicked",function(c){xK(wK(),27240,c.visualElement)}); this.events.T(a,"playlistautonextvideo",function(){xK(wK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; vS=function(a){g.O.call(this);var b=this;this.j=null;for(var c=[],d=0;d<=100;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];typeof e.isVisible==="undefined"?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)}; GMa=function(a){$R.call(this,a);var b=this;this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"applicationInitialized",function(){FMa(b)})}; FMa=function(a){a.j=new vS(a.api.getRootNode());g.P(a,a.j);a.events.T(a.api,"videoStatsPingCreated",function(b){var c=a.j;c=c.j==null?null:Math.round(c.j*100)/100;b.inview=c!=null?c:void 0;c=a.api.getPlayerSize();if(c.height>0&&c.width>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.JO();d>1&&c.push(d);c=c.join(":")}else c=void 0;b.size=c})}; HMa=function(a){var b;return((b=((a==null?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null}; wS=function(a){g.U.call(this,{I:"div",Na:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",va:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",va:"\u2022"},{I:"span",va:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; JMa=function(a,b){a.j||(a.B=b,a.C=(0,g.T)(),a.j=new g.Ko(function(){IMa(a)},null),IMa(a))}; IMa=function(a){var b=Math,c=b.round,d=Math.min((0,g.T)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",qK({seconds:b}));b<=0&&a.j?xS(a):a.j&&a.j.start()}; xS=function(a){a.j&&(a.j.dispose(),a.j=null)}; KMa=function(a){$R.call(this,a);var b=this;this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new wS(a);g.P(b,b.j);g.oR(a,b.j.element,4);b.j.hide()})}; yS=function(a){g.U.call(this,{I:"button",Na:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Na:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{I:"div",Na:["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.Ua=a;this.j=new g.Tx(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.P(this, this.j);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()}; zS=function(a){$R.call(this,a);var b=this;this.events=new g.iE(a);g.P(this,this.events);OQ(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)}); OQ(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)}); var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&IO(c)&&c.controlsType==="1"&&this.events.T(a,"standardControlsInitialized",function(){b.j=new yS(a);g.P(b,b.j);a.Dz(b.j)})}; LMa=function(a){g.U.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",Na:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},V:[g.mx()]},{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",va:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle", va:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ea("ytp-gated-actions-overlay-background");this.B=this.Ea("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ea("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.ib("onCloseMiniplayer")}); this.hide()}; NMa=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;NMa(c,d.actionButtons||[]);c.show()}else c.hide()}); g.oR(this.api,this.j.element,4)}; PMa=function(a){$R.call(this,a);var b=this;this.j=null;this.events=new g.iE(a);g.P(this,this.events);var c=a.U();c.Oj=!1;c.Ya=!1;c.wm=!1;QQ(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()}); QQ(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()}); QQ(a,"updateSubtitlesUserSettings",function(f){a.updateSubtitlesUserSettings(f)}); QQ(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})}); QQ(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()}); QQ(a,"getPreferredQuality",function(){return a.getPreferredQuality()}); QQ(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()}); QQ(a,"setPlaybackQuality",function(f){a.setPlaybackQuality(f)}); var d=this.api.cj(),e=d.subscribe("visibilitystatechange",function(){a.Hc("onPictureInPictureChange",d.Ej())}); this.addOnDisposeCallback(function(){d.wh(e)}); QQ(a,"setRootNodeClickAction",function(f){b.j=f}); this.events.T(a.getRootNode(),"click",function(){switch(b.j){case "togglePictureInPicture":a.togglePictureInPicture();break;case "play":a.playVideo()}})}; QMa=function(a){$R.call(this,a);a=a.U();a.yh.push("flix");a.Ya=!1;a.Oj=!1}; AS=function(a){$R.call(this,a);var b=this;QQ(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()}); QQ(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.x(g.Da.apply(0,arguments)))}); PQ(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()}); PQ(this.api,"setSphericalProperties",function(){var c=g.Da.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.x(c))})}; BS=function(a){$R.call(this,a);OQ(a,"createClientVe",this.createClientVe.bind(this));OQ(a,"createServerVe",this.createServerVe.bind(this));OQ(a,"destroyVe",this.destroyVe.bind(this));OQ(a,"hasVe",this.hasVe.bind(this));OQ(a,"logClick",this.logClick.bind(this));OQ(a,"logVisibility",this.logVisibility.bind(this));OQ(a,"setTrackingParams",this.setTrackingParams.bind(this))}; CS=function(a){$R.call(this,a);var b=this;this.events=new g.iE(a);g.P(this,this.events);OQ(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}); OQ(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}); OQ(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})}; DS=function(a,b,c){var d=a.api.getCurrentTime()*1E30&&e>0&&(c.width+=e,g.Vl(b.element,"width",c.width+"px")));a.size=c}}; g.US=function(a,b){var c=a.j[a.j.length-1];c!==b&&(a.j.push(b),TS(a,c,b))}; g.VS=function(a){if(!(a.j.length<=1)){var b=a.j.pop(),c=a.j[0];a.j=[c];TS(a,b,c,!0)}}; TS=function(a,b,c,d){iNa(a);b&&(b.unsubscribe("size-change",a.IC,a),b.unsubscribe("back",a.ij,a));c.subscribe("size-change",a.IC,a);c.subscribe("back",a.ij,a);if(a.Gb){g.To(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;hNa(a);g.fm(a.element,e);a.G=new g.Lo(function(){jNa(a,b,c,d)},20,a); a.G.start()}else c.Ja(a.element),b&&b.detach()}; jNa=function(a,b,c,d){a.G.dispose();a.G=null;g.To(a.element,"ytp-popup-animating");d?(g.To(b.element,"ytp-panel-animate-forward"),g.Vo(c.element,"ytp-panel-animate-back")):(g.To(b.element,"ytp-panel-animate-back"),g.Vo(c.element,"ytp-panel-animate-forward"));g.fm(a.element,a.size);a.K=new g.Lo(function(){g.Vo(a.element,"ytp-popup-animating");b.detach();g.Wo(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a); a.K.start()}; iNa=function(a){a.G&&g.No(a.G);a.K&&g.No(a.K)}; WS=function(a){g.SS.call(this,a,"ytp-shopping-product-menu");this.Pe=new g.QS(this.J);g.P(this,this.Pe);this.hide();g.US(this,this.Pe);g.oR(this.J,this.element,4)}; lNa=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&(c=kNa(a,c,e,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.ib("innertubeCommand",b.navigationEndpoint);a.hide()},a))}; mNa=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&kNa(a,c,e,b==null?void 0:b.icon).listen("click",function(){var f;(b==null?void 0:(f=b.icon)==null?void 0:f.iconType)==="HIDE"?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.ib("innertubeCommand",b.serviceEndpoint);a.hide()},a)}; kNa=function(a,b,c,d,e){b=new g.xR(g.TR({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",nNa(e));b.setIcon(nNa(d));g.P(a,b);a.Pe.Uc(b,!0);return b}; nNa=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 fsa();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"}}]}]}; case "OPEN_IN_NEW":return qx()}}; XS=function(a){OS.call(this,a,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.U({I:"button",Na:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.U({I:"img",S:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}}); this.thumbnailImage.hide();g.P(this,this.thumbnailImage);this.thumbnailIcon=new g.U({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.P(this,this.thumbnailIcon);this.banner=new g.U({I:"a",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-title",va:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",va:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text", va:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.NC("suggested_action_view_model"),this.Oaa);this.T(this.J,g.OC("suggested_action_view_model"),this.Paa);this.T(this.overflowButton.element,"click",this.K5);this.T(a,"featuredproductdismissed",this.Su);this.J.createServerVe(this.banner.element,this.banner,!0)}; YS=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,NS(a),a.Wl(),g.dx(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.dx(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.dx(a.overflowButton,a.isVisible))}; ZS=function(){XS.apply(this,arguments)}; oNa=function(a){$R.call(this,a);this.j=new ZS(this.api);g.P(this,this.j);g.oR(this.api,this.j.element,4)}; $S=function(a){$R.call(this,a);var b=this;this.j="";this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"internalaudioformatchange",function(c,d){if(d){d=b.api.getAvailableAudioTracks();d=g.w(d);for(var e=d.next();!e.done;e=d.next())if(e.value.getLanguageInfo().getId()===c){b.j=c;break}}}); this.events.T(a,"videoplayerreset",function(){b.j&&pNa(b)}); this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})}; pNa=function(a){var b=a.api.Vc();b&&(b.getVideoData().tfa=a.j)}; g.aT=function(a,b,c,d,e,f,h){g.xR.call(this,g.TR({"aria-haspopup":"true"}),b,a);this.Eb=d;this.K=!1;this.C=null;this.options={};this.B=new g.QS(c,void 0,a,e,f,h);g.P(this,this.B);this.listen("keydown",this.L5);this.listen("click",this.open)}; qNa=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");a.C=null}}; g.bT=function(a,b){g.RS(a.B);for(var c={},d=!1,e=0;ef.start&&d>=5;A+=H}y=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else y="";m={video_id_and_cpn:String(c.videoId)+" / "+y,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:u,network_activity_style:u,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none", playback_categories:""};n=e.clientWidth+"x"+e.clientHeight+(f>1?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=ELa(c);var N;n=((N=c.D)==null?0:N.audio.j)?"DRC":Math.round(a*h)+"%";N=Math.round(a)+"% / "+n;a=c.Ij.toFixed(1);isFinite(Number(a))&&(N+=" (content loudness "+a+"dB)");m.volume=N;m.resolution=e.videoWidth+"x"+e.videoHeight;if(e=c.B){if(N=e.video)a=N.fps,a>1&&(m.resolution+="@"+a), (a=g.wT(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(m.resolution+="@"+a.video.fps)),m.codecs=yNa(e),!c.D||e.audio&&e.video?e.M_&&(m.codecs+=" / "+e.M_+"A"):m.codecs+=" / "+yNa(c.D),N.B||N.primaries?(a=N.B||"unknown",a==="smpte2084"?a+=" (PQ)":a==="arib-std-b67"&&(a+=" (HLG)"),m.color=a+" / "+(N.primaries||"unknown"),m.color_style=""):m.color_style="display:none";if(e.debugInfo)for(m.fmt_debug_info="",e=g.w(e.debugInfo),N=e.next();!N.done;N=e.next())N=N.value, m.fmt_debug_info+=N.label+":"+N.text+" ";m.fmt_debug_info_style=m.fmt_debug_info&&m.fmt_debug_info.length>0?"":"display:none"}e=c.isLivePlayback;N=c.Wd;m.live_mode_style=e||N?"":"display:none";m.live_latency_style=e?"":"display:none";if(N)m.live_mode="Post-Live"+(RP(c)?" Manifestless":"");else if(e){N=uT(l,"livelatency");m.live_latency_secs=N.toFixed(2)+"s";e=RP(c)?"Manifestless, ":"";c.Ka&&(e+="Windowed, ");a="Uncertain";if(N>=0&&N<120)if(c.latencyClass&&c.latencyClass!=="UNKNOWN")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;(N=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+N.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples= tT(l,"bandwidth");m.network_activity_samples=tT(l,"networkactivity");m.live_latency_samples=tT(l,"livelatency");m.buffer_health_samples=tT(l,"bufferhealth");b=g.GQ(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";MP(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240731_01_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&q.length>0&&m.debug_info.length+q.length<=60? m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&m.extra_debug_info.length>0?"":"display:none";return m}; yNa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag}; xT=function(a,b,c,d,e){g.U.call(this,{I:"div",S:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"}; yT=function(a,b){if(a.heightPx===-1){var c=null;try{c=g.he("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c1?2:1,a.C.height=a.heightPx*c,a.C.style.height= a.heightPx+"px",a.B.scale(1,c)));b=g.w(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+20&&(a.G=g.dr(function(){GT(a)},b)),a.D=!0)}; GT=function(a){var b,c,d,e;g.J(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.Eq("EOM_VISITOR_DATA")||g.Eq("VISITOR_DATA");d=b.hm?b.datasyncId:c;e=SN(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Vf=HT(a,e);g.va(f)})}; HT=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();a.Lb.xg(c?"pot_cms":"pot_csms");var d=a.j.mG({Br:b,jk:{rE:b,v_:150,VI:!0,JM:!0}});a.Lb.xg(c?"pot_cmf":"pot_csmf");if(c&&a.L("html5_handle_sps_status")){var e;(e=a.B)==null||e.resolve();a.B=null;if(a.C){a.C=!1;var f,h=(f=g.ZQ(a.api.app))==null?void 0:f.ya;h&&h.nB(!1)}}return d}catch(l){return g.yw(l),""}}; DT=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new $E),a.j.ready().then(function(){a.Lb.xg("pot_if");GT(a)}))}; NNa=function(a){$R.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.iE(a);g.P(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||b.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),b.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}); OQ(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c}); OQ(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})}; IT=function(a){g.O.call(this);this.features=[];var b=this.j,c=new BS(a),d=new aS(a),e=new IS(a),f=new FT(a);var h=g.gC(a.U())?void 0:new tS(a);var l=new GS(a),m=new CNa(a),n=new JNa(a),p=new AS(a);var q=g.gC(a.U())?new NNa(a):void 0;var r=a.L("html5_enable_ssap")?new oT(a):void 0;var t=a.L("web_cinematic_watch_settings")&&(t=a.U().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new pS(a):void 0;var u=new zS(a);var y=a.L("enable_courses_player_overlay_purchase")?new OMa(a):void 0; var A=g.KO(a.U())?new KMa(a):void 0;var D=new uS(a);var F=a.U().D?new EMa(a):void 0;var H=a.L("web_player_move_autonav_toggle")&&a.U().ge?new xMa(a):void 0;var M=g.KO(a.U())?new CS(a):void 0;var N=a.L("web_enable_speedmaster")&&g.KO(a.U())?new lT(a):void 0;var S=a.U().Yk?void 0:new INa(a);var ba=a.L("report_pml_debug_signal")?new tMa(a):void 0;var ha=new HS(a),na=new LS(a);var Y=a.L("enable_web_player_player_in_bar_feature")&&g.yy(a.U())?new eNa(a):void 0;var R=a.U().playerStyle==="flix"?new QMa(a): void 0;var W=navigator.mediaSession&&window.MediaMetadata&&a.U().Oj?new ES(a):void 0;var v=a.L("html5_enable_drc")&&!a.U().K?new sS(a):void 0;var V=new cS(a);var cb=a.U();var Ab=cb.K&&((Ab=cb.getWebPlayerContextConfig())==null?void 0:Ab.houseBrandEnvironment)==="apps-elements"?new PMa(a):void 0;cb=g.KO(a.U())?new oNa(a):void 0;var Va=a.L("html5_enable_d6de4")?new JS(a):void 0;var fb=g.KO(a.U())&&a.L("web_sleep_timer")?new dT(a):void 0;var bb=g.qO(a.U())?new GMa(a):void 0;var pb=a.L("html5_enable_audio_track_stickiness")? new $S(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M,N,S,ba,ha,na,Y,R,W,v,V,Ab,cb,Va,fb,bb,void 0,pb,new qS(a))}; JT=function(){this.B=this.j=NaN}; KT=function(a,b){this.W=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new JT;this.j=b||null;this.C=!1}; ONa=function(a,b,c){var d=g.wO(b.Da)&&!b.Da.K;if(b.Da.Zj&&(sO(b.Da)||b.Da.Ma==="shortspage"||QO(b.Da)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.Eq("TIMING_ACTION")||Dq("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&Dq("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.j){d=a.j.Yh();for(var e=g.w(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,Kz(f,d[f],a.timerName);d=g.Iq(uta)(a.j.uJ);g.Lz(d,a.timerName);d=a.j;d.B={};d.uJ={}}g.Lz({playerInfo:{visibilityState:g.Iq(tta)()},playerType:"LATENCY_PLAYER_HTML5"}, a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(Nz("_start",a.timerName)?c=g.Iq(Fz)("_start",a.timerName)+a.B:g.yw(new g.Hs("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!Nz("pbs",a.timerName)&&a.tick("pbs",c)}}; PNa=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if(a!=="video_to_ad"||f!=null&&f.Aa){f=a==="ad_to_video"?f:d;c=f==null?void 0:f.vJ;var l={};if(d==null?0:d.K)l.cttAuthInfo={token:d.K,videoId:d.videoId};e&&(l.startTime=e);Mz(a,l);var m,n,p;d={targetVideoId:(m=d==null?void 0:d.videoId)!=null?m:"empty_video",targetCpn:b,adVideoId:(n=f==null?void 0:f.videoId)!=null?n:"empty_video",adClientPlaybackNonce:(p=c==null?void 0:c.cpn)!=null?p:f==null?void 0:f.clientPlaybackNonce}; c&&(d.adBreakType=c.adBreakType,d.adType=c.adType);g.Lz(d,a);Kz("pbs",h!=null?h:(0,g.T)(),a)}}; LT=function(a){Eta();Dta();a.timerName=""}; QNa=function(a){if(a.j){var b=a.j;b.B={};b.uJ={}}a.C=!1;a.G=void 0;a.B=NaN}; MT=function(a,b){g.Xw.call(this);this.Da=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=Oq(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author= b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)typeof a==="string"&&a.length===16?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new iP("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.jP(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");this.index>0&&(this.items=[]);a=g.w(a);for(c=a.next();!c.done;c=a.next())(c= c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=eP(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]}; NT=function(a){return!!(a.playlist||a.list||a.api)}; RNa=function(a){var b=a.index+1;return b>=a.length?0:b}; SNa=function(a){var b=a.index-1;return b<0?a.length-1:b}; g.OT=function(a,b,c,d){b=b!==void 0?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.EP(a.Da,b),g.P(a,e),e.An=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; PT=function(a,b){a.index=g.Bd(b,0,a.length-1);a.startSeconds=0}; TNa=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.OT(a);a.items=[];for(var d=g.w(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()}}; WNa=function(a,b){var c,d,e,f,h,l,m;return g.J(function(n){if(n.j==1){c=g.cA();var p=a.U(),q={context:g.MQ(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(r==null?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(r==null?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 u,y,A,D,F,H;r=((H=g.Q((u=r)==null?void 0:(y=u.embedPreview)==null?void 0:(A=y.thumbnailPreviewRenderer)==null?void 0:(D=A.playButton)==null?void 0:(F=D.buttonRenderer)==null?void 0:F.navigationEndpoint,g.VP))==null?void 0:H.videoId)||null}else r=null}u=(u=r)?u:void 0;y=a.playlistId?a.playlistId:b.list;A=b.listType;if(y){var M;A==="user_uploads"?M={username:y}:M={playlistId:y};UNa(p,u,b,M);q.playlistRequest= M}else b.playlist?(M={templistVideoIds:b.playlist.toString().split(",")},UNa(p,u,b,M),q.playlistRequest=M):u&&(M={videoId:u},p&&(M.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=M);d=q;e=g.Py(VNa);g.wa(n,2);return g.G(n,g.Sz(c,d,e),4)}if(n.j!=2)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ga=Wr(b,g.qO(h)),h.C=h.Ga==="EMBEDDED_PLAYER_MODE_PFL",f&&(l=f,l.trackingParams&&zK(l.trackingParams)),n.return(new g.EP(h,b));m=g.ya(n);m instanceof Error||(m=Error("b259802748"));g.xw(m);return n.return(a)})}; UNa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; g.RT=function(a,b){QT.get(a);QT.set(a,b)}; g.ST=function(a){g.Xw.call(this);this.loaded=!1;this.player=a}; XNa=function(){this.B=[];this.j=[]}; g.TT=function(a,b){return b?a.j.concat(a.B):a.j}; g.UT=function(a,b){switch(b.kind){case "asr":YNa(b,a.B);break;default:YNa(b,a.j)}}; YNa=function(a,b){g.Lb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)}; g.VT=function(a){g.O.call(this);this.W=a;this.B=new XNa;this.G=[];this.Z=[];this.D=new g.cj}; g.WT=function(a,b,c){g.VT.call(this,a);this.videoData=b;this.audioTrack=c;this.j=null;this.C=!1;this.G=b.hw;this.Z=b.ID;this.C=g.zQ(b)}; ZNa=function(){this.tj=!1}; $Na=function(a){var b=a===void 0?{}:a;a=b.hasSubfragmentedFmp4===void 0?!1:b.hasSubfragmentedFmp4;b=b.DF===void 0?!1:b.DF;var c=new ZNa;c.tj=a||b;return c}; g.ZT=function(a){this.Da=a;this.N=new ZNa;this.Ov=this.Nv=!1;this.iq=2;this.Va=20971520;this.Fa=8388608;this.Ga=120;this.zq=g.VB(this.Da.experiments,"html5_min_readbehind_secs");this.cE=g.VB(this.Da.experiments,"html5_min_readbehind_cap_secs");this.Yk=this.Da.L("html5_offline_reset_media_stream_on_unresumable_slices");this.tb=NaN;this.hw=this.gm=this.Xw=2;this.bl=XT(this,"html5_request_size_min_kb",64)*1024;this.Wa=2097152;this.xB=XT(this,"html5_bypass_contention_secs");this.gw=1048576;this.tm=!1; this.al=XT(this,"html5_repredict_interval_ms",1800);this.XD=XT(this,"html5_head_miss_secs",5);this.ZE=XT(this,"html5_min_upgrade_health_secs",10);this.Kb=15;this.Vi=1;this.Z=1.15;this.Y=1.05;this.im=1;this.dE=XT(this,"html5_min_seconds_between_format_selections",8);this.WD=XT(this,"html5_max_buffer_health_for_downgrade_secs",15);this.gt=RN;this.Nj=this.Fd=!1;this.Kq=6;this.C=!1;this.Wk=g.VB(this.Da.experiments,"html5_min_startup_buffered_media_duration_secs");this.Pv=g.VB(this.Da.experiments,"html5_post_interrupt_readahead"); this.XA=this.Da.L("html5_allow_onesie_for_ssap");this.GC=this.Da.L("html5_disable_classic_alr");this.Rv=g.VB(this.Da.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.yw=100;this.Fj=10;this.VF=6;this.uw=XT(this,"html5_ssdai_failure_retry_limit",3);this.qm=this.Da.experiments.kb("html5_clone_original_for_fallback_location");this.uo=!1;this.Rc=g.VB(this.Da.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.bk=g.VB(this.Da.experiments,"html5_subsegment_readahead_timeout_secs"); this.LD=g.VB(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Zj=g.VB(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.ND=g.VB(this.Da.experiments,"html5_subsegment_readahead_min_load_speed");this.xw=g.VB(this.Da.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.PD=g.VB(this.Da.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Ij=XT(this,"html5_hopeless_secs",15);this.Dp=1;this.ge=!1;this.kD= this.Da.L("html5_restrict_streaming_xhr_on_sqless_requests");this.ZD=g.VB(this.Da.experiments,"html5_max_headm_for_streaming_xhr");this.eI=this.Da.L("html5_pipeline_manifestless_allow_nonstreaming");this.UC=this.Da.L("html5_prefer_server_bwe3");this.QD=this.Da.L("html5_last_slice_transition");this.HD=this.Da.L("html5_store_xhr_headers_readable");this.pw=this.Uf=this.wk=!1;this.aq=g.VB(this.Da.experiments,"html5_max_drift_per_track_secs");this.Gq=this.Da.L("html5_no_placeholder_rollbacks");this.JD= this.Da.L("html5_subsegment_readahead_enable_mffa");this.yh=this.Da.L("html5_allow_video_keyframe_without_audio");this.dH=this.Da.L("html5_enable_vp9_fairplay");this.Jb=!0;this.Rf=this.Xa=this.Zd=!1;this.Dn=!0;this.jw=!1;this.D="";this.RC=1048576;this.Qf=[];this.WC=this.Da.L("html5_woffle_resume");this.Zl=this.Da.L("html5_abs_buffer_health");this.MD=this.Da.L("html5_interruption_resets_seeked_time");this.aE=g.VB(this.Da.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ra=!1;this.Bp= this.Da.L("html5_log_additional_source_buffer_updates");this.zp=this.Da.L("html5_explicitly_dispose_xhr");this.Sv=!1;this.hm=!this.Da.L("html5_encourage_array_coalescing");this.pm=!1;this.iD=this.Da.L("html5_restart_on_unexpected_detach");this.xj=0;this.Ob="";this.GD=this.Da.L("html5_filter_non_efficient_formats_for_safari");this.Da.L("html5_format_hybridization");this.zA=this.Da.L("html5_abort_before_separate_init");this.DD=Ir();this.FD=this.Da.L("html5_serialize_server_stitched_ad_request");this.KB= this.Da.L("html5_skip_buffer_check_seek_to_head");this.lf=!1;this.fm=this.Da.L("html5_attach_po_token_to_bandaid");this.jq=g.VB(this.Da.experiments,"html5_max_redirect_response_length")||8192;this.il=this.Da.L("html5_rewrite_timestamps_for_webm");this.Tb=this.Da.L("html5_only_media_duration_for_discontinuities");this.gD=g.VB(this.Da.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Da.L("html5_onesie_live");this.RD=this.Da.L("html5_onesie_premieres");this.kz=this.Da.L("html5_drop_onesie_for_live_mode_mismatch"); this.bG=g.VB(this.Da.experiments,"html5_onesie_live_ttl_secs")||8;this.Xq=g.VB(this.Da.experiments,"html5_attach_num_random_bytes_to_bandaid");this.sG=g.VB(this.Da.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.zw=this.Da.L("html5_update_container_type_on_codec_family_change");this.Sf=this.Da.L("html5_apply_ssap_slice_info_adjustment");this.hD=this.Da.L("html5_enable_sabr_host_fallback");this.qa=!1;this.PC=this.Da.L("html5_disable_ssap_append_pause");this.Cn=this.Da.L("html5_init_source_buffer_after_metadata"); this.ID=this.Da.L("html5_gapless_fallback_on_append_error");this.Bw=!1;this.Ka=this.Da.L("html5_ssdai_use_post_for_media")&&this.Da.L("gab_return_sabr_ssdai_config");this.TD=this.Da.L("html5_use_post_for_media");this.Wc=this.Da.L("html5_use_live_ump_heartbeat");this.Jw=this.Da.L("html5_use_sps_ump_part");this.KD=this.Da.L("html5_handle_sps_status");this.Cj=this.Da.L("html5_enable_sps_non_fatal_logs");this.CD=this.Da.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Da.L("html5_use_ump");this.fb= this.Ma=!1;this.tI=this.Da.Uf;this.eD=this.Da.L("html5_reset_primary_stats_on_redirector_failure");this.XC=this.Da.L("html5_remap_to_original_host_when_redirected");this.wm=this.Aj=this.B=this.Fn=!1;this.Xi=this.Da.L("html5_enable_sabr_format_selection");this.En=this.Da.L("html5_sabr_support_quality_constraints");this.ZC=this.Da.L("html5_sabr_remove_all_quality_constraints");this.XB=this.Da.L("html5_iterative_seeking_buffered_time");this.Yl=this.Da.L("html5_use_network_error_code_enums");this.OC= this.Da.L("html5_disable_overlapping_requests");this.K=!1;this.enableServerDrivenRequestCancellation=this.Da.L("html5_enable_server_driven_request_cancellation");this.jD=this.Da.L("html5_enable_sabr_request_timing");this.xp=this.Da.L("html5_enable_server_format_filter");this.jz=this.Da.L("html5_drc_edit_sync_workaround");this.YC=this.Da.L("html5_enable_lawnmower");this.bD=this.Da.L("html5_enable_lawnmower_messaging");this.Gi=this.Da.zc()?g.VB(this.Da.experiments,"html5_continuous_goodput_probe_interval_ms"): 0;this.OD=g.VB(this.Da.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Uq=g.VB(this.Da.experiments,"html5_normal_latency_mffa_ms")||NaN;this.UF=g.VB(this.Da.experiments,"html5_mffa_ms_proxima_override")||this.Uq;this.UD=this.Da.L("html5_live_defrag_only_h264_playbacks");this.SD=this.Da.L("html5_live_defrag_only_h264_formats");this.VC=this.Da.L("html5_record_now");this.Tf=!1;this.An=g.VB(this.Da.experiments,"html5_drm_byterate_soft_cap");this.Bn=g.VB(this.Da.experiments,"html5_drm_live_byterate_soft_cap"); this.Cp=this.Vv=!1;this.Aa=this.Da.L("html5_sabr_log_request_creation");this.wc=this.Da.L("html5_sabr_report_request_cancellation_info");this.Vf=this.iz=this.ww=!1;this.qw=this.Da.L("html5_spoof_4k");this.mq=XT(this,"html5_min_media_duration_for_cabr_slice");this.bE=this.hm?0:XT(this,"html5_min_media_duration_for_append_prop");this.cD=this.Da.L("html5_remove_defrag_without_frame_level_streaming");this.Je=!0;this.aC=this.Da.L("html5_consume_all_buffered_bytes_one_poll");this.QC=this.Da.L("html5_disable_urgent_adaptation"); this.oB=this.Da.L("html5_apply_constraints_in_client_for_sabr");this.nw=this.Da.L("html5_send_video_playback_ustreamer_config");this.Qp=XT(this,"html5_max_discontinuity_rewrite_count");this.Ap=XT(this,"html5_fixed_media_duration_for_request");this.dk=this.Da.L("html5_use_init_selected_audio");this.Ya=!1;this.kf=XT(this,"html5_sabr_request_limit_per_period");this.Mv=this.yp=this.G=this.mw=!1;this.yc=this.Da.L("html5_sabr_live_partial_segment");this.Ae=this.Da.L("html5_sabr_dispose_media_objects"); this.zn=!1;this.Gj=this.Da.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Qv=this.Oj=!1;this.dD=this.Da.L("html5_enable_d6de4");this.WA=this.Da.L("html5_account_for_delayed_buffer_range_creation");this.VD=this.Da.L("html5_ssap_keep_only_ssap_eos_check");this.Da.L("html5_high_res_seek_logging");this.ob=this.Da.L("html5_update_buffer_timeline_until_update_end");this.Jg=this.yb=!1;this.ED=this.Da.L("html5_enable_ssap_multi_audio_format_filtering");this.fD=this.Da.L("html5_enable_po_token_live_caption"); this.Cw=this.ow=this.ra=this.Ab=!1;this.lw=this.Da.L("html5_sabr_fail_request_after_handle_available_slices");this.er=g.VB(this.Da.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Uv=!1;this.Ed=this.Da.L("html5_append_pause_high_res_logging");this.Aw=this.fl=this.Tv=!1}; aOa=function(a,b,c){c=c===void 0?!1:c;b.video.j>1080&&!a.Nv&&(a.Va=36700160,a.Fa=5242880,a.Wa=Math.max(4194304,a.Wa),a.Nv=!0);b.video.j>2160&&!a.Ov&&(a.Va=104857600,a.tb=13107200,a.Ov=!0);g.VB(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.Dr()&&g.Br("samsung")&&(g.Br("kant")||g.Br("muse"))&&(a.tb=g.VB(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.Dr()&&g.Br("kant")&&(a.tb=1310720);a.An!==0&&b.isEncrypted()&&(a.tb=a.An);a.Bn!==0&&b.isEncrypted()&& c&&(a.tb=a.Bn);b.tb&&(a.gw=Math.max(a.bl,Math.min(a.Wa,5*b.tb)))}; bOa=function(a){XT(a,"html5_max_platform_audio_megabytes")<=0||!a.B||!g.iC(a.Da)||(a.Fa=Math.max(XT(a,"html5_max_platform_audio_megabytes")*1048576,a.Fa))}; $T=function(a){return a.B&&a.Xi}; aU=function(a){return a.B&&a.Aj&&a.playbackStartPolicy}; bU=function(a,b,c,d){a.Aj&&(a.playbackStartPolicy=b,a.sI=c,a.rI=d)}; XT=function(a,b,c){return g.VB(a.Da.experiments,b)||(c===void 0?0:c)}; g.cU=function(a,b){return CE(a.info.mimeType)?b?a.info.itag===b:!0:!1}; g.cOa=function(a,b){if(a.j!=null&&g.gC(b.U())&&!a.j.isManifestless&&a.j.j.rawcc!=null)return!0;if(!a.Vb())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.cU(c,"386")}); a=!!a.j&&!a.j.isManifestless&&QHa(a.j);return b||a}; g.dU=function(a,b,c,d,e,f){g.VT.call(this,a);this.videoId=c;this.rZ=e;this.eventId=f;this.K={};this.j=null;a=d||g.Sq(b).hl||"";a=a.split("_").join("-");this.C=g.Tq(b,{hl:a})}; gU=function(a,b){var c=this;this.currentState=0;this.onSuccess=[];this.onFailure=[];this.currentState=a;this.result=b.result;this.error=b.error;b.promise&&b.promise.then(function(d){eU(c,d)},function(d){fU(c,d)})}; hU=function(a){return new gU(1,{result:a})}; iU=function(a){return new gU(0,{promise:a})}; jU=function(a){return new gU(2,{error:a})}; lU=function(a,b){var c=iU();a.onSuccess.push(function(d){eU(c,d)}); a.onFailure.push(function(d){try{var e=b(d);eU(c,e)}catch(f){fU(c,f)}}); kU(a);return c}; eU=function(a,b){if(b&&typeof b==="object"){if("then"in b){b.then(function(c){eU(a,c)},function(c){fU(a,c)}); return}if(b instanceof gU){b.nf(function(c){eU(a,c)}); lU(b,function(c){fU(a,c)}); return}}a.currentState=1;a.result=b;kU(a)}; fU=function(a,b){a.currentState=2;a.error=b;kU(a)}; kU=function(a){if(a.currentState===1){var b=a.onSuccess;a.onSuccess=[];a.onFailure=[];b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c(a.result)}else if(a.currentState===2)for(b=a.onFailure,a.onSuccess=[],a.onFailure=[],b=g.w(b),c=b.next();!c.done;c=b.next())c=c.value,c(a.error)}; mU=function(a,b){this.B=a;this.j=b;this.onFailure=void 0}; dOa=function(a,b){return{Fz:a.Fz&&b.Fz,wd:a.wd&&b.wd,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}}; oU=function(a,b){var c=eOa,d=this;this.path=a;this.C=b;this.D=c;this.capabilities={Fz:!!this.C,wd:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new mU([{name:"compileStreaming",condition:function(e){return!!d.B&&e.streaming}, bx:function(){return WebAssembly.compileStreaming(fetch(d.path))}, onFailure:function(){return d.capabilities.streaming=!1}}, {name:"sync",condition:function(e){return e.sync}, bx:function(){return fOa(d).nf(function(e){return new WebAssembly.Module(e)})}, onFailure:function(){return d.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, bx:function(){return fOa(d).nf(function(e){return WebAssembly.compile(e)})}, onFailure:function(){return d.capabilities.wd=!1}}]); this.K=new mU([{name:"instantiateStreaming",condition:function(e){return e.wd&&e.streaming&&!d.B&&!d.j}, bx:function(e,f){return WebAssembly.instantiateStreaming(fetch(d.path),f).then(function(h){d.j=hU(h.module);return{instance:h.instance,Co:!1}})}, onFailure:function(){return d.capabilities.streaming=!1}}, {name:"sync",condition:function(e){return e.wd&&e.sync}, bx:function(e,f){return nU(d,e).nf(function(h){return{instance:new WebAssembly.Instance(h,f),Co:!1}})}, onFailure:function(){return d.capabilities.sync=!1}}, {name:"async",condition:function(e){return e.wd}, bx:function(e,f){return nU(d,e).nf(function(h){return WebAssembly.instantiate(h,f)}).nf(function(h){return{instance:h, Co:!1}})}, onFailure:function(){return d.capabilities.wd=!1}}, {name:"asmjs",condition:function(e){return e.Fz}, bx:function(e,f){return iU(d.C(f).then(function(h){return{instance:{exports:h},Co:!0}}))}, onFailure:function(){return d.capabilities.Fz=!1}}],function(e,f,h){return d.D(h,e.instance.exports)})}; hOa=function(a){var b=pU;return b.instantiate(a?dOa(b.capabilities,a):b.capabilities,new gOa)}; fOa=function(a){if(a.B)return a.B;var b=fetch(a.path).then(function(c){return c.arrayBuffer()}).then(function(c){a.B=hU(c); return c}).then(void 0,function(c){g.yw(Error("wasm module fetch failure: "+c.message,{cause:c})); a.B=void 0;throw c;}); a.B=iU(b);return a.B}; nU=function(a,b){if(!b.wd)return jU(Error("wasm unavailable"));if(a.j)return a.j;a.j=lU(a.compile(b).nf(function(c){a.j=hU(c);return c}),function(c){g.yw(Error("wasm module compile failure: "+c.message,{cause:c})); a.j=void 0;throw c;}); return a.j}; iOa=function(){}; qU=function(){}; gOa=function(){this.env=new iOa;this.wasi_snapshot_preview1=new qU}; eOa=function(a,b){a=Math.floor(Math.random()*256);var c=Math.floor(Math.random()*256),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==c*16%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;f<16;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{d!==0&&b.free(d)}}; rU=function(a,b){this.instance=a;this.Co=b;this.exports=this.instance.exports}; kOa=function(a,b,c){c=c===void 0?!1:c;var d=sU.AC();return jOa(a,b,{Fz:c,wd:!0,sync:!0,streaming:!0}).nf(function(e){sU.gA(e.Co?"winitjs":"winit",d);return e})}; jOa=function(a,b,c){pU||(pU=new oU(a,b));return hOa(c).nf(function(d){return new rU(d.instance,d.Co)})}; tU=function(a,b){g.O.call(this);var c=this;this.J=a;this.j=b;this.uJ={};this.B={};this.C=null;this.D=new Set;this.G=new g.iE(this);this.hd={ioa:function(){return c.j}}; this.K=this.J.L("web_player_defer_modules");this.Ie=new Map;g.P(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)}; g.uU=function(a){return a.Ie.get("captions")}; qOa=function(a,b){switch(b){case "ad":return lOa(a);case "annotations_module":return a.J.jd()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.NU||a.controlsType==="3"?!1:a.Ka.isEmpty()&&a.playerStyle!=="annotation-editor"&&a.playerStyle!=="live-dashboard"?!!b.Xa||!!g.wQ(b)||!!g.xQ(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return mOa(a);case "embed":return g.qO(a.J.U());case "endscreen":return g.nOa(a);case "heartbeat":return a.HT();case "inline_preview":return a.J.U().showInlinePreviewUi; case "kids":return DO(a.J.U());case "remote":return a.J.U().Nj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().Fj;case "captions":return oOa(a);case "unplugged":return g.xO(a.J.U());case "ux":return a.J.U().Ya;case "webgl":return pOa(a);case "ypc":return a.KH();case "ypc_clickwrap":return a=a.J.getVideoData(),a.Gi&&!a.UF;case "yto":return!!a.J.getVideoData().Ga.includes("yto");default:return g.xw(Error("Module descriptor "+b+" does not match")),!1}}; vU=function(a,b,c,d,e){var f;c=c===void 0?!1:c;d=d===void 0?!1:d;var h=a.Ie.get(b);if(!h||d)if(e||(e=function(){vU(a,b,c,d)}),f||(f=function(){a.J.Eg(b)}),h=h||rOa(a,b,qOa(a,b),e,f))a.Ie.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Bi("onApiChange")}; tOa=function(a){var b=b===void 0?!1:b;var c,d,e,f,h;return g.J(function(l){if(l.j==1)return(c=a.Ie.get("asmjs"))&&!b?l.return(c):(d=QT.get("asmjs"))!=null?(e=d,l.Ha(2)):g.G(l,new Promise(function(m,n){sOa(a,"asmjs",function(){var p=QT.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3); l.j!=2&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Ie.set("asmjs",h);h.create();return l.return(h)})}; wOa=function(a){uOa(a)&&a.dP();vOa(a)&&(vU(a,"captions",!0),vU(a,"endscreen"),a.rJ(),vU(a,"creatorendscreen",!0))}; vOa=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.L("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c}; uOa=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Nb(a.Ga,"ad")||sLa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=b==null?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.w(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=(e=d.config)==null?void 0:e.adPlacementConfig;e=void 0;if(((e=f)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var h=e=void 0;f=Number((e=f)==null?void 0:(h= e.adTimeOffset)==null?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number(((e=d.renderer)==null?void 0:(h=e.adBreakServiceRenderer)==null?void 0:h.prefetchMilliseconds)||0);d=f-d;d=11;a=a.api.U().Z&&CU;return!(!b&&!a)}; MU=function(a,b){return!a.api.isInline()&&!SOa(a,ls(b))&&g.py(b)}; ROa=function(a){a.Kg.Hv();if(a.SM&&a.cP)a.cP=!1;else if(!a.api.U().Ra&&!a.Er()){var b=a.api.getPlayerStateObject();g.Z(b,2)&&g.hR(a.api)||a.LH(b);!a.api.U().Ab||b.isCued()||g.Z(b,1024)?a.Vs():a.PM.isActive()?(a.BQ(),a.PM.stop()):a.PM.start()}}; UOa=function(a,b){var c;if((c=a.api.getVideoData())==null?0:c.mutedAutoplay){var d,e;if((d=b.target)==null?0:(e=d.className)==null?0:e.includes("ytp-info-panel"))return!1}return g.py(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.Z(b,4)||g.Z(b,8)||g.Z(b,2)||a.Vs(),!0):!1}; VOa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()}; QOa=function(a){var b=Cr()&&dna()>=67&&!a.api.U().Z;a=a.api.U().disableOrganicUi;return!g.Br("tizen")&&!UN&&!b&&!a}; NU=function(a,b){b=b===void 0?2:b;g.Xw.call(this);this.api=a;this.j=null;this.Hd=new ns(this);g.P(this,this.Hd);this.B=Psa;this.Hd.T(this.api,"presentingplayerstatechange",this.R5);this.j=this.Hd.T(this.api,"progresssync",this.Tc);this.jp=b;this.jp===1&&this.Tc()}; g.OU=function(a){g.U.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",va:"{{title}}"}]},{I:"div",S:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.J=a;this.B=new g.Lo(this.show,10,this);this.j=new g.Lo(this.hide,500,this);g.P(this,this.B);g.P(this,this.j);this.hide()}; QU=function(a,b,c){if(b<=0){c=vx();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",Fc:!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",Fc:!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";PU(a,c,b,d+"%")}; WOa=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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"}}]}:esa();var c=a.J.getPlaybackRate(),d=g.YC("Speed is $RATE",{RATE:String(c)});PU(a,b,d,c+"x")}; XOa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";PU(a,AMa(),b)}; PU=function(a,b,c,d){d=d===void 0?"":d;a.updateValue("label",c===void 0?"":c);a.updateValue("icon",b);g.Oo(a.j);a.B.start();a.updateValue("title",d);g.Xo(a.element,"ytp-bezel-text-hide",!d)}; YOa=function(a,b){g.U.call(this,{I:"button",Na:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.qO(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")?hsa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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",va:"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",va:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.Tx(this,250,!0,100);g.P(this,this.B);g.Xo(this.C,"ytp-show-cards-title",g.qO(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Vaa);this.HH(!0)}; ZOa=function(a,b){g.U.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:[hsa()]},{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},V:[g.mx()]}]:[{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var c=this;this.J=a;this.Zg= b;this.D=new g.Tx(this,250,!1,250);this.j=null;this.N=new g.Lo(this.lba,300,this);this.K=new g.Lo(this.kba,2E3,this);this.G=[];this.B=null;this.Y=new g.Lo(function(){c.element.style.margin="0"},250); this.onClickCommand=this.C=null;g.P(this,this.D);g.P(this,this.N);g.P(this,this.K);g.P(this,this.Y);a.U().L("player_new_info_card_format")?(g.To(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ea("ytp-cards-teaser-close-button"),"click",this.S5),this.T(this.Ea("ytp-cards-teaser-info-icon"),"click",this.eU),this.T(this.Ea("ytp-cards-teaser-label"),"click",this.eU)):this.listen("click",this.eU);this.T(b.element,"mouseover",this.VV);this.T(b.element,"mouseout",this.UV);this.T(a,"cardsteasershow", this.xca);this.T(a,"cardsteaserhide",this.Nb);this.T(a,"cardstatechange",this.w3);this.T(a,"presentingplayerstatechange",this.w3);this.T(a,"appresize",this.MN);this.T(a,"onShowControls",this.MN);this.T(a,"onHideControls",this.B7);this.listen("mouseenter",this.T5)}; $Oa=function(a){g.U.call(this,{I:"button",Na:[RU.BUTTON,RU.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:RU.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.px()]},{I:"div",S:RU.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.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; aPa=function(a,b){a.j=b;a.element.classList.toggle(RU.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.RD:c.PD)?(a=a.api.Jm())?Rz(a,b):g.xw(Error("No innertube service available when updating notification preferences.")):g.xw(Error("No update preferences command available.")):g.xw(Error("No video data when updating notification preferences."))}; cPa=function(a,b,c){var d=d===void 0?800:d;var e=e===void 0?600:e;a=bPa(a,b);if(a=g.Ld(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))dqa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)}; bPa=function(a,b){var c=document.location.protocol;return Ifa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")}; g.SU=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(b==="0"||b==="-1")b=null;if(d==="0"||d==="-1")d=null;var r=p.U(),t=r.userDisplayName&&g.wO(r);g.U.call(this,{I:"div",Na:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.YC("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":RO(r),"data-tooltip-opaque":String(g.qO(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",va:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",X:t?{title:g.YC("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":RO(r),"data-tooltip-opaque":String(g.qO(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", va:d}:""]}],X:{"aria-live":"polite"}});var u=this;this.channelId=h;this.J=p;this.C=q;var y=this.Ea("ytp-sb-subscribe"),A=this.Ea("ytp-sb-unsubscribe");f&&g.To(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var D=function(){if(r.Aa){var H=u.channelId;if(m||n){var M={c:H};var N;g.EK.isInitialized()&&(N=GBa(M));M=N||"";if(N=p.getVideoData())if(N=N.subscribeCommand){var S=p.Jm();S?(Rz(S,N,{botguardResponse:M,feature:m}),p.ib("SUBSCRIBE",H)):g.xw(Error("No innertube service available when updating subscriptions."))}else g.xw(Error("No subscribe command in videoData.")); else g.xw(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")}else cPa(g.GO(u.J.U()),"sb_button",u.D)},F=function(){var H=u.channelId; if(m||n){var M=p.getVideoData();Rz(p.Jm(),M.unsubscribeCommand,{feature:m});p.ib("UNSUBSCRIBE",H)}y.focus();y.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}; this.T(y,"click",D);this.T(A,"click",F);this.T(y,"keypress",function(H){H.keyCode===13&&D(H)}); this.T(A,"keypress",function(H){H.keyCode===13&&F(H)}); this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(jMa(p),eR(p,y,this),eR(p,A,this))}else g.To(y,"ytp-sb-disabled"),g.To(A,"ytp-sb-disabled")}; fPa=function(a){g.U.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}}",tabIndex:"0"}},{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",va:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ea("ytp-title-channel");this.B=this.Ea("ytp-title-channel-logo");this.channelName=this.Ea("ytp-title-expanded-title");this.G=this.Ea("ytp-title-expanded-overlay");this.C=this.j=this.subscribeButton=null;this.D=!1;a.createClientVe(this.B,this,36925);a.createClientVe(this.channelName,this, 37220);g.qO(this.api.U())&&dPa(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Ld(ePa(b));c.preventDefault()}); this.T(this.B,"click",this.Aaa);this.Ta()}; gPa=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.SU("Subscribe",null,"Subscribed",null,!0,!1,b.Xl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); a.subscribeButton=c;g.P(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new $Oa(a.api);a.j=e;g.P(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.im&&(e.show(),a.api.logVisibility(e.element,!0))}); a.T(a.api,"UNSUBSCRIBE",function(){b.im&&(e.hide(),a.api.logVisibility(e.element,!1),aPa(e,!1))})}}; dPa=function(a){var b=a.api.U();gPa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa||(a.T(a.channel,"mouseenter",a.xP),a.T(a.channel,"mouseleave",a.TO),a.T(a.channel,"focusin",a.xP),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.TO()})); a.C=new g.Lo(function(){a.isExpanded()&&(a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.j&&(a.j.hide(),a.api.logVisibility(a.j.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); g.P(a,a.C);a.T(a.channel,hPa,function(){iPa(a)}); a.T(a.api,"onHideControls",a.iT);a.T(a.api,"appresize",a.iT);a.T(a.api,"fullscreentoggled",a.iT)}; iPa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; jPa=function(a){var b=a.api.getPlayerSize();return g.qO(a.api.U())&&b.width>=524}; ePa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.SO(b)+c.Ab;g.KQ(c)&&(d="https://music.youtube.com"+c.Ab);if(!g.qO(b))return d;b={};g.RQ(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.HK(b,"emb_ch_name_ex");return g.Hi(d,b)}; TU=function(a){var b=g.TR({"aria-haspopup":"true"});g.xR.call(this,b,a);this.listen("keydown",this.j)}; UU=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; kPa=function(a,b){g.U.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"User info"},V:a.U().Aa&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},va:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},va:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon", va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",X:{tabIndex:"{{userInfoFocusable}}"},va:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},va:a.U().Tb?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.U().Aa||a.U().Tb||(a=this.Ea("ytp-user-info-panel-login"),this.T(a,"click",this.V5));this.closeButton=new g.U({I:"button",Na:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.ux()]});this.closeButton.Ja(this.element); g.P(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.U5);this.Ta()}; mPa=function(a,b,c){g.QS.call(this,a);this.Eb=b;this.le=c;this.getVideoUrl=new TU(6);this.jo=new TU(5);this.Vn=new TU(4);this.uc=new TU(3);this.nH=new g.xR(g.TR({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.xR(g.TR(),1,"Stats for nerds");this.Vz=new g.ex({I:"div",Na:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.zX=new PS(this.J,this.Vz);this.kI=this.uu=null;g.qO(this.J.U())&&(this.closeButton= new g.U({I:"button",Na:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.ux()]}),g.P(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.E7,this));g.qO(this.J.U())&&(this.Sl=new g.xR(g.TR(),8,"Account"),g.P(this,this.Sl),this.Uc(this.Sl,!0),this.Sl.listen("click",this.nca,this),a.createClientVe(this.Sl.element,this.Sl,137682));this.J.U().Cn&&(this.Ml=new gS("Loop",7),g.P(this,this.Ml),this.Uc(this.Ml,!0),this.Ml.listen("click",this.cba,this),a.createClientVe(this.Ml.element, this.Ml,28661));g.P(this,this.getVideoUrl);this.Uc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Taa,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.P(this,this.jo);this.Uc(this.jo,!0);this.jo.listen("click",this.Uaa,this);a.createClientVe(this.jo.element,this.jo,28660);g.P(this,this.Vn);this.Uc(this.Vn,!0);this.Vn.listen("click",this.Saa,this);a.createClientVe(this.Vn.element,this.Vn,28658);g.P(this,this.uc);this.Uc(this.uc,!0);this.uc.listen("click",this.Raa, this);g.P(this,this.nH);this.Uc(this.nH,!0);this.nH.listen("click",this.Tba,this);g.P(this,this.showVideoInfo);this.Uc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.oca,this);g.P(this,this.Vz);this.Vz.listen("click",this.Faa,this);g.P(this,this.zX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");Eaa("Chromium")>=43&&(b=!0);Eaa("Firefox")<=40&&(b=!1);b&&(this.uu=new g.U({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.P(this,this.uu), this.uu.Ja(this.element));var d;(d=this.Sl)==null||d.setIcon(lsa());var e;(e=this.Ml)==null||e.setIcon({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"}}]});this.uc.setIcon({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"}}]});this.nH.setIcon(fsa());this.showVideoInfo.setIcon(gsa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);lPa(this);this.AM(this.J.getVideoData())}; VU=function(a,b){var c=!1;if(a.uu){var d=a.uu.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Eb.Nb():(a.Vz.Dd(b,"text"),g.US(a.Eb,a.zX),lS(a.Vz.element),a.uu&&(a.uu=null,lPa(a)));return c}; lPa=function(a){var b=!!a.uu;a.uc.Uj(b?"Copy debug info":"Get debug info");UU(a.uc,!b);a.Vn.Uj(b?"Copy embed code":"Get embed code");UU(a.Vn,!b);a.getVideoUrl.Uj(b?"Copy video URL":"Get video URL");UU(a.getVideoUrl,!b);a.jo.Uj(b?"Copy video URL at current time":"Get video URL at current time");UU(a.jo,!b);a.Vn.setIcon(b?csa():null);a.getVideoUrl.setIcon(b?nx():null);a.jo.setIcon(b?nx():null)}; nPa=function(a){return g.qO(a.J.U())?a.Sl:a.Ml}; pPa=function(a,b){g.SS.call(this,a);this.le=b;this.D=new g.iE(this);this.ra=new g.Lo(this.Cca,1E3,this);this.Aa=this.C=null;g.P(this,this.D);g.P(this,this.ra);a.createClientVe(this.element,this,28656);g.To(this.element,"ytp-contextmenu");oPa(this);this.hide()}; oPa=function(a){g.ps(a.D);var b=a.J.U();b.playerStyle==="gvn"||b.B||b.Wa||(b=a.J.qb(),a.D.T(b,"contextmenu",a.Daa),a.D.T(b,"touchstart",a.X5,null,!0),a.D.T(b,"touchmove",a.H0,null,!0),a.D.T(b,"touchend",a.H0,null,!0))}; qPa=function(a){a.J.isFullscreen()?g.oR(a.J,a.element,10):a.Ja(document.body)}; WU=function(a,b,c){c=c===void 0?240:c;g.U.call(this,{I:"button",Na:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.qO(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",va:"{{icon}}"},{I:"div",S:"ytp-copylink-title",va:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.Oe=b;this.j=c;this.visible=!1;this.tooltip=this.Oe.Se();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.Xo(this.element,"ytp-show-copylink-title",g.qO(b));a.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.Ta();this.addOnDisposeCallback(g.dR(this.tooltip,this.element))}; rPa=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.iq&&!g.JQ(c)&&!a.api.jd()&&!b}; sPa=function(a){a.updateValue("icon",jx());if(a.api.U().B)a.tooltip.MH(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Xh();a.tooltip.MH(a.element);var b=a.listen("mouseleave",function(){a.Oc(b);a.Ta();a.tooltip.Dm()})}}; tPa=function(a,b){return g.J(function(c){if(c.j==1)return g.wa(c,2),g.G(c,navigator.clipboard.writeText(b),4);if(c.j!=2)return c.return(!0);g.ya(c);var d=c.return,e=!1,f=g.he("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(It){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)})}; XU=function(a){g.U.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",va:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.Lo(this.show,10,this);this.B=new g.Lo(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ea("ytp-doubletap-static-circle");g.P(this,this.D);g.P(this,this.B);this.hide();this.N=this.Ea("ytp-doubletap-fast-forward-ve");this.Y=this.Ea("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")}; YU=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.Oo(a.B);a.D.start();a.element.setAttribute("data-side",b===-1?"back":"forward");g.To(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";b===1?(a.j.style.right="",a.j.style.left=d.width*.8-30+"px"):b===-1&&(a.j.style.right="",a.j.style.left=d.width*.1-15+"px");a.j.style.top=d.height*.5+15+"px";uPa(a,a.G?a.C:c)}; vPa=function(a,b,c){g.Oo(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.To(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")}; uPa=function(a,b){b=g.YC("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)}; wPa=function(a){OS.call(this,a,!1,!0);this.Fa=[];this.Ob=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ga=new g.U({I:"div",S:"ytp-featured-product-open-in-new"});g.P(this,this.Ga);this.countdownTimer=new g.U({I:"text",S:"ytp-featured-product-countdown",va:"{{content}}"});this.countdownTimer.hide();g.P(this,this.countdownTimer);this.B=new g.U({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text", va:"{{trendingOffer}}"}]});this.B.hide();g.P(this,this.B);this.overflowButton=new g.U({I:"button",Na:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.infoButton=new g.U({I:"button",Na:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.P(this,this.infoButton);this.N=new g.U({I:"text",S:"ytp-featured-product-exclusive-countdown",va:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}}); this.N.hide();g.P(this,this.N);this.K=new g.U({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",va:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.P(this,this.K);this.banner=new g.U({I:"a",S:"ytp-featured-product-container", V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Ga]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",va:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",va:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text", va:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",va:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",va:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",va:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div", S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",va:"{{affiliateDisclaimer}}"},this.B,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",va:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",va:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.B,{I:"text",S:"ytp-featured-product-vendor", va:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,g.NC("featured_product"),this.cea);this.T(this.J,g.OC("featured_product"),this.cC);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Waa);this.T(this.overflowButton.element,"click",this.Y5);this.T(a,"featuredproductdismissed",this.Su)}; xPa=function(a){var b,c;a=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;var d,e,f;return(a==null||!a.affiliateDisclaimer)&&(a==null?0:(d=a.exclusivesData)==null?0:d.exclusiveOfferLabelText)&&(a==null?0:(e=a.exclusivesData)==null?0:e.expirationTimestampMs)&&(a==null?0:(f=a.exclusivesData)==null?0:f.exclusiveOfferCountdownText)?!0:!1}; zPa=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.exclusivesData)==null?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(b>0){if(b<604800){var h,l,m,n;c=(h=a.j)==null?void 0:(l=h.bannerData)==null?void 0:(m=l.itemData)==null?void 0:(n=m.exclusivesData)==null?void 0:n.exclusiveOfferCountdownText;if(c!==void 0)for(h=Date.now(),l=g.w(c),m=l.next();!m.done;m=l.next())if(m=m.value,m!==void 0&&m.text!==void 0&&(n=Number(m.textDisplayStartTimestampMs), !isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(qK({seconds:b}))),a.N.Dd(b)):a.N.Dd(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:(p=a.j)==null?void 0:(q=p.bannerData)==null?void 0:(r=q.itemData)==null?void 0:(t=r.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});a.K.show();ZU(a);var u;(u=a.Tb)==null||u.start()}else yPa(a)}; yPa=function(a){var b;(b=a.Tb)==null||b.stop();a.N.hide();a.K.hide();$U(a)}; APa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(d==null||!d.priceReplacementText)&&(d==null?0:d.promotionText)?d==null?void 0:d.promotionText.content:null}; BPa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f;if(!(d!=null&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice)){var h,l;return d==null?void 0:(h=d.dealsData)==null?void 0:(l=h.sales)==null?void 0:l.originalPrice}return null}; CPa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f,h,l;if(!((d==null?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice))&&(d==null?0:(h=d.dealsData)==null?0:(l=h.priceDrop)==null?0:l.referencePrice)){var m,n;return d==null?void 0:(m=d.dealsData)==null?void 0:(n=m.priceDrop)==null?void 0:n.referencePrice}return null}; DPa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;if(d==null?0:d.priceReplacementText)return d==null?void 0:d.priceReplacementText;if((d==null?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(d==null?void 0:d.price)+" "+(d==null?void 0:(e=d.promotionText)==null?void 0:e.content)}var f,h;if(d==null?0:(f=d.dealsData)==null?0:(h=f.sales)==null?0:h.originalPrice){var l,m;return d==null?void 0:(l=d.dealsData)== null?void 0:(m=l.sales)==null?void 0:m.salesPriceAccessibilityLabel}var n,p;if(d==null?0:(n=d.dealsData)==null?0:(p=n.priceDrop)==null?0:p.referencePrice){var q,r;return(d==null?void 0:d.price)+" "+(d==null?void 0:(q=d.dealsData)==null?void 0:(r=q.priceDrop)==null?void 0:r.referencePrice)}return d==null?void 0:d.price}; EPa=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Gb?null:(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:d.vendorName}var e,f,h,l,m,n;return a.B.Gb||a.K.Gb||((e=a.j)==null?0:(f=e.bannerData)==null?0:(h=f.itemData)==null?0:h.affiliateDisclaimer)?null:(l=a.j)==null?void 0:(m=l.bannerData)==null?void 0:(n=m.itemData)==null?void 0:n.vendorName}; GPa=function(a,b){aV(a);if(b){var c=g.YP.getState().entities;c=oK(c,"featuredProductsEntity",b);if(c!=null&&c.productsData){b=[];c=g.w(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if((e=d)!=null&&e.identifier&&d.featuredSegments){a.Fa.push(d);var f=void 0;e=g.w((f=d)==null?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=FPa(h.startTimeSec);f!==void 0&&(h=FPa(h.endTimeSec),b.push(new g.LC(f*1E3,h===void 0?0x7ffffffffffff:h*1E3,{id:d.identifier, namespace:"featured_product"})))}}}a.J.mf(b)}}}; $U=function(a){if(a.trendingOfferEntityKey){var b=g.YP.getState().entities;if(b=oK(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==((c=a.j)==null?void 0:(d=c.bannerData)==null?void 0:(e=d.itemData)==null?void 0:e.encodedOfferSkuId)?ZU(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:EPa(a)}))}else ZU(a)}else ZU(a)}; ZU=function(a){a.B.hide();a.banner.update({vendor:EPa(a)})}; aV=function(a){a.Fa=[];a.cC();a.J.sf("featured_product")}; HPa=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.hiddenProductOptions)==null?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Dd(qK({seconds:b}));if(b>0){var h;(h=a.Kb)==null||h.start()}}; IPa=function(a){var b;(b=a.Kb)==null||b.stop();a.countdownTimer.hide()}; FPa=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a}; NPa=function(a,b,c){g.U.call(this,{I:"div",Na:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",va:"{{disclaimer}}"},{I:"a",Na:["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",va:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",va:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ea("ytp-info-panel-action-item-disclaimer");this.button= this.Ea("ytp-info-panel-action-item-button");this.ue=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.Q(b==null?void 0:b.onTap,Aw);var d=g.Q(c,g.Bx);this.ue=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.ue=!0,g.Id(this.button,g.qd(a))):(d=g.Q(c,JPa))&&!this.j?((a=d.phoneNumbers)&&a.length>0?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.ue=!0,g.Id(this.button,g.qd(a,[KPa]))):(c=g.Q(c,LPa))&&!this.j&&(a=c.phoneNumber? "tel:"+c.phoneNumber:"",this.ue=!0,g.Id(this.button,g.qd(a,[MPa])));var e;if(c=(e=b.disclaimerText)==null?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:(f=b.bodyText)==null?void 0:f.content,icon:qx(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:(h=b.bodyText)==null?void 0:h.content,icon:qx()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.ue&&(this.B={externalLinkData:{url:a}})}; OPa=function(a,b){var c=$w();g.uR.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",X:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",va:"{{title}}"},{I:"button",Na:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},V:[g.mx()]}]},{I:"div",S:"ytp-info-panel-detail-body",va:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ea("ytp-info-panel-detail-items"); this.C=new g.iE(this);this.itemData=[];this.D=c;b=this.Ea("ytp-info-panel-detail-close");this.T(b,"click",this.Nb);b=this.Ea("ytp-info-panel-detail-skrim");this.T(b,"click",this.Nb);b=this.Ea("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()}); g.P(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()}; PPa=function(a,b){a=g.w(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)}; SPa=function(a,b){g.U.call(this,{I:"div",S:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.qO(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",va:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",va:"{{chevron}}"}]});var c=this;this.J=a;this.Fe=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Er();vR(b)}); this.C=new g.Tx(this,250,!1,100);g.P(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.b6);this.T(this.J,"paidcontentoverlayvisibilitychange",this.g0);this.T(this.J,"infopaneldetailvisibilitychange",this.g0);var d=a.getVideoData()||{};QPa(d)&&RPa(this,d);this.T(a,"onShowControls",this.a6);this.T(a,"onHideControls",this.Z5)}; RPa=function(a,b){if(!b.Gi||!a.J.po()){var c=b.bE||1E4,d=QPa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Oo(a.j),a.videoId=b.videoId,d?(TPa(a,c,b),a.pd()):(a.Nb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),TPa(a,c,b),a.pd())}}; QPa=function(a){var b,c,d,e;return!!((b=a.Qf)==null?0:(c=b.title)==null?0:c.content)||!!((d=a.Qf)==null?0:(e=d.bodyText)==null?0:e.content)}; TPa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Lo(a.hea,b,a);g.P(a,a.j);var d;b=((d=c.Qf)==null?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(c==null?0:(f=c.Qf)==null?0:(h=f.title)==null?0:h.content){var l;d=(e=c.Qf)==null?void 0:(l=e.title)==null?void 0:l.content;var m,n;if((m=c.Qf)==null?0:(n=m.bodyText)==null?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=((p=c.Qf)==null?void 0:(q=p.bodyText)==null?void 0:q.content)||"";a.update({text:e+c,chevron:g.lx()})}; UPa=function(a,b){a.j&&(g.Z(b,8)?(a.B=!0,a.pd(),a.j.start()):(g.Z(b,2)||g.Z(b,64))&&a.videoId&&(a.videoId=null))}; bV=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; cV=function(a,b){var c=0;a=g.w(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return c===0?c:c-1}; VPa=function(a,b){for(var c=0,d=g.w(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&b0?b[0]:null;var c=g.ce("ytp-chrome-bottom"),d=g.ce("ytp-ad-module");a.C=!(c==null||!c.contains(b));a.K=!(d==null||!d.contains(b));a.N=!(b==null||!b.hasAttribute("data-tooltip-target-fixed"));return b}; kQa=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(b==null?0:(e=b.runs)==null?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.nm(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((b==null?0:(f=b.runs)==null?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(f>-1)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.ax({I:"span",S:"ytp-promotooltip-details-icon", V:[iQa[a.tooltipRenderer.targetId]]});g.P(a,h);for(var l=[],m=g.w(d),n=m.next();!n.done;n=m.next())n=new g.ax({I:"span",S:"ytp-promotooltip-details-component",va:n.value}),g.P(a,n),l.push(n);d.length===2?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):d.length===1&&(f===0?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if(typeof f!=="string")for(g.me(a.details),e=g.w(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value); else a.update({details:f});e=!0}}g.nm(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;((p=g.Q(e,g.WH))==null?0:(q=p.text)==null?0:(r=q.runs)==null?0:r.length)&&g.Q(e,g.WH).text.runs[0].text&&(a.update({acceptButtonText:g.Q(e,g.WH).text.runs[0].text.toString()}),f=!0);g.nm(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,u,y;((t=g.Q(p,g.WH))==null?0:(u=t.text)==null?0:(y=u.runs)==null?0:y.length)&&g.Q(p,g.WH).text.runs[0].text&&(a.update({dismissButtonText:g.Q(p,g.WH).text.runs[0].text.toString()}), q=!0);g.nm(a.dismissButton,q)}c&&(a.B=c);a.targetElement=hQa(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.dx(a,!0);jQa(a);a.Gb&&!a.Y&&(a.Y=!0,a.hd.BH(0));a.j&&a.J.logVisibility(a.element,a.Gb)}}; iV=function(a){g.dx(a,!1);a.j&&a.J.logVisibility(a.element,a.Gb)}; lQa=function(a){var b,c,d,e=((b=g.Q(a.acceptButton,g.WH))==null?void 0:(c=b.text)==null?void 0:(d=c.runs)==null?void 0:d.length)&&!!g.Q(a.acceptButton,g.WH).text.runs[0].text,f,h,l;b=((f=g.Q(a.dismissButton,g.WH))==null?void 0:(h=f.text)==null?void 0:(l=h.runs)==null?void 0:l.length)&&!!g.Q(a.dismissButton,g.WH).text.runs[0].text;return e||b}; jQa=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b=c.display==="none"||c.visibility==="hidden"||b.getAttribute("aria-hidden")==="true"}if(b||a.J.isMinimized())g.dx(a,!1);else if(b=g.mm(a.targetElement),b.width&&b.height){a.J.zy(a.element,a.targetElement);var d=a.J.qb().getPlayerSize().height;c=g.mm(a.Ea("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.ao().height-c-b.height-12,a.element.style.top=d+"px"); d=a.Ea("ytp-promotooltip-pointer");var e=g.em(a.targetElement,a.J.getRootNode()),f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.dx(a,!1)}; jV=function(a){g.U.call(this,{I:"button",Na:["ytp-replay-button","ytp-button"],X:{title:"Replay"},V:[g.sx()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.zd(a.getPlayerStateObject());eR(this.J,this.element,this)}; kV=function(a,b){b=b===void 0?240:b;g.U.call(this,{I:"button",Na:["ytp-button","ytp-search-button"],X:{title:"Search","data-tooltip-opaque":String(g.qO(a.U()))},V:[{I:"div",S:"ytp-search-icon",va:"{{icon}}"},{I:"div",S:"ytp-search-title",va:"Search"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);eR(a,this.element,this)}; g.lV=function(a,b,c,d){d=d===void 0?240:d;g.U.call(this,{I:"button",Na:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.qO(a.U()))},V:[{I:"div",S:"ytp-share-icon",va:"{{icon}}"},{I:"div",S:"ytp-share-title",va:"Share"}]});this.api=a;this.Oe=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Oe.Se();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta); this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();this.addOnDisposeCallback(g.dR(this.tooltip,this.element))}; mQa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.qO(b)&&g.kR(a.api)&&g.Z(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&a.api.getPresentingPlayerType()!==2||!c.showShareButton||c.iq||d||g.JQ(c)||a.j;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b}; nQa=function(a,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(a.Oe.Er(),vR(a.B,a.element,!1)):g.xw(b))}; pQa=function(a,b){var c=$w(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:$w(),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},va:"Share"},{I:"a",Na:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},va:"{{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:[kS()]},{I:"div",S:"ytp-share-panel-service-buttons",va:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",va:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Na:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},V:[g.mx()]}]};g.uR.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Se();this.C=[];this.G=this.Ea("ytp-share-panel-inner-content"); this.closeButton=this.Ea("ytp-share-panel-close");this.T(this.closeButton,"click",this.Nb);this.addOnDisposeCallback(g.dR(this.tooltip,this.closeButton));this.D=this.Ea("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Ea("ytp-share-panel-link");this.addOnDisposeCallback(g.dR(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=oQa(e,h); g.jS(h,e.api,f)&&e.api.ib("SHARE_CLICKED")}); this.listen("click",this.g6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.E$);this.hide()}; rQa=function(a,b){qQa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f'),(y=t.document)&&y.write&&(y.write(g.vd(u)),y.close()))):((t=Jba(y,t,r,H))&&u.noopener&&(t.opener=null),t&&u.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e)); e.hn.addOnDisposeCallback(g.dR(a.tooltip,e.hn.element));l==="Facebook"?a.api.createClientVe(e.hn.element,e.hn,164504):l==="Twitter"&&a.api.createClientVe(e.hn.element,e.hn,164505);a.T(e.hn.element,"click",function(p){return function(){a.api.logClick(p.hn.element)}}(e)); a.api.logVisibility(e.hn.element,!0);a.C.push(e.hn);d++}}var m=b.more||b.moreLink,n=new g.U({I:"a",Na:["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.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=oQa(a,q);g.jS(q,a.api,p)&&a.api.ib("SHARE_CLICKED")}); n.addOnDisposeCallback(g.dR(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)}; oQa=function(a,b){var c={};g.qO(a.api.U())&&(g.RQ(a.api,"addEmbedsConversionTrackingParams",[c]),a.api.L("embeds_web_enable_referring_feature_deprecation")||g.HK(c,"emb_share"),b=g.Hi(b,c));return b}; qQa=function(a){for(var b=g.w(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.gb(c);a.C=[]}; mV=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0}; sQa=function(a,b){a.startSec+=b;a.endSec+=b}; uQa=function(a){OS.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;tQa(this);this.T(this.J,"changeProductsInVideoVisibility",this.Bba);this.T(this.J,"videodatachange",this.onVideoDataChange)}; vQa=function(a){a.K&&a.Ma.element.removeChild(a.K.element);a.K=void 0}; xQa=function(a,b){return b.map(function(c){var d,e;if((c=(d=g.Q(c,wQa))==null?void 0:(e=d.thumbnail)==null?void 0:e.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.U({I:"img", S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.P(a,c);return c})}; yQa=function(a,b){a.isContentForward=b;g.Xo(a.badge.element,"ytp-suggested-action-badge-content-forward",b)}; nV=function(a){var b=a.isContentForward&&!a.DM();g.Xo(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Xo(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)}; oV=function(a,b,c){return new g.LC(a*1E3,b*1E3,{priority:9,namespace:c})}; zQa=function(a){a.J.sf("shopping_overlay_visible");a.J.sf("shopping_overlay_preview_collapsed");a.J.sf("shopping_overlay_preview_expanded");a.J.sf("shopping_overlay_expanded")}; tQa=function(a){a.T(a.J,g.NC("shopping_overlay_visible"),function(){a.Jf(!0)}); a.T(a.J,g.OC("shopping_overlay_visible"),function(){a.Jf(!1)}); a.T(a.J,g.NC("shopping_overlay_expanded"),function(){a.ra=!0;NS(a)}); a.T(a.J,g.OC("shopping_overlay_expanded"),function(){a.ra=!1;NS(a)}); a.T(a.J,g.NC("shopping_overlay_preview_collapsed"),function(){a.j=!0;nV(a)}); a.T(a.J,g.OC("shopping_overlay_preview_collapsed"),function(){a.j=!1;nV(a)}); a.T(a.J,g.NC("shopping_overlay_preview_expanded"),function(){a.B=!0;nV(a)}); a.T(a.J,g.OC("shopping_overlay_preview_expanded"),function(){a.B=!1;nV(a)})}; CQa=function(a){g.U.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",va:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ea("ytp-shorts-title-channel-logo");this.channelName=this.Ea("ytp-shorts-title-expanded-title"); this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.logClick(b.j);g.Ld(AQa(b));c.preventDefault()}); a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Ld(AQa(b));c.preventDefault()}); BQa(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()}; BQa=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.SU("Subscribe",null,"Subscribed",null,!0,!1,b.Xl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); a.subscribeButton=c;g.P(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}}; AQa=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.SO(b)+c.Ab;if(!g.qO(b))return c;b={};g.RQ(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.HK(b,"emb_ch_name_ex");return g.Hi(c,b)}; pV=function(a){g.uR.call(this,a,{I:"button",Na:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.Lo(function(){b.hide()},5E3); this.Rf=this.Cj=NaN;g.P(this,this.j);this.K=function(){b.show()}; this.G=function(){b.hide()}; this.D=function(){var c=b.J.getCurrentTime();c>b.Cj/1E3&&c0?{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Na:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {I:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Na:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {I:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.Lo(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250); this.C=!1;(b=b>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.YC(b?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":b?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);eR(a,this.element, this)}; KQa=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Xh()}; vV=function(a,b){rV.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.OC("timedMarkerCueRange"),this.Tc);this.T(a,"updatemarkervisibility",this.updateVideoData)}; LQa=function(a){var b,c=(b=a.J.getVideoData())==null?void 0:b.kf;if(c)for(a=a.D.Ka,c=g.w(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if(((d=b.onTap)==null?void 0:(e=d.innertubeCommand)==null?void 0:(f=e.changeEngagementPanelVisibilityAction)==null?void 0:f.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return b}}; wV=function(a){g.U.call(this,{I:"button",Na:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[msa()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ta);this.updateValue("title",g.fR(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});eR(a,this.element,this);a.createClientVe(this.element, this,62946);this.Ta()}; MQa=function(a,b,c){c=c===void 0?!1:c;g.U.call(this,{I:"button",Na:["ytp-mute-button","ytp-button"],X:a.U().Va?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},va:"{{icon}}"});this.J=a;this.Ga=c;this.j=null;this.D=this.Y=this.G=this.ra=NaN;this.Aa=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",vx());this.tooltip=b.Se();this.j=new g.ax({I:"svg",X:{height:"100%", version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]}, {I:"path",Fc:!0,Na:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Fc:!0,Na:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.P(this,this.j);this.K=this.j.Ea("ytp-svg-volume-animation-speaker"); this.Aa=this.K.getAttribute("d");this.C=g.be("ytp-svg-volume-animation-mover",this.j.element);this.B=g.be("ytp-svg-volume-animation-hider",this.j.element);this.Fa=new AT;g.P(this,this.Fa);this.qa=new AT;g.P(this,this.qa);this.listen("click",this.mba);this.T(a,"appresize",this.WV);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.dR(b.Se(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/), d=new g.uR(a,{I:"span",Na:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},va:b[2]},b[4]]},100,!0),g.P(this,d),d.hide(),d.subscribe("show",function(e){a.PE(d,e)}),g.oR(a,d.element,4)); this.message=d;a.createClientVe(this.element,this,28662);this.WV(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())}; PQa=function(a,b){a.ra=b;var c=a.Aa;b&&(c+=FNa(NQa,OQa,b));a.K.setAttribute("d",c)}; QQa=function(a,b){a.Y=b;for(var c=20*b,d=0;d=3&&a.J.getPresentingPlayerType()!==2}; VQa=function(a){var b=jR(a.J.Bb());return b?a.j?b.Hl():b.Zp():!1}; SQa=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=a.playlist!=null&&a.playlist.Hl();c=g.kR(a.J)&&(!a.j||c);var d=a.j&&g.pR(a.J),e=VQa(a),f=a.j&&a.J.getPresentingPlayerType()===5,h=g.fR(a.J,"Next","SHIFT+n"),l=g.fR(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.OT(a.playlist,a.j?RNa(a.playlist):SNa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId; b.url=a.J.U().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.oy(m.lengthSeconds):null;b.preview=m.hh("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=(m=a.videoData)==null?void 0:g.WP(m))b.url=l.Fl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.oy(l.lengthSeconds): null,b.preview=l.hh("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.dR(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Oc(a.G),a.G=null);a.tooltip.Xh()}; XQa=function(a,b){g.U.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",X:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"}, va:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[rx()],X:{title:"Play from this position",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.mx()],X:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=a;this.G=this.Ea("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ea("ytp-fine-scrubbing-dismiss");this.Aa=this.Ea("ytp-fine-scrubbing-draggable");this.playButton=this.Ea("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.Ka=this.j=0;this.Ma=void 0; this.qa=NaN;this.Ra=this.Y=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Va=0;this.isEnabled=this.Ga=!1;WQa(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.dR(b,this.dismissButton));this.addOnDisposeCallback(g.dR(b,this.playButton));this.Fa=new g.fT(this.Aa,!0);this.Fa.subscribe("dragstart",this.QN,this);this.Fa.subscribe("dragmove",this.PN,this);this.Fa.subscribe("dragend",this.j6,this);this.T(a,"SEEK_COMPLETE",this.EB);a.L("web_fix_fine_scrubbing_false_play")&& this.T(a,"rootnodemousedown",function(d){c.ra=d}); this.G.addEventListener("keydown",function(){}); g.P(this,this.Fa);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; WQa=function(a,b){var c=g.oy(b),d=g.YC("Seek to $PROGRESS",{PROGRESS:g.oy(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})}; YQa=function(a){a.qa=NaN;a.Y=0;a.N=a.C}; aRa=function(a){var b=a.api.Ak();if(b){var c=90*a.scale,d=wP(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=xP(b,b.vz()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=ha.D.length;)d= void 0,(d=a.thumbnails.pop())==null||d.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,(d=a.B.pop())==null||d.dispose(); for(;a.B.length-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; bRa=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)}; ZQa=function(){g.U.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})}; $Qa=function(){g.U.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",va:"{{chapterTitle}}"}]})}; dRa=function(a){g.U.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.Ea("ytp-heat-map-svg");this.C=this.Ea("ytp-heat-map-path");this.G=this.Ea("ytp-heat-map-graph");this.D=this.Ea("ytp-heat-map-play");this.B=this.Ea("ytp-heat-map-hover");this.ue=!1;this.j=60;a=""+g.Ta(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.To(this.api.getRootNode(),"ytp-heat-map-v2")}; eRa=function(a,b){b>0&&(a.j=b,a.K.style.height=a.j+"px")}; AV=function(){g.U.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",Na:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Ea("ytp-progress-linear-live-buffer");this.C=this.Ea("ytp-ad-progress-list"); this.G=this.Ea("ytp-load-progress");this.K=this.Ea("ytp-play-progress");this.B=this.Ea("ytp-hover-progress");this.j=this.Ea("ytp-chapter-hover-container")}; BV=function(a,b){g.Vl(a.j,"width",b)}; fRa=function(a,b){g.Vl(a.j,"margin-right",b+"px")}; gRa=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN}; hRa=function(){g.U.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.DV=function(a,b){g.ex.call(this,{I:"div",S:"ytp-progress-bar-container",X:{"aria-disabled":"true"},V:[{I:"div",Na:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Na:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"}, {I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",Na:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Na:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",va:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",va:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end", X:{title:"{{clipendtitle}}"},va:"{{clipendicon}}"}]});this.api=a;this.lf=!1;this.Uf=this.Va=this.N=this.Tf=0;this.Je=null;this.Ma={};this.Ob={};this.clipEnd=Infinity;this.Ab=this.Ea("ytp-clip-end");this.yc=new g.fT(this.Ab,!0);this.wc=this.Ea("ytp-clip-end-exclude");this.Rc=this.Ea("ytp-clip-start-exclude");this.clipStart=0;this.Kb=this.Ea("ytp-clip-start");this.Wc=new g.fT(this.Kb,!0);this.qa=this.fb=0;this.progressBar=this.Ea("ytp-progress-bar");this.yb={};this.Ka={};this.Tb=this.Ea("ytp-chapters-container"); this.Sf=this.Ea("ytp-timed-markers-container");this.j=[];this.K=[];this.Ae={};this.Qf=null;this.Wa=-1;this.ob=this.Aa=0;this.Y=null;this.Vf=this.Ea("ytp-scrubber-button");this.Jg=this.Ea("ytp-scrubber-container");this.Xa=new g.Ed;this.Rf=new gRa;this.C=new ty(0,0);this.Hb=null;this.D=this.kf=!1;this.yh=null;this.ra=this.Ea("ytp-heat-map-container");this.Ed=this.Ea("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.Ya=this.Ea("ytp-fine-scrubbing-container");this.Zd=this.Ea("ytp-fine-scrubbing-edu"); this.B=void 0;this.Fa=this.Fd=this.Ga=!1;this.tooltip=b.Se();this.addOnDisposeCallback(g.dR(this.tooltip,this.Ab));g.P(this,this.yc);this.yc.subscribe("hoverstart",this.d0,this);this.yc.subscribe("hoverend",this.b0,this);this.T(this.Ab,"click",this.kM);this.addOnDisposeCallback(g.dR(this.tooltip,this.Kb));g.P(this,this.Wc);this.Wc.subscribe("hoverstart",this.d0,this);this.Wc.subscribe("hoverend",this.b0,this);this.T(this.Kb,"click",this.kM);iRa(this);this.T(a,"resize",this.kc);this.T(a,"presentingplayerstatechange", this.F9);this.T(a,"videodatachange",this.mu);this.T(a,"videoplayerreset",this.E9);this.T(a,"cuerangesadded",this.ifa);this.T(a,"cuerangesremoved",this.xda);this.T(a,"onLoopRangeChange",this.XV);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.NC("timedMarkerCueRange"),this.Aca);this.T(a,"updatemarkervisibility",this.y3);var c;((c=a.getVideoData())==null?0:c.Jh())&&a.L("html5_lifa_ad_disable_progress_bar")&&this.T(a,"serverstitchedvideochange",this.jfa);this.updateVideoData(a.getVideoData(), !0);this.XV(a.getLoopRange());CV(this)&&!this.B&&(this.B=new XQa(this.api,this.tooltip),a=g.dm(this.element).x||0,this.B.kc(a,this.N),this.B.Ja(this.Ya),g.P(this,this.B),this.T(this.B.dismissButton,"click",this.Zw),this.T(this.B.playButton,"click",this.AP),this.T(this.B.element,"dblclick",this.AP));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Ed,this,140127,!0);this.api.createClientVe(this.Zd,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden= !0)}; iRa=function(a){if(a.j.length===0){var b=new AV;a.j.push(b);g.P(a,b);b.Ja(a.Tb,0)}for(;a.j.length>1;)a.j.pop().dispose();BV(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""}; jRa=function(a){var b=b===void 0?NaN:b;var c=new dRa(a.api);a.G.push(c);g.P(a,c);c.Ja(a.ra);b>=0&&(c.element.style.width=b+"px")}; kRa=function(a){for(;a.K.length;)a.K.pop().dispose()}; mRa=function(a){var b,c,d,e,f;return(f=g.Q((e=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,mP))==null?void 0:e.playerBar,lRa))==null?void 0:f.chapters}; nRa=function(a){for(var b=a.j,c=[],d=0;d=h&&y<=p&&f.push(r)}m>0&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;u=m;y=d===0;y=y===void 0?!1:y;eRa(h,u);q=p;t=h.j;y=y===void 0?!1:y;var A=1E3/q.length,D=[];D.push({x:0,y:100});for(var F=0;F0&&(c=f[f.length-1])}g.EV(a);l=[];b=g.w(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.Q(e.value,uRa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:(n= e.visibleTimeRangeStartMillis)!=null?n:-1,visibleTimeRangeEndMillis:(c=e.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(d=e.decorationTimeMillis)!=null?d:NaN,label:m?g.hx(m):""});a.heatMarkersDecorations=l}}; qRa=function(a,b){a.K.push(b);g.P(a,b);b.Ja(a.Sf,a.Sf.children.length)}; rRa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=FV(a,c.timeRangeStartMillis/(a.C.j*1E3),GV(a));g.Vl(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}}; oRa=function(a,b){var c=0,d=!1;b=g.w(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.Q(e,wRa)){e=g.Q(e,wRa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.hx(h):"";h=e.timeRangeStartMillis;h!=null&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;c===0&&e.startTime!==0&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new AV,a.j.push(f),g.P(a,f),f.Ja(a.Tb,a.Tb.children.length));a.j[c].startTime= e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c=0;d--)if(a.j[d].width>0){fRa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;BV(a.j[d],e+"px");break}a.j[c].width=0;BV(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,BV(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,BV(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b< a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)}; xRa=function(a,b){var c=0,d=!1,e=a.j.length,f=a.C.j*1E3;f===0&&(f=a.api.getProgressState().seekableEnd*1E3);if(f>0&&a.N>0){for(var h=a.N-(a.D?3:2)*a.Aa,l=a.ob===0?3:h*a.ob,m=g.w(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c1);n=(f===0?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];r!==void 0&&r.width> 0?r.width+=n:qa.ob&&(a.ob=m/f),d=!0)}c++}}return d}; HV=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=((d=a.api.getVideoData())==null?0:IQ(d))&&b.airingStart&&b.airingEnd?yRa(a,b.airingStart,b.airingEnd):yRa(a,b.seekableStart,b.seekableEnd);d=uy(c,b.loaded,0);b=uy(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;IV(a,b,d);e&&zRa(a);ARa(a)}}}; yRa=function(a,b,c){return BRa(a)?new ty(Math.max(b,a.Hb.startTimeMs/1E3),Math.min(c,a.Hb.endTimeMs/1E3)):new ty(b,c)}; CRa=function(a,b){var c;if(((c=a.Hb)==null?void 0:c.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=a.j[cV(a.j,b.startTimeMs)],g.Xo(b.j,"ytp-repeating-chapter",!1)),a.Hb&&(b=a.j[cV(a.j,a.Hb.startTimeMs)],g.Xo(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Xo(d.j,"ytp-exp-chapter-hover-container",!a.Hb)})}; KV=function(a,b){var c=Qsa(a.C,b.B);if(a.j.length>1){c=JV(a,b.C,!0);for(var d=0,e=0;e0&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?a.C.j*1E3:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c}; DRa=function(a,b,c){return c>=a.j.length?!1:Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Aa)<4}; zRa=function(a){a.Vf.style.removeProperty("height");for(var b=g.w(Object.keys(a.Ma)),c=b.next();!c.done;c=b.next())ERa(a,c.value);LV(a);IV(a,a.qa,a.fb)}; GV=function(a){var b=a.Xa.x;b=g.Bd(b,0,a.N);a.Rf.update(b,a.N);return a.Rf}; NV=function(a){return(a.D?135:90)-MV(a)}; MV=function(a){var b=48,c=a.api.U();a.D?b=54:g.qO(c)&&!c.B&&(b=40);return b}; IV=function(a,b,c){a.qa=b;a.fb=c;var d=GV(a),e=a.C.j,f=Qsa(a.C,a.qa),h=g.YC("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.oy(f,!0),DURATION:g.oy(e,!0)}),l=cV(a.j,f*1E3);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.Hb&&a.api.getPresentingPlayerType()!==2&&(e=a.Hb.startTimeMs/1E3,f=a.Hb.endTimeMs/1E3);e=uy(a.C,e,0);l=uy(a.C,f,1);h=a.api.getVideoData();f=g.Bd(b,e,l);c=(h==null?0:g.GQ(h))?1:g.Bd(c, e,l);b=FV(a,b,d);g.Vl(a.Jg,"transform","translateX("+b+"px)");OV(a,d,e,f,"PLAY_PROGRESS");(h==null?0:IQ(h))?(b=a.api.getProgressState().seekableEnd)&&OV(a,d,f,uy(a.C,b),"LIVE_BUFFER"):OV(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;(m=a.G[0])!=null&&m.D.setAttribute("width",(f*100).toFixed(2)+"%")}}; OV=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Aa*(a.D?3:2),l=c*h;c=JV(a,l);var m=d*h;h=JV(a,m);e==="HOVER_PROGRESS"&&(h=JV(a,b.j*d,!0),m=b.j*d-FRa(a,b.j*d)*(a.D?3:2));d=Math.max(l-GRa(a,c),0);for(l=c;l=a.j.length)return a.N;for(var c=0,d=0;d0||a.wc.clientWidth>0?(f=b.clientWidth/c,a=-1*a.Rc.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.Vl(b,"background-size",f+"px"),g.Vl(b,"background-position-x",a+"px"))}; PV=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.Vl(b,"transform","scalex("+(d?c/d:0)+")")}; JV=function(a,b,c){var d=0;(c===void 0?0:c)&&(b-=FRa(a,b)*(a.D?3:2));c=g.w(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; FV=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.w(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&h.width>0&&e++;return b*(c.j-(a.D?3:2)*a.Aa)+(a.D?3:2)*(e<0?0:e)+c.D}; FRa=function(a,b){for(var c=a.j.length,d=0,e=g.w(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,f.width!==0)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d}; g.JRa=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Tf=b;a.N=c;a.D=d;CV(a)&&(b=a.B)!=null&&(b.scale=d?1.5:1);zRa(a);a.j.length===1&&(a.j[0].width=c||0);e&&g.EV(a);a.B&&f&&CV(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-MV(a),a.Ya.style.height=c+"px",g.Vl(a.ra,"transform","translateY("+-d+"px)"),g.Vl(a.progressBar,"transform","translateY("+-d+"px)")),aRa(a.B))}; LV=function(a){var b=!!a.Hb&&a.api.getPresentingPlayerType()!==2,c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Hb?(c=a.Hb.startTimeMs/1E3,d=a.Hb.endTimeMs/1E3):(e=c>a.C.B,f=a.C.j>0&&da.qa);g.Xo(a.Vf,"ytp-scrubber-button-hover",c===d&&a.j.length>1);if(a.api.L("web_player_heat_map_played_bar")){var f;(f=a.G[0])!=null&&f.B.setAttribute("width",(b.B*100).toFixed(2)+"%")}}}; ERa=function(a,b){var c=a.Ma[b];b=a.Ob[b];var d=GV(a),e=uy(a.C,c.start/1E3,0),f=ova(c,a.D)/d.width;var h=uy(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Bd(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.D,0)+"px";PV(a,b,g.Bd((h-c)*d.j+d.D,0,d.width),d.width,!0)}; KRa=function(a,b){var c=b.getId();a.Ma[c]===b&&(g.oe(a.Ob[c]),delete a.Ma[c],delete a.Ob[c])}; CV=function(a){var b=g.KO(a.api.U())&&(a.api.L("web_enable_pip_on_miniplayer")||a.api.L("web_enable_auto_pip")),c;return!((c=a.api.getVideoData())==null?0:c.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()&&(!a.api.Ej()||!b)}; QV=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.Ya.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))}; LRa=function(a,b){var c=b/NV(a)*MV(a);g.Vl(a.progressBar,"transform","translateY("+-b+"px)");g.Vl(a.ra,"transform","translateY("+-b+"px)");g.Vl(a.Ya,"transform","translateY("+c+"px)");a.Ya.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=MV(a)-c+"px")}; MRa=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.fT(a.progressBar,!0),a.Y.subscribe("hovermove",a.Eba,a),a.Y.subscribe("hoverend",a.Dba,a),a.Y.subscribe("dragstart",a.Cba,a),a.Y.subscribe("dragmove",a.Gba,a),a.Y.subscribe("dragend",a.Fba,a),a.yh=a.listen("keydown",a.l6)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Oc(a.yh),a.Y.cancel(),a.Y.dispose(),a.Y=null)}; BRa=function(a){var b;return!((b=a.Hb)==null||!b.postId)&&a.api.getPresentingPlayerType()!==2}; RV=function(a,b){g.U.call(this,{I:"button",Na:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},va:"{{icon}}"});this.J=a;this.Eb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);a.createClientVe(this.element,this,139118);this.Ta();this.listen("click",this.B,this);eR(a,this.element,this)}; SV=function(a,b){g.U.call(this,{I:"button",Na:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":$w(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.tx()]});this.J=a;this.Eb=b;this.B=!0;this.listen("click",this.C);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);eR(a,this.element,this);this.J.createClientVe(this.element, this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())}; NRa=function(a,b){a.B=!!b;a.j(a.J.qb().getPlayerSize())}; TV=function(a,b){gS.call(this,"Annotations",g.mS.a4);this.J=a;this.Eb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]});this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.subscribe("select",this.onSelect,this);this.Ta()}; UV=function(a,b){g.aT.call(this,"Audio track",g.mS.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.U({I:"div",V:[{I:"span",va:"Audio track"},{I:"span",S:"ytp-menuitem-label-count",va:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]});g.P(this,this.countLabel);this.Uj(this.countLabel);this.T(a,"videodatachange",this.Ta);this.T(a,"onPlaybackAudioChange",this.Ta);this.Ta()}; VV=function(a,b){gS.call(this,"Autoplay",g.mS.g4);this.J=a;this.Eb=b;this.j=!1;this.C=[];this.T(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.B()}; ORa=function(a,b){g.xR.call(this,g.TR({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Eb=b;this.T(this.element,"click",this.onClick);this.Eb.Uc(this)}; PRa=function(a,b){var c;g.KO(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",va:"Adjust download quality from your "},{I:"a",S:"ytp-panel-footer-content-link",va:"Settings",X:{href:"/account_downloads"}}]});g.aT.call(this,"Quality",g.mS.Q6,a,b,void 0,void 0,c);this.J=a;this.Aa={};this.Y={};this.D={};this.Fa=new Set;this.j=this.G=!1;this.N="unknown";this.qa="";this.ra=new g.Ou;g.P(this,this.ra);this.G=this.J.L("web_player_use_new_api_for_quality_pullback");this.j=this.J.L("web_player_enable_premium_hbr_playback_cap"); a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.To(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.zD);this.T(a,"videoplayerreset",this.zD);this.T(a,"onPlaybackQualityChange",this.YV);this.zD();a.createClientVe(this.element,this,137721)}; RRa=function(a,b,c){var d=a.Aa[b],e=g.lE[b];return QRa(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)}; SRa=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.Y[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=QRa(a,h,f||"",e);d&&a.V.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.V.push({I:"div",S:"ytp-premium-label",va:d});return a}; QRa=function(a,b,c,d){b={I:"span",Na:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";c==="highres"?e="8K":c==="hd2880"?e="5K":c==="hd2160"?e="4K":c.indexOf("hd")===0&&c!=="hd720"&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,va:e}));return b}; WV=function(a,b,c,d){g.U.call(this,{I:"div",S:"ytp-input-slider-section",V:[{I:"input",S:"ytp-input-slider",X:{type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.K=b;this.N=c;this.initialValue=d;this.j=this.Ea("ytp-input-slider");this.B=d?d:a;this.init();this.T(this.j,"input",this.G)}; TRa=function(a,b){a.j.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.K-a.D)*100+"%")}; XV=function(a){WV.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.J=a;this.C=g.he("P");this.qa=mba(this.Y,this);g.To(this.j,"ytp-speedslider");g.To(this.C,"ytp-speedslider-text");a=this.C;var b=this.j;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.C.textContent=this.B+"x";this.T(this.j,"change",this.ra)}; YV=function(a,b,c,d,e,f,h){g.U.call(this,{I:"div",S:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.N=a;this.Y=b;this.B=c;this.C=d;this.qa=e;this.Ga=f;this.range=this.C-this.B;this.Ma=this.Ea("ytp-slider-section");this.D=this.Ea("ytp-slider");this.ra=this.Ea("ytp-slider-handle");this.K=new g.fT(this.D, !0);this.j=h?h:c;g.P(this,this.K);this.K.subscribe("dragmove",this.n6,this);this.T(this.element,"keydown",this.o6);this.T(this.element,"wheel",this.m6);this.init()}; ZV=function(a){YV.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.he("P");this.Fa=mba(this.Aa,this);g.To(this.D,"ytp-speedslider");g.To(this.G,"ytp-speedslider-text");a=this.G;var b=this.D;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);URa(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)}; URa=function(a){a.G.textContent=VRa(a,a.j)+"x"}; VRa=function(a,b){a=Number(g.Bd(b,a.B,a.C).toFixed(2));b=Math.floor((a+.001)*100%5+2E-15);var c=a;b!==0&&(c=a-b*.01);return Number(c.toFixed(2))}; WRa=function(a){g.ex.call(this,{I:"div",S:"ytp-speedslider-component"});a.L("web_settings_use_input_slider")?this.j=new XV(a):this.j=new ZV(a);g.P(this,this.j);this.element.appendChild(this.j.element)}; XRa=function(a){var b=new WRa(a);PS.call(this,a,b,"Custom");g.P(this,b)}; YRa=function(a,b){var c=new XRa(a);g.aT.call(this,"Playback speed",g.mS.T6,a,b,$V(a)?void 0:"Custom",$V(a)?void 0:function(){g.US(b,c)}); g.P(this,c);this.Y=new XV(a);g.P(this,this.Y);a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]});this.J=a;this.N=null;$V(a)?(this.j=g.YC("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ta);var d;this.J.L("html5_lifa_ui_disablement")&&((d=this.J.getVideoData())==null?0:d.Jh())&&this.T(a,"serverstitchedvideochange",this.Ta);this.Ta()}; $Ra=function(a,b){var c=ZRa(b);a.options[c]?a.Ui(c):b===a.D&&a.j&&(a.Ui(a.j),a.Dd(b.toString()))}; bSa=function(a){g.bT(a,a.G.map(ZRa));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.G.includes(b)||$V(a.J))aSa(a,b),g.aT.prototype.Ig.call(a,a.j)}; aSa=function(a,b){a.D=b;a.j=g.YC("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(ZRa);b.unshift(a.j);g.bT(a,b)}; ZRa=function(a){return a.toString()}; $V=function(a){return a.L("web_settings_menu_surface_custom_playback")}; cSa=function(a){return a.L("web_settings_menu_surface_custom_playback")&&a.L("web_settings_use_input_slider")}; eSa=function(a,b,c,d){var e=new g.QS(b,void 0,"Video Override");g.aT.call(this,d.text||"",a,b,c,"Video Override",function(){g.US(c,e)}); var f=this;g.To(this.element,"ytp-subtitles-options-menu-item");this.N=d.option.toString();a=d.options;this.settings=g.dc(a,this.ZV,this);this.G=e;g.P(this,this.G);b=new g.xR({I:"div",S:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.P(this,b);this.G.Uc(b,!0);this.D=new g.xR({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"On"}]},-1);g.P(this,this.D);this.G.Uc(this.D,!0);this.T(this.D.element,"click", function(){dSa(f,!0)}); this.j=new g.xR({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"Off"}]},-2);g.P(this,this.j);this.G.Uc(this.j,!0);this.T(this.j.element,"click",function(){dSa(f,!1)}); g.bT(this,g.nl(a,this.ZV))}; dSa=function(a,b){a.publish("settingChange",a.N+"Override",!b);a.Eb.ij()}; aW=function(a,b){g.QS.call(this,a,void 0,"Options");var c=this;this.Ou={};for(var d=0;d=0);if(!(b<0||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Aa*a.scale,d=zKa(a.B,a.D,b);FQa(a.bg,d,b,c,!0);a.Ga.start()}}; ESa=function(a){var b=a.j;a.type===3&&a.Ma.stop();a.api.removeEventListener("appresize",a.Fa);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null}; GSa=function(a){g.U.call(this,{I:"button",Na:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.qO(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",va:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",va:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;jMa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize", this.BD);this.T(a,"videodatachange",this.BD);this.T(a,"presentingplayerstatechange",this.BD);this.BD();a=this.J.U();var b=g.vs("yt-player-watch-later-pending");a.D&&b?(QBa(),FSa(this)):this.Ta(2);g.Xo(this.element,"ytp-show-watch-later-title",g.qO(a));eR(this.J,this.element,this)}; HSa=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.qO(c)&&g.kR(a.J)&&g.Z(a.J.getPlayerStateObject(),128),f=c.C;return c.Je&&b.width>=240&&!d.isAd()&&d.Je&&!e&&!g.JQ(d)&&!a.J.jd()&&!f}; ISa=function(a,b){cPa(g.GO(a.J.U()),"wl_button",function(){QBa({videoId:b});window.location.reload()})}; FSa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ta(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.Jm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; a.isRequestPending=!1;a.Ta(1);a.J.U().B&&a.J.MH(a.element);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_ADDED")}; Rz(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.ib("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; JSa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=kS();break;case 1:c=jx();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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", Fc:!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.mW=function(){g.LU.apply(this,arguments);this.IK=(this.Xr=g.qO(this.api.U()))&&(this.api.U().B||Nr()||Lr());this.OO=48;this.PO=69;this.AE=this.Ji=null;this.Qu=[];this.QM=this.Ei=this.RM=this.Uw=this.le=null;this.bI=[];this.contextMenu=this.Fg=this.overflowButton=this.Ai=this.Zg=this.searchButton=this.copyLinkButton=this.shareButton=this.qp=this.Vg=this.title=this.channelAvatar=this.PB=this.tooltip=null;this.wO=!1;this.aH=this.Kx=this.XE=this.YE=null;this.AS=this.sR=this.bP=!1}; KSa=function(a){var b=a.api.U(),c=g.Z(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()}; LSa=function(a){if(a.Pg()&&!a.api.jd()&&a.Ai){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.qp||b&&!HSa(a.qp)||cQa(a.Ai,a.qp);!a.shareButton||b&&!mQa(a.shareButton)||cQa(a.Ai,a.shareButton);!a.copyLinkButton||b&&!rPa(a.copyLinkButton)||cQa(a.Ai,a.copyLinkButton)}else{if(a.Ai){b=a.Ai;for(var c=g.w(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.pe(a.Vg.element,a.searchButton.element)&&a.searchButton.Ja(a.Vg.element);a.qp&&!g.pe(a.Vg.element, a.qp.element)&&a.qp.Ja(a.Vg.element);a.shareButton&&!g.pe(a.Vg.element,a.shareButton.element)&&a.shareButton.Ja(a.Vg.element);a.copyLinkButton&&!g.pe(a.Vg.element,a.copyLinkButton.element)&&a.copyLinkButton.Ja(a.Vg.element)}}; MSa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if(Zl(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var e=void 0;b.tabIndex>=0?e=b:e=MSa(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexd/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Le())&&d.isView()&&(d=d.mediaElement);if(d&&d.mx().length>12&&g.jQ(e))return{msg:"played-ranges"};if(!e.C)return null;if(!h)return{msg:"no-pvd-formats"};if(!e.C.j||!h.j)return{msg:"non-dash"};d=h.videoInfos[0];var l=e.C.videoInfos[0];a.G&&$P(f)&&(d=b.iA(),l= c.iA());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(tE(d)||tE(l)))return{msg:"av1"};b=a.B&&f.Ck()&&QE();if(l.containerType!==d.containerType)if(b)f.oa("sgap",{ierr:"container"});else return{msg:"container"};if(g.jQ(f)&&g.jQ(e))return{msg:"content-protection"};h=h.j[0];e=e.C.j[0];c=h.audio;var m=e.audio;if(c.sampleRate!==m.sampleRate&&!g.eE)if(b)f.oa("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:c.sampleRate,ni:e.itag,nr:m.sampleRate};return(c.numChannels||2)!==(m.numChannels|| 2)?{msg:"channel-count"}:a.D&&f.Ck()&&d.video.fps!==l.video.fps?{msg:"fps"}:null}; $Sa=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.Qk||e.Qk)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};if(!c.j&&!a.Eo())return{nq:"no-empty"};a=ZSa(c,a,b,Infinity);return a!=null?{nq:a.msg}:null}; uW=function(a){g.O.call(this);this.app=a;this.D=this.C=this.wb=this.j=null;this.B=1;this.events=new g.iE(this);this.events.T(this.app.Ua,g.OC("gaplessshortslooprange"),this.N);g.P(this,this.events)}; aTa=function(){this.j=this.C=this.G=this.D=this.B=!1}; bTa=function(a){var b=new aTa;b.B=a.L("h5_gapless_support_types_diff");b.D=a.L("h5_gapless_error_on_fps_diff");b.G=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.j=a.L("html5_gapless_one_queued_player_only");return b}; g.vW=function(a,b,c,d){d=d===void 0?!1:d;aF.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d}; cTa=function(a,b,c,d,e,f){f=f===void 0?0:f;g.O.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.Ad=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.Sq=new $E;this.vn=d-b.Dc()*1E3;this.Sq.then(void 0,function(){}); this.timeout=new g.Lo(function(){h.Tg("timeout")},1E4); g.P(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}}; iTa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.J(function(q){if(q.j==1){if(a.La())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.wW.AC();return g.G(q,a.Sq,2)}g.wW.gA("gtfta",b);c=a.j.Le();if(c.isEnded())return a.Tg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!TE(a.D))return a.Tg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Mr()!==a.D)return a.Tg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error|| "")));d=dTa(a);e=d.Q_;f=d.FX;h=d.O_;a.j.Sj(!1,!0);l=eTa(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.qF();a.Ad.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.FH(m.TB,m.UB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{xx:!0,kU:3,Zc:"gapless_pseudo"}),l.play(),tr());n=c.uc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.oa("gapless",n);a.j.oa("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();fTa(a.j,f,!1, p,a.B.getVideoData().clientPlaybackNonce);fTa(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.H2=!0;a.Ad.U().L("html5_gapless_monitor_pbs")&&a.G===1&&gTa(a.B);g.Ae(function(){!a.B.getVideoData().Aa&&a.B.getPlayerState().isOrWillBePlaying()&&hTa(a.B)}); xW(a,6);a.dispose();return q.return(Promise.resolve())})}; nTa=function(a){if(a.B.getVideoData().C){var b=a.Ad.U().L("html5_gapless_suspend_next_loader")&&a.G===1;jTa(a.B,a.D,b,kTa(a));xW(a,3);lTa(a);var c=mTa(a);b=c.GT;c=c.q2;b.subscribe("updateend",a.xz,a);c.subscribe("updateend",a.xz,a);a.xz(b);a.xz(c)}}; lTa=function(a){a.j.unsubscribe("internalvideodatachange",a.Kn,a);a.B.unsubscribe("internalvideodatachange",a.Kn,a);a.Ad.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.Kn,a),a.B.unsubscribe("internalvideoformatchange",a.Kn,a));a.j.unsubscribe("mediasourceattached",a.Kn,a);a.B.unsubscribe("statechange",a.cW,a)}; eTa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.vW(a,b,c,d)}; xW=function(a,b){b<=a.status.status||(a.status={status:b,error:null},b===5&&a.Sq.resolve())}; kTa=function(a){return a.Ad.U().L("html5_gapless_no_clear_buffer_timeline")&&a.G===1&&PP(a.j.getVideoData())}; dTa=function(a){var b=a.j.Le();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:yW(a.j,!0);c=Math.min(a.vn/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Xf()+d;return{U7:b,Q_:a,FX:c,O_:Infinity}}; mTa=function(a){return{GT:a.C.j.Jd,q2:a.C.B.Jd}}; pTa=function(a){g.O.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.C=this.D=null;this.N=bTa(this.app.U());this.K=function(){g.Ae(function(){oTa(b)})}}; qTa=function(a,b,c,d,e){d=d===void 0?0:d;e=e===void 0?0:e;a.Eo()||zW(a);a.D=new $E;a.j=b;var f=c,h=e===0;h=h===void 0?!0:h;var l=a.app.Vc(),m=l.getVideoData().isLivePlayback?Infinity:yW(l,!0)*1E3;f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.NC("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.LC(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,yW(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,yW(b)+m)),h=lIa(f,l)||d,h!==d&&a.j.oa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Ed=!0;d.getVideoData().Y=!0;g.AW(d,!0);f={};a.B&&(f=g.FI(a.B.hc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:h});d.oa("queued",f);b!==0&&d.seekTo(b+.01,{xx:!0,kU:3,Zc:"videoqueuer_queued"});a.C=new cTa(a.N,a.app.Vc(),a.j,c,a.app,e);c=a.C;c.status.status!== Infinity&&(xW(c,1),c.j.subscribe("internalvideodatachange",c.Kn,c),c.B.subscribe("internalvideodatachange",c.Kn,c),c.Ad.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.Kn,c),c.B.subscribe("internalvideoformatchange",c.Kn,c)),c.j.subscribe("mediasourceattached",c.Kn,c),c.B.subscribe("statechange",c.cW,c),c.j.subscribe("newelementrequired",c.n0,c),c.Kn());return a.D}; oTa=function(a){var b,c,d,e,f,h,l,m,n;g.J(function(p){switch(p.j){case 1:if(a.La()||!a.D||!a.j)return p.return();a.Z&&BW(a.app.Vc(),!0,!1);c=a.app.U().L("html5_force_csdai_gapful_transition")&&((b=a.app.Vc())==null?void 0:b.getVideoData().isDaiEnabled());d=null;if(!a.C||c){p.Ha(2);break}g.wa(p,3);return g.G(p,iTa(a.C),5);case 5:g.xa(p,2);break;case 3:d=e=g.ya(p);case 2:if(!a.j)return p.return();g.wW.fv("vqsp",function(){CW(a.app,a.j)}); f=a.j.Le();a.app.U().L("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&a.j.seekTo(0);g.wW.fv("vqpv",function(){a.app.playVideo()}); if(d||c)a.j?(h=d?d.message:"forced",(l=a.B)==null||l.oa("gapfulfbk",{r:h}),rTa(a.j,h)):(m=a.B)==null||m.oa("gapsp",{});n=a.D;zW(a);n&&n.resolve();return p.return(Promise.resolve())}})}; zW=function(a,b){b=b===void 0?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.NC("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(a.C.status.status!==6&&(c=a.C,c.status.status!==Infinity&&c.G!==1&&c.Tg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.ZQ(a.app,1)&&a.j!==a.app.Vc()&&a.j.dispose();a.j&&b&&DW(a.j);a.j=null;a.Z=!1}; sTa=function(a){var b;return((b=a.C)==null?void 0:b.currentVideoDuration)||-1}; tTa=function(a,b,c){if(a.Eo())return"qie";if(a.j==null||a.j.La()||a.j.getVideoData()==null)return"qpd";if(b.videoId!==a.j.qf())return"vinm";if(sTa(a)<=0)return"ivd";if(c!==1)return"upt";var d;(d=a.C)==null?a=void 0:d.getStatus().status!==5?a="niss":ZSa(d.policy,d.j,d.B,d.vn)!=null?a="pge":(c=mTa(d),b=c.GT,a=g.VB(d.Ad.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=IE(c.q2.qe(),d),b=IE(b.qe(),d),a=!(a>0)||c&&b?null:"neb");return a!=null?a:null}; uTa=function(){var a=vna();return!(!a||a==="visible")}; wTa=function(a){var b=vTa();b&&document.addEventListener(b,a,!1)}; xTa=function(a){var b=vTa();b&&document.removeEventListener(b,a,!1)}; vTa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[as+"VisibilityState"])return"";a=as+"visibilitychange"}return a}; yTa=function(){g.Xw.call(this);var a=this;this.fullscreen=0;this.D=this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.G=function(){a.Jf()}; wTa(this.G);this.K=this.getVisibilityState(this.ri(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Ej(),this.OA(),this.VA(),this.Ek())}; nT=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.Ej()||a.OA()||a.VA()||a.Ek())}; EW=function(a,b){g.O.call(this);var c=this;this.policy=a;this.gb=b;this.B=0;this.j=null;this.wf=[];this.C=null;this.hd={Zn:function(){return c.gb}}; this.gb.length===1||g.ol(this.gb,function(d){return!!d.range})}; FW=function(a,b,c){a.j&&(EJ(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.w(a.gb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{if(yM(h)&&!c&&a.B+b.totalLength-e0){b=g.w(b.gb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=((d=c.value.range)==null?void 0:d.length)||0}return a}if(b.lG.length>0)for(c=g.w(b.lG),d=c.next();!d.done;d=c.next())a+=d.value.Js||0;return a+b.xZ}; DTa=function(a,b){if(HW){var c=0;a=a.fd.get(b);if(a==null||!a.Hj)return 0;a=g.w(a.Hj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.totalLength;return c}return((c=a.fd.get(b))==null?void 0:c.wf.totalLength)||0}; JW=function(a,b){a=a.fd.get(b);if(HW){if(a==null||!a.fE)return!1;b=a.Hj.size>0;return a.Sx.length>0||b}return!(a==null||!a.fE)&&!(a==null||!a.wf.totalLength)}; ETa=function(a,b){var c=a.fd.get(b),d=CTa(a,b),e=!d&&!!c.bytesReceived;if(HW){var f;if((f=a.manifest)==null?0:f.Vb){a=g.w(c.Hj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.Ex)return!1;return e}}else if(f=a.Bx(b),e&&a.j&&f!==void 0)return f;return(e||c.bytesReceived===d)&&c.Iz+DTa(a,b)===c.bytesReceived}; FTa=function(a,b,c){a.fd.set(b,{wf:new DJ,Iz:0,bytesReceived:0,xZ:0,QS:!1,Og:!1,Bx:!1,Hh:c,sT:[],gb:[],lG:[],fE:!1,Hj:new Map,PH:new Map,Sx:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})}; GTa=function(a,b,c,d){c.gb.push.apply(c.gb,g.x(d));if(HW){c.PH.has(b)||c.PH.set(b,[]);var e;(e=c.PH.get(b)).push.apply(e,g.x(d))}else if(c.fg)for(a=g.w(d),b=a.next();!b.done;b=a.next())c.fg.gb.push(b.value);else{c.fg=new EW(a.He,[].concat(g.x(c.gb)));var f;((f=a.He)==null?0:f.Ae)&&g.P(a,c.fg)}}; HTa=function(a,b,c){var d,e=(d=a.manifest)==null?void 0:d.K.get(b);if(!e)return[];if(c.Do){var f;return((f=e.jx(0,c.clipId))==null?void 0:f.gb)||[]}if(e.Sm()){var h=c.startMs,l=c.durationMs,m=1E3,n;if(((n=a.He)==null?0:n.B)&&c.timeRange){var p;h=(p=c.timeRange.Ug)!=null?p:-1;var q;l=(q=c.timeRange.ME)!=null?q:-1;var r;m=(r=c.timeRange.Us)!=null?r:-1}if(c.mC<0||c.Lq<0||l<0||h<0||c.Js<0||m<0)return IW(a,b),[];a=vM(c.mC,c.Js);b=c.rL||0;return[new xM(3,e,a,"makeSliceInfosMediaBytes",c.Lq-1,h/m,l/m,b, a.length-b,void 0,c.Tj,c.clipId)]}if(c.Lq<0)return IW(a,b),[];var t;return((t=a.manifest)==null?0:t.Vb)?(b=e.Vj,n=b*e.info.tb,p=((h=a.He)==null?0:h.yc)?c.rL:void 0,((m=a.He)==null?0:m.Aw)&&c.timeRange&&!p&&(l=c.timeRange.Ug/c.timeRange.Us),[new xM(3,e,void 0,"makeSliceInfosMediaBytes",c.Lq,l,b,p,n,!0,c.Tj,c.clipId)]):[]}; ITa=function(a,b,c){a.manifest=b;a.He=c;b=g.w(a.fd);for(c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;for(var e=g.w(d.sT),f=e.next();!f.done;f=e.next()){f=f.value;var h=HTa(a,c,f);GTa(a,f.cq,d,h)}}}; JTa=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength}); (a=a.fd.get(c))&&!a.Og&&(HW?(a.Hj.has(b)||a.Hj.set(b,{data:new DJ,cJ:0,Ex:!1}),EJ(a.Hj.get(b).data,d)):EJ(a.wf,d),a.bytesReceived+=d.totalLength,a.QS=!0)}; ATa=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b}); var c=a.fd.get(b);c&&!c.Og&&(c.Og=!0,c.Dg&&c.Dg(),KTa(a)&&a.D.W_())}; KTa=function(a){a=g.w(a.fd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Og)return!1;return!0}; KW=function(a,b){var c,d;(c=window.h5vcc)==null||(d=c.settings)==null||d.set(a,b)}; LTa=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.x(new Uint8Array(c))));a.close()}return b}; QTa=function(a){var b=a.experiments,c=b.kb.bind(b);MTa=c("html5_use_async_stopVideo");NTa=c("html5_pause_for_async_stopVideo");OTa=c("html5_not_reset_media_source");UE=c("html5_not_reset_media_source");PTa=c("html5_not_reset_media_source");OE=c("html5_retain_source_buffer_appends_for_debugging");uNa=c("web_enable_auto_pip")||c("web_enable_pip_on_miniplayer");c("html5_mediastream_applies_timestamp_offset")&&(LW=!0);var d=g.VB(b,"html5_cobalt_override_quic");d&&KW("QUIC",+(d>0));(d=g.VB(b,"html5_cobalt_audio_write_ahead_ms"))&& KW("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_decode_to_texture"))&&KW("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&KW("MediaElement.EnableUsingMediaSourceBufferedRange",+d);Error.stackTraceLimit=50;var e=g.VB(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,e)}}); UIa(a.G);HW=c("html5_use_ump_request_slicer");PSa=c("html5_record_now");c("html5_disable_streaming_xhr")&&(RN=!1);c("html5_pr_start_secs")&&(RLa=!0);g.VB(a.experiments,"html5_byterate_soft_cap_mweb")&&(YK=!0);c("html5_use_non_active_broadcast_for_post_live")&&(MM=!0)}; RTa=function(a){return a.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")}; STa=function(a){if(a.experiments.kb("html5_cobalt_auto_apply_h5vcc_flags"))for(var b in a.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var c=RTa(b),d=g.VB(a.experiments,b);c&&d&&KW(c,d)}}; MW=function(a,b,c,d,e){e=e===void 0?[]:e;g.O.call(this);this.W=a;this.pc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])}; TTa=function(a){if(!(a.segments.length<2)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.w(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.w(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.w(f.segments),l=h.next();!l.done;l=h.next())(l=NW(l.value))&&d.push(l);f.removeAll()}}}(c=NW(b))&&d.push(c);d=g.w(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}}; OW=function(a,b,c,d){if(!a.j||b>c)return!1;b=new MW(a.W,b,c,a.j,d);d=g.w(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=NW(c);e&&e!==NW(a.j)&&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}; PW=function(a,b){return a.B.get(b)}; UTa=function(a,b,c){a.B.set(b,c)}; QW=function(a,b,c,d,e,f){return new VTa(c,c+(d||0),!d,b,a,e,f)}; VTa=function(a,b,c,d,e,f,h){g.O.call(this);this.pc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.XK=h;this.j=new Map;iQ(f)}; NW=function(a){return a.videoData.clientPlaybackNonce}; WTa=function(a){if(a.j.size)for(var b=g.w(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()}; XTa=function(a){this.end=this.start=a}; g.RW=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.W=b;this.ea=c;this.Ga=new Map;this.Ya=new Map;this.Ma=new Map;this.B=new Map;this.D=[];this.G=[];this.C=new Map;this.wc=new Map;this.Y=new Map;this.Tb=NaN;this.Jb=this.Xa=this.Ob=null;this.Kb=new g.Lo(function(){YTa(d,d.Tb,d.Ob||void 0)}); this.events=new g.iE(this);this.Ab=15E3;this.Z=new g.Lo(function(){d.Aa=!0;var e=d.ea,f=d.Ab;e.oa("sdai",{aftimeout:f});e.Id(new $D("ad.fetchtimeout",{timeout:f}));ZTa(d);d.yF(!1)},this.Ab); this.Aa=!1;this.K=new Map;this.yb=[];this.ra=null;this.Ae=new Set;this.Fa=[];this.yc=[];this.Fd=[];this.Zd=[];this.j=void 0;this.Wa=0;this.Ra=!0;this.qa=!1;this.Ka=[];this.Ed=new Set;this.ge=new Set;this.Je=new Set;this.xl=0;this.fb=new Set;this.Wc=0;this.Pn=this.Rc=!1;this.Sb=this.N="";this.ob=null;this.hd={nna:function(){return d.B}, yna:function(){return d.D}, ona:function(){return d.C}, p8:function(e){d.onCueRangeEnter(d.B.get(e))}, hna:function(e){d.onCueRangeExit(d.B.get(e))}, spa:function(e,f){d.B.set(e,f)}, upa:function(e){d.Sb=e}, gF:function(){return d.gF()}}; this.ea.getPlayerType();$Ta(this.ea,this);this.Va=this.W.zc();g.P(this,this.Kb);g.P(this,this.events);g.P(this,this.Z);this.events.T(this.api,g.NC("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.OC("serverstitchedcuerange"),this.onCueRangeExit)}; dUa=function(a,b,c,d,e,f,h,l){var m=aUa(a,f,f+e);a.Aa&&a.ea.oa("sdai",{adaftto:1});a.Pn&&a.ea.oa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=h===void 0?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.oa("sdai",{attl0d:1});f>h&&SW(a,{reason:"enterTime_greater_than_return",pc:f,Xd:h});var p=n.Xc()*1E3;fn&&SW(a,{reason:"parent_return_greater_than_content_duration", Xd:h,Yoa:n});n=null;p=g.Yb(a.G,{Xd:f},function(q,r){return q.Xd-r.Xd}); p>=0&&(n=a.G[p],n.Xd>f&&bUa(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p.5&&a.ea.oa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.api.bz();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.C.get(b.adCpn);var m=a.C.get(c.adCpn)}e?a.ea.oa("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):eUa(a,m,l,c.Wg,b.Wg,d,e)}else if(!b.isAd&&c.isAd){a.Sb=e.cpn;a.api.publish("serverstitchedvideochange"); l=UW(a,"a2c");a.ea.oa("sdai",l);a.xl=0;if(l=c.je)a.Wa=l.end;var n;c.adCpn&&(n=a.C.get(c.adCpn));n&&VW(a.ea,n,e,c.Wg,b.Wg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.C.get(b.adCpn));p&&(a.Wa=0,a.Sb=p.cpn,a.api.publish("serverstitchedvideochange",p.rd,p.wr),n=UW(a,"c2a",p),a.ea.oa("sdai",n),a.xl=1,VW(a.ea,e,p,c.Wg,b.Wg,d,!!f))}}; fUa=function(a,b,c){c=(b+(c===void 0?0:c))*1E3;var d=g.Yb(a.G,{pc:c},function(e,f){return e.pc-f.pc}); d=d<0?(d+2)*-1:d;return d>=0&&(a=a.G[d],a.Xd>=c)?{Mn:a,Ru:b}:{Mn:void 0,Ru:b}}; hUa=function(a,b){var c="";(b=gUa(a,b))&&(c=b.getId());return c?a.C.get(c):void 0}; gUa=function(a,b){if(a.Sb){var c=a.B.get(a.Sb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.w(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; YTa=function(a,b,c){var d=a.Jb||a.api.Vc().getPlayerState();XW(a,!0);a.ea.seekTo(b,c);a=a.api.Vc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()}; XW=function(a,b){a.Tb=NaN;a.Ob=null;a.Kb.stop();a.Xa&&b&&iUa(a.Xa);a.Jb=null;a.Xa=null}; jUa=function(a){var b=b===void 0?-1:b;var c=c===void 0?Infinity:c;for(var d=[],e=g.w(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.pcc)&&d.push(f);a.G=d;d=g.w(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ea.removeCueRange(e),a.B.delete(e.getId()),a.ea.oa("sdai",{rmAdCR:1}));d=fUa(a,b/1E3);b=d.Mn;d=d.Ru;if(b&&(d=d*1E3-b.pc,e=b.pc+d,b.durationMs=d,b.Xd=e,d=a.B.get(b.cpn))){e=g.w(a.D);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start= b.pc+b.durationMs:f.end===d.start&&(f.end=b.pc);d.start=b.pc;d.end=b.pc+b.durationMs}if(b=fUa(a,c/1E3).Mn){var h;d="playback_timelinePlaybackId_"+b.rd+"_video_id_"+((h=b.videoData)==null?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.pc+"_parentReturnTimeMs_"+b.Xd;a.Ll("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; kUa=function(a){a.Ga.clear();a.Ya.clear();a.Ma.clear();a.B.clear();a.D=[];a.G=[];a.C.clear();a.wc.clear();a.Y.clear();a.K.clear();a.yb=[];a.ra=null;a.Ae.clear();a.Fa=[];a.yc=[];a.Fd=[];a.Zd=[];a.Ka=[];a.Ed.clear();a.ge.clear();a.Je.clear();a.fb.clear();a.Aa=!1;a.j=void 0;a.Wa=0;a.Ra=!0;a.qa=!1;a.xl=0;a.Wc=0;a.Rc=!1;a.Pn=!1;a.N="";a.Z.isActive()&&TW(a)}; mUa=function(a,b,c,d,e,f){if(!a.Pn)if(!a.W.L("html5_ssdai_use_media_time")&&g.lUa(a,c))a.Va&&a.ea.oa("sdai",{gdu:"undec",seg:c,itag:e});else if(b=YW(a,b,c,d,f),!(a.ea.getVideoData().Jh()&&(b==null?0:b.TA)))return b}; YW=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=ZW(a,b))return f;var h=$W(a,c-1,d!=null?d:2);if(e)return a.ea.oa("sdai",{misscue:e,sq:c,type:d,prevsstate:h==null?void 0:h.Bz,prevrecord:a.K.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?ZW(a,b-5):a.K.get(c-1);if((h==null?void 0:h.Bz)===2&&(a.ea.oa("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f}; ZW=function(a,b){b+=a.fu();if(a.W.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=c===void 0?0:c;var d=b*1E3;a=g.w(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.wr?e.wr*1E3:e.pc;if(d>=e.pc-c*1E3&&d<=f+e.durationMs+c*1E3){b={Mn:e,Ru:b};break a}}b={Mn:void 0,Ru:b}}else b=fUa(a,b,1);return b.Mn}; nUa=function(a){if(a.Ka.length)for(var b=g.w(a.Ka),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.w(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.w(a.D);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.D=[];a.Ga.clear();a.Ya.clear();a.Ma.clear();a.j||(a.Ra=!0)}; eUa=function(a,b,c,d,e,f,h){if(b&&c){a.Sb=c.cpn;a.api.publish("serverstitchedvideochange",c.rd,c.wr);var l=UW(a,"a2a",c);a.ea.oa("sdai",l);a.xl++;VW(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.oa("sdai",{misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(b==null?void 0:b.cpn)||"",seek:f,skip:h})}; $W=function(a,b,c){if(c===1){if(a.Ga.has(b))return a.Ga.get(b)}else{if(c===2&&a.Ya.has(b))return a.Ya.get(b);if(c===3&&a.Ma.has(b))return a.Ma.get(b)}}; pUa=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;oUa(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.ea.removeCueRange(e);if(a.Ka.includes(e))a.onCueRangeExit(e);a.D.splice(d,1);continue}d++}else oUa(a,b,c)}; oUa=function(a,b,c){b=a.tJ(b,c);c=!0;g.bc(a.D,b,function(h,l){return h.start-l.start}); for(var d=0;d0){var e=a.D[d],f=a.D[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.D.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.TE("serverstitchedcuerange",36E5),b=g.w(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())}; aX=function(a,b,c){if(c===void 0||!c){c=g.w(a.yb);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.yb.push(new XTa(b))}}; g.lUa=function(a,b){a=g.w(a.yb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; bUa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Roa:b,pc:c,Xd:d,fna:e.rd,gna:((f=e.videoData)==null?void 0:f.videoId)||"",cna:e.durationMs,dna:e.pc,ena:e.Xd};SW(a,b)}; SW=function(a,b,c){a=a.ea;a.oa("timelineerror",b);b=new $D("dai.timelineerror",b);c?a.Mf("dai.timelineerror",1,"RETRYABLE_ERROR",ZD(b.details)):a.Id(b)}; qUa=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; rUa=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.w(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; sUa=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.w(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=(b=d.value.videoData)==null?void 0:b.videoId)&&c.push(d);return c}; tUa=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.durationMs!==0&&b.Xd!==b.pc&&c++;return c}; uUa=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.w(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.durationMs!==0&&e.Xd!==e.pc&&(e=e.cpn,b===e&&(d=!0),d&&!a.ge.has(e)&&(a.ea.oa("sdai",{decoratedAd:e}),a.ge.add(e)))}}; ZTa=function(a){a.Va&&a.ea.oa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Wc)+"_isTimeout_"+a.Aa})}; aUa=function(a,b,c){if(a.Fa.length)for(var d=g.w(a.Fa),e=d.next(),f={};!e.done;f={Yz:void 0},e=d.next()){f.Yz=e.value;e=f.Yz.startSecs*1E3;var h=f.Yz.Eh*1E3+e;if(b>e&&be&&c0&&d>b*1E3+a.Wda)return!1;if(d=BUa(a,c)){b=!1;c=void 0;d=g.w(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}NW(e)===a.Sb&&(b=!0)}d=void 0;if(c)d=NW(c);else if(b){var f;d=(f=a.timeline.j)==null?void 0:NW(f)}if(d)return a.finishSegmentByCpn(a.Sb,d,2,void 0),!0;var h;a.api.oa("ssap",{mfnc:1,mfncc:(h= a.timeline.j)==null?void 0:NW(h)})}return!1}; cX=function(a,b){a=PW(a.timeline,b);return(a==null?0:a.length)?a[0].bf():0}; eX=function(a,b){var c=c===void 0?!1:c;var d=a.timeline.j;if(!d)return{clipId:"",Ol:0};var e=CUa(a,b,c);if(e)return{clipId:NW(e)||"",Ol:e.bf()};a.api.oa("mci",{cs:NW(d),mt:b,tl:dX(a),invt:!!c});return{clipId:"",Ol:0}}; fX=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(b.j.size===0)return(b.ai()-b.bf())/1E3;b=b.j.values();b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.ai()-d.bf())/1E3}return a}; DUa=function(a,b){return(a=bX(a,b*1E3))?a.bf():0}; EUa=function(a,b){var c=PW(a.timeline,b);b=0;if(c==null?0:c.length)for(a=g.w(c),c=a.next();!c.done;c=a.next())c=c.value,b+=(c.ai()-c.bf())/1E3;else return fX(a);return b}; bX=function(a,b){if(a=PW(a.timeline,a.Sb)){a=g.w(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.bf()<=b&&c.ai()>=b)return c}}; FUa=function(a){var b=a.ea.getVideoData();a.Sb&&(a=a.Op.get(a.Sb))&&(b=a);return b}; BUa=function(a,b,c){c=c===void 0?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.$b(e);b=g.Yb(e,b);b=d.get(e[b<0?(b+2)*-1:b]);if(!c&&b){c=g.w(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.bf()!==b.ai())return b;return a.timeline}return b&&b.length>0?b[b.length-1]:void 0}}; CUa=function(a,b,c){c=c===void 0?!1:c;var d=BUa(a,b,c);if(d){if(a=d.segments,a.length){for(var e=g.w(a),f=e.next();!f.done;f=e.next())if(f=f.value,f.bf()<=b&&f.ai()>b)return f;if(c&&d.bf()===d.ai())return a[0]}}else a.api.oa("ssap",{ctnf:1})}; vUa=function(a,b){var c;if(a.Ty)for(c=a.UG.shift();c&&c!==a.Ty;)c=a.UG.shift();else c=a.UG.shift();if(c){if(a.Kk.has(c))GUa(a,c);else if(a.api.L("html5_ssap_support_more_transition_reasons")?b===3||b===4:b===3)a.nL.stop(),a.api.playVideo(1);a.cI.set(a.Sb,b);a.api.oa("ssap",{onvftn:1});HUa(a,c);return!1}a.api.oa("ssap",{onvftv:1});a.nL.stop();return!0}; GUa=function(a,b){b=PW(a.timeline,b);if(b==null?0:b.length)a.api.pauseVideo(),a.nL.start(b[0].XK)}; HUa=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce,e=a.Sb,f=!1;if(e===""){e=d;f=!0;var h=a.ea.cj().isBackground()||a.ea.getPlayerState().isSuspended();a.api.U().L("html5_ssap_tiny_seek_on_initial_transition")&&!h&&a.ea.seekTo(.001)}else e===void 0&&((h=a.ea.sA().Ng)&&a.timeline.B.has(h)&&(e=h),a.api.oa("ssap",{mcc:e+";"+b}),a.ea.Id(new $D("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b})));if(e===b)f&&c&&IUa(a,c,f);else{h=a.cI.get(e);if(!(f||h&&JUa(a,h))){var l=a.api.bz(a.Sb); a.api.oa("ssap",{nmec:l,cpc:a.Sb,ec:b})}a.Sb=b;KUa(a);b=PW(a.timeline,a.Sb);if(b==null?0:b.length){b=b[0];l=b.getType();e!==d&&(a.TK=e,c=a.Op.get(e));h?a.cI.delete(e):h=f?1:2;a.api.L("html5_ssap_support_more_transition_reasons")&&a.api.oa("ssapt",{ostro:h,pcpn:e,ccpn:a.Sb});a:{var m=a.Sb;if(!a.qk.has(m))for(var n=g.w(a.qk),p=n.next();!p.done;p=n.next()){var q=g.w(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&& p!==a.Sb;q=a.ea.sA();if(q.Ng!==p){var r=q.hc(q.Ng);m=q.hc(p);q.Ng=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.W.zc()&&p.oa("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.FI(p.provider),LUa(p,n,"SU")),isNaN(p.K)||g.fr(p.K)),m.resume())}m=Math.max(0,gX(a,e));n=a.ea.getCurrentTime();n=Math.max(0,n-cX(a,a.Sb)/1E3);p=b.getVideoData();q=a.ea.sA();r=e;var t=a.Sb,u=JUa(a,h),y=a.ea.getPlayerState();if(r!==t){var A=q.hc(r),D=q.hc(t),F,H=r===((F=A.getVideoData())==null?void 0:F.clientPlaybackNonce), M;F=t===((M=D.getVideoData())==null?void 0:M.clientPlaybackNonce);var N;M=H?((N=A.getVideoData())==null?void 0:N.videoId)||"":"nvd";var S;N=F?((S=D.getVideoData())==null?void 0:S.videoId)||"":"nvd";H&&(S=A.qoe)!=null&&(hX(S,4,u?4:0,t,N,m),S.reportStats());F&&(iX(D),(S=D.qoe)!=null&&(hX(S,4,u?5:1,r,M,n),S.reportStats()),MUa(D,new g.dy(y,D.Fe)),NUa(D));OUa(q,r)}a.api.L("html5_ssap_support_more_transition_reasons")&&a.api.oa("ssapt",{ostri:h,pcpn:e,ccpn:a.Sb});var ba;PNa(e,a.Sb,d,p,(ba=a.UM.get(e))!= null?ba:(0,g.T)(),c);a.UM.delete(e);f?c=void 0:c||a.api.oa("ssap",{pvdm:e+";"+a.Sb,pvdmc:a.Sb===d?"1":"0"});a.api.oa("ssap",{tpac:e+";"+a.Sb,tpcc:d,tpv:(p==null?0:p.ue())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",p,l,c,h);b.C||a.ea.getVideoData().publish("dataupdated");a.Kk.delete(e);a.Ty="";p&&l===1?IUa(a,p):a.ea.oa("ssap",{nis:a.Sb});l===2?a.xl++:a.xl=0}}}; IUa=function(a,b,c){c=c===void 0?!1:c;if(b.startSeconds&&a.v2){var d=b.startSeconds;b=PW(a.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)d+=b[0].bf()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.VP()||(a.ea.seekTo(d,{RT:!0}),a.v2=!1,a.ea.oa("ssap",{is:a.Sb,co:c?"1":"0",tse:d.toFixed()}))}}; PUa=function(a,b,c){b=PW(a.timeline,b);if(b!=null&&b.length&&(b=BUa(a,b[0].bf()))){b=g.w(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(NW(d)===c)break;if(d=NW(d)){var e=a.qk.get(d);e&&a.api.L("html5_ssap_remove_cue_ranges_fix")&&a.ea.removeCueRange(e);a.qk.delete(d)}}}}; QUa=function(a,b,c){CUa(a,b)||a.ea.oa("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:dX(a)})}; KUa=function(a){var b=a.Sb,c=a.Op.get(b)||a.ea.getVideoData();c&&(a=a.ea.getCurrentTime()-cX(a,b)/1E3,c.Wk=a>0?a:0)}; gX=function(a,b){b=b||a.Sb;var c=a.Op.get(b);return c?c.Wk:b!==a.ea.getVideoData().clientPlaybackNonce?0:a.ea.getVideoData().Wk}; dX=function(a){var b=a.Sb;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d,e=Array.from((d=(c=a.timeline.j)==null?void 0:c.j.values())!=null?d:[]);c=[];if(e==null?0:e.length)for(d=g.w(e),e=d.next();!e.done;e=d.next())if(e=e.value,e.length&&e[0]&&(e=e[0].segments,e.length)){e=g.w(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.bf()+";";f+="et."+h.ai()+";";var l=NW(h);l&&(f+="cpn."+l+";",f+="a."+(b===l?1:0)+";");if(h=h.getVideoData())l=void 0,f+="vid."+((l=h.videoId)!=null?l: "nvd");c.push(f)}}return(c.length?c.join(","):"empty."+b)+";cpcpn."+a.Dl()}; wUa=function(a){a.ea.kH(Array.from(a.qk.values()));a.qk.clear()}; JUa=function(a,b){return a.api.L("html5_ssap_support_more_transition_reasons")?b===3||b===5||b===6||b===7:b===3}; SUa=function(a,b,c){g.O.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.qa=NaN;this.G=this.D=this.Y=null;this.Z=new g.Lo(function(){RUa(d,d.qa,d.Y||void 0)}); this.ra=[];this.Aa=new g.Lo(function(){var e=d.ra.pop();if(e){var f=e.rd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.Mo(d.Aa,4500))}}); this.events=new g.iE(this);c.getPlayerType();g.P(this,this.Z);g.P(this,this.Aa);g.P(this,this.events);this.events.T(this.api,g.NC("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Mk)}; WUa=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=f===void 0?e+d:f;if(e>f)return jX(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=m.Xc()*1E3;if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ m.Dc(),jX(a,m,h,l),"";n=null;for(var p=g.w(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.pc&&eq.pc)return jX(a,"overlappingReturn",h,l),"";if(f===q.pc)return jX(a,"outOfOrder",h,l),"";e===q.Xd&&(n=q)}h="cs_childplayback_"+TUa++;l={je:kX(d,!0),vn:Infinity,target:null};var r={rd:h,playerVars:b,playerType:c,durationMs:d,pc:e,Xd:f,Qt:l};a.B=a.B.concat(r).sort(function(y,A){return y.pc-A.pc}); n?UUa(a,n,{je:kX(n.durationMs,!0),vn:n.Qt.vn,target:r}):(b={je:kX(e,!1),vn:e,target:r},a.K.set(b.je,b),m.addCueRange(b.je));b=!0;if(a.j===a.api.Vc()&&(m=m.getCurrentTime()*1E3,m>=r.pc&&mb)break;if(f>b)return{Mn:d,Ru:b-e};c=f-d.Xd/1E3}return{Mn:null,Ru:b-c}}; RUa=function(a,b,c){c=c===void 0?{}:c;var d=a.G||a.api.Vc().getPlayerState();nX(a,!0);b=isFinite(b)?b:a.j.Xn();var e=$Ua(a,b);b=e.Mn;e=e.Ru;var f=b&&!lX(a,b)||!b&&a.j!==a.api.Vc(),h=e*1E3;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||mX(a);b?VUa(a,b,e,c,d):aVa(a,e,c,d)}; aVa=function(a,b,c,d){var e=a.j,f=a.api.Vc();e!==f&&a.api.Hy();e.seekTo(b,Object.assign({},{Zc:"application_timelinemanager"},c));bVa(a,d)}; VUa=function(a,b,c,d,e){var f=lX(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.EP(a.W,b.playerVars);h.rd=b.rd;a.api.Ju(h,b.playerType)}h=a.api.Vc();f||h.addCueRange(b.Qt.je);h.seekTo(c,Object.assign({},{Zc:"application_timelinemanager"},d));bVa(a,e)}; bVa=function(a,b){a=a.api.Vc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()}; nX=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&iUa(a.D);a.G=null;a.D=null}; lX=function(a,b){a=a.api.Vc();return!!a&&a.getVideoData().rd===b.rd}; cVa=function(a){var b=a.B.find(function(e){return lX(a,e)}); if(b){var c=a.api.Vc();mX(a);var d=new g.fF(8);b=ZUa(a,b)/1E3;aVa(a,b,{},d);c.oa("forceParentTransition",{childPlayback:1});a.j.oa("forceParentTransition",{parentPlayback:1})}}; eVa=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?Infinity:c;for(var d=b,e=c,f=g.w(a.K),h=f.next();!h.done;h=f.next()){var l=g.w(h.value);h=l.next().value;l=l.next().value;l.vn>=d&&l.target&&l.target.Xd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.w(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.pc>=d&&l.Xd<=e){var m=a;m.N===l&&mX(m);lX(m,l)&&m.api.Hy()}else f.push(l);a.B=f;d=$Ua(a,b/1E3);b=d.Mn;d=d.Ru;b&&(d*=1E3,dVa(a,b,d,b.Xd===b.pc+b.durationMs?b.pc+d:b.Xd));(b=$Ua(a,c/1E3).Mn)&& jX(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.rd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.pc+" parentReturnTimeMs="+b.Xd+"}.Child playbacks can only have duration updated not their start."))}; dVa=function(a,b,c,d){b.durationMs=c;b.Xd=d;d={je:kX(c,!0),vn:c,target:null};UUa(a,b,d);lX(a,b)&&a.api.Vc().getCurrentTime()*1E3>c&&(b=ZUa(a,b)/1E3,c=a.api.Vc().getPlayerState(),aVa(a,b,{},c))}; jX=function(a,b,c,d){a.j.oa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; gVa=function(a){a&&a!=="web"&&fVa.includes(a)}; qX=function(a,b){g.O.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Lo(function(){oX(c);pX(c)}); g.P(this,this.j)}; hVa=function(a){oX(a);return a.data.map(function(b){return b.value})}; oX=function(a){var b=(0,g.T)();a.data.forEach(function(c){c.expiref?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cm;if(vX(a)){var n=oVa(a);var p=isNaN(n)||g.Jt||wX&&g.gt||m;It&&!g.kc(601)?n=e.aspectRatio:p=p||f.controlsType==="3";p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=a.getPlayerSize().width*.02,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Sl(p,0,b.width,b.height)):p=new g.Sl(0, 0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Sl((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),c===1&&g.gt&&(n=p.width-b.height*n,n>0&&(p.width+=n,p.height+=n)));g.Xo(a.element,"ytp-fit-cover-video",Math.max(p.width-e.width,p.height-e.height)<1);if(l||a.t2)a.Bc.style.display="";a.aR=!0}else{p=-b.height;It?p*=window.devicePixelRatio:g.NO&&(p-=window.screen.height);p=new g.Sl(0,p,b.width,b.height);if(l||a.t2)a.Bc.style.display="none";a.aR=!1}Tl(a.cM,p)||(a.cM=p,g.xO(f)?(a.Bc.style.setProperty("width", p.width+"px","important"),a.Bc.style.setProperty("height",p.height+"px","important")):g.fm(a.Bc,p.getSize()),d=new g.Ed(p.left,p.top),g.bm(a.Bc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Sl((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Tl(a.SB,b)||(a.SB=b,d=!0);g.Vl(a.Bc,"transform",c===1?"":"scaleX("+c+")");h&&m!==a.ZL&&(m&&(a.Bc.addEventListener(nS,a.GL),a.Bc.addEventListener("transitioncancel",a.GL),a.Bc.classList.add(g.tX.VIDEO_CONTAINER_TRANSITIONING)),a.ZL=m,a.app.Ua.publish("playerUnderlayVisibilityChange", a.ZL?"transitioning":"hidden"));return d}; sVa=function(){this.csn=g.ow();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set}; tVa=function(a){if(a.csn!==g.ow())if(a.csn==="UNDEFINED_CSN")a.csn=g.ow();else{var b=g.ow(),c=g.nw();if(b&&c){a.csn=b;for(var d=g.w(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.hr("combine_ve_grafts")?yK(wK(),e,c):g.Iq(g.Kw)(void 0,b,c,e))}if(b)for(a=g.w(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.Rw(b,c)}}; uVa=function(a,b){this.Kc=a;this.policy=b;this.playbackRate=1}; vVa=function(a,b){var c=Math.min(2.5,hO(a.Kc));a=xX(a);return b-c*a}; xVa=function(a,b,c,d,e){e=e===void 0?!1:e;if(a.policy.Ap)return Math.ceil(a.policy.Ap*b);a.policy.Zl&&(d=Math.abs(d));d/=a.playbackRate;var f=1/kO(a.Kc);c=Math.max(.9*(d-3),hO(a.Kc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);a.policy.Ij>0&&e&&(c=Math.max(c,a.policy.Ij));return wVa(a,c,b)}; wVa=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.bl,a.policy.hw*c),Math.min(Math.min(a.policy.Wa,31*c),Math.ceil(b*c))))||a.policy.bl}; yVa=function(a,b,c){c=xVa(a,b.j.info.tb,c.j.info.tb,0);var d=hO(a.Kc)+c/kO(a.Kc);return Math.max(d,d+a.policy.ZE-c/b.j.info.tb)}; xX=function(a){return kO(a.Kc,!a.policy.Nj,a.policy.gw)}; yX=function(a){return xX(a)/a.playbackRate}; zVa=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.w(b&&d.length>0?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return a0&&(this.j=c.er)}; EVa=function(a,b,c,d,e){if(!e.info.Te){if(c.length===0)c.push(e);else{var f;(a=(f=c.pop())==null?void 0:TM(f,e))?c.push(a):c.push(e)}return d}var h;(c=(h=c.pop())==null?void 0:TM(h,e))||(c=e);if(a.policy.yc&&c.info.Ub)return a.logger&&a.logger({incompleteSegment:c.info.Sc()}),d;h=a.WP(c);d=h.formatId;e=h.Pa;f=h.clipId;c=h.e8;h=h.startTimeMs;!a.policy.Sf&&a.policy.j&&a.bd&&(f=cX(a.bd,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,qn:e,Zi:e,JB:h,IB:c};e=BVa(b,d.startTimeMs);(c=e>=0?b[e]:null)&&CVa(a, c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f=n+h.j?h=!0:p+h.j=0?a:-a-2}; FVa=function(a,b){if(a.Qb){var c=a.Qb.qe();if(c.length!==0){if(a.policy.WA&&a.D&&b){var d=a.D,e=d.info.Xe;!IE(c,e)&&d.info.D>0&&(0,g.T)()-a.G<5E3&&(a.logger&&a.logger({dend:d.info.Sc()}),c=vwa(c,e,e+.01))}d=[];for(var f=e=0;e=h){var p=0;if(a.bd){var q=eX(a.bd,m*1E3);q&&(p=q.Ol/1E3)}q=Object.assign({},a.kd[f]);var r=a.manifest.K.get(XHa(a.kd[f].formatId)),t=Math.max(m, h);h=r.index.Mi(t+a.j/1E3-p);m=r.index.getStartTime(h)+p;var u=h+ +(Math.abs(m-t)>a.j/1E3);t=u+a.C;u=(r.index.getStartTime(u)+p)*1E3;a.policy.mw&&f===a.B&&!b?(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:m*1E3}),q.qn=h+a.C,q.startTimeMs=m*1E3):(q.qn=t,q.startTimeMs=u);q.JB=q.startTimeMs;h=void 0;m=((h=a.D)==null?void 0:h.info.duration)||11;f===a.B&&la.j/1E3);h=m+a.C;p=(r.index.VJ(m)+p)*1E3;q.Zi=h;q.durationMs=p-q.startTimeMs;q.IB=q.durationMs;q.qn<=q.Zi&&d.push(q)}na.j)return!1;if(DVa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.IB=b.durationMs,b.Zi=Math.max(b.Zi,c.Zi),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.qn,h=b.Zi;b.formatId=c.formatId;b.durationMs=c.durationMs;b.qn=c.qn;b.IB=c.durationMs;b.Zi=c.Zi;c.formatId=a;c.startTimeMs=e;c.JB=e;c.durationMs=d-e;c.IB=c.durationMs; c.qn=f;c.Zi=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.IB=b.durationMs);return!1}; DVa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Vb||b.lmt===c.lmt}; HVa=function(a,b,c){if(a.logger){for(var d=[],e=0;e=b+a.C}),d=a.vy.some(function(e){return e.info.Pa===b}); return c||d}; zX=function(a,b,c,d,e){this.ya=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.Wd;this.D=null;this.C=0}; KVa=function(a,b,c){if(!a.policy.K){a=b.j.index;var d=b.B.Pa;a.qo(d)||c&&c.Pa===d?(b.G=!a.qo(d),b.qa=!a.qo(d)):(b.G=!0,b.qa=!0)}}; MVa=function(a){var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);LVa(a.videoTrack);LVa(a.audioTrack);a.policy.K||oIa(a.manifest);a.manifest.isManifestless&&!a.policy.K&&(a.B=!0,a.C=0);var c=a.ya;c.policy.yb||(c.currentTime=b);a.G=!0;a.D=new $E;return a.D}; OVa=function(a,b,c,d,e){var f=a.policy.yc?e:void 0;if(!b.j.pg()){if(!(f=c===0||!!b.C.length&&b.C[0]instanceof AX))a:{if(b.C.length&&(f=b.C[0],f instanceof BX&&f.uh&&f.Fi)){f=!0;break a}f=!1}f||a.policy.B||CX(b);return c}var h=DX(b,c);if(!isNaN(h))return h;if(a.ya.WQ(c*1E3))return c;e.YA||(b.nk(),a.policy.fl?a.ya.tv(!1):a.ya.tv(!0));return d&&(a=JE(d.qe(),c),!isNaN(a))?(EX(b,a+NVa,f),c):EX(b,c,f)}; RVa=function(a,b,c,d){if(a.policy.K)!d||!a.B&&a.policy.Jb||g.Ae(function(){FX(a)}); else{if(a.isSeeking()&&a.j){var e=PVa(a,b,c);if(e!==-1){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.Ae(function(){a.ya.oa("seekreason",{reason:"behindMinSq",tgt:e});QVa(a,e)}); return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.KB||!a.B;DX(a.videoTrack,a.j)>=0&&DX(a.audioTrack,a.j)>=0&&f?((a.videoTrack.G||a.audioTrack.G)&&a.ya.oa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.Ae(function(){if(a.B||!a.policy.Jb)FX(a);else{var h=b.startTime,l=b.duration;if(!a.policy.K){var m=c?a.videoTrack.G:a.audioTrack.G,n=a.videoTrack.K!==-1&&a.audioTrack.K!==-1,p=a.j>=h&&a.j432E3&&pIa(a.manifest);a.C&&(e=a.C,a.C=0);g.Ae(function(){a.policy.K||QVa(a,e,102)}); a.ya.oa("initManifestlessSync",{st:e,ost:e+a.ya.Dc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.K&&QVa(a,e,102)}}}; JX=function(a,b){var c=this;this.Cb=a;this.requestNumber=++SVa;this.j=this.now();this.qa=this.G=NaN;this.N=this.j;this.B=this.Ob=this.D=0;this.K=this.j;this.Ra=this.Ga=this.Va=this.yc=this.wc=this.Fa=this.ra=this.C=0;this.Z=void 0;this.Ya=0;this.Y=this.isActive=!1;this.Ab=this.ob=0;this.hd={Aoa:function(){return c.Mp}}; this.Kc=b.Kc;this.snapshot=eJa(this.Kc);this.policy=this.Kc.Ra;this.Rp=!!b.Rp;this.ov=b.ov;b.EJ&&(IX||(IX=SJ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.Z=new Uint8Array(2048));var d;this.Mp=(d=b.Mp)!=null?d:!1;bJa(this.Kc)}; TVa=function(a){a.Va=Math.max(a.Va,a.D-a.wc);a.Ga=Math.max(a.Ga,a.N-a.yc);a.Fa=0}; KX=function(a,b,c){cJa(a.Kc,b);if(a.Z){if(a.Ya+20>a.Z.length){var d=new Uint8Array(a.Z.length*2);d.set(a.Z);a.Z=d}UVa(a,Math.ceil(b)-Math.ceil(a.N));UVa(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.D/1024)))}d=b-a.N;var e=c-a.D;a.Ob=e;a.Ra=Math.max(a.Ra,e/(d+.01)*1E3);a.N=b;a.D=c;a.Fa&&c>a.Fa&&TVa(a)}; UVa=function(a,b){for(;b>31;)a.Z[a.Ya++]=IX[(b&31)+32],b>>=5;a.Z[a.Ya++]=IX[b]}; VVa=function(a){return a.Z?g.PJ(a.Z.subarray(0,a.Ya)):""}; WVa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; LX=function(a,b){JX.call(this,a,b);this.yb=this.Kb=!1;this.Ma=this.Aa=Infinity;this.Ka=NaN;this.Jb=!1;this.Xa=NaN;this.Tb=0;this.eA=b.eA||1;this.zS=b.zS||this.eA;this.Nl=b.Nl;this.Pa=b.Pa;this.ih=b.ih;XVa(this);this.dT(this.j);this.Wa=(this.Xa-this.j)/1E3}; YVa=function(a,b,c){a.Rp||(b=Math.max(b,.01),dO(a.Kc,b,c,b))}; ZVa=function(a,b){return b?a.LK()&&!a.policy.j?!0:b>=2048:!1}; $Va=function(a){return(a.K-a.j)/1E3}; XVa=function(a){a.Ka=a.j+a.snapshot.delay*1E3;a.Jb=!1}; cWa=function(a,b){if(a.Nl&&a.Pa!==void 0&&a.ih!==void 0){var c=Math,d=c.min,e=a.Aa;var f=a.Nl;var h=a.j;if(aWa(f,a.Pa))f=b;else{var l=0;f.tj&&(l=.2);f=h+(f.Wj+l)*1E3}a.Aa=d.call(c,e,f);c=Math;d=c.min;e=a.Ma;f=a.Nl;h=a.j;l=bWa(f,a.Pa,a.ih);l!==2&&(b=l?b:h+f.Wj*1E3,f.tj&&(b+=f.Wj*1E3));a.Ma=d.call(c,e,b);a.Aa<=a.j?XVa(a):(a.Ka=a.Aa,a.Jb=!0)}}; dWa=function(a){a.Nl&&cWa(a,a.now());return a.Jb}; eWa=function(a,b){if(b+1<=a.totalLength){var c=KJ(a,b);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!(b+c<=a.totalLength))return[-1,b];if(c===1)a=KJ(a,b++);else if(c===2)c=KJ(a,b++),a=KJ(a,b++),a=(c&63)+64*a;else if(c===3){c=KJ(a,b++);var d=KJ(a,b++);a=KJ(a,b++);a=(c&31)+32*(d+256*a)}else if(c===4){c=KJ(a,b++);d=KJ(a,b++);var e=KJ(a,b++);a=KJ(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),HJ(a,c,4)?a=bBa(a).getUint32(c-a.C,!0):(d=KJ(a,c+2)+256*KJ(a,c+3),a=KJ(a,c)+256*(KJ(a,c+1)+ 256*d)),b+=5;return[a,b]}; MX=function(a){this.Cb=a;this.j=new DJ}; NX=function(a,b){this.info=a;this.callback=b;this.state=1;this.LB=this.yQ=!1;this.fg=null}; fWa=function(a){return g.ol(a.info.gb,function(b){return b.type===3})}; gWa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Cb=c;this.status=0;this.j=new DJ;this.B=0;this.La=this.D=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.w(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.CB()}; 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.T)();e.Cb.Cs(f,e.B)},function(){},d.body||null)}; hWa=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)}; qKa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1){if(!b)return f.return(b);c=OX.AC();d=new g.xJ(a.B);return g.G(f,d.encrypt(b,a.j),2)}e=f.B;OX.gA("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})}; vKa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1){if(!b)return f.return(b);c=OX.AC();d=new g.xJ(a.B);return g.G(f,d.decrypt(b,a.j),2)}e=f.B;OX.gA("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})}; iWa=function(a,b){var c=this;this.j=a;this.Cb=b;this.loaded=this.status=0;this.error="";a=uM(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new DJ;this.Is().then(function(){c.Cb.Po()},function(d){c.error=""+d||"unknown_err"; c.Cb.Po()})}; kWa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Cb=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.Y=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&e.status!==204)e.status=e.status||242,e.C=f.body.getReader(),e.La()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Cb.Xu(),jWa(e)); else e.onDone();else e.onError(Error("null_response"))}; this.Z=function(f){var h=(0,g.T)();e.La()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),jWa(e),e.Cb.Cs(h,e.B)))}; this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()}; this.j=new DJ;this.D=window.AbortController?new AbortController:void 0;this.start(a)}; jWa=function(a){a.C.read().then(a.Z,a.onError).then(void 0,Ws)}; lWa=function(a,b,c){var d=this;c=c===void 0?{}:c;this.Cb=b;this.B=this.status=0;this.La=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.w(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.CB(f)}; a=rK(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",rK(function(f){d.Dg(f)}),!1)}; PX=function(a,b,c,d,e){if(tL(a.base))return new iWa(a,c);a=a.De();return d?KBa()?new gWa(a,b,c,e):new kWa(a,b,c,e):new lWa(a,c,e)}; QX=function(a,b,c,d,e,f,h,l,m){m=m===void 0?!1:m;g.O.call(this);this.Cb=a;this.policy=b;this.ke=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.uy=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.Lo(this.Ada,this.policy.al,this)}; mWa=function(a){a.resource.Z=(0,g.T)();a=RX(a);a.B=(0,g.T)();a.started+=1}; nWa=function(a,b,c){a.timing.GR((0,g.T)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;lM(RX(a));if((b=a.uy)!=null&&(a=a.ke.base,!((0,g.T)()=400?(a.lastError="net.badstatus",!0):(e===void 0?0:e)?(a.lastError="ump.spsrejectfailure",!0):c||d!==void 0&&d?!1:(a.lastError=b===204?"net.nocontent":"net.connect",!0)}; RX=function(a){return mM(a.C,sL(a.ke.base))}; oWa=function(a){var b=a.timing.rr();b.shost=sL(a.ke.base);return b}; pWa=function(a,b){return(a==null?void 0:a.maxWidth)>(b==null?void 0:b.maxWidth)||(a==null?void 0:a.maxHeight)>(b==null?void 0:b.maxHeight)}; qWa=function(a,b){for(var c=g.w(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),d.length!==0){g.$b(d,function(l,m){return m.maxFramerate-l.maxFramerate}); for(var e=[d[0]],f=0,h=1;ha.j||c.push(d)}return c}; wWa=function(a,b,c){var d=tWa[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=uWa[a]||[]);b.push.apply(b,g.x(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.x(vWa[a]||[]))}; CWa=function(a,b){var c=cQ(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.Ck();if(d){if(!e.B){if(f&&UX)return UX;if(VX)return VX}}else if(VX&&!e.B)return VX;var h=[],l=[],m={},n=WX.concat(xWa);d&&(n=WX.concat(yWa));a.L("html5_early_media_for_drm")&&(n=n.concat(zWa),a.L("allow_vp9_1080p_mq_enc")&&n.push(AWa));var p=[].concat(g.x(BWa));c.Z&&(p[0]=["141"]);n=g.w(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.w(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u= UO(t,f&&d);if(u&&u.video&&!(tE(u)&&!c.Ga&&u.video.j>c.xj)){var y=g.VB(a.U().experiments,"html5_drm_byterate_soft_cap");y>0&&twa(u)&&u.tb>y||(r?(h.push(t),wWa(t,h,a)):(u=iL(c,u,e),u===!0?(r=!0,h.push(t),wWa(t,h,a)):m[t]=u))}}}p=g.w(p);for(n=p.next();!n.done;n=p.next())for(n=g.w(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=CJa(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!uE(q)&&!vE(q)))if(q=iL(c,q,e),q===!0){l.push(r);wWa(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B= !1,UX=VX=void 0),f?UX={video:h,audio:l}:VX={video:h,audio:l};VX={video:h,audio:l};e.B=!1;return VX}; GWa=function(a){var b={},c=a.ea,d=a.Da,e=c.getVideoData(),f=JK(0),h=c.getPlayerSize(),l=c.getVisibilityState();f&&(b.q$=f,b.lastManualDirection=LBa(),f=Hna()||0,f>0&&(f=(d.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.T)())-f,d.L("html5_use_date_now_for_local_storage")?f>0&&(b.timeSinceLastManualFormatSelectionMs=f):b.timeSinceLastManualFormatSelectionMs=f));b.xea=JK();f=d.L("html5_use_streamer_bandwidth_for_low_latency_live")&&e.isLowLatencyLiveStream;if(d.schedule.Z&&!f){var m;f=d.L("html5_disable_bandwidth_cofactors_for_sabr_live")? !((m=a.He)==null||!m.Nj):!1;b.t7=kO(d.schedule,!f)}m=g.JO();var n=g.lE.medium,p=Math.floor(n*16/9);f=e.Ck()?n:p;n=e.Ck()?p:n;b.D7=Math.max(h.width*m,f);b.C7=Math.max(h.height*m,n);b.visibility=l;b.Mea=ov();b.g8=g.FI(c.hc().provider)*1E3;d.L("html5_sabr_support_quality_constraints")&&a.Pz&&(b.Pz=a.Pz);d.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(b.sabrLicenseConstraint=a.sabrLicenseConstraint);if(d.L("html5_enable_platform_backpressure_with_sabr")){if(b.Ww=3,a.oH||(b.Ww^=1),!a.rH|| aQ(e))b.Ww^=2}else{if(d.L("html5_onesie_media_capabilities")||d.L("html5_enable_server_format_filter"))b.Ww=3;d.L("html5_onesie_audio_only_playback")&&aQ(e)&&(b.Ww=1)}h=e.lf?e.lf:cQ(e);if(d.L("html5_onesie_media_capabilities")){l=d.G;m=[];f=[];n=d.L("html5_shorts_onesie_mismatched_fix");e=e.Ck();var q=WX.concat(xWa);n&&(q=WX.concat(yWa));d.L("html5_early_media_for_drm")&&(q=q.concat(zWa),d.L("allow_vp9_1080p_mq_enc")&&q.push(AWa));p=[].concat(g.x(BWa));h.Z&&(p[0]=["141"]);q=g.w(q);for(var r=q.next();!r.done;r= q.next()){r=g.w(r.value);for(var t=r.next();!t.done;t=r.next()){t=t.value;var u=UO(t,e&&n);if(u&&u.video){var y=g.VB(d.experiments,"html5_drm_byterate_soft_cap");if(!(y>0&&twa(u)&&u.tb>y)&&iL(h,u,l)===!0){m.push({videoCodec:DWa[pE[t]],maxWidth:u.video.width,maxHeight:u.video.height,maxFramerate:u.video.fps});break}}}}e=g.w(p);for(n=e.next();!n.done;n=e.next())for(n=g.w(n.value),p=n.next();!p.done;p=n.next())if(p=p.value,(q=CJa(p))&&q.audio&&(d.L("html5_onesie_51_audio")||!uE(q)&&!vE(q))&&iL(h,q,l)=== !0){f.push({audioCodec:EWa[pE[p]],numChannels:q.audio.numChannels});break}b.mediaCapabilities={videoFormatCapabilities:m,audioFormatCapabilities:f}}var A;if((A=a.He)==null?0:A.B&&A.xp){A=d.G;l=[];m=[];f=new Map;if((e=A.j)&&e.size>0)for(e=g.w(e.values()),n=e.next();!n.done;n=e.next())p=n.value,p.Hh?m.push({audioCodec:EWa[p.rb],numChannels:p.numChannels,spatialCapabilityBitmask:FWa[p.rb]}):(q=DWa[p.rb],n={videoCodec:q,maxWidth:p.maxWidth||0,maxHeight:p.maxHeight||0,maxFramerate:p.maxFramerate||0,is10BitSupported:p.LF|| !1},p.maxBitrateBps&&(n.maxBitrateBps=p.maxBitrateBps,r=UO(p.itag),t=void 0,((t=r)==null?0:t.video)&&iL(h,r,A)===!0&&(r=r.tb*8,r>n.maxBitrateBps&&(n.maxBitrateBps=r))),p=q+"_"+p.LF,q=f.get(p)||[],q.push(n),f.set(p,q));l=qWa(l,f);b.mediaCapabilities={videoFormatCapabilities:l,audioFormatCapabilities:m,hdrModeBitmask:3}}var D;if((D=a.He)==null?0:D.B){b.To=h.To;var F;b.xj=(F=a.He)==null?void 0:F.xj}d.Uf&&(b.d8=d.Uf);b.MS=a.CE;b.My=a.My;if(d.L("html5_fix_time_since_last_seek_reporting")?a.kq!==void 0: a.kq)b.Nea=(0,g.T)()-a.kq;a.isPrefetch&&d.L("html5_report_prefetch_requests")&&(b.isPrefetch=!0);RN||(b.U$=!0);D=hO(d.schedule)*1E3;D>0&&(b.I7=D);var H;((H=a.He)==null?0:H.Vv)&&a.Wx&&a.Wx0?a:d.schedule.interruptions[0]||0);return b}; XX=function(a,b,c,d,e,f){var h={};b&&(h.NB=b);if(!a)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;e&&(h.SS=e);h.aN=[];h.tM=[];if(g.SP(a)&&a.sabrContextUpdates.size>0)for(b=g.w(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())HWa(h,c.value,d);PP(a)&&!g.SP(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&HWa(h,f,d);a.XA&&(h.oea=a.XA);d=a.U().j;h.clientInfo={clientName:IWa[d.c.toUpperCase()]||0};d.cbrand&&(h.clientInfo.deviceMake=d.cbrand);d.cmodel&&(h.clientInfo.deviceModel= d.cmodel);d.cver&&(h.clientInfo.clientVersion=d.cver);d.cos&&(h.clientInfo.osName=d.cos);d.cosver&&(h.clientInfo.osVersion=d.cosver);a.pp&&(h.pp=a.pp);return h}; HWa=function(a,b,c){var d=b.type||0;(c==null?0:c.has(d))?a.tM.push(b):a.aN.push(d)}; BX=function(a,b,c,d,e,f){var h=f===void 0?{}:f;var l=h.WG===void 0?[]:h.WG;var m=h.TH===void 0?!1:h.TH;var n=h.Kw===void 0?0:h.Kw;var p=h.poToken===void 0?"":h.poToken;var q=h.uy===void 0?void 0:h.uy;var r=h.eH===void 0?"":h.eH;var t=h.uh===void 0?0:h.uh;var u=h.Fi===void 0?new Uint8Array(0):h.Fi;var y=h.KM===void 0?!1:h.KM;f=h.rq===void 0?0:h.rq;h=h.NB===void 0?void 0:h.NB;NX.call(this,b,e);var A=this;this.policy=a;this.logger=new g.uN("dash/request");this.Qz=this.Bg=0;this.Z1=!1;this.Tr=this.bq= null;this.hZ=!1;this.Fi=this.uh=null;this.YM=this.r3=!1;this.dJ=null;this.rq=this.Tp=0;this.Bu=!1;this.hd={zd:function(F){A.zd(F)}, goa:function(){return A.fg}, Dpa:function(F){A.fg=F}, Cpa:function(F){A.Bg=F}, Bpa:function(F){A.Cd.lastError=F}, lQ:function(){return A.xhr}}; this.timing=new LX(this,c);this.TH=m;this.uh=t;this.Fi=u;this.ke=g.HM(this.info,this.policy,d);this.ke.set("rn",this.Wp().toString());this.ke.set("rbuf",(n*1E3).toFixed().toString());this.TH&&this.ke.set("smb","1");this.policy.fm&&p&&this.ke.set("pot",p);r&&this.ke.set("bbs",r);this.policy.useUmp&&!tL(this.ke.base)&&(this.Ul=new MX(this),this.ke.set("ump","1"),this.ke.set("srfvp","1"));if(a=this.policy.gt?this.policy.kD&&!isNaN(this.info.ih)&&this.info.ih>this.policy.ZD?!1:!0:!1)b=null,this.policy.SD&& this.policy.wk?b=[1]:y&&(b=[]),b!=null&&(this.policy.cD&&b.push(2),this.ke.set("defsel",b.join(",")));this.Cd=new QX(this,this.policy,this.ke,this.info.resource,this.timing,this.logger,d,q);this.WG=l||null;this.LB=JWa(this);mWa(this.Cd);d=void 0;if(this.policy.TD||this.Ul||this.policy.Ka)d={method:"POST"},l=(0,g.YX)([120,0]),q={},this.policy.dD&&h&&(h=XX(void 0,h),q.CC=h),this.policy.nw&&this.Fi&&(q.videoPlaybackUstreamerConfig=this.Fi),this.policy.Ka&&(h=this.info.D)&&Object.assign(q,h),Object.keys(q).length> 0?d.body=g.kK(q,g.TK):d.body=l;if(this.uh&&this.Fi){this.ke.set("iwts","1");d={method:"POST"};h={My:this.uh*1E3};var D;l=(D=this.info.D)==null?void 0:D.fn;D=g.kK({Ar:h,fn:l||void 0,videoPlaybackUstreamerConfig:this.Fi},g.TK);d.body=D}try{this.xhr=PX(this.ke,this.policy.N,this.timing,a,d),this.Cd.B.start(),f&&(this.Pu=new g.Lo(this.A_,f,this),this.Pu.start(f+(this.timing.Kc.N.gh()||0)*1E3)),this.policy.VC&&WVa(this.timing,this.De()),this.logger.debug(function(){return"Sent, itag="+A.ke.get("itag")+ " seg="+A.info.gb[0].Pa+" range="+A.ke.get("range")+" time="+Math.round(A.info.gb[0].Xe)+"-"+Math.round(g.Jb(A.info.gb).Nf)+" rtp="+(A.timing.hK()-Date.now()).toFixed(0)}),g.Ae(function(){})}catch(F){KWa(this,F,!0)}}; JWa=function(a){if(!(GM(a.info)&&a.info.Mp()&&a.policy.ge&&a.WG)||a.info.resource.B>=2||JK()>0||!RBa())return!1;var b=a.ke.get("aitags");if(!b)return!1;b=Rd(b).split(",");for(var c=[],d=g.w(a.WG),e=d.next();!e.done;e=d.next())e=e.value,g.Nb(b,e)&&c.push(e);if(!c.length)return!1;a.ke.set("altitags",g.Qd(c.join(",")));return!0}; KWa=function(a,b,c){c=c===void 0?!1:c;g.xw(b);a.Cd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.Ae(function(){SX(a.Cd)}):SX(a.Cd)}; LWa=function(a){if(a.policy.GC)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.fF();c=!c||c<=a.policy.jq;return(!a.xhr.DC()||!b||b.indexOf("text/plain")!==-1)&&c}; MWa=function(a,b){var c=NJ(b);return HC(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""}; NWa=function(a,b){a.timing.Y=!0;a.timing.policy.j&&a.timing.hv();if(a.policy.Wc){var c;(c=a.Pu)==null||c.stop()}FW(a.fg,b,!1)}; OWa=function(a,b){a.info=b;if(a.fg){var c=a.fg;b=b.gb;(b.length!==c.gb.length||b.length=h,l=a.manifest.isManifestless&&a.policy.Sv,f?(a.j={dh:f,Pa:b.Pa, CF:!!c},h?cY(a,f,b.Pa):l&&(d?e?cY(a,f,b.Pa):f.event==="continue"||f.event==="stop"?fXa(a,b):cY(a,f,b.Pa):cY(a,f,b.Pa))):(e&&fXa(a,b),a.B===4&&dY(a,5,"qend")))}; cY=function(a,b,c){b.startSecs+=isNaN(a.Z)?0:a.Z;a=a.manifest;a.Ga.push(b);a.publish("cuepointsadded",c)}; iXa=function(a,b,c){if(a.B!==0&&c&&b.gb[0].Ag()){var d=b.gb[0].Pa,e=b.gb[0].Xe;b=b.fq();hXa(a,d,e,b,c)}}; hXa=function(a,b,c,d,e){var f;b!==((f=a.j)==null?void 0:f.Pa)||a.B===1||d||a.j.dh.event==="predictStart"||a.oa("sdai",{undecevt:1,sq:b,mt:c,evt:a.j.dh.event});b>a.G&&(a.G=NaN,a.N=NaN);if(a.j&&a.j.Pa===b)a:{d=a.j;if(a.policy.Ab){if(a.ra===b)break a;a.ra=b}f=d.dh;var h=e.Tu(f);a.oa("sdai",{onqevt:f.event,sq:b,mt:c,gab:h,cst:f.startSecs});if(h)f.event!=="predictStart"?d.CF?dY(a,4,"cue"):(a.G=b,a.N=c,a.oa("sdai",{joinad:a.B,sg:a.G,st:a.N.toFixed(3)}),a.Y=Date.now(),dY(a,2,"join"),e.pK(d.dh)):(a.policy.G? (a.C=Math.floor(c-f.j/1E3),a.oa("sdai",{onpred:c,est:a.C})):(a.D=b+Math.max(Math.ceil(-f.j/5E3),1),a.oa("sdai",{onpred:b,est:a.D})),a.Y=Date.now(),dY(a,3,"predict"),e.pK(d.dh));else if(a.B===1){var l;((l=a.K)==null?0:l.pP(c))?(jXa(a.ya,c,c,b),dY(a,4,"sk2had")):dY(a,5,"nogab")}else f.event==="predictStart"&&(a.policy.G&&a.C>0?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.oa("sdai",{updateSt:b,old:a.C}),a.C=b):a.D>0&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.oa("sdai",{updateSt:b,old:a.D}),a.D=b)))}else a.B=== 1&&dY(a,5,"noad")}; mXa=function(a,b,c){if(a.B===1||a.B===2)return!1;if(a.B!==0&&b===a.audioTrack){if(a.policy.G){a=a.videoTrack;var d;return!((d=a.Z)==null||!JVa(d,c))||kXa(a.D,c)}d=lXa(a.videoTrack);if(c>(d?d.Pa:-1))return!1}return!0}; eY=function(a,b,c){return(c<0||c===a.G)&&!isNaN(a.N)?a.N:b}; fXa=function(a,b){if(a.j){var c=a.j.dh.Eh-(b.startTime+a.Z-a.j.dh.startSecs);c<=0||(c=new HL(a.j.dh.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.dh.context,a.j.dh.identifier,"stop",a.j.dh.j+b.duration*1E3),a.oa("cuepointdiscontinuity",{segNum:b.Pa}),cY(a,c,b.Pa))}}; dY=function(a,b,c){a.B!==b&&(a.oa("sdai",{setsst:b,old:a.B,r:c}),a.B=b)}; fY=function(a,b,c,d){(d===void 0?0:d)?dY(a,1,"seek"):b>0&&Math.abs(b-c)>=5&&a.B===4&&dY(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))}; gY=function(a,b,c){this.audio=a;this.video=b;this.reason=c}; hY=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0}; iY=function(a,b,c){g.O.call(this);this.policy=a;this.D=b;this.oa=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1}; jY=function(a,b,c){if(c===void 0?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.T)()+c;a.C.set(b.info.id,c)}; kY=function(a){for(var b=g.w(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;d<(0,g.T)()&&a.C.delete(c)}return a.C}; nXa=function(a){return a.K&&kY(a).size>0}; lY=function(a,b){a.j!==b&&(a.j=b,a.B=!0)}; oXa=function(a,b){var c;b&&(c=g.Lb(a.D.j,function(e){return e.id===b})); if(!c&&(c=g.Lb(a.D.j,function(e){var f;return!((f=e.dc)==null||!f.isDefault)}),a.policy.dk&&b)){var d; a.oa("iaf",{id:b,sid:(d=c)==null?void 0:d.id})}return c}; pXa=function(a,b,c,d,e,f){var h=this;f=f===void 0?[]:f;this.ya=a;this.Aa=b;this.policy=c;this.manifest=d;this.K=e;this.fb=f;this.logger=new g.uN("dash/abr");this.j=DP;this.C=this.N=null;this.Y=-1;this.Ka=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.Ma={};this.Xa=new aO(1);this.Z=0;this.Wa=this.ra=this.qa=!1;this.Fa=0;this.Ya=!1;this.Ga=new Set;this.Ra=!1;this.hd={V1:function(){mY(h)}}; this.G=new iY(this.policy,e,function(l,m){h.ya.oa(l,m)})}; uXa=function(a,b,c){nY(a,b);qXa(a,c);a.N=a.B;rXa(a);sXa(a);a.C=a.nextVideo;a.N=a.B;return tXa(a)}; xXa=function(a,b){if(vXa(a,b))return null;if(b.reason==="m"&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+dL(b)}),nY(a,b),a.Z=a.D.length-1,mY(a),oY(a),a.ra=a.ra||a.C!==a.nextVideo,a.C=a.nextVideo,new gY(a.B,a.C,b.reason); b.reason==="r"&&(a.Y=-1);nY(a,b);oY(a);if(b.reason==="r"&&a.nextVideo===a.C)return new gY(a.B,a.nextVideo,b.reason);wXa(a);return null}; yXa=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new gY(a.N,a.C,c?"t":"m")}; zXa=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,tXa(a)}else a.Wa=a.N!==b,a.N=b;return null}; AXa=function(a,b){if(b.j.info.video&&b.Te){var c=(b.Ub+b.B)/b.duration,d=b.j.info.tb;c&&d&&(a.Xa.Am(1,c/d),a.policy.C&&c/d>1.5&&a.ya.oa("overshoot",{sq:b.Pa,br:c,max:d}))}}; pY=function(a,b,c){jY(a.G,b,c===void 0?!1:c);a.Y=-1;nY(a,a.j)}; qY=function(a,b){return new gY(a.N,a.C,b||a.j.reason)}; wXa=function(a){if(a.C&&a.nextVideo&&rY(a,a.C.info)a.policy.xj,l=e<=a.policy.xj?tE(d):rE(d);if(!f||h||l)c[e]=d}return c}; nY=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.T)();c=g.Wm(c,function(r){if(r.tb>this.policy.tb)return!1;var t=this.manifest.j[r.id];return kY(this.G).get(r.id)>d?!1:t.resource.B>4||t.K>4?(this.logger.debug(function(){return"Remove "+EE(r)+"; 4 load failures"}),!1):this.Ga.has(+r.itag)?!1:!0},a); nXa(a.G)&&(c=g.Wm(c,function(r){return r.video.width<=854&&r.video.height<=480}))}c.length||(c=a.K.videoInfos); var e=g.Wm(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Lb(c,function(r){return r.id===a.G.j}); f?e=[f]:lY(a.G,"")}f=b.reason==="m"||b.reason==="s";a.policy.GD&&wX&&g.gt&&(!f||b.j<1080)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)})); if(e.length>0)if(QE()){var h=BXa(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.rb===h[r.video.j].rb})}else{var l,m,n=(l=e[0])==null?void 0:(m=l.video)==null?void 0:m.j; if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.j===n}); var p=BXa(a,b)[n].rb;e=e.filter(function(r){return!!r&&!!r.video&&r.rb===p})}}e.length||(e=[c[0]]); e.sort(function(r,t){return rY(a,r)-rY(a,t)}); c={};for(b=1;bc.xO.video.width?(g.Ob(e,b),b--):rY(a,c.dO)*a.policy.Z>rY(a,c.xO)&&(g.Ob(e,b-1),b--);var q=e[e.length-1];a.Ya=!!a.C&&!!a.C.info&&a.C.info.rb!==q.rb;a.logger.debug(function(){return"Constraint: "+dL(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+EE(q)}); a.D=e;a.Va.clear();c=!1;for(b=0;b=1080&&(c=!0);aOa(a.policy,q,a.manifest.Vb)}; qXa=function(a,b){if(a.policy.dk){var c=oXa(a.G,b);b||c||(c=CXa(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Lb(a.K.j,function(d){return!!d.dc&&d.dc.isDefault}))||(c=CXa(a)),c=c||a.K.j[0]; a.B=a.manifest.j[c.id];mY(a)}; DXa=function(a,b){for(var c=0;c+1d}; mY=function(a){if(!a.B||!a.policy.D&&!a.B.info.dc){var b=a.K.j;a.B&&(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(b.length>1){var c=!1;if(c=a.policy.Zd?!0:a.j.isLocked()?a.j.j<240:DXa(a,a.B))a.B=a.manifest.j[g.Jb(b).id]}}}; oY=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=a.j.j<=360?a.manifest.j[a.D[0].id]:a.manifest.j[g.Jb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+EE(a.nextVideo.info)}); else{for(var b=Math.min(a.Z,a.D.length-1),c=yX(a.Aa),d=rY(a,a.B.info),e=c/a.policy.Y-d;b>0&&!(rY(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+EE(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+dL(a.j)}); a.Z=b}}; rXa=function(a){var b=a.policy.Y,c=yX(a.Aa),d=c/b-rY(a,a.B.info);b=g.Mb(a.D,function(e){return rY(this,e)1E3&&(b=c));return b}; GXa=function(a){var b=a===void 0?{}:a;a=b.tj===void 0?!1:b.tj;var c=b.wk===void 0?!1:b.wk;b=b.gt===void 0?!1:b.gt;return a?b?3:2:c?-1:1}; IXa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Fa=c;this.D=this.B=0;this.Hf=null;this.qa=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new $E;this.ra=this.Aa=!1;this.hd={aoa:function(){return d.C}, wna:function(){return d.chunkSize}, qna:function(){return d.N}, pna:function(){return d.K}}; (b=HXa(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.RC,this.C=0,this.N=g.kv(16),this.K=g.kv(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new hWa(this.N,this.K))}; HXa=function(a){if(a.policy.Qf&&a.policy.WC)for(var b=g.w(a.policy.Qf),c=b.next(),d={};!c.done;d={SO:void 0,hP:void 0},c=b.next())if(c=g.Sq(c.value),d.SO=+c.clen,d.hP=+c.csz,d.SO>0&&d.hP>0&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.SO,a.csz=d.hP,a.ck=c.ck,a.civ=c.civ,a}; sY=function(a){return!!a.Hf&&a.Hf.Ni()}; NXa=function(a,b){if(!sY(a)&&!a.La()){if(!(a.Aa||(a.Aa=!0,a.C>0))){var c=JXa(a);c=uP(a.policy.D,a.j.info,tY(a),c,a.policy.fb);KXa(a,c)}if(b.info.type===1){if(a.Hf){uY(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=vM(0,b.j.totalLength)}else if(b.info.type===2)a.Hf&&a.Hf.type===1||uY(a,Error("Woffle: Index before init")),a.indexRange=vM(a.initRange.end+1,b.j.totalLength);else if(b.info.type===3){if(!a.Hf){uY(a,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(a.Hf.type===3&&!AM(a.Hf,b.info)&&(a.Y=[],b.info.Pa!==BM(a.Hf)||b.info.Ub!==0))return;if(b.info.Te){c=g.w(a.Y);for(var d=c.next();!d.done;d=c.next())LXa(a,d.value);a.Y=[]}else{a.Y.push(b);a.Hf=b.info;return}}else{uY(a,Error("Woffle: Unexpected slice type"));return}a.Hf=b.info;LXa(a,b);MXa(a)}}; LXa=function(a,b){var c=0,d=IJ(b.j);if(a.D=d.length)return;if(c<0)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c0){var h=d.getUint32(c+28);f+=h*16+4}var l=d.getUint32(c+f-4);try{var m=SXa(b.subarray(c+f,c+f+l));if(m!==null){var n=m;break a}}catch(p){}}c+=e}n=null;break a}catch(p){n=null;break a}n=void 0}if(n!=null)for(b=zf(Vf(n,7)),b==null||a.Me||(a.cryptoPeriodIndex=b),b=zf(Vf(n,10)),b!=null&&b>0&&!a.Me&&(a.j=b),n=Qda(n, 2,Qf(n.xb)&34?Rda:Sda,void 0===Yda?2:5),n=g.w(n),b=n.next();!b.done;b=n.next())a.C.push(g.Pe(Ye(b.value),4))}; UXa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Pe(a.initData):""+a.cryptoPeriodIndex}; xY=function(a,b,c){var d=c===void 0?{}:c;c=d.videoDuration===void 0?0:d.videoDuration;var e=d.ZG===void 0?void 0:d.ZG;d=d.CK===void 0?!1:d.CK;this.videoId=a;this.status=b;this.videoDuration=c;this.ZG=e;this.CK=d}; VXa=function(a,b,c,d,e){this.videoId=a;this.CP=b;this.B=c;this.bytesDownloaded=d;this.j=e}; yY=function(a){this.j=a;this.offset=0}; WXa=function(a){if(a.offset>=a.j.totalLength)throw Error();return KJ(a.j,a.offset++)}; XXa=function(a,b){b=b===void 0?!1:b;var c=WXa(a);if(c===1){b=-1;for(c=0;c<7;c++){var d=WXa(a);b===-1&&d!==255&&(b=0);b>-1&&(b=b*256+d)}return b}d=128;for(var e=0;e<6&&d>c;e++)c=c*256+WXa(a),d*=128;return b?c:c-d}; YXa=function(a){try{var b=XXa(a,!0),c=XXa(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}}; ZXa=function(a){for(var b=new yY(a),c=-1,d=0,e=0;!d||!e;){var f=YXa(b),h=f.id;f=f.size;if(h<0)return;if(h===176){if(f!==2)return;d=b.Lm()}else if(h===186){if(f!==2)return;e=b.Lm()}h===374648427?c=b.Lm()+f:h!==408125543&&h!==174&&h!==224&&b.skip(f)}b=JJ(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new DJ([b]);EJ(d,a);return d}; aYa=function(a,b,c){var d=this;this.ya=a;this.policy=b;this.K=c;this.logger=new g.uN("dash");this.B=[];this.j=null;this.Aa=-1;this.Y=0;this.Ga=NaN;this.qa=0;this.C=NaN;this.Z=this.Ka=0;this.Wa=-1;this.Ma=this.G=this.D=this.Fa=null;this.Xa=this.Va=NaN;this.N=this.ra=this.Ya=this.fb=null;this.ob=!1;this.Ra=this.timestampOffset=0;this.hd={DY:function(){return d.B}}; if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.fb&&a.oa("atv",{ap:this.policy.fb});this.N=new IXa(this.policy,e,function(h,l,m){zY(a,new xY(d.policy.D,2,{ZG:new VXa(f,h,e.info,l,m)}))}); this.N.Z.promise.then(function(h){d.N=null;h===1?zY(a,new xY(d.policy.D,h)):d.ya.oa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); h instanceof vY&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ya.oa("offlinenwerr",{em:l}),$Xa(d),zY(a,new xY(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ya.oa("dldbwerr",{em:l}),$Xa(d),zY(a,new xY(d.policy.D,4,{CK:!0})))})}}; bYa=function(a){return a.B.length?a.B[0]:null}; kXa=function(a,b){return a.B.some(function(c){return c.info.Pa===b})}; iYa=function(a,b,c,d){d=d===void 0?0:d;if(a.G){var e=a.G.Ub+a.G.B;if(c.info.Ub>0)if(c.info.Pa===a.G.Pa&&c.info.Ub=0&&a.G.Pa>=0&&!AM(a.G,c.info))throw new g.Hs("improper_continuation",a.G.Sc(),c.info.Sc());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:AM(e,f)||(Math.abs(e.Xe-f.Xe)<=1E-6&&e.Pa===f.Pa?0:aEa(e,f)))||cYa(a,"d")}else if(c.info.Ub>0)throw new g.Hs("continuation_of_null",c.info.Sc());a.G=c.info; a.K=c.info.j;if(c.info.Ub===0){if(a.j)if(!a.ya.isOffline()||a.policy.Yk)a.ya.oa("slice_not_fully_processed",{buffered:a.j.info.Sc(),push:c.info.Sc()});else throw new g.Hs("slice_not_fully_processed",a.j.info.Sc(),c.info.Sc());AY(a);a.Ka=d}else{if(a.Ka&&d&&a.Ka!==d)throw a=new g.Hs("lmt_mismatch",c.info.Pa,a.Ka,d),a.level="WARNING",a;!c.info.j.Sm()&&a.D&&(d=c.info,e=a.D.nj,d.C="updateWithEmsg",d.Pa=e)}if(a.j){d=TM(a.j,c);if(!d)throw new g.Hs("failed_to_merge",a.j.info.Sc(),c.info.Sc());a.j=d}else a.j= c;a:{c=g.wE(a.j.info.j.info);if(a.j.info.type!==3){if(!a.j.info.Te)break a;a.j.info.type===6?dYa(a,b,a.j):eYa(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(a.Aa<=0&&a.Y===0){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+80))break;if(q!==408125543)if(q===524531317)l=!0,p>=0&&(e=h.Lm()+p,m=!0);else{if(l&&(q=== 160||q===163)&&(f<0&&(f=n),m))break;q===163&&(f=Math.max(0,f),e=h.Lm()+p);if(q===160){f<0&&(e=f=h.Lm()+p);break}h.skip(p)}}f<0&&(e=-1)}if(f<0)break;a.Aa=f;a.Y=e-f}if(a.Aa>d)break;a.Aa?(d=fYa(a,a.Aa),d.G&&gYa(a,d),dYa(a,b,d),hYa(a,d),a.Aa=0):a.Y&&(d=fYa(a,a.Y<0?Infinity:a.Y),a.Y-=d.j.totalLength,hYa(a,d))}}a.j&&a.j.info.Te&&(hYa(a,a.j),a.j=null)}; eYa=function(a,b){!b.info.j.Sm()&&b.info.Ub===0&&(g.wE(b.info.j.info)||b.info.j.info.Me())&&FHa(b);if(b.info.type===1)try{gYa(a,b),jYa(a,b)}catch(e){g.xw(e);var c=CM(b.info);c.hms="1";a.ya.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.qQ(b);a.N&&NXa(a.N,b);if(c.pg()&&a.policy.B)a:{a=a.ya.manifest;b=b.info.clipId;c=yE(c.info,a.Vb);if(b){var d=WHa(a,c);if(a.Wa[d])break a;a.Wa[d]=b}a.Va.push(c)}}; $Xa=function(a){var b;(b=a.N)==null||b.dispose();a.N=null}; kYa=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0); a.j&&(b+=a.j.j.totalLength);return b}; lYa=function(a){if(a.ra&&!a.policy.Gq){var b=a.ya;b.manifest.isManifestless&&pN(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.fb;a.C=a.G?a.C-a.qa:NaN;AY(a)}; fYa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=AHa(c,b);a.j=c[1];return c[0]}; gYa=function(a,b){var c=SM(b);if(sE(b.info.j.info)&&b.info.j.info.video.primaries==="bt2020"){var d=new WL(c);YL(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,c.getUint8(d)===129&&c.getUint8(d+1)===1&&c.setUint8(d+1,9))}d=b.info.j.info;rE(d)&&!sE(d)&&(d=SM(b),(new WL(d)).Do(),bM([408125543,374648427,174,224],21936,d));b.info.j.info.Ag()&&(d=b.info.j,d.info&&d.info.video&&d.info.video.projectionType==="MESH"&&!d.B&&(g.wE(d.info)?d.B=GDa(c):d.info.Me()&&(d.B=NDa(c))));b.info.j.info.Me()&& b.info.Ag()&&(c=SM(b),(new WL(c)).Do(),bM([408125543,374648427,174,224],30320,c)&&bM([408125543,374648427,174,224],21432,c));if(a.policy.DD&&b.info.j.info.Me()){c=SM(b);var e=new WL(c);if(YL(e,[408125543,374648427,174,29637])){d=aM(e,!0);e=e.start+e.pos;for(var f=0;f=BY(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&mYa(c)&&(b=a.Fa,LW?(l=DHa(c),h=1/l,l=BY(a,l),b=BY(b)+h-l):b=b.getDuration()- a.getDuration(),b=1+b/c.info.duration,FDa(SM(c),b))}else{h=!1;a.D||(FHa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.nj,f.C="updateWithEmsg",f.Pa=d,f=c.B,f.Ni&&(d=a.K.index,d.B=!f.Ni,d.C="emsg"),f=c.info.j.info,d=SM(c),g.wE(f)?UL(d,1701671783):f.Me()&&bM([408125543],307544935,d)));a:if((f=WM(c,a.policy.Tb))&&EHa(c))l=nYa(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.il?a.C+f:NaN;else{if(a.policy.pw){if(d=m=a.ya.Gp(UM(c),1),a.C>=0&&c.info.type!==6){if(a.policy.il&&isNaN(a.Va)){g.yw(new g.Hs("Missing duration while processing previous chunk", c.info.Sc()));a.ya.isOffline()&&!a.policy.Yk||oYa(a,c,d);cYa(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.Xa,u=a.Va,y=a.policy.aq&&n>a.policy.aq,A=Math.abs(p)>10,D=Math.abs(a.C-d)<1E-7;if(Math.abs(p)>1E-4){a.Ra+=1;var F=(e=a.D)==null?void 0:KL(e);e={audio:""+ +a.Hh(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(n*1E3).toFixed(),segDrift:(p*1E3).toFixed(),skipRewrite:""+ +(y||A)};if(F==null?0:F.length)e.adCpn=F[0];a.ya.handleError("qoe.avsync", e);a.Wa=q}y||A||D||(d=a.C);e=nYa(a,c,m);f-=e;a.Z=n+e;a.policy.C&&(p&&!D||e)&&(n=(l=a.D)==null?void 0:KL(l),a.ya.oa("discontinuityRewrite",{adCpn:(n==null?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(p*1E3).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;oYa(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.Qp&&a.Ra>=a.policy.Qp&&(a.Ra=0,a.ya.Jq({resetForRewrites:"count"})))}a.Ma= c.info;a.Va=VM(c);c.C>=0&&(a.Xa=c.C);if(h&&a.D){h=pYa(a,!0);DM(c.info,h);a.j&&DM(a.j.info,h);b=g.w(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.K&&l.Pa!==((e=a.D)==null?void 0:e.nj)||DM(l,h);(c.info.Te||a.j&&a.j.info.Te)&&c.info.type!==6||(a.ra=h,b=a.ya,b.manifest.isManifestless&&qYa(b,h,null,!!a.K.info.video),a.policy.lf||rYa(a))}}jYa(a,c);a.timestampOffset&&CHa(c,a.timestampOffset)}; hYa=function(a,b){if(b.info.Te){a.fb=b.info;if(a.D){var c=a.D,d=pYa(a,!1),e=null;if(a.D.CF()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=KL(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.w(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.w(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.w(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 RXa(e,f,h,l,g.BDa(c),g.CDa(c))}a.ya.hS(a.K,d,e);a.ra||a.policy.lf||rYa(a);a.ra=null}AY(a)}a.N&&NXa(a.N,b);if(c=a.So())if(c=TM(c,b,a.policy.hm)){a.B.pop();a.B.push(c);return}a.B.push(b)}; AY=function(a){a.j=null;a.Aa=-1;a.Y=0;a.D=null;a.Ga=NaN;a.qa=0;a.ra=null}; cYa=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.Wa=-1;a.Ma=null;a.Xa=NaN;a.Va=NaN;a.Ya=null;a.ya.oa("mdstm",b)}; jYa=function(a,b){if(a.K.info.oe){if(b.info.j.info.Me()){var c=new WL(SM(b));if(YL(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=aM(c,!0);c=d!==16?null:fM(c,d)}else c=null;d="webm"}else b.info.G=PXa(SM(b)),c=QXa(b.info.G),d="cenc";c&&c.length&&(c=new wY(c,d),a.policy.dH&&g.wE(b.info.j.info)&&(d=LDa(SM(b)))&&(c.B=d),c.Me=b.info.j.info.Me(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ya.py(c))}}; rYa=function(a){var b=a.D,c=zDa(b);c&&(c.startSecs+=a.Ga,a.ya.gS(a.K,c,b.nj,b.CF()))}; pYa=function(a,b){var c,d=a.D;if(c=zDa(d))c.startSecs+=a.Ga;return new xL(d.nj,a.Ga,b?d.Vj:a.qa,d.ingestionTime,"sq/"+d.nj,void 0,void 0,b,c)}; oYa=function(a,b,c){if(!BHa(b,c))return b=CM(b.info),b.smst="1",a.ya.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ga)&&(a.Ga=c);return!0}; nYa=function(a,b,c){var d=0;if(b.info.j.info.Me()&&!EHa(b))return 0;if(a.Fa&&!a.Hh()){var e=0;c&&g.wE(b.info.j.info)?e=c-a.C:b.info.j.info.Me()&&(e=a.Z);var f=b.info.Pa;c=WM(b,a.policy.Tb);var h=a.Fa;var l=h.Wa;h=h.Z;var m=Math.abs(h-e)>.02;if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.wE(b.info.j.info))FDa(SM(b),d);else if(b.info.j.info.Me()&&(f=e-h,!g.wE(b.info.j.info)&&(b.info.j.info.Me(),d=new WL(SM(b)),l=b.G?d:new WL(new DataView(b.info.j.j.buffer)),WM(b,!0)))){var n= f*1E3,p=hM(l);l=d.pos;d.pos=0;if(d.j.getUint8(d.pos)===160||iM(d))if($L(d,160))if(aM(d,!0),$L(d,155)){if(f=d.pos,m=aM(d,!0),d.pos=f,n=n*1E9/p,p=cM(d),n=p+Math.max(-p*.7,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;f>=0;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=WM(b,a.policy.Tb);d=c-d}d&&b.info.j.info.Me()&&a.ya.oa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d}; mYa=function(a){return a.info.j.Sm()&&a.info.Pa===a.info.j.index.qd()}; BY=function(a,b){b=(b=b===void 0?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()}; sYa=function(a,b){b<0||(a.B.forEach(function(c){CHa(c,b)}),a.timestampOffset=b)}; AX=function(a,b,c,d,e){NX.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.cg=d;this.lastError=null;this.Dg=function(){f.La()||(f.cg.fd.has(f.formatId)?(f.isComplete()||f.j.start(),JW(f.cg,f.formatId)&&f.wB(2),f.cg.Og(f.formatId)&&(ETa(f.cg,f.formatId)?f.zd(4):(f.lastError="net.closed",f.zd(5)))):(f.lastError="player.exception",f.zd(5)))}; this.j=new g.Lo(function(){f.isComplete()||(f.lastError="net.timeout",f.zd(5))},this.policy.sG); this.j.start();zTa(this.cg,this.formatId,this.Dg);g.Ae(this.Dg)}; CY=function(a,b,c,d){g.O.call(this);var e=this;this.ya=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.uN("dash");this.C=[];this.ra=[];this.B=this.Qb=null;this.Ma=!1;this.Ka=this.Ra=0;this.K=-1;this.qa=!1;this.Fa=-1;this.Aa=this.Ga=null;this.Y=NaN;this.hd={XP:function(){return e.D}, Yna:function(){return e.C}, una:function(){return e.Z}}; this.D=new aYa(a,b,c);this.policy.B&&(this.Z=new AVa(this.D,this.ya.getManifest(),this.policy,function(f){e.policy.Cp&&e.ya.oa("buftl",f)})); this.tb=c.info.tb;this.N=this.policy.ra?!1:c.PA();this.isManifestless=c.PA();this.G=this.N;g.P(this,this.Ga)}; DY=function(a,b,c){c=c===void 0?!1:c;b&&LW&&sYa(a.D,b.jQ());if(!c){var d;(d=a.Z)==null||IVa(d)}a.Qb=b;(b=a.Z)!=null&&(b.Qb=a.Qb)}; EY=function(a){var b=a.Qb&&a.Qb.Kr();if(a.policy.Bw){if((a=a.Z)==null)a=void 0;else{var c;a=(c=a.D)==null?void 0:c.info}return a||null}return b}; tYa=function(a){for(var b={},c=0;c4&&a.ra.shift()}; vYa=function(a,b){if(b.Pl()){var c=b.Vk();c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.C&&b instanceof AX&&a.ya.oa("omblss",{s:d.info.Sc()}),FY(a,b.info.gb,d,b.gQ())}}; FY=function(a,b,c,d){d=d===void 0?0:d;isNaN(a.Y)||(a.ya.oa("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.Y}),a.Y=NaN);switch(c.info.type){case 1:case 2:wYa(a,c);break;case 4:var e=c.info.j,f=e.MV(c),h;((h=a.B)==null?0:h.type===4)&&kHa(c.info,a.B)&&(a.B=e.gC(a.B).pop());c=g.w(f);for(e=c.next();!e.done;e=c.next())FY(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Fa||(e.Fa=(0,g.T)(),BF("fvb_r",e.Fa,e.j))):(e=a.timing,e.K||(e.K=(0,g.T)(),BF("fab_r",e.K,e.j))); iYa(a.D,b,c,d);a.policy.B&&xYa(a);break;case 6:iYa(a.D,b,c,d),a.B=c.info}}; wYa=function(a,b){if(b.info.type===1)if(b.info.j.info.video){var c=a.timing;c.Ma||(c.Ma=(0,g.T)(),BF("vis_r",c.Ma,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.T)(),BF("ais_r",c.Z,c.j));eYa(a.D,b);a=a.ya;a.videoTrack.j.pg()&&a.audioTrack.j.pg()&&a.policy.B&&!a.manifest.Vb&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),Math.abs(b-c)>1&&a.oa("trBug",{af:""+yE(a.audioTrack.j.info,!1),vf:""+yE(a.videoTrack.j.info,!1),a:""+b,v:""+c}))}; HX=function(a){return bYa(a.D)}; xYa=function(a){a.C.length?a.B=g.Jb(g.Jb(a.C).info.gb):a.D.B.length?a.B=a.D.So().info:a.B=EY(a)}; GY=function(a,b){var c={kd:[],Ro:[]},d;if((a=a.Z)==null)a=void 0;else{HVa(a,a.kd,"og");FVa(a,b);HVa(a,a.kd,"trim");var e=GVa(a);b=e.kd;e=e.vy;for(var f=[],h=0;h0){var r=HE(q,m);r>=0&&(p=(q.end(r)-m)*1E3)}f.push({formatId:yE(l.info.j.info,a.manifest.Vb),Tj:l.info.Tj, sequenceNumber:l.info.Pa+a.C,PJ:n,c_:l.info.B,x8:p})}a={kd:b,Ro:f}}return(d=a)!=null?d:c}; DX=function(a,b,c){c=c===void 0?!1:c;if(a.Qb){var d=a.Qb.qe(),e=JE(d,b),f=NaN,h=EY(a);h&&(f=JE(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&yYa(zYa(a),0))return b}a=AYa(a,b,c);return a>=0?a:NaN}; EX=function(a,b,c){a.j.pg();var d=AYa(a,b);if(d>=0)return d;if((d=a.Z)!=null){var e=b;d.policy.yc&&c!=null&&c.YA||(d.vy=[]);FVa(d,!0);d.B=BVa(d.kd,e*1E3)}c=Math;d=c.min;e=a.D;if(e.N)if(e=e.N,e.Hf&&e.Hf.type===3)e=e.Hf.startTime;else if(e.C>0){var f=e.j.index;f=g.Yb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.j){var h,l;c=(h=a.ya.Cf())==null?void 0:(l=eX(h,b))==null?void 0:l.clipId;a.B=a.j.Nr(b, void 0,c).gb[0]}else a.B=a.policy.ra?null:a.j.Nr(b).gb[0];HY(a)&&a.Qb&&a.Qb.abort();a.Ka=0;return a.B?a.B.startTime:b}; LVa=function(a){a.N=!0;a.G=!0;a.K=-1;EX(a,Infinity)}; IY=function(a){for(var b=0,c=g.w(a.C),d=c.next();!d.done;d=c.next())b+=mHa(d.value.info);return b+=kYa(a.D)}; KY=function(a,b){b=b===void 0?!1:b;var c=a.ya.getCurrentTime(),d=a.D.So(),e=(d==null?void 0:d.info.Nf)||0;a.policy.Oj&&(d==null?0:d.info.j.PA())&&!d.info.Te&&(e=d.info.Xe);if(a.policy.j&&d&&d.info.clipId){var f,h=(((f=a.ya.Cf())==null?void 0:cX(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Qb)return a.policy.B&&b&&!isNaN(c)&&d?e-c:0;if((f=EY(a))&&JY(a,f))return f.Nf;f=a.Qb.qe(!0);return b&&d?(b=0,a.policy.B&&(b=LE(f,e+.02)),b+e-c):LE(f,c)}; BYa=function(a,b){if(a.C.length){if(a.C[0].info.gb[0].startTime<=b)return;CX(a)}for(var c=a.D,d=c.B.length-1;d>=0;d--)c.B[d].info.startTime>b&&c.B.pop();xYa(a);a.B&&b=0;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=WM(l,e.policy.Tb),f=l.info)}f&&(e.G=e.B.length>0?e.B[e.B.length-1].info:e.Ya,e.B.length!==0||e.G||cYa(e,"r"));e.ya.oa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});a.policy.B?a.B=null:d>c?EX(a,d):a.B=a.j.xt(b-1,!1).gb[0]}; MY=function(a,b){var c;for(c=0;c0?c||b.Pa>=a.Fa:c}; NY=function(a){var b;return HY(a)||JY(a,(b=a.D.So())==null?void 0:b.info)}; zYa=function(a){var b=[],c=EY(a);c&&b.push(c);b=g.Sb(b,a.D.Zn());c=g.w(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.w(d.info.gb),f=e.next(),h={};!f.done;h={qH:void 0},f=e.next())h.qH=f.value,d.yQ&&(b=g.Wm(b,function(l){return function(m){return!kHa(m,l.qH)}}(h))),(zM(h.qH)||h.qH.type===4)&&b.push(h.qH)}a.B&&!$Da(a.B,g.Jb(b),a.B.j.Sm())&&b.push(a.B); return b}; yYa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return b<0?NaN:yYa(a,c?b:0)?a[b].startTime:NaN}; OY=function(a){return!(!a.B||a.B.j===a.j)}; DYa=function(a){return OY(a)&&a.j.pg()&&a.B.j.info.tbb&&d.Nf1)for(a=0;a0)return 2;if(b<0)return 1;c=a.qd();return b(0,g.T)()?0:1}; SY=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=t===void 0?null:t;g.O.call(this);var u=this;this.ya=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.KM=r;this.Fi=t;this.qa=!1;this.eH="";this.Nl=null;this.ih=NaN;this.ra=!1;this.B=null;this.uh=this.Z=NaN;this.rq=this.K=0;this.logger=new g.uN("dash");this.hd={XQ:function(y,A){return u.XQ(y,A)}}; this.policy.Xq>0&&(this.eH=g.kv(this.policy.Xq));this.policy.Gi&&(this.N=new RY(this.ya,this.policy,this.schedule),g.P(this,this.N))}; UYa=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.XC)||(f=sL(d.j)===sL(d.C));f?d=!1:(e=mM(e,sL(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.T)()0&&h.Z===0&&a.ya.Zr),c=d,f=OY(b),d=c.j.sz(c,e),(e=d.C)&&d.gb.length>1&&(f||d.resource.B||d.gb[0].j!==c.j?d=c.j.sz(c,d.gb[0].B):(f=d.gb[d.gb.length-1],h=f.B/e,!f.Te&&h<.4&&(d=c.j.sz(c,e-f.B)))),c=d):(d.Pa<0&&(c=CM(d),c.pr=""+b.C.length,a.ya.isSeeking()&&(c.sk="1"),c.snss=d.C,a.ya.oa("nosq", c)),c=f.wD(d));if(a.policy.Ma)for(d=g.w(c.gb),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Sm()?(c=xVa(a.G,b.j.info.tb,c.j.info.tb,0),c=d.j.sz(d,c)):c=d.j.wD(d);if(a.B){var l=c.gb[0].j.info.id;d=a.j;e=c.gb[0].Pa;d=e<0&&!isNaN(d.G)?d.G:e;e=eY(a.j,c.gb[0].Xe,d);var m=b===a.audioTrack?1:2;h=c.gb[0].j.info.rb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.dh.event;if(n.j.Pa===d){n=p==="predictStart"?void 0:n.j.dh.event;break a}if(n.j.Pa===d-1){n=p==="start"||p==="continue"?p:void 0;break a}}n= void 0}if(a.policy.Ka&&a.j.B!==0){var q=a.B.nK(e,d,l,m,h,n);d<0&&m===2&&fY(a.j,0,0,!0);if(q){var r;l=((r=q.fn)==null?void 0:r.Ot)||"";var t;r=((t=q.fn)==null?void 0:t.UT)||-1;a.ya.oa("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.jA(e,d,l,m,h,n),d<0&&m===2&&fY(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.FD&&b.isRequestPending(d-1)){a.ya.oa("sdai",{wt_daistate_on_sg:d-1});return}a.ya.oa("sdai",r);t&&(c.j=new g.qL(t));a.policy.C&&(t=c.resource.eK("id")|| "",r=((q=c.j)==null?void 0:q.get("id"))||"",t!==r&&a.ya.oa("stmidmismatch",{cid:t,aid:r}))}else a.j.B!==5&&a.ya.oa("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.pm&&c.gb[0].Pa!==-1&&c.gb[0].Pa=e.D?(e.oa("sdai",{haltrq:f+1,est:e.D}),d=!1):d=e.B!==2;if(!d||!rM(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.ya.isSuspended&&(!lO(a.schedule)||a.ya.AJ))return!1;if(a.policy.D&&tP>=5)return g.Mo(a.ya.hG),!1;if(a.manifest.isManifestless){if(b.C.length>0&&b.B&&b.B.Pa===-1||b.C.length>=a.policy.Dp||!a.policy.eI&&b.C.length>0&&!a.policy.N.tj)return!1;if(b.N)return!a.manifest.isLive|| !isNaN(a.ih)}if(IYa(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.pg())return!1;EX(b,a.ya.getCurrentTime())}if(HX(b)&&(b.So()!==HX(b)||a.ya.isSuspended))return!1;e=(d=a.policy.xB)&&!b.C.length&&KY(b,!0)=a.policy.iq)return!1;d=b.B;if(!d)return!0;d.type===4&&d.j.pg()&&(b.B=g.Jb(d.j.gC(d)),d=b.B); if(!d.Ni()&&!d.j.vt(d))return!1;f=a.manifest.Wd||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.qd();var h=c.j.index.qd();f=Math.min(f,h);if(b.j.index.YJ()>0&&f>0&&d.Pa>=f)return b.Fa=f,c.Fa=f,!1}if(d.j.info.audio&&d.type===4||d.Ni())return!1;f=!b.G&&!c.G;if(e=!e)e=d.Nf,e=!!(c.B&&!JY(c,c.B)&&c.B.NfVYa(a,b)?(VYa(a,b),!1):(a=b.Qb)&&a.isLocked()?!1:!0}; VYa=function(a,b){var c=a.j;c=c.j?c.j.dh:null;if(a.policy.Ma&&c)return c.startSecs+c.Eh+15;b=UY(a.ya,b);a.policy.Kb>0&&(c=((0,g.T)()-a.ya.kq)/1E3,b=Math.min(b,a.policy.Kb+a.policy.Vi*c));c=a.ya.getCurrentTime()+b;return a.policy.Pv&&(b=WYa(a.ya)+a.policy.Pv,b=0||b.resource.eK("defrag")==="1"||b.resource.eK("otf")==="1"){b=null;break a}e=vM(0,4096)}e=new EM([new xM(5,d.j,e,"createProbeRequestInfo"+d.C,d.Pa)],b.B);e.Yj=c;e.j=b.j;b=e}b&&TYa(a,b)}}; TYa=function(a,b){a.ya.rK(b);var c=mHa(b),d=a.ya.fK();c={Kc:a.schedule,eA:c,zS:vVa(a.G,c),Mp:yM(b.gb[0]),Rp:tL(b.resource.j),EJ:a.policy.C,ov:function(e,f){a.ya.iH(e,f)}}; a.Nl&&(c.Pa=b.gb[0].Pa,c.ih=b.ih,c.Nl=a.Nl);d={Kw:nHa(b,a.ya.getCurrentTime()),WG:a.policy.ge&&GM(b)&&b.gb[0].j.info.video?FXa(a.C):void 0,TH:a.policy.Ma,poToken:a.ya.Zt(),uy:a.ya.uA(),eH:a.eH,uh:isNaN(a.uh)?null:a.uh,Fi:a.Fi,KM:a.KM,rq:a.rq,NB:d};return new BX(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.gb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(e.state>=2)||e.isComplete()||e.kx()||!(!a.ya.Qa||a.ya.isSuspended||KY(l)>3)){var m=QYa(e,a.policy,a.D);m===1&&(a.ra=!0);XYa(a,e,m);if(e.isComplete()|| e.La()&&f<3){if(a.policy.C){var n=e.timing.rr();n.rst=e.state;n.strm=e.xhr.DC();n.cncl=e.xhr&&e.Cd.D?1:0;a.ya.oa("rqs",n)}e.Z1&&a.ya.oa("sbwe3",{},!0)}if(!a.La()&&e.state>=2){cXa(a.timing,e,h);var p=a.ya;a.uh&&e.dJ&&p&&(a.uh=NaN,a.ya.DT(e.dJ),a.ya.uE(),a.ya.oa("cabrUtcSeek",{mediaTimeSeconds:e.dJ}));e.lC&&(e.Tp>0&&a.ya.oa("sError",{errorHttpResponseCode:e.Tp.toString()}),a.uh&&e.lC&&!e.lC.action&&(a.ya.Lu(a.uh),a.uh=NaN,a.ya.oa("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.uh})));a.policy.Jw&&e.qj&& a.ya.Wm(e.qj);a.policy.Wc&&(a.rq=e.rq);if(e.state===3){MY(l,e);GM(e.info)&&VY(a,l,h,!0);if(a.B){var q=e.info.jA();q&&a.B.Gl(e.info.gb[0].Pa,h.info.id,q,e.info.gb[0].startTime)}a.ya.Ve()}else if(e.isComplete()&&e.info.gb[0].type===5){if(e.state!==4)e.Rm()&&a.ya.handleError(e.Zh(),e.Ir());else{var r=(e.info.gb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof BX&&r.kx()&&r.dI(!0)}e.dispose()}else{e.Rm()||YYa(a,e);var t;((t=e.cB)==null?0:t.itagDenylist)&&a.ya.yL(e.cB.itagDenylist); if(e.state===4)ZYa(a,e),a.j&&iXa(a.j,e.info,a.B);else if(a.policy.gt&&e.Pl()&&!e.isComplete()&&!ZYa(a,e)&&!e.Rm())break a;e.Rm()&&($Ya(a,e),isNaN(a.uh)||(a.ya.Lu(a.uh),a.uh=NaN));a.ya.Ve();var u=RYa(e,a.policy,a.D);XYa(a,e,u)}}}}}catch(y){f=a.qa?1:0,a.qa=!0,e=aE(f),f=bE(y,f),a.ya.handleError(f.errorCode,f.details,f.severity),e||a.ya.nk()}},d)}; YYa=function(a,b){if(b.LB&&b.state>=2&&b.state!==3){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c}); var d=EXa(a.C,c),e=b.info.C;e&&(e-=d.YP(),d.C=!0,b.info.gb[0].j.C=!1,OWa(b,d.jx(e)),WY(a.ya,a.videoTrack,d),JYa(a.videoTrack,d),a.ya.uS(d.info.video.quality),(e=b.gQ())&&d.info.lastModified&&d.info.lastModified!==+e&&MY(a.videoTrack,b))}else b.LB=!1}}; $Ya=function(a,b){var c=b.info.gb[0].j,d=b.Zh();if(tL(c.resource.j)){var e=g.Qe(b.Yf(),3);a.ya.oa("dldbrerr",{em:e||"none"})}e=b.info.gb[0].Pa;var f=eY(a.j,b.info.gb[0].Xe,e);d==="net.badstatus"&&(a.K+=1);if(b.canRetry()&&aZa(a.ya)){if(!(b.info.resource.B>=a.policy.uw&&a.B&&b.info.fq()&&d==="net.badstatus"&&a.B.HE(f,e))){e=(c.info.video&&c.resource.B>1||b.Bg===410||b.Bg===500||b.Bg===503)&&!(kY(a.C.G).size>0)&&!tL(c.resource.j);f=b.Ir();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1"); a.ya.handleError(d,f);a.La()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),pY(a.C,c)),MY(h,b),a.ya.Ve())}}else h=1,a.B&&b.info.fq()&&d==="net.badstatus"&&a.B.HE(f,e)&&(h=0),a.manifest.isLive&&b.Zh()==="net.badstatus"&&a.K<=a.policy.Fj*2?(oIa(a.manifest),a.manifest.Wd||a.manifest.isPremiere?GX(a.ya,0,{Zc:"badStatusWorkaround"}):a.manifest.C?GX(a.ya,a.manifest.Ra,{Zc:"badStatusWorkaround", Gp:!0}):XY(a.ya)):a.ya.handleError(d,b.Ir(),h)}; ZYa=function(a,b){if(a.policy.useUmp&&b.La())return!1;try{var c=b.info.gb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.La(),b.isComplete()||b.Pl(),d.N=!1);b.KP()&&a.ya.nJ.Am(1,b.KP());var e=b.YJ(),f=b.sY();qN(a.manifest,e,f)}if(b.info.Mp()&&!FM(b.info))for(var h=g.w(b.Vk()),l=h.next();!l.done;l=h.next())wYa(d,l.value);for(a.ya.getCurrentTime();d.C.length&&d.C[0].state===4;){var m=d.C.shift();vYa(d,m);d.Ra=m.lY()}d.C.length&&vYa(d,d.C[0]);var n=!!HX(d); n&&b instanceof AX&&(c.info.Hh()?WWa(a.timing):VWa(a.timing));return n}catch(p){b=b.Ir();b.origin="hrhs";a:{a=a.ya;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.Hs&&c.args)for(d=g.w(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.w(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.yw(c);if(c.level==="WARNING"){a.ea.Jq(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}}; bZa=function(a){var b=a.videoTrack.j.index;a.Nl=new NYa({wk:a.policy.wk,tj:a.policy.N.tj,Wj:b.Wj,qd:function(){return b.qd()}, gx:function(){return b.gx()}})}; VY=function(a,b,c,d){if(!(c.pg()||c.UA()||c.C||!rM(c.resource,a.policy,a.D)||c.info.rb==="f"||a.policy.B)){if(d){d=a.G;var e=c.info;d=wVa(d,e.video?d.policy.Xw:d.policy.gm,e.tb)}else d=0;d=c.jx(d);a=TYa(a,d);FM(d)&&uYa(b,a);c.C=!0}}; YY=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.ya=a;this.He=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.Y=f;this.isAudioOnly=h;this.Fa=l;this.B=DP;this.Aa=!1;this.logger=new g.uN("sabr");this.Z=this.ra=this.qa=!1;this.videoInfos=this.G=this.Y.videoInfos;this.C=this.N=this.Y.j;this.j=new iY(b,f,function(n,p){m.ya.oa(n,p)}); cZa(this)&&bOa(this.He);dZa(this);this.isAudioOnly&&eZa(this,this.manifest.j["0"])}; cZa=function(a){a=g.w(a.N);for(var b=a.next();!b.done;b=a.next())if(vE(b.value))return!0;return!1}; fZa=function(a,b){var c=[];b=g.w(b);for(var d=b.next();!d.done;d=b.next())c.push(yE(d.value,a.manifest.Vb));return c}; eZa=function(a,b,c){b!==a.D&&(a.D&&(a.Aa=!0),a.D=b,a.xL(b,a.videoTrack,c))}; jZa=function(a,b){a.logger.debug("setConstraint: "+dL(b));a.He.j&&(a.ra=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&gZa(a,b.j):hZa(a,b)?iZa(a,b.B,b.j):a.videoInfos=a.G;a.B=b}; hZa=function(a,b){return a.He.En&&b.reason==="b"||a.He.ZC?!1:a.He.oB?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"}; kZa=function(a,b){return b.isLocked()&&a.j.B||a.B===void 0?!1:ZK(b,a.B)}; lZa=function(a,b){var c,d=(c=a.D)==null?void 0:c.info.video.j;return a.Aa?!0:a.D?b!==d?!0:!a.j.B||a.He.Gj&&a.j.j===a.D.info.itag?!1:!0:!1}; gZa=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Lb(a.videoInfos,function(e){return e.id===c}); d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.ya.oa("sabrpf",{pfid:""+c, vfids:""+d.join(".")}),iZa(a,b,b),lY(a.j,""))}else iZa(a,b,b)}; iZa=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.Wm(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})}; dZa=function(a){var b=null;if(b=a.He.dk?oXa(a.j,a.Fa):g.Lb(a.N,function(c){var d;return!((d=c.dc)==null||!d.isDefault)}))a.C=[b]}; mZa=function(a,b){return a.map(function(c){return zE(c,b)})}; nZa=function(a){var b;if((b=a.B)==null?0:b.isLocked())return a.videoInfos;var c=kY(a.j);b=g.Wm(a.videoInfos,function(d){return d.tb>a.He.tb?!1:!c.has(d.id)}); nXa(a.j)&&(b=g.Wm(b,function(d){return d.video.width<=854&&d.video.height<=480})); return b}; oZa=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.SP(e),h=GWa({Da:e.U(),ea:a.ea,CE:a.CE,He:a.He,kq:a.kq,Wx:a.Wx,Lw:a.Lw,Wy:a.Wy,Hq:a.Hq,isPrefetch:a.isPrefetch,oH:a.oH,rH:a.rH,Pz:a.Pz,sabrLicenseConstraint:e.sabrLicenseConstraint,My:a.My}),l=XX(e,a.NB,a.nextRequestPolicy,a.Bk,a.SS,a.Bda),m=a.yH,n=a.zH;if(n===void 0&&m===void 0){var p;n=d.Vb;n=(m=(p=a.BO)==null?void 0:p.video)?[yE(m.info,n)]:[];var q;p=d.Vb;m=(m=(q=a.BO)==null?void 0:q.audio)?[yE(m.info,p)]:[]}if(e.Fi)var r=e.Fi;e={Ar:h, Ro:a.Ro,yH:m,zH:n,videoPlaybackUstreamerConfig:r,CC:l};a.fn&&(e.fn=a.fn);if(f&&b){f=new Map;var t=g.w(d.Va);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.Wa[WHa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.w(a.kd);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=(q=b)==null?void 0:eX(q,l),q=r.clipId,r=r.Ol,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,kd:[],Ax:n})),r!==0&&(h.startTimeMs= l-r),d.get(q).kd.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:((q=h.formatId)==null?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:dX(b)}));e.RH=[];d=g.w(d.entries());for(f=d.next();!f.done;f=d.next())f=g.w(f.value),f.next(),f=f.next().value,e.RH.push(f);if(a.kd.length&&!e.RH.length){if(c){e="";a=g.w(a.kd);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+(((f=d.formatId)==null?void 0:f.itag)||"")+"_"+(((t=d.formatId)==null?void 0:t.lmt)||0)+"_"+ (((h=d.formatId)==null?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:dX(b)})}return}a.UK&&(e.UK=a.UK);a.RK&&(e.RK=a.RK)}else e.kd=a.kd,e.Ax=d.Va,f&&((t=a.kd)==null?void 0:t.length)>0&&!b&&c&&c("ssap",{bldmistlm:"1"});return e}; ZY=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Cb=c;this.B=null;this.hd={zoa:function(){var e;return(e=d.data)==null?void 0:e.isPrefetch}}}; pZa=function(a,b,c){if(a.Yr())return!0;a.data=b;a.j=oZa(b,c,function(d,e){var f;(f=a.Cb)==null||f.Hk(d,e)}); if(!a.j)return!1;a.B=g.kK(a.j,qCa);return!0}; SWa=function(a,b,c){a.Yj===void 0&&(a.Yj=a.resource.Yj(b,c));return a.Yj}; qZa=function(a){var b,c;return((b=a.j)==null?void 0:(c=b.Ar)==null?void 0:c.MS)||0}; rZa=function(a){var b,c;return!!((b=a.j)==null?0:(c=b.Ar)==null?0:c.My)}; sZa=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e0;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,LZa(b,c,f));break;case 1:LZa(b,fZ,FZa);break;case 0:MZa(b, b.j&7);c=jZ(b,16);e=jZ(b,16);(c^e)!==65535&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(a.C*2),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}; LZa=function(a,b,c){b=JZa(b);c=JZa(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(l<15){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<>=7;n<0;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(n<256)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,n>256){h=hZ[n];h+=jZ(a,gZ[n]);m=KZa(a,c);l=iZ[m];l+=jZ(a,GZa[m]);if(OZa&&hc.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<=0)return MZa(a,c&15),c>>4;for(MZa(a,7);c<0;)c=b[jZ(a,1)-c];return c>>4}; jZ=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}; MZa=function(a,b){a.j-=b;a.register>>=b}; JZa=function(a){for(var b=[],c=g.w(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;h7&&(f+=b[h]);for(e=1;e>m&1;l=f<<4|h;if(h<=7)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}; PZa=function(a){var b,c,d,e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.NZa(new g.HZa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new DJ([]);case 2:return g.G(m,d.read(),5);case 5:f=m.B;h=f.value;if(l=f.done){m.Ha(4);break}e.append(h);m.Ha(2);break;case 4:return m.return(IJ(e))}})}; kZ=function(a,b){this.j=a;this.wd=b}; QZa=function(a){return lU(lU(lU(jU(),function(){return a.wd.nf(function(b){return a.wZ(a.j,b)})}),function(){return a.vZ(a.j)}),function(){return a.uZ(a.j)})}; RZa=function(a){ZX.call(this,"onesie");this.Jc=a;this.j={};this.C=!0;this.D=null;this.queue=new EZa(this);this.G={}}; SZa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.w(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.bZ){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||eZ(e)}}}; VZa=function(a,b){var c=b.totalLength,d=!1;switch(a.D){case 0:a.Jc.L("html5_future_ump_fetcher_inflate")?lU(TZa(a,b,a.C).nf(function(e){UZa(a.Jc,e)}),function(e){a.Jc.aj(e)}):a.BL(b,a.C).then(function(e){UZa(a.Jc,e)},function(e){a.Jc.aj(e)}); break;case 2:a.Md("ormk");b=IJ(b);a.queue.decrypt(b);break;default:d=!0}a.Jc.Pm&&a.Jc.oa("ombup","id.11;pt."+a.D+";len."+c+(d?";ignored.1":""));a.D=null}; TZa=function(a,b,c){a.Jc.BL();b=IJ(b);b=hU(b);c&&(b=b.nf(function(d){return lU(WZa(a.Jc,d,a.iv),function(e){return jU({name:"DecryptError",message:e})})})); a.Jc.enableCompression&&(b=b.nf(function(d){return lU(QZa(new kZ(d,a.Jc.U().dk)),function(e){return jU({name:"DecompressError",message:e})})})); return lU(b.nf(function(d){return cK(d,kCa)}),function(d){var e,f,h,l={name:(f=d.name)!=null?f:"unknown", message:(h=d.message)!=null?h:"unknown",wasm:a.Jc.U().wd?((e=a.Jc.U().wd)==null?0:e.Co)?"1js":"1":"0",enc:a.C,gz:a.Jc.enableCompression};l.webcrypto=""+ +!!wJ();l.enc=""+ +a.C;return jU(new $D("onesie.response.parse",l))}).nf(function(d){if(d.KL!==1)throw d={st:d.KL, webcrypto:""+ +!!wJ(),textencoder:""+ +!!g.Ka.TextEncoder},new $D("onesie.response.badproxystatus",d);if(d.BK!==200)throw new $D("onesie.response.badstatus",{st:d.BK});return g.PJ(d.body)})}; XZa=function(a){return new Promise(function(b){setTimeout(b,a)})}; YZa=function(a,b){var c=a.U();c=a.Ed&&c.L("html5_onesie_preload_use_content_owner");var d=a.vS,e=SN(b.W.experiments,"debug_bandaid_hostname");if(e)b=qW(b,e);else if((c===void 0?0:c)&&(d==null?0:d.url)&&!b.B){var f=sL(new g.qL(d.url));b=qW(b,f)}else b=(f=b.j.get(0))==null?void 0:f.location.clone();if(b&&a.videoId){f=$N(a.videoId);a=[];if(f)for(f=g.w(f),c=f.next();!c.done;c=f.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}}; ZZa=function(a,b,c){c=c===void 0?0:c;var d,e;return g.J(function(f){if(f.j==1)return d=[],d.push(b.load()),c>0&&d.push(XZa(c)),g.G(f,Promise.race(d),2);e=YZa(a,b);return f.return(e)})}; $Za=function(a,b,c,d){d=d===void 0?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");wJ()||a.set("onem","1");b.startSeconds>0&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),b=e.L("html5_gapless_onesie_no_media_bytes")&&$P(b)&&b.Ed,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),RN||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad", "0"),a.set("oavd","0")))}; a_a=function(a,b,c,d,e){e=e===void 0?!1:e;var f=b.al,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.KQ&&d||(h=h+"?key="+f.innertubeApiKey);f=[{name:"Content-Type",value:"application/json"}];d&&f.push({name:"Authorization",value:"Bearer "+d});f.push({name:"User-Agent",value:g.xb()});g.Eq("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.Eq("EOM_VISITOR_DATA")}):(c=c.visitorData||g.Eq("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=SN(b.experiments, "debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=SJ(JSON.stringify(a));return{url:h,DQ:f,postBody:a,mda:e,yC:e}}; c_a=function(a,b,c,d,e,f){var h=g.kK(a,jCa,a.yC?void 0:c.wd),l={encryptedClientKey:b.j.encryptedClientKey,Y1:!0,TX:!0,rP:b_a(c,!!a.yC),I3:c.experiments.kb("html5_use_jsonformatter_to_parse_player_response")};if(a.yC)l.bfa=h;else{a=b.encrypt(h);var m;a=((m=c.wd)==null?void 0:m.BR(a))||a;m=l.UX=a;(0,g.T)();m=VAa(new UAa(b.j.C),m,b.iv);l.mZ=m;l.iv=b.iv}b=d.getVideoData();c=GWa({Da:c,ea:d,CE:b.startSeconds*1E3,oH:!0,rH:!0});return{LQ:l,Ar:c,onesieUstreamerConfig:e,pp:f,CC:XX(b)}}; d_a=function(a,b,c){var d,e,f;return g.J(function(h){if(h.j==1)return d=g.kK(b,jCa),g.G(h,BZa(c,d),2);if(h.j!=3)return e=h.B,g.G(h,CZa(c,e),3);f=h.B;return h.return({UX:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,mZ:f,Y1:!0,TX:!0,rP:b_a(a,!!b.yC),I3:a.experiments.kb("html5_use_jsonformatter_to_parse_player_response")})})}; e_a=function(a,b,c,d,e,f){var h,l,m;return g.J(function(n){if(n.j==1)return g.G(n,d_a(c,a,b),2);h=n.B;l=d.getVideoData();m=GWa({Da:c,ea:d,CE:l.startSeconds*1E3,oH:!0,rH:!0});return n.return({LQ:h,Ar:m,onesieUstreamerConfig:e,pp:f,CC:XX(l)})})}; b_a=function(a,b){a=kO(a.schedule,!0);b=b||!!wJ()&&a>1572864;return"DecompressionStream"in window||!b}; mZ=function(a,b){g.O.call(this);var c=this;this.ea=a;this.playerRequest=b;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.uN("onesie");this.Pm=this.W.zc();this.iP=this.W.bl;this.OG=new AZa(this.iP.j,this.W.dk);this.xhr=null;this.state=1;this.Sq=new $E;this.gZ=!1;this.playerResponse="";this.Ul=new MX(this);this.Xm=new RZa(this);this.jI=this.W.L("html5_onesie_check_timeout");this.MO=new g.Lo(this.y7,500,this);this.PG=new g.Lo(this.uQ,1E4,this);this.JL=new g.Lo(function(){if(!c.isComplete()){var d= lZ(c);c.aj(new $D("net.timeout",d))}},g.VB(this.W.experiments,"html5_onesie_request_timeout_ms")); this.K0=new g.Lo(this.L$,2E3,this);this.Yu="";this.JK=this.HZ=!1;this.CA=this.ea.uA();this.wS="";this.sH=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.rR=this.NA=!1;this.UH=[];this.wv=this.nj=-1;g.P(this.videoData,this);g.P(this,this.MO);g.P(this,this.PG);g.P(this,this.K0);a=VN();RN&&a&&!this.W.L("html5_disable_onesie_media_bytes")&&(this.dg=new Map);this.gY=new Map;this.P_=new Map;this.K1=new Map}; dZ=function(a,b){var c;return(c=a.dg)==null?void 0:c.get(b)}; g_a=function(a,b,c){var d;return g.J(function(e){if(e.j==1)return a.Md("oprd_s"),f_a(a)?g.G(e,DZa(a.OG,b,c),3):(d=a.OG.decrypt(b,c),e.Ha(2));e.j!=2&&(d=e.B);a.Md("oprd_c");return e.return(d)})}; WZa=function(a,b,c){a.Md("oprd_s");var d=a.OG;d.B||(d.B=new vZa(d.j.j,d.wd));d=d.B;a:{if(b.length<=131072&&d.wd&&!d.wd.Co){var e=wZa(d,b,c);if(e.currentState===1){b=e;break a}}b.length<=32768?b=xZa(d,b,c):(e=zZa(d,b,c),b=e.currentState===1?e:yZa(d,b,c))}a.Md("oprd_c");return b}; h_a=function(a){return a.L("html5_onesie_host_probing")||a.Pm?RN:!1}; UZa=function(a,b){a.Md("oprr");a.playerResponse=b;a.rR||(a.sH=!1);nZ(a)}; nZ=function(a){if(!a.playerResponse)return!1;if(a.NA)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&aQ(a.videoData);if(a.dg&&a.sH){if(!a.dg.has(a.Yu))return!1;var c=a.dg.get(a.Yu),d;if(d=c){d=!1;for(var e=g.w(c.fd.keys()),f=e.next();!f.done;f=e.next())if(f=c.fd.get(f.value))for(var h=g.w(f.lG),l=h.next();!l.done;l=h.next())l.value.Js>0&&(f.Hh?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Md("ofr");a.Sq.resolve(a.playerResponse);if(!a.jI){var m;(m=a.JL)==null||m.start();a.PG.start()}return a.NA= !0}; j_a=function(a){if(a.dg&&!a.L("html5_onesie_media_capabilities")){a.Md("ogsf_s");var b=CWa(a.ea.getVideoData(),function(d,e){a.oa(d,e)}),c=i_a(a.ea); b.video=sWa(c,b.video);a.Md("ogsf_c");if(b.video.length)return b;a.oa("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}}; f_a=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(b==null?0:b.yC)||g.MO(a.W)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!wJ()}; lZ=function(a){if(!a.Pd)return{};var b=a.Pd.rr();b.d=VVa(a.Pd);b.shost=a.W1;b.ty="o";return b}; k_a=function(a,b){var c,d;(d=(a=(c=a.dg)==null?void 0:c.get(b))==null)||(b=a.C?!1:a.C=!0,d=!b);return!d}; l_a=function(a,b,c,d,e,f,h,l,m,n,p){g.O.call(this);var q=this;this.ea=a;this.ya=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Kc=h;this.ra=l;this.C=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.Ma=this.Ka=!1;this.Bk=new Set;this.D=this.Ga=this.Y=this.Hq=0;this.K=null;this.hd={foa:function(){return q.j}, Bna:function(){return q.G}, Pma:function(){q.j.length=0}, Pna:function(){return q.Bk}, Lna:function(){return q.Y}, zpa:function(r){q.Y=r}, Epa:function(r){q.D=r}}; this.videoData=this.ea.getVideoData();this.policy.Gi&&(this.Fa=new RY(this.ya,this.policy,this.Kc),g.P(this,this.Fa))}; o_a=function(a,b){b=b===void 0?!1:b;if(m_a(a,b)){a.policy.Aa&&a.ya.oa("sabrcrq",{create:1});var c=new ZY(0,a.manifest.Y,a);a.policy.kf>0&&a.D++;b=n_a(a,c,b);a.j.push(b);var d;(d=a.Fa)==null||OYa(d,a.manifest.Y)}}; r_a=function(a,b){var c=GY(a.audioTrack,a.ya.isSeeking()),d=GY(a.videoTrack,a.ya.isSeeking()),e=[].concat(g.x(c.kd),g.x(d.kd)),f=[].concat(g.x(c.Ro),g.x(d.Ro)),h=!oZ(a,a.audioTrack),l=!oZ(a,a.videoTrack),m=$N(a.ya.Zt()),n=a.ya.fK(),p,q,r=a.ea,t=a.manifest,u;var y=a.policy.K&&((u=a.ya)==null?void 0:u.RF());u=a.ya.getCurrentTime()||0;u=p_a(a,u);var A=a.ya.Dc()||0;u+=A;A=rQ(a.videoData)||g.qQ(a.videoData);var D=0;y?(A&&(D=Number.MAX_SAFE_INTEGER),a.videoData.Ka&&(D=Math.ceil(a.videoData.Ra*1E3))):D= Math.ceil(u*1E3);y=Math.min(Number.MAX_SAFE_INTEGER,D);u=a.B;A=a.Bk;D=a.policy;var F=a.ya.kq,H=WYa(a.ya)*1E3,M=(p=a.Aa)==null?void 0:p.Lw;p=(q=a.Aa)==null?void 0:q.Wy;var N;q=Number((N=a.C.D)==null?void 0:N.info.itag)||0;var S;N=Number((S=a.C.K)==null?void 0:S.info.itag)||0;b={ea:r,manifest:t,kd:e,Ro:f,CE:y,nextRequestPolicy:u,Bk:A,He:D,kq:F,Wx:H,Lw:M,Wy:p,Hq:a.Hq,isPrefetch:b||a.ya.isSuspended,oH:h,rH:l,SS:m,UK:q,RK:N,NB:n};if(e=a.ea.lx())b.My=e*1E3;if(a.policy.Xi){e=a.C;f=e.qa;if(e.He.j&&!f&&e.He.ED)for(h= g.w(e.C),l=h.next();!l.done;l=h.next())if(l.value.dc){f=!0;break}e=e.He.j&&!f?[]:fZa(e,e.C);b.yH=e;e=a.C;e.He.j&&!e.ra?e=[]:(f=nZa(e),f.length===0&&(f=e.G),e=fZa(e,f));b.zH=e}else a.rK(a.videoTrack.j),a.rK(a.audioTrack.j),b.BO=qY(a.ra);a.policy.En&&(e=a.ea.HP().T0,b.Pz=e.j);if(a.policy.G){c=q_a(a,c.kd,d.kd);var ba;if(d=(ba=a.K)==null?void 0:ba.hQ(c))b.fn=d}a.policy.qa&&a.j.length>0&&a.j[0].EO()&&(b.Bda=a.j[0].eQ());return b}; p_a=function(a,b){if(a.ya.isSeeking())return b;var c=a.ea.Le();if(!c)return b;c=c.Fh();if(c.length===0||IE(c,b))return b;for(var d=b,e=Infinity,f=0;fb)){var h=b-c.end(f);h0){var c=Math.floor((0,g.T)()/1E4);if(c===a.Ga){if(a.D>=a.policy.kf){if(a.D===a.policy.kf){var d={reason:"toomanyrequests"};d.limit=a.D;a.ya.handleError("player.exception",d);a.D+=1}return!1}}else a.Ga=c,a.D=0}b=!b&&!lO(a.Kc);if(a.ya.isSuspended&&(a.ya.AJ||b)||a.qa&&(0,g.T)()0&&(!a.policy.qa||a.j.length!==1||!a.j[0].EO())||(d=a.manifest.Y)==null||!rM(d,a.policy,a.G))return!1;d=a.policy.VD&&a.policy.j&&a.ya.Cf();if(NY(a.audioTrack)&&NY(a.videoTrack)&& !d)return!1;if(a.policy.j&&a.N&&!a.ya.Cf())return a.Hk("ssap",{pauseontlm:1}),!1;if(a.policy.iz&&oZ(a,a.audioTrack)&&oZ(a,a.videoTrack))return a.policy.C&&a.ya.oa("sabrHeap",{a:""+IY(a.audioTrack),v:""+IY(a.videoTrack)}),!1;if(d=a.policy.G)d=!1,a.Z.B===2?d=!0:a.Z.B===3&&(b=q_a(a,GY(a.audioTrack,a.ya.isSeeking()).kd,GY(a.videoTrack,a.ya.isSeeking()).kd),c=a.Z,b>=c.C?(c.oa("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.Aa&&a.ya.oa("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.Aa&& a.ya.oa("sabrcrq",{nopolicy:1}),!0;if(a.ea.lx())return a.policy.Aa&&a.ya.oa("sabrcrq",{utc:1}),!0;if(a.C.Z)return a.policy.Aa&&a.ya.oa("sabrcrq",{audio:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.Aa&&a.ya.oa("sabrcrq",{noreadahead:1}),!0;if(a.policy.K&&a.ya.RF())return a.policy.Aa&&a.ya.oa("sabrcrq",{seekToHead:1}),!0;d=Math.min(UY(a.ya,a.audioTrack)*1E3,a.B.targetAudioReadaheadMs);b=Math.min(UY(a.ya,a.videoTrack)*1E3,a.B.targetVideoReadaheadMs);var e=Math.min(d, b);c=KY(a.audioTrack,!0)*1E3;var f=KY(a.videoTrack,!0)*1E3;var h=c>e;e=f>e;if((!h||!e)&&a.policy.C&&a.policy.Vf){var l=a.ya.uc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.ya.oa("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.j)&&(a=a.ya,a.Qa&&a.Qa.j&&a.Qa.B&&a.ub&&!rN(a.manifest)?(d=a.getCurrentTime(),c=a.Qa.j.qe(),b=a.Qa.B.qe(),c=c?JE(c,d):d,d=b?JE(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=fX(a.ub),d=d>=a-.01)):d=!1);return d?!1:!0}; n_a=function(a,b,c){var d={Kc:a.Kc,ov:function(m,n){a.ea.iH(m,n)}, Mp:a.policy.zn,EJ:a.policy.C},e=SWa(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,t_a(a));c=r_a(a,c);if((a.policy.j||a.policy.qa)&&a.policy.C&&c.Bk){for(var f=e="",h=g.w(c.Bk),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.ya.oa("sabrbldrqs",{ctxts:e,misctxts:f})}pZa(b,c,a.ya.Cf())||!a.policy.j&&!a.policy.qa||a.ya.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new aY(a.policy,b,a.manifest,a.G,a,d,a.ya.uA(),a.policy.Sf?a.ya.Cf():void 0); bY(a.timing);a.policy.Aa&&a.ya.oa("sabrcrq",{rn:d.Wp(),probe:b.Yr()});return d}; w_a=function(a,b){if(b.La()||a.La())a.policy.K||a.ya.Ve();else{if(a.policy.C&&b.isComplete()&&b instanceof aY){var c=a.ya,d=c.oa;var e=Object.assign(b.Pd.rr(),{rst:b.state,strm:b.xhr.DC(),d:VVa(b.Pd),cncl:b.xhr&&b.Cd.D?1:0,rqb:b.J1});e=Object.assign(sZa(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Yr())b.dispose();else{if(b.MZ())b instanceof aY&&cXa(a.timing,b),t_a(a),u_a(a);else if(b.Rm())c=a.ea.lx(),b instanceof aY&&rZa(b.info)&&c&&a.ya.Lu(c),b instanceof mZ?a.j.pop():(c=1,b.canRetry()&&aZa(a.ya)&& (v_a(a,b),c=0),a.ya.handleError(b.Zh(),b.Ir(),c));else{if(a.ya.isSuspended&&!b.isComplete())return;u_a(a)}b.La()||b instanceof mZ||(b.isComplete()?c=RYa(b,a.policy,a.G):(c=QYa(b,a.policy,a.G),c===1&&(a.Ka=!0)),c!==0&&(b=new ZY(1,b.info.resource),b.Yj=c===2,n_a(a,b)))}a.ya.Ve()}}; u_a=function(a){for(;a.j.length&&a.j[0].xQ(a.qf());){var b=a.j.shift();x_a(a,b);a.policy.Ae&&b instanceof aY&&b.dispose();if(a.policy.G){var c=a;if(!c.policy.Ab&&b.xQ(c.qf())){var d=b.Wp();if(c.Ra!==d){var e=b.IY();b=e.nj;var f=e.wv;e=e.fq;!c.K||f<0||(c.Ra=d,d=eY(c.Z,f/1E3,b),f=c.ya.Dc()||0,hXa(c.Z,b,d-f,e,c.K))}}}}a.j.length&&x_a(a,a.j[0])}; x_a=function(a,b){if(a.policy.Xi){var c=new Set(b.Hr(a.qf()));c=g.w(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof mZ))){var f=a.C,h=f.manifest.Vb;d=mZa(f.C,h);f=mZa(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Zn(e,a.qf()),b.Pl(e,a.qf()))){e=b.Vk(e,a.qf());if(a.policy.j&&(f=d[0].j.info,(h=a.ya.Cf())&&f)){var l=b.jY();if(h.api.L("html5_ssap_set_format_info_for_all")||l!==h.ea.getVideoData().clientPlaybackNonce)if(h=PW(h.timeline,l))if(h=h[0].getVideoData())f.Hh()? h.D=f:h.B=f}e=g.w(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.C&&b instanceof mZ&&a.ya.oa("omblss",{s:f.info.Sc()});h=f.info.j.info.Hh();var m=f.info.j;if(h){l=void 0;var n=a.C,p=(l=b.cQ(a.qf()))==null?void 0:l.token;n.Z=!1;m!==n.K&&(n.K=m,n.xL(m,n.audioTrack,p))}else l=void 0,eZa(a.C,m,(l=b.cQ(a.qf()))==null?void 0:l.token);l=h?a.audioTrack:a.videoTrack;b instanceof mZ&&(l.N=!1,b instanceof mZ&&(h?WWa(a.timing):VWa(a.timing)));FY(l,d,f)}}}}else for(d=b.iY()||qY(a.ra),c=new Set(b.Hr(a.qf())), a.policy.j?e=c:e=[((f=d.video)==null?void 0:zE(f.info,a.manifest.Vb))||"",((h=d.audio)==null?void 0:zE(h.info,a.manifest.Vb))||""],d=g.w(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.Pl(e,a.qf()))for(f=b.Vk(e,a.qf()),f=g.w(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.C&&b instanceof mZ&&a.ya.oa("omblss",{s:h.info.Sc()}),l=b.Zn(e,a.qf()),m=(n=h.info.j.info.Hh())?a.audioTrack:a.videoTrack,b instanceof mZ&&(m.N=!1,b instanceof mZ&&(n?WWa(a.timing):VWa(a.timing))),FY(m,l,h)}; v_a=function(a,b){a.policy.qa?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),b==null||b.dispose())}; y_a=function(a,b){for(var c=[],d=0;d0)for(var b=g.w(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=a.videoData.sabrContextUpdates.get(c))==null?0:d.sendByDefault)&&a.Bk.add(c)}if(a.policy.qa&&a.j.length)for(b=g.w(a.j),c=b.next();!c.done;c=b.next())(c=c.value.eQ())&&c.type&&c.sendByDefault&&a.Bk.add(c.type)}; A_a=function(a){a.policy.wc&&(a.Aa=void 0,a.Hq=0)}; B_a=function(a,b){if(b.Rm()||b.La()){var c=a.ya,d=c.oa,e=b.state;a=a.qf();var f,h;if((b=(f=b.dg)==null?void 0:f.get(a))==null)b=void 0;else{f=0;a=b.Hr();for(var l=0;l=a.policy.xw,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e=a.policy.bk&&!a.C;if(!f&&!c&&G_a(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.T)()/1E3-(a.Qz.gh()||0)-a.N.j-a.policy.Rc;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){pZ(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Zj;d=f.Xe&&d<=f.Nf){d=!0;break a}d=!1}d=!d}if(d)return a.oa("ostmf",{ct:a.getCurrentTime(),a:b.j.info.Hh()}),!1;(a=a.ra)!=null&&(a.fd.get(c).fE=!0);return!0}; N_a=function(a){if(!a.manifest.Vb)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&sZ(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&sZ(a.ea)&&(b.Wd||b.isPremiere))return a.oa("ombpa",{}),!1;var c,d;if(a.policy.kz&&!!((c=a.qa)==null?0:(d=c.f_)==null?0:d.cda)!==a.manifest.Wd)return a.oa("ombplmm",{}),!1;c=b.Ob||b.liveUtcStartSeconds||b.ge;if(a.manifest.Wd&&c)return a.oa("ombplst",{}),!1;if(a.manifest.qa)return a.oa("ombab",{}),!1;c=Date.now();if(rN(a.manifest)&& !isNaN(a.Aa)&&c-a.Aa>a.policy.bG*1E3)return a.oa("ombttl",{}),!1;if(!(a=a.manifest.gf&&a.manifest.C||!a.policy.RD&&a.manifest.isPremiere||fQ(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!((e=b.playerResponse)==null||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0}; O_a=function(a,b){var c=b.j,d=a.manifest.Vb;if(N_a(a))if(a.ra&&a.ra.fd.has(zE(c.info,d))){if(d=zE(c.info,d),M_a(a,b)){var e=new EM(a.ra.Zn(d)),f=function(h){try{if(h.Rm())a.handleError(h.Zh(),h.Ir()),MY(b,h),GM(h.info)&&VY(a.D,b,c,!0),a.Ve();else if(ZYa(a.D,h)){var l;(l=a.C)==null||iXa(l,h.info,a.K);a.Ve()}}catch(m){h=bE(m),a.handleError(h.errorCode,h.details,h.severity),a.nk()}}; c.C=!0;FM(e)&&(uYa(b,new AX(a.policy,d,e,a.ra,f)),bY(a.timing))}}else a.oa("ombfmt",{})}; tZ=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.getCurrentTime();var c=WY,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Mi(b)||0;e.Fa!==b&&(e.Ma={},e.Fa=b,nY(e,e.j));b=!e.j.isLocked()&&e.Y>-1&&(0,g.T)()-e.Yb.j&&b.reason==="b";d||e||c?(a.ea.Jq({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Gj||(a.B.j.B=!1)):(a.policy.Gj&&(a.B.j.B=!1),vZ(a))}}else if(!vXa(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j}); c=a.j.j;V_a(a,xXa(a.j,b));tZ(a);d=b.isLocked()&&b.reason==="m"&&a.j.ra;e=a.policy.Uf&&b.reason==="l"&&OY(a.videoTrack);c=c.j>b.j&&b.reason==="b";var f=a.j.Ya&&!QE();d||e||c||f?a.ea.Jq({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):vZ(a)}}; X_a=function(a,b,c){if((!a.Qa||TE(a.Qa)&&!a.policy.tm)&&!a.Mg.isSeeking()&&($T(a.policy)||OY(b)&&b.j.pg()&&a.j.qa)){var d=a.getCurrentTime()+yVa(a.Y,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)}); BYa(b,d)}}; V_a=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+EE(b.video.info)}),Y_a(a.ea,new hY(b.video,b.reason))); if(a.j.Wa){var c=qY(a.j,"a");a.ea.oy(new hY(c.audio,c.reason))}}; vZ=function(a){g.Mo(a.yb)}; Z_a=function(a,b){var c=(0,g.T)()-b,d=KY(a.audioTrack,!0)*1E3,e=KY(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+c}); if(a.policy.C&&(a.oa("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),aU(a.policy))){var f=yX(a.Y);a.oa("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:zVa(a.Y,a.Zr,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.Zr,ps:(a.policy.sI||"").toString(),rn:(a.policy.rI||"").toString()})}}; $_a=function(a){if(a.policy.j&&QY(a.videoTrack)&&QY(a.audioTrack))return"ssap";if(IYa(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.ob&&KYa(a.videoTrack)&&KYa(a.audioTrack))return"updateEnd";if(NY(a.audioTrack)||NY(a.videoTrack)&&a.videoTrack.j.info.rb!=="f")return"";if(a.Mg.isSeeking()){var b=a.Y;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.B){var e=b.policy.Wk;aU(b.policy)&&(e=zVa(b,!1,yX(b)));b=e;c=KY(d,!0)>=b&&KY(c,!0)>=b}else c.C.length|| d.C.length?(e=c.j.info.tb+d.j.info.tb,e=10*(1-yX(b)/e),b=Math.max(e,b.policy.Wk),c=KY(d,!0)>=b&&KY(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(c.C.length>0&&c.D.B.length===1&&bYa(c.D).info.D360);d=aU(a.policy)&&a.policy.wm;if(!a.Zr||!d&&c)return"";c=a.policy.Kq;aU(a.policy)&&(c=zVa(a.Y,a.Zr,yX(a.Y)));c=EYa(a.videoTrack, a.getCurrentTime(),c)||EYa(a.audioTrack,a.getCurrentTime(),c);return aU(a.policy)?c?"mbnm":"":(a.videoTrack.C.length>0||a.audioTrack.C.length>0||SYa(a.D,a.videoTrack,a.audioTrack)||SYa(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""}; a0a=function(a){if(a.G){var b=a.G.Ve(a.audioTrack,KE(a.Qa.B.qe()));b&&a.ea.seekTo(b,{xx:!0,Zc:"pollSubsegmentReadahead",Gp:!0})}}; g0a=function(a,b,c){if(a.policy.ob&&KYa(b))return!1;if(c.QQ())return!0;if(!c.hJ())return!1;var d=HX(b);if(!d||d.info.type===6)return!1;var e=a.policy.bE;if(e&&!d.info.Te){var f=d.info.Xe-a.getCurrentTime();if(d.info.De)return a.policy.B&&d0a(a,b),!1;e0a(a,b);var l;a.policy.Je&&c===((l=a.Qa)==null?void 0:l.j)&&a.Wa&&(c.oK()===0?(a.Wa=!1,a.policy.Je=!1):a.Ya=c.oK());if(!f0a(a,c,d))return!1;a.policy.ob&&d.info.Ni()?d.isLocked=!0: (b.Ps(d),AXa(a.j,d.info),a.logger.debug(function(){return"Appended "+d.info.Sc()+", buffered: "+GE(c.qe())})); return!0}; d0a=function(a,b){a.policy.Ed&&(b===a.videoTrack?a.Ka=a.Ka||(0,g.T)():a.Ga=a.Ga||(0,g.T)())}; e0a=function(a,b){a.policy.Ed&&(b===a.videoTrack?a.Ka=0:a.Ga=0)}; f0a=function(a,b,c){var d=a.policy.Ra?(0,g.T)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=h0a(a,c,f)||f);var h=IJ(f);f=a.policy.Ra?(0,g.T)():0;e=i0a(a,b,h,c.info,e);a.policy.Ra&&(!c.info.Ub||c.info.Te||c.info.Xe<10)&&(b=b.uc({as:c.info.Sc(),pdur:Math.round(f-d),adur:Math.round((0,g.T)()-f)}),b.omt=(a.getCurrentTime()+a.Dc()).toFixed(3),b.to=a.Dc(),a.oa("sba",b));if(e==="s")return a.Ra&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Ra=!1,a.ob=!1),a.fb=0,!0;if(e==="i"||e==="x")return j0a(a, "checked",e,c.info),!1;if(e==="q"){if(!a.Ra)return a.logger.debug("QuotaExceeded, retrying."),a.Ra=!0,!1;if(!a.ob)return a.ob=!0,a.ea.seekTo(a.getCurrentTime(),{Zc:"quotaExceeded",Gp:!0}),!1;c.info.Ag()?(b=a.policy,b.Va=Math.floor(b.Va*.8),b.Ga=Math.floor(b.Ga*.8)):(b=a.policy,b.Fa=Math.floor(b.Fa*.8),b.Ga=Math.floor(b.Ga*.8));$T(a.policy)?jY(a.B.j,c.info.j,!1):pY(a.j,c.info.j)}a.ea.Jq({reattachOnAppend:e});return!1}; h0a=function(a,b,c){var d;if(d=a.policy.qw&&a.Qa&&!a.Qa.qa&&!a.ea.GJ())b=b.info.j.info,d=b.Me()&&rE(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,fE('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=ZXa(c),a.policy.C&&a.oa("sp4k",{s:!!c}),c}; j0a=function(a,b,c,d){var e="fmt.unplayable",f=1;c==="x"||c==="m"?(e="fmt.unparseable",$T(a.policy)?!d.j.info.video||kY(a.B.j).size>0||jY(a.B.j,d.j,!1):!d.j.info.video||kY(a.j.G).size>0||pY(a.j,d.j)):c==="i"&&(a.fb<15?(a.fb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=CM(d);var h;d.mrs=(h=a.Qa)==null?void 0:YE(h);d.origin=b;d.reason=c;a.handleError(e,d,f)}; qYa=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=CE(f.j[p].info.mimeType)||f.j[p].info.Ag();if(d===m)if(m=f.j[p].index,m.qo(b.Pa)){if(!f.Xa){h=m;m=b;var n=h.Un(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.HN(m),h=!0):h=!1}h&&(l=b.Pa)}else m.HN(b),h=!0}if(l>=0){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;RVa(a.Mg,b,d,f);a.C.hS(b,c,d,e);b.Pa===a.manifest.gf&&f&&nN(a.manifest)&&b.startTime>nN(a.manifest)&&(a.manifest.Ra=b.startTime+(isNaN(a.timestampOffset)? 0:a.timestampOffset),a.Mg.isSeeking()&&a.Mg.j1)return"r";m.Ga=new g.Lo(function(){if(!a.La()&&b.TF()){var p;a.oa("nue",{ls:(p=b.Kr())==null?void 0:p.Sc()});b.Kr()&&(b.Kr().pO+=1);b.lJ();a.Qa&&a.RB()}},2E4,a); m.Ga.start()}if(a.policy.Bp&&(d==null?0:d.Ni())){var n;if((n=m.Aa)==null?0:n.isActive())g.No(m.Aa),a.oa("sbac",{as:d.Sc()});m.Aa=new g.Lo(function(){a.oa("sbum5s",{as:d.Sc()})},5E3,a); m.Aa.start()}a.policy.Cw&&(d==null?void 0:d.j)instanceof IM&&d.Ni()&&a.oa("poseos",{itag:d.j.info.itag,seg:d.Pa,lseg:d.j.index.qd(),es:d.j.index.C});b.appendBuffer(c,d,e)}catch(p){if(p instanceof DOMException){if(p.code===11)return"i";if(p.code===12)return"x";if(p.code===22||p.message.indexOf("Not enough storage")===0)return c=Object.assign({name:"QuotaExceededError",buffered:GE(b.qe()).replace(/,/g,"_"),vheap:IY(a.videoTrack),aheap:IY(a.audioTrack),message:g.Qe(p.message,3),track:a.Qa?b===a.Qa.B? "v":"a":"u"},J_a()),a.handleError("player.exception",c),"q";g.xw(p)}return"u"}return a.Qa.Og()?"m":"s"}; GX=function(a,b,c){a.ea.seekTo(b,c)}; zY=function(a,b){a.ea.AL(b)}; UY=function(a,b){if(a.Ra&&!a.Zr)return 3;if(a.isSuspended)return 1;var c;if((c=a.Qa)==null?0:c.Qa&&c.Qa.streaming===!1)return 4;c=(b.j.info.audio?a.policy.Fa:a.policy.Va)/(b.tb*a.policy.im);if(a.policy.zq>0&&a.Qa&&TE(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.Fk()){b=b.qe();var d=HE(b,a.getCurrentTime());d>=0&&(b=a.getCurrentTime()-b.start(d),c+=Math.max(0,Math.min(b-a.policy.zq,a.policy.cE)))}a.policy.Ga>0&&(c=Math.min(c,a.policy.Ga));return c}; m0a=function(a){a.Va&&!a.isSuspended&&lO(a.schedule)&&(l0a(a,a.Va),a.Va="")}; l0a=function(a,b){oW(b,"cms",function(c){a.policy.C&&a.oa("pathprobe",c)},function(c){a.ea.handleError(c)})}; n0a=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Og()&&(b.Kw=KY(a.videoTrack),b.B=KY(a.audioTrack),a.policy.C)){var c=IY(a.videoTrack),d=IY(a.audioTrack),e=GE(a.Qa.B.qe(),"_",5),f=GE(a.Qa.j.qe(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=xX(a.Y);a.logger.debug(function(){return ZD(b.j)})}; o0a=function(a,b){a.K=b;a.C&&(a.C.K=b);a.K.FT(a.videoTrack.j.info.Me());a.D.B=a.K;a.policy.G&&(a.Z.K=a.K)}; p0a=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==b&&a.resume();if(a.Mg.isSeeking()&&a.Qa&&!a.Qa.Og()){var c=a.getCurrentTime()<=b&&b=b&&K_a(a,d.startTime,!1)}); return c&&c.startTimea.getCurrentTime())return c.start/1E3;return Infinity}; v0a=function(a){var b=EY(a.videoTrack),c=EY(a.audioTrack);return b&&!MYa(a.videoTrack)?b.startTime:c&&!MYa(a.audioTrack)?c.startTime:NaN}; k0a=function(a,b,c){a.policy.ID&&$P(a.ea.getVideoData())?(a.ea.QF()||j0a(a,"sepInit",b,c.info),w0a(a.ea,"sie")):j0a(a,"sepInit",b,c.info)}; aZa=function(a){return a.ea.wA()0){var e=d.j.shift();y0a(d,e.info)}d.j.length>0&&(e=d.j[0].time-(0,g.T)(),d.B.start(Math.max(0,e)))}},0); g.P(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)}; y0a=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&a.C.size>0)c=!0;else{for(var d=g.w(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)}; z0a=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a}; A0a=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null}; B0a=function(a){var b=LJ(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(c===-1)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(e==null)return null;e=e[1];isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=LL(b.slice(d+2));if(b==null)return null;a=new A0a(e,a.subarray(c+4));a.statusCode!==0&&(a.errorMessage=g.pwa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new z0a({url:c,interval:Number(b["Heartbeat-Interval-Secs"])|| 60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.w(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),e.length===2&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a}; C0a=function(a,b,c){c=c===void 0?"":c;g.O.call(this);this.message=a;this.requestNumber=b;this.Ye=c;this.onError=this.onSuccess=null;this.j=new g.Xh(5E3,2E4,.2)}; D0a=function(a,b,c){a.onSuccess=b;a.onError=c}; F0a=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.La())if(e.status!==0&&e.response)if(Kz("drm_net_r",void 0,a.Ye),e=new Uint8Array(e.response),e=B0a(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else E0a(a,e)}, onError:function(e){E0a(a,e)}}; c&&(b=Mfa(b,"access_token",c));g.mr(b,d)}; E0a=function(a,b){if(!a.La())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)}; H0a=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.La()){Kz("drm_net_r",void 0,a.Ye);var h=f.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(f.license)try{l=Re(f.license)}catch(u){g.xw(u)}if(h!==0||l){l=new A0a(h,l);h!==0&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.w(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=G0a[q.trackType];if(r){r==="HD"&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]|| (m.push(r),h[r]=!0);var t=null;try{t=Re(q.keyId)}catch(u){g.xw(u)}t&&(n[g.Pe(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Re(f.sabrLicenseConstraint));f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}}, onError:function(f){if(!a.La())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}}; d&&(e.WW="Bearer "+d);g.Uu(c,"player/get_drm_license",b,e)}; I0a=function(a,b,c,d){g.Xw.call(this);this.videoData=a;this.W=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Fa=[];this.D=[];this.Z=!1;this.j={};this.Aa=NaN;this.status="";this.K=NaN;this.B=a.G;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.ra&&(a.vvt=this.videoData.ra,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment)); this.W.Aa&&(a.authuser=this.W.Aa);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.xb()))?e[1]:"";e==="ATV"&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;this.B.flavor==="widevine"&&(this.G.hdr="1");this.B.flavor==="playready"&&(b=Number(SN(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.qa=!1);b="";g.FN(this.B)?EN(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+ Rca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=Ji(this.baseUrl,"ek")||"";if(b=Ji(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ga=this.videoData.L("html5_use_drm_retry");this.Fa=c.Me?[g.Pe(c.initData,4)]:c.C;AZ(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"}; M0a=function(a,b){AZ(a,{createkeysession:1});a.status="gr";Kz("drm_gk_s",void 0,a.videoData.Ya);a.url=J0a(a);try{a.C=b.createSession(a.Y,function(c){AZ(a,{m:c})})}catch(c){b="t.g"; c instanceof DOMException&&(b+=";c."+c.code);a.publish("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(K0a(a.C,function(c,d){L0a(a,c,d)},function(c,d,e){if(!a.La()){d=void 0; var f=1;g.FN(a.B)&&g.xO(a.W)&&a.W.L("html5_enable_safari_fairplay")&&e===1212433232&&(d="ERROR_HDCP",f=a.W.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.La()||(AZ(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.uq(c)}),g.P(a,a.C))}; J0a=function(a){var b=a.baseUrl;iva(b)||a.error("drm.net",2,"t.x");if(!Ji(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]}); c.length>0&&(a.G.fexp=c.join())}c=g.w(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Mfa(b,d,a.G[d]);return b}; L0a=function(a,b,c){if(!a.La())if(b){AZ(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":N0a(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(Kz("drm_gk_f",void 0,a.videoData.Ya),a.ra=!0,a.publish("newsession",a));if(BN(a.B)&&(b=O0a(b),!b))return;g.FN(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=eBa(g.Pe(b)));b=new C0a(b,++a.requestNumber,a.videoData.Ya);D0a(b,function(d){P0a(a, d)},function(d,e,f){if(!a.La()){var h=0,l; (l=d.j.B>=3)||(l=a.Ga&&(0,g.T)()-a.Aa>36E4);l&&(h=1,e="drm.net.retryexhausted");AZ(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(aE(h),d)&&Q0a(a,d)}}); g.P(a,b);R0a(a,b)}else a.error("drm.unavailable",1,"km.empty")}; N0a=function(a,b){AZ(a,{sdpvrq:1});a.K=Date.now();if(a.B.flavor!=="widevine")a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.W.j);c=g.Hi("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:LJ(b)}),responseType:"arraybuffer"}; g.qr(c,b,3,500).then(rK(function(d){d=d.xhr;if(!a.La()){d=new Uint8Array(d.response);var e=LJ(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.publish("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),rK(function(d){a.La()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}}; BZ=function(a){var b;if(b=a.qa&&a.C!=null)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b}; R0a=function(a,b){a.status="km";Kz("drm_net_s",void 0,a.videoData.Ya);if(a.videoData.useInnertubeDrmService()){var c=new g.Tu(a.W.al),d={context:g.$t(c.config_||g.Zt())};d.drmSystem=S0a[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Pe(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!((e=a.videoData.B)==null?0:(f=e.video)==null? 0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.W.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.ra&&(d.context.user.credentialTransferTokens=[{token:a.videoData.ra, scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Jb&&(d.context.user.kidsParent={oauthToken:a.videoData.Jb});g.FN(a.B)&&(d.fairplayKeyId=g.Pe(Sca(a.fairplayKeyId)));g.TO(a.W,g.DQ(a.videoData)).then(function(l){H0a(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.TO(a.W,g.DQ(a.videoData)).then(function(l){F0a(b,a.url,l); a.status="rs"})}; P0a=function(a,b){if(!a.La())if(AZ(a,{onlcsrsp:1}),a.status="rr",b.statusCode!==0)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{Kz("drm_kr_s",void 0,a.videoData.Ya);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&& !a.videoData.XD&&a.publish("newlicense",new z0a({})),a.videoData.XD=!0,a.Z=qm(a.D,function(d){return d.includes("HDR")})); b.j&&(a.W.L("html5_enable_vp9_fairplay")&&EN(a.B)?(c=g.Pe(Sca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=tc(b.j,function(d){return{type:d,status:"unknown"}})); CN(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Re(LJ(b.message)):DN(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=eBa(g.Pe(b.message)));a.C&&(AZ(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){Kz("drm_kr_f",void 0,a.videoData.Ya);BZ(a)||(AZ(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Qe(d.message,3); a.error("drm.keyerror",1,d)})); a.N&&(a.Aa=(0,g.T)());g.FN(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.W.L("html5_enable_vp9_fairplay")&&EN(a.B)&&a.publish("qualitychange",T0a(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}}; Q0a=function(a,b){var c=b.j.getValue();c=new g.Lo(function(){R0a(a,b)},c); g.P(a,c);c.start();g.Yh(b.j);AZ(a,{rtyrq:1})}; U0a=function(a,b){for(var c=[],d=g.w(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)}; V0a=function(a){var b={};b[a.status]=BZ(a)?U0a(a,"."):a.D.join(".");return b}; W0a=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a}; X0a=function(a,b){for(var c in a.j)if(a.j[c].status==="usable"&&a.j[c].type===b)return!0;return!1}; Y0a=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status}; AZ=function(a,b){var c=c===void 0?!1:c;ZD(b);(c||a.W.zc())&&a.publish("ctmp","drmlog",b)}; Z0a=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b}; T0a=function(a){return g.Nb(a,"UHD2")||g.Nb(a,"UHD2HDR")?"highres":g.Nb(a,"UHD1")||g.Nb(a,"UHD1HDR")?"hd2160":g.Nb(a,"HD")||g.Nb(a,"HDHDR")?"hd1080":g.Nb(a,"HD720")||g.Nb(a,"HD720HDR")?"hd720":"large"}; O0a=function(a){for(var b="",c=0;c'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new CZ(null,null,null,null,a)}; e1a=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}; b1a=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=0&&a.push(d);a=parseFloat(a.join("."))}else a=NaN;a>19.2999?(a=c.xw,c=c.ww,c>=a&&(c=a*.75),b=(a-c)*.5,c=new yZ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new zZ(b,this,a);break a;default:c=null}if(this.G=c)g.P(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.QW,this),this.G.subscribe("log_qoe",this.wj,this);HN(this.W.experiments);this.wj({cks:this.j.getInfo()})}; g1a=function(a){var b=a.D.sO();b?b.then(rK(function(){i1a(a)}),rK(function(c){if(!a.La()){g.xw(c); var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.wj({mdkrdy:1}),a.Y=!0); a.qa&&(b=a.qa.sO())}; k1a=function(a,b,c){a.Ra=!0;c=new wY(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));j1a(a,c)}; j1a=function(a,b){if(!a.La()){a.wj({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.wj({initd:b.initData.length,ct:b.contentType});if(a.j.flavor==="widevine")if(a.Ga&&!a.videoData.isLivePlayback)FZ(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Me)){a.Ga=!0;c=b.cryptoPeriodIndex;var d=b.j;TXa(b);b.Me||(d&&b.j!==d?a.publish("ctmp","cpsmm", {emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.publish("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.publish("widevine_set_need_key_info",b)}}else a.QW(b)}}; i1a=function(a){if(!a.La())if(a.W.L("html5_drm_set_server_cert")||EN(a.j)){var b=a.D.setServerCertificate();b?b.then(rK(function(c){a.W.zc()&&a.publish("ctmp","ssc",{success:c})}),rK(function(c){a.publish("ctmp","ssce",{n:c.name, m:c.message})})).then(rK(function(){l1a(a)})):l1a(a)}else l1a(a)}; l1a=function(a){a.La()||(a.Y=!0,a.wj({onmdkrdy:1}),FZ(a))}; m1a=function(a){return a.j.flavor==="widevine"&&a.videoData.L("html5_drm_cpi_license_key")}; FZ=function(a){if((a.Ra||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Fa){for(;a.C.length;){var b=a.C[0],c=m1a(a)?UXa(b):g.Pe(b.initData);if(EN(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if(a.j.flavor!=="fairplay"||EN(a.j)){a.C.shift();continue}else a.B.delete(c);TXa(b);break}}a.C.length&&a.createSession(a.C[0])}}; n1a=function(a){var b;if(b=g.Dr()){var c;b=!((c=a.D.B)==null||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.PJ(b),a.publish("ctmp","drm",{metrics:b}))}; o1a=function(a){g.O.call(this);var b=this;this.ea=a;this.Da=this.ea.U();this.videoData=this.ea.getVideoData();this.aG=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.VB(this.Da.experiments,"html5_delayed_retry_count");this.j=new g.Lo(function(){GZ(b.ea)},g.VB(this.Da.experiments,"html5_delayed_retry_delay_ms")); g.P(this,this.j)}; u1a=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;$P(a.ea.getVideoData())&&a.Da.L("html5_gapless_fallback_on_qoe_restart")&&w0a(a.ea,"pe");a.Da.L("html5_lifa_disable_ssdai_on_decode_error")&&a.videoData.Jh()&&(b==="fmt.decode"||b==="fmt.unplayable")&&p1a(a.ea,c);if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!a.ea.Pk.G&&d&&d.itag==="22")return a.ea.Pk.G=!0,a.Id("qoe.restart",{reason:"fmt.unplayable.22"}),HZ(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f= a.videoData.D4)c.mimeType=f.type,a.oa("3pp",{url:f.url});c.ns="3pp";a.ea.Mf(b,1,"VIDEO_UNAVAILABLE",ZD((new $D(b,c,1)).details));return!0}var h=a.aG+3E4<(0,g.T)()||a.j.isActive();if(a.Da.L("html5_empty_src")&&a.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Id("auth",c),!0;h||nT(a.ea.cj())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(e==null?0:uE(e)||vE(e))&&(XIa(a.Da.G,e.rb),c.acfallexp=e.rb,f=h=!0);!h&&a.C> 0&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.ya;!h&&((d==null?0:tE(d))||(d==null?0:rE(d)))&&(XIa(a.Da.G,d.rb),f=h=!0,c.cfallexp=d.rb);if(a.Da.L("html5_ssap_ignore_decode_error_for_next_video")&&g.SP(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&nT(a.ea.cj())){if(c.cid!==c.ccid)return c.ignerr="1",a.Id("ssap.transitionfailure",c),!0;a.Id("ssap.transitionfailure",c);if(q1a(a.ea))return!0}if(!h)return r1a(a,c);if(a.Da.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.SP(a.videoData)&& b==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&nT(a.ea.cj())&&(a.Id("ssap.transitionfailure",c),q1a(a.ea)))return!0;h=!1;a.G?a.aG=(0,g.T)():h=a.G=!0;var l=a.videoData;if(l.ob){l=l.ob.oY();var m=Date.now()/1E3+1800;l=l6048E5&&y1a(a,"signature");return!1}; y1a=function(a,b){try{window.location.reload(),a.Id("qoe.restart",{detail:"pr."+b})}catch(c){}}; A1a=function(a,b){var c=a.Da.G;c.K=!1;c.B=!0;a.Id("qoe.restart",{e:b===void 0?"fmt.noneavailable":b,detail:"hdr"});GZ(a.ea,!0)}; B1a=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e}; C1a=function(a,b,c){this.W=a;this.NH=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.VB(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map}; E1a=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.iC(a.W)&&(c=c.compose(D1a(a,b)));return c}; G1a=function(a,b){var c,d=F1a(a,(c=b.j)==null?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return c>1&&d?(a=SIa(a.W.G,b.j.videoInfos,c),new XK(0,a,!0,"o")):new XK(0,0,!1,"o")}; F1a=function(a,b){return b&&g.iC(a.W)?b.some(function(c){return c.video.fps>32}):!1}; H1a=function(a,b){var c=a.ea.WJ();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.BU>0&&aL(b.videoData.aC)&&(a=c.BU,b.videoData.aC=new XK(0,a,!1,"u"));return b.videoData.aC}; D1a=function(a,b){if(g.iC(a.W)&&oL(a.W.G,pL.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.vO(a.W)&&(e=window.screen&&window.screen.width?new g.Gd(window.screen.width,window.screen.height):null);e||(e=a.W.En?a.W.En.clone():a.NH.ji());(Jr||wX||d)&&e.scale(g.JO());d=e;aQ(b.videoData)||EQ(b.videoData);b=b.j.videoInfos;if(b.length){e=g.VB(a.W.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!== "EQUIRECTANGULAR_THREED_TOP_BOTTOM"||tO||(e=.45);a=g.VB(a.W.experiments,"html5_viewport_undersend_maximum");for(f=0;f6E4&&(a.B=0);a.B++;a.N=g.Xa();if(a.B!==4)return!1;J1a(a,b.videoData.B);return!0}; M1a=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.VB(a.W.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!((0,g.T)()-a.D<5E3?0:f||e>0))return!1;var h=((0,g.T)()-a.D)/1E3;a.D=(0,g.T)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;f&&a.W.zc()&&a.ea.oa("ddf",{dr:c.droppedVideoFrames, de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.iC(a.W))return!1;a.j=(m>60?l/m:0)>e?a.j+1:0;if(a.j!==3)return!1;J1a(a,b.videoData.B);a.ea.oa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},L1a()));return!0}; J1a=function(a,b){var c=a.W,d=b.rb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(e>49?"p60":e>32?"p48":"");if(c.L("html5_gradual_perf_cap"))if(f<=0&&sIa("VideoPlayer",321298775,b,f.toFixed(0)),c=wN(c,d,e,h),f>0&&(c=Math.min(c,f)),!IZ.has(b)&&MK().includes(b))NBa(b,c,!0);else if(IZ.has(b)||h==null){a:{var l=l===void 0?!0:l;d=MK().slice();if(l){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.us("yt-player-performance-cap-active-set",d,2592E3)}vN.set(b,c)}else IZ.add(b), h==null||h.set(b,c);else NBa(b,f);a.ea.hp()}; N1a=function(a,b){if(!b.j.j)return a.G?new XK(0,360,!1,"b"):DP;for(var c=!1,d=!1,e=g.w(b.j.videoInfos),f=e.next();!f.done;f=e.next())tE(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.VB(a.W.experiments,"html5_performance_cap_floor");e=a.W.B?240:e;b=g.w(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!tE(h))if(f=wN(a.W,h.rb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new XK(0,d,!1,"b")}; O1a=function(a,b){var c=a.ea.cj();return c.isInline()&&!b.TD?new XK(0,480,!1,"v"):c.isBackground()&&ov()/1E3>60&&!g.iC(a.W)?new XK(0,360,!1,"v"):DP}; Q1a=function(a,b,c){if(a.W.experiments.kb("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.iC(a.W)&&(JK(-1)>=1080||b.osid))return DP;var d=g.VB(a.W.experiments,"html5_autonav_quality_cap"),e=g.VB(a.W.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&ov()/1E3>e?(c&&(d=P1a(a,c,d)),new XK(0,d,!1,"e")):DP}; P1a=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b=0||(a.provider.ea.getVisibilityState()===3?a.G=!0:(a.j=g.FI(a.provider),a.delay.start()))}; T1a=function(a){if(!(a.B<0)){var b=g.FI(a.provider),c=b-a.D;a.D=b;a.playerState.state===8?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.Z(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; U1a=function(a){var b;switch((b=a.W.playerCanaryStage)==null?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"}}; W1a=function(a,b){b?V1a.test(a):(a=g.Sq(a),Object.keys(a).includes("cpn"))}; Y1a=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Vq(a)&&Wq()){if(h){var n;((n=X1a.uaChPolyfill)==null?void 0:n.state.type)!==2?h=null:(h=X1a.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.Eq("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]= d:g.Eq("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.Eq("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Aa)&&!LO(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.hm&&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")&&V1a.test(a)&&(l.withCredentials=!0)}Object.keys(m).length>0&&(l.headers=m);f&&(l.onFinish=f);return Object.keys(l).length>1?l:null}; Z1a=function(a,b,c,d,e,f,h,l){Wq()&&c.token&&(a=g.Tq(a,{ctt:c.token,cttype:c.jU,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(b==null?b={}:W1a(a,d.L("html5_assert_cpn_with_regex")),h?Ru().sendAndWrite(a,b):Ru().sendThenWrite(a,b,l)):b?(W1a(a,d.L("html5_assert_cpn_with_regex")),g.mr(a,b)):g.Hu(a,e)}; a2a=function(a){for(var b=[],c=0;c500&&c.oa("vmlock",{diff:f.toFixed()});c.Ga=e},250)); a.ea.Cf()&&b&&(this.Aa=b-Math.round(g.FI(a)*1E3));this.provider.videoData.mj&&(this.remoteControlMode=b2a[this.provider.videoData.mj]||0);this.provider.videoData.Rj&&(a=VCa(this.provider.videoData.Rj),a==null?0:a.length)&&(this.remoteConnectedDevices=a)}; g.LZ=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))}; c2a=function(a,b){var c=a.adCpn||a.provider.videoData.clientPlaybackNonce,d=a.provider.getCurrentTime(c);g.LZ(a,b,"cmt",[d.toFixed(3)]);d=a.provider.Xf(c);if(a.D&&d*1E3>a.D.R_+100&&a.D){var e=a.D;c=e.isAd;d=d*1E3-e.R_;a.Ma=b*1E3-e.Kda-d-e.sda;e=(0,g.T)()-d;b=a.Ma;d=a.provider.videoData;var f=d.isAd();if(c||f){f=(c?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.K&&(h.cttAuthInfo={token:d.K,videoId:d.videoId});h.startTime=e-b;Mz(f,h);g.Lz({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, f);Kz("pbs",e,f)}else e=a.provider.ea.Yh(),e.K!==d.clientPlaybackNonce?(e.G=d.clientPlaybackNonce,e.B=b):d.Ck()||g.yw(new g.Hs("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.oa("gllat",{l:a.Ma.toFixed(),prev_ad:+c});delete a.D}}; NZ=function(a,b){b=b===void 0?NaN:b;b=b>=0?b:g.FI(a.provider);var c=a.provider.ea.tF(),d=c.Ws-(a.Va||0);d>0&&g.LZ(a,b,"bwm",[d,(c.Gv-(a.Ob||0)).toFixed(3)]);isNaN(a.Va)&&c.Ws&&a.isOffline&&a.iM(!1);a.Va=c.Ws;a.Ob=c.Gv;isNaN(c.bandwidthEstimate)||g.LZ(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.W.zc()&&Object.keys(c.j).length!==0&&a.oa("bwinfo",c.j);if(a.provider.W.zc()||a.provider.W.L("html5_log_meminfo"))d=J_a(),Object.values(d).some(function(e){return e!==void 0})&&a.oa("meminfo",d); a.qa&&g.LZ(a,b,"bat",[a.qa.level,a.qa.charging?"1":"0"]);d=a.provider.ea.getVisibilityState();a.yc!==d&&(g.LZ(a,b,"vis",[d]),a.yc=d);c2a(a,b);(d=d2a(a.provider))&&d!==a.Kb&&(g.LZ(a,b,"conn",[d]),a.Kb=d);e2a(a,b,c)}; e2a=function(a,b,c){if(!isNaN(c.Kw)){var d=c.Kw;c.B96E3&&(new g.Lo(a.reportStats,0,a)).start()}; i2a=function(a){a.provider.videoData.Ed&&OZ(a,"prefetch");a.provider.videoData.yc&&a.oa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.yc});a.provider.videoData.yb&&OZ(a,"monitor");a.provider.videoData.isLivePlayback&&OZ(a,"live");RN&&OZ(a,"streaming");a.provider.videoData.mj&&a.oa("ctrl",{mode:a.provider.videoData.mj},!0);if(a.provider.videoData.Rj){var b=a.provider.videoData.Rj.replace(/,/g,"_");a.oa("ytp",{type:b},!0)}a.provider.videoData.qX&&(b=a.provider.videoData.qX.replace(/,/g, "."),a.oa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.W.L("enable_white_noise")||a.provider.W.L("enable_webgl_noop");c=g.gQ(c)||g.sQ(c)||g.tQ(c)||g.uQ(c);(b||c)&&(b=(0,g.PZ)())&&(a.j.gpu=[b]);EQ(a.provider.videoData)&&g.LZ(a,g.FI(a.provider),"dt",["1"]);a.provider.W.zc()&&(b=(0,g.T)()-a.provider.W.Tf,a.oa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.dr(function(){a.reportStats()},1E4)}; k2a=function(a,b,c){var d=g.FI(a.provider);j2a(a,d,b,0,c);NZ(a,d);h2a(a)}; j2a=function(a,b,c,d,e){var f=a.provider.W.j.cbrver;a.provider.W.j.cbr==="Chrome"&&/^96[.]/.test(f)&&c==="net.badstatus"&&/rc\.500/.test(e)&&l2a(a,3);a.provider.W.L("html5_use_ump")&&/b248180278/.test(e)&&l2a(a,4);f=a.provider.getCurrentTime(a.adCpn||a.provider.videoData.clientPlaybackNonce);d=d===1?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+eA());e&&c.push(m2a(e));g.LZ(a,b,"error",c);a.C=!0}; n2a=function(a){a.B>=0||(a.provider.W.Rf||a.provider.ea.getVisibilityState()!==3?a.B=g.FI(a.provider):a.Wa=!0)}; LUa=function(a,b,c,d){if(c!==a.Fe){b=10&&a.playTimeSecs<=180&&(a.provider.ea.yG(),a.j.qoealert=["1"],a.fb=!0)),c!=="B"||a.Fe!=="PL"&&a.Fe!=="PB"||(a.isBuffering=!0),a.G=b);a.Fe==="PL"&&(c==="B"||c==="S")||a.provider.W.zc()?NZ(a,b):(a.ob||c!=="PL"||(a.ob=!0,e2a(a,b,a.provider.ea.tF())),c2a(a,b));c==="PL"&&g.Mo(a.Rc);var e=[c];c==="S"&&d&&e.push("ss."+d);g.LZ(a, b,"vps",e);a.Fe=c;a.Jb=b;a.G=b;a.C=!0}}; OZ=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c}; hX=function(a,b,c,d,e,f){var h=g.FI(a.provider);c!==1&&c!==3&&c!==5||g.LZ(a,h,"vps",[a.Fe]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l}; l2a=function(a,b){if(!a.Xa){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Xa=!0}}; m2a=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a}; o2a=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.lq=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=QZ(this.provider)}; RZ=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Jb(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?a.B.endTime===0&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=QZ(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j}; q2a=function(a){p2a(a);a.K=g.dr(function(){a.update()},100); a.lq=g.FI(a.provider);a.B=QZ(a.provider)}; p2a=function(a){g.fr(a.K);a.K=NaN}; r2a=function(a,b,c){c-=a.lq;return b===a.j&&c>.5}; s2a=function(a,b,c,d){this.W=b;this.yc=c;this.segments=[];this.experimentIds=[];this.Ya=this.Tb=this.isFinal=this.delayThresholdMet=this.Ab=this.Ed=this.autoplay=this.autonav=!1;this.Rc="yt";this.K=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.Xa=!1;this.N=this.pageId="";this.D=c==="watchtime";this.C=c==="playback";this.ra=c==="atr";this.yh=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.Fn+"/api/stats/"+c;d&&(this.Tb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState= d.state,d.rti>0&&(this.Z=d.rti)):(this.Sf=d.mos,this.Jg=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Zd=d.inview),d.size&&(this.Wc=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.Ae=g.Ec(b.j);this.N=SN(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.Ob=g.Ec(b.Ob);this.Rf=b.Rc;this.experimentIds=PIa(b.experiments);this.Wa=b.Aj;this.Rc=b.qa;this.region= b.region;this.userAge=b.userAge;this.ob=b.Cj;this.Je=ov();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Aa=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Tf=b.L("vss_final_ping_send_and_write");this.Ga=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Uf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Qf=b.D&&b.L("embeds_append_synth_ch_headers");g.qO(b)&&(this.Ka=b.Ga);g.Xr(g.zO(b))&&this.K.push(1);this.accessToken= g.DQ(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.Ap[this.yc]?this.Fa=a.Ap[this.yc]:a.Ap.playback&&(this.Fa=a.Ap.playback):a.Fa&&(this.Fa=a.Fa);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=CQ(a);this.C&&(this.Ed=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Mq&&yQ(a)=="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=AQ(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Ab=a.Gf; a.K&&(this.Y=a.K,this.Jb=a.yn);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Wk;this.Kb=a.Kb;a.B&&(this.ge=a.B.itag,a.D&&a.D.itag!==this.ge&&(this.yb=a.D.itag));a.j&&gL(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=yQ(a);this.Ya=a.Jg?!1:a.Vi;this.kf=a.zn;if(b=lQ(a))this.Vf=b;this.lf=a.Ov;this.Va=a.Va;this.eventId=a.eventId;this.playlistId=a.QZ||a.playlistId;this.WA=a.WA;this.mj=a.mj;this.Rj=a.Rj;this.aq=a.aq;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata= a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.XC=a.XC;this.referrer=a.referrer;this.Dp=a.SW||a.Dp;this.fb=a.bD;this.xB=a.xB;this.userGenderAge=a.userGenderAge;this.Rv=a.Rv;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.qO(this.W)&&a.mutedAutoplay&&this.K.push(2);a.jd(new g.Gd(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(3);g.KQ(a)&&this.K.push(4);this.Ra=a.EW;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)}; t2a=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.TO(a.W,a.accessToken).then(function(d){return Y1a(a.uri,a.W,a.pageId,c,d,b,a.Qf)})}; w2a=function(a,b){return function(){a.W.L("html5_simplify_pings")?(a.j=a.Ma,a.Fd=b(),a.Je=0,a.send()):t2a(a).then(function(c){var d=u2a(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.Hi(a.uri,d);a.W.L("vss_through_gel_double")&&v2a(d);a.Aa?(c==null&&(c={}),a.Ga?Ru().sendAndWrite(d,c):Ru().sendThenWrite(d,c)):c?g.mr(d,c):g.Hu(d)})}}; u2a=function(a){var b={ns:a.Rc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.ge,fs:a.Tb?"1":"0",rt:a.B(a.Fd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Rf,lact:a.Je,live:a.Vf,cl:(658166115).toString(),mos:a.Sf,state:a.playerState,volume:a.Jg};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Ae);a.N==="all"?Object.assign(b,a.Ob):a.N==="once"&&a.C&&Object.assign(b,a.Ob);a.autoplay&&(b.autoplay="1");a.Ed&&(b.sautoplay="1");a.Ab&&(b.dni="1");!a.D&&a.Ka&&(b.epm=x2a[a.Ka]); a.isFinal&&(b["final"]="1");a.Ya&&(b.splay="1");a.Kb&&(b.delay=a.Kb);a.Wa&&(b.hl=a.Wa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);a.userAge!==void 0&&a.ob&&(b.uga=a.ob+a.userAge);a.Ma!==void 0&&(b.len=a.B(a.Ma));!a.D&&a.experimentIds.length>0&&(b.fexp=a.experimentIds.toString());a.G!==null&&(b.rtn=a.B(a.G));a.Dp&&(b.feature=a.Dp);a.mj&&(b.ctrl=a.mj);a.Rj&&(b.ytr=a.Rj);a.yb&&(b.afmt=a.yb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.wc&&(b.lio=a.B(a.wc)); a.D?(b.idpj=a.kf,b.ldpj=a.lf,a.delayThresholdMet&&(b.dtm="1"),a.Z!=null&&(b.rti=a.B(a.Z)),a.Rv&&(b.ald=a.Rv),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(b.at=a.adType);a.Wc&&(a.C||a.D)&&(b.size=a.Wc);a.C&&a.K.length&&(b.pbstyle=a.K.join(","));a.Zd!=null&&(a.C||a.D)&&(b.inview=a.B(a.Zd));a.D&&(b.volume=SZ(a,g.nl(a.segments,function(d){return d.volume})),b.st=SZ(a,g.nl(a.segments,function(d){return d.startTime})),b.et=SZ(a,g.nl(a.segments,function(d){return d.endTime})), qm(a.segments,function(d){return d.playbackRate!==1})&&(b.rate=SZ(a,g.nl(a.segments,function(d){return d.playbackRate}))),qm(a.segments,function(d){return d.j!=="-"})&&(b.als=g.nl(a.segments,function(d){return d.j}).join(",")),qm(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.nl(a.segments,function(d){return""+ +d.previouslyEnded}).join(","))); b.muted=SZ(a,g.nl(a.segments,function(d){return d.muted?1:0})); qm(a.segments,function(d){return d.visibilityState!==0})&&(b.vis=SZ(a,g.nl(a.segments,function(d){return d.visibilityState}))); qm(a.segments,function(d){return d.connectionType!==0})&&(b.conn=SZ(a,g.nl(a.segments,function(d){return d.connectionType}))); qm(a.segments,function(d){return d.B!==0})&&(b.blo=SZ(a,g.nl(a.segments,function(d){return d.B}))); qm(a.segments,function(d){return!!d.C})&&(b.blo=g.nl(a.segments,function(d){return d.C}).join(",")); qm(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.nl(a.segments,function(d){return d.compositeLiveStatusToken}).join(",")); qm(a.segments,function(d){return d.G!=="-"})&&(b.cc=g.nl(a.segments,function(d){return d.G}).join(",")); qm(a.segments,function(d){return d.clipId!=="-"})&&(b.clipid=g.nl(a.segments,function(d){return d.clipId}).join(",")); if(qm(a.segments,function(d){return!!d.D})){var c="au"; a.C&&(c="au_d");b[c]=g.nl(a.segments,function(d){return d.D}).join(",")}Wq()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Jb,b.mdx_environment=a.mdxEnvironment); a.yh&&(b.etype=a.qa!==void 0?a.qa:0);a.fb&&(b.uoo=a.fb);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=y2a[a.livingRoomAppMode]||a.livingRoomAppMode);a.Fa?z2a(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.XC,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.aq&&(b.ssrt="1"),a.xB&&(b.upt=a.xB));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn= a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Ra&&(b.host_cpn=a.Ra);return b}; z2a=function(a,b){if(b&&a.Fa){var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);a.Fa.ns==="3pp"&&(b.ns="3pp");for(var f=g.w(Object.keys(a.Fa)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Fa[h]||(b[h]=a.Fa[h])}}; SZ=function(a,b){return g.nl(b,a.B).join(",")}; v2a=function(a){a.indexOf("watchtime")!==-1&&g.Xs("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})}; A2a=function(a,b){a.attestationResponse&&t2a(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Aa?a.Ga?Ru().sendAndWrite(b,c):Ru().sendThenWrite(b,c):g.mr(b,c)})}; TZ=function(a){g.O.call(this);this.provider=a;this.K="paused";this.D=NaN;this.N=[10,10,10,40];this.Y=this.Z=0;this.ra=this.Fa=this.Aa=this.qa=this.C=!1;this.B=this.G=NaN;this.j=new o2a(a)}; E2a=function(a){if(!a.C){a.provider.videoData.uH===16623&&g.yw(Error("Playback for EmbedPage"));var b=UZ(a,"playback");a:{if(a.provider.W.L("web_player_use_server_vss_schedule")){var c,d=(c=a.provider.videoData.getPlayerResponse())==null?void 0:c.playbackTracking,e=d==null?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=d==null?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&e.length>0&&d){c=[];var f=a.provider.videoData.zn,h=a.provider.videoData.Ov,l=-f;e=g.w(e);for(var m=e.next();!m.done;m= e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.N=c;break a}}a.N=[10+a.provider.videoData.zn,10,10,40+a.provider.videoData.Ov-a.provider.videoData.zn,40]}q2a(a.j);b.G=VZ(a);a.B>0&&(b.j-=a.B);b.send();a.provider.videoData.Cw&&(b=a.provider.W,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Cw,oid:d.iW,ptchn:d.hW,pltype:d.jW,content_v:AQ(d)},d.qw&&Object.assign(c,{m:d.qw}),b=g.Hi(b.Fa+"ptracking",c),B2a(a,b));a.provider.videoData.Kb||(C2a(a), D2a(a),a.Zs());a.C=!0;b=a.j;b.j=b.provider.ea.Xf();b.lq=g.FI(b.provider);!(b.C===0&&b.j<5)&&b.j-b.C>2&&(b.C=b.j);b.N=!0;a.provider.W.L("html5_log_vss_details")&&a.provider.ea.oa("vssinit",{})}}; VZ=function(a,b){b=b===void 0?NaN:b;var c=g.FI(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+11E3;!(f.length>1)&&f[0].isEmpty()||l||(h.G=VZ(a,e));h.send();a.Y++}},(e-c)*1E3); return a.G=e}; WZ=function(a){g.er(a.D);a.D=NaN}; F2a=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||RZ(a);var b=a.segments;a.segments=[];return b}; UZ=function(a,b){var c=H2a(a.provider);Object.assign(c,{state:a.K});b=new s2a(a.provider.videoData,a.provider.W,b,c);b.j=a.provider.ea.Xf();c=a.provider.videoData.clientPlaybackNonce;a.provider.W.L("html5_ssap_vss_fix")&&(b.j=a.provider.ea.SJ(c));a.provider.videoData.isLivePlayback||(b.Ma=a.provider.ea.getDuration(c));a.provider.videoData.j&&(c=a.provider.videoData.j.cf(b.j))&&(b.wc=c-b.j);b.Fd=g.FI(a.provider);b.segments=[QZ(a.provider)];return b}; G2a=function(a,b){var c=UZ(a,"watchtime");I2a(a)&&(c.delayThresholdMet=!0,a.Aa=!0);if(a.B>0){for(var d=g.w(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.VP();c.segments=b;return c}; XZ=function(a,b){var c=J2a(a,!isNaN(a.G));b&&(a.G=NaN);return c}; J2a=function(a,b){var c=G2a(a,F2a(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c}; I2a=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Kb&&a.C&&!a.Aa)b=a.j,b=b.G+b.provider.ea.Xf()-b.C>=a.provider.videoData.Kb;return!!b}; C2a=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Fa&&(B2a(a,a.provider.videoData.youtubeRemarketingUrl),a.Fa=!0)}; D2a=function(a){a.provider.videoData.googleRemarketingUrl&&!a.ra&&(B2a(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0)}; K2a=function(a){a.provider.W.L("html5_log_vss_details")&&a.provider.ea.oa("vssfi",{});if(!a.La()&&a.C){a.K="paused";var b=XZ(a);b.isFinal=!0;b.send();a.dispose()}}; L2a=function(a,b){if(!a.La())if(g.Z(b.state,2)||g.Z(b.state,512)){if(a.K="paused",g.fy(b,2)||g.fy(b,512))g.fy(b,2)&&(a.j.previouslyEnded=!0),a.C&&(WZ(a),XZ(a).send(),a.G=NaN)}else if(g.Z(b.state,8)){a.provider.W.L("html5_shorts_gapless_vss_pbs_fix")&&$P(a.provider.videoData)&&!a.C&&E2a(a);a.K="playing";var c=a.C&&isNaN(a.D)?VZ(a):NaN;!isNaN(c)&&(ey(b,64)<0||ey(b,512)<0)&&(a=J2a(a,!1),a.G=c,a.send())}else a.K="paused"}; M2a=function(a,b,c){if(!a.qa){c||(c=UZ(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if(d.message!=="Unknown Error")throw d;}a.qa=!0}}; B2a=function(a,b){var c=a.provider.W;g.TO(a.provider.W,g.DQ(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=Y1a(b,c,e,f,d);Z1a(b,d,{token:a.provider.videoData.K,jU:a.provider.videoData.yn,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})}; N2a=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}; YZ=function(a,b,c){this.videoData=a;this.W=b;this.ea=c;this.j=void 0}; g.FI=function(a){return O2a(a)()}; O2a=function(a){if(!a.j){var b=g.Wa(function(d){var e=(0,g.T)();d&&e<=631152E6&&(a.ea.oa("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.ea.mS()}return a.j}; H2a=function(a){var b=a.ea.Or()||{};b.fs=a.ea.KF();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.clipid=a.ea.hA();var c;b.playerheight=((c=a.ea.getPlayerSize())==null?void 0:c.height)||0;var d;b.playerwidth=((d=a.ea.getPlayerSize())==null?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.bl&&(c.infringe=1);(a.Jg?0:a.Vi)&&(c.splay=1); (d=lQ(a))&&(c.live=d);a.Mq&&(c.sautoplay=1);a.Qk&&(c.autoplay=1);a.WA&&(c.sdetail=a.WA);a.Va&&(c.partnerid=a.Va);a.osid&&(c.osid=a.osid);a.MD&&(c.cc=g.WJa(a.MD));return Object.assign(b,c)}; d2a=function(a){var b,c;if(b=((c=navigator.connection)==null?void 0:c.type)||"")return P2a[b]||P2a.other;if(g.iC(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0}; QZ=function(a){var b=new N2a,c;b.G=((c=H2a(a).cc)==null?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();c!==0&&(b.visibilityState=c);a.W.ob&&(b.B=1);b.C=a.videoData.iz;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.dc&&c.dc.id&&c.dc.id!=="und"&&(b.D=c.dc.id);b.connectionType=d2a(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.hA()||"-";b.j=a.videoData.BW||"-";return b}; g.ZZ=function(a,b){g.O.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Fe=new g.fF;this.hd={boa:function(){return c.qoe}, moa:function(){return c.j}, Kna:function(){return c.B}}; this.provider.videoData.ue()&&!this.provider.videoData.pm&&(this.j=new TZ(this.provider),this.provider.W.L("html5_ssap_vss_fix")&&(this.j.B=this.provider.videoData.Sf/1E3),g.P(this,this.j),this.qoe=new g.MZ(this.provider,b),g.P(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Ng=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Ng,this.j));if(a.W.playerCanaryState==="canary"||a.W.playerCanaryState==="holdback")this.B=new JZ(this.provider),g.P(this,this.B)}; Q2a=function(a){return!!a.j&&!!a.qoe}; iX=function(a){a.B&&S1a(a.B);a.qoe&&n2a(a.qoe)}; R2a=function(a){if(a.qoe){a=a.qoe;for(var b=a.provider.videoData,c=a.provider.W,d=g.w(c.yh),e=d.next();!e.done;e=d.next())OZ(a,e.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(d=g.w(b.Cp),e=d.next();!e.done;e=d.next())OZ(a,e.value);else b.yh&&OZ(a,a.provider.videoData.yh);b.Vb()&&(d=b.j,RP(b)&&OZ(a,"manifestless"),d&&oN(d)&&OZ(a,"live-segment-"+oN(d).toFixed(1)));PP(b)&&OZ(a,"sabr");b.Jh()&&OZ(a,"lifa");b.gatewayExperimentGroup&&(d=b.gatewayExperimentGroup,d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"? d="spkadtrt":d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(d="spkadctrl"),OZ(a,d));c.qa!=="yt"&&(a.j.len=[b.lengthSeconds.toFixed(2)]);b.cotn&&!EQ(b)&&a.iM(!0);c.zc()&&(d=LTa())&&a.oa("cblt",{m:d});if(fQ(b)){var f;((f=c.getWebPlayerContextConfig())==null?0:f.enableProximaLowLatency)&&c.L("html5_wpcc_proxima")?OZ(a,"proximawpcc"):a.provider.ea.getProximaLatencyPreference()?OZ(a,"proximaui"):OZ(a,"proximaexp")}}}; NUa=function(a){if(a.provider.ea.Cf()){if(a.D)return;a.D=!0}a.j&&E2a(a.j);if(a.B){a=a.B;var b=g.FI(a.provider);a.j<0&&(a.j=b,a.delay.start());a.B=b;a.D=b}}; MUa=function(a,b){if(g.fy(b,1024)||g.fy(b,512)||g.fy(b,4)){if(a.B){var c=a.B;c.B>=0||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Ng){var d;(d=a.C.get(a.Ng))==null||L2a(d,b)}else a.j&&L2a(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.FI(d.provider),f=d.getPlayerState(c);LUa(d,e,f,c.seekSource||void 0);f=c.fh;g.Z(c,128)&&f&&(f.fM=f.fM||"",j2a(d,e,f.errorCode,f.dA,f.fM));(g.Z(c,2)||g.Z(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(d.B>=0&& (d.j.user_intent=[d.B.toString()]),d.N=!0);h2a(d)}a.B&&(d=a.B,T1a(d),d.playerState=b.state,d.B>=0&&g.fy(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.Cf()&&(a.Fe=b.state)}; S2a=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Ng){var b;(b=a.C.get(a.Ng))!=null&&RZ(b.j)}else a.j&&RZ(a.j.j)}; T2a=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){b.Fe==="PL"&&(b.Fe="N");var c=g.FI(b.provider);g.LZ(b,c,"vps",[b.Fe]);b.N||(b.B>=0&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.zc()&&b.oa("finalized",{});b.Fa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.w(a.C.values()),c=b.next();!c.done;c=b.next())K2a(c.value);else a.j&&K2a(a.j);a.dispose()}; U2a=function(a,b){a.j&&M2a(a.j,b)}; V2a=function(a){if(!a.j)return null;var b=UZ(a.j,"atr");return function(c){a.j&&M2a(a.j,c,b)}}; W2a=function(a,b,c,d){c.adFormat=c.wc;var e=b.ea;b=new TZ(new YZ(c,b.W,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return e.getCurrentTime()}, Xf:function(){return e.Xf()}, SJ:function(){return e.SJ()}, Cf:function(){return e.Cf()}, tF:function(){return e.tF()}, getPlayerSize:function(){return e.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return e.getPlaybackRate()}, xF:function(){return e.xF()}, getVisibilityState:function(){return e.getVisibilityState()}, Yh:function(){return e.Yh()}, Or:function(){return e.Or()}, getVolume:function(){return e.getVolume()}, isMuted:function(){return e.isMuted()}, KF:function(){return e.KF()}, hA:function(){return e.hA()}, getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()}, mS:function(){e.mS()}, yG:function(){e.yG()}, oa:function(f,h){e.oa(f,h)}})); b.B=d;g.P(a,b);return b}; X2a=function(){this.Kw=0;this.C=this.Gv=this.Ws=this.B=NaN;this.j={};this.bandwidthEstimate=NaN}; $Z=function(a,b,c){g.O.call(this);var d=this;this.W=a;this.ea=b;this.B=c;this.j=new Map;this.Ng="";this.hd={Yn:function(){return Array.from(d.j.keys())}}}; OUa=function(a,b){a.j.has(b)&&(T2a(a.j.get(b)),a.j.delete(b))}; Y2a=function(){this.j=g.MC;this.array=[]}; $2a=function(a,b,c){var d=[];for(b=Z2a(a,b);bc)break}return d}; a3a=function(a,b){var c=[];a=g.w(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}; b3a=function(a){return a.array.slice(Z2a(a,0x7ffffffffffff),a.array.length)}; Z2a=function(a,b){a=Zb(a.array,function(c){return b-c.start||1}); return a<0?-(a+1):a}; c3a=function(a,b){var c=NaN;a=g.w(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b1)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(b>0&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1}; i3a=function(a,b){this.videoData=a;this.j=b}; j3a=function(a,b,c){return b.ZI(c).then(function(){return tr(new i3a(b,b.C))},function(d){d instanceof Error&&g.yw(d); var e=dE('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=fE('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.WN(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.sx(),d:!!b.Wc,drm:b.ej(),f18:b.Uf.indexOf("itag=18")>=0,c18:e};b.j&&(b.ej()?(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=fE('video/mp4; codecs="avc1.42001E"'), e.cVP9=fE('video/webm; codecs="vp9"'));b.G&&(e.drmsys=b.G.keySystem,f=0,b.G.j&&(f=Object.keys(b.G.j).length),e.drmst=f);return new $D(d,e,h)})}; k3a=function(a){this.G=a;this.C=this.B=0;this.D=new rT(50)}; d_=function(a,b,c){g.Xw.call(this);this.videoData=a;this.experiments=b;this.K=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.N=0;c=new l3a;a.latencyClass==="ULTRALOW"&&(c.D=!1);a.yb?c.B=3:g.qQ(a)&&(c.B=2);a.latencyClass==="NORMAL"&&(c.G=!0);var d=g.VB(b,"html5_liveness_drift_proxima_override");if(fQ(a)&&d){c.j=d;var e;((e=a.j)==null?0:PHa(e))&&c.j--}PP(a)&&b.kb("html5_sabr_parse_live_metadata_playback_boundaries")&&(c.N=!0);if(g.Br("trident/")||g.Br("edge/"))c.C=Math.max(c.C,g.VB(b,"html5_platform_minimum_readahead_seconds")|| 3);g.VB(b,"html5_minimum_readahead_seconds")&&(c.C=g.VB(b,"html5_minimum_readahead_seconds"));g.VB(b,"html5_maximum_readahead_seconds")&&(c.K=g.VB(b,"html5_maximum_readahead_seconds"));b.kb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.VB(b,"html5_liveness_drift_chunk_override"))c.j=b;eQ(a)&&(c.j=(c.j+1)/5,a.latencyClass==="LOW"&&(c.j*=2));this.policy=c;this.Z=this.policy.B!==1;this.j=c_(this,m3a(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))}; n3a=function(a,b){if(b)return b=a.videoData,b=m3a(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),c_(a,b);if(a.B.length){if(Math.min.apply(null,a.B)>1)return c_(a,a.j-1);if(a.policy.D)return c_(a,a.j+1)}return a.j}; o3a=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=n3a(a,b===void 0?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b}; e_=function(a,b){return b>=a.Xn()-p3a(a)}; q3a=function(a,b,c){b=e_(a,b);c||b?b&&(a.C=!0):a.C=!1;a.Z=a.policy.B===2||a.policy.B===3&&a.C}; r3a=function(a,b){b=e_(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b}; p3a=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*f_(a)}; m3a=function(a,b,c){c.yb&&b--;eQ(c)&&(b=1);if(fQ(c)&&(a=g.VB(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;((d=c.j)==null?0:PHa(d))&&b++}return b}; f_=function(a){return a.videoData.j?oN(a.videoData.j)||5:5}; c_=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/f_(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/f_(a))),b)}; l3a=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.N=this.G=!1}; i_=function(a){g.O.call(this);this.ea=a;this.W=this.ea.U();this.j=0;this.B=null;this.K=this.D=0;this.G=new g.Lo(this.Ve,1E3,this);this.ob=new g_({delayMs:g.VB(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Ga=new g_({delayMs:g.VB(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.yb=h_(this,"html5_seek_set_cmt");this.Va=h_(this,"html5_seek_jiggle_cmt");this.Ya=h_(this,"html5_seek_new_elem");this.Tb=h_(this,"html5_unreported_seek_reseek");this.Aa=h_(this,"html5_long_rebuffer_jiggle_cmt"); this.Ma=h_(this,"html5_long_rebuffer_ssap_clip_not_match");this.Fa=new g_({delayMs:2E4});this.Wa=h_(this,"html5_seek_new_elem_shorts");this.fb=h_(this,"html5_seek_new_media_source_shorts_reuse");this.Xa=h_(this,"html5_seek_new_media_element_shorts_reuse");this.Ra=h_(this,"html5_reseek_after_time_jump");this.Z=h_(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=h_(this,"html5_gapless_slow_seek");this.Y=h_(this,"html5_gapless_slice_append_stuck");this.ra=h_(this,"html5_gapless_slow_start"); this.N=h_(this,"html5_ads_preroll_lock_timeout");this.Ob=h_(this,"html5_ssap_ad_longrebuffer_new_element");this.Jb=new g_({delayMs:g.VB(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Wz:!this.W.L("html5_report_slow_ads_as_error")});this.Ab=new g_({delayMs:g.VB(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Wz:!this.W.L("html5_skip_slow_buffering_ad")});this.Kb=new g_({delayMs:g.VB(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.Ka=h_(this,"html5_slow_start_no_media_source"); this.C={};g.P(this,this.G)}; h_=function(a,b){var c=g.VB(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new g_({delayMs:c,Wz:a})}; s3a=function(a,b){a.j=b}; j_=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Id(e,b,h),b.Wz||f()):(b.nM&&b.B&&!b.D?(c=(0,g.T)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.nM,c=b.j&&c-b.j>b.bT||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.uc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.oa("workaroundReport",l),d&&(b.reset(),a.C[e]=!1)))}; g_=function(a){var b=a===void 0?{}:a;a=b.delayMs===void 0?0:b.delayMs;var c=b.bT===void 0?1E3:b.bT;var d=b.nM===void 0?3E4:b.nM;b=b.Wz===void 0?!1:b.Wz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.bT=c;this.nM=d;this.Wz=b}; w3a=function(a){g.O.call(this);var b=this;this.ea=a;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new t3a;this.Fa=new i_(this.ea);this.K=this.j=this.ya=this.mediaElement=this.playbackData=null;this.B=NaN;this.D=0;this.Ka=NaN;this.C=null;this.Ra=NaN;this.G=this.qa=null;this.ra=!1;this.ob=NaN;this.Jb=0;this.Z=!1;this.Ma=new g.Lo(function(){u3a(b,!1)},2E3); this.Ab=new g.Lo(function(){k_(b)}); this.Wa=new g.Lo(function(){b.ra=!0;v3a(b,{})}); this.timestampOffset=0;this.N=!0;this.Va=0;this.yb=NaN;this.Ga=new g.Lo(function(){var c=b.W.Qf;c.j+=1E4/36E5;c.j-c.C>1/6&&(hJa(c),c.C=c.j);b.Ga.start()},1E4); this.Ya=this.Kb=!1;this.Y=0;this.fb=!1;this.Aa=0;g.P(this,this.Fa);g.P(this,this.Ma);g.P(this,this.Wa);g.P(this,this.Ab);g.P(this,this.Ga)}; z3a=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new k3a(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(RP(a.videoData)&&a.ya){var c=a.ya.nJ.gh()||0;break a}if(a.videoData.j){c=a.videoData.j.Ma;break a}}c=0}return c}),a.j=new d_(a.videoData,a.W.experiments,function(){return a.Vd(!0)})); l_(a.ea)?(b=x3a(a),b.eN?(PP(a.videoData)&&a.L("html5_sabr_enable_utc_seek_requests")&&a.eC(b.eN,b.startSeconds),a.D=b.startSeconds):b.startSeconds>0&&a.seekTo(b.startSeconds,{Zc:"seektimeline_startPlayback",seekSource:15}),a.N=!1):y3a(a)||(a.D=a.D||(g.SP(a.videoData)?0:a.videoData.startSeconds)||0)}; B3a=function(a,b){(a.ya=b)?A3a(a,!0):m_(a)}; C3a=function(a,b){g.Mo(a.Fa.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.Mo(a.Ga):a.Ga.stop());if(a.mediaElement)if(b.yB.state===8&&mF(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Fh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?HE(c,Math.max(b-3.5,0)):HE(c,b-3.5);d>=0&&b>c.end(d)-1.1&&d+10?(n_(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Ya=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(n_(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.Ya=!0))}; E3a=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c50&&e.B.shift())),e=a.j,q3a(e,c,b===void 0?!0:b),r3a(e,c),b&&u3a(a,!0));d!==a.Kb&&(b=a.getCurrentTime()-a.ob<=500,c=a.Jb>=1E3,b||c||(b=a.ea.hc(),b.qoe&&(b=b.qoe,c=g.FI(b.provider), g.LZ(b,c,"lh",[d?"1":"0"])),a.Kb=d,a.Jb++,a.ob=a.getCurrentTime()))}; u3a=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!e_(c,d)&&c.hq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d0&&bF(a.mediaElement)>0&&(a.B=o_(a,a.B,!1)),!a.mediaElement||!J3a(a))a.Ab.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Ra-(a.B-a.timestampOffset);if(!(b===0||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005))if(b=a.mediaElement.getCurrentTime()-a.B,Math.abs(b)<=a.Va||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)a.C&&a.C.resolve(a.mediaElement.getCurrentTime()); else{if(a.videoData.SD)a.videoData.SD=!1;else if(!OP(a.videoData)&&a.B>=a.Vd()-.1){a.B=a.Vd();a.C.resolve(a.Vd());BW(a.ea);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.Fa.j=c;a.Ra=c;a.D=a.B;a.L("html5_enable_new_seek_timeline_logic")&&(a.Z=!1)}catch(d){}}}}; J3a=function(a){if(!a.mediaElement||a.mediaElement.ll()===0||a.mediaElement.hasError())return!1;var b=a.mediaElement.getCurrentTime()>0;if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.ej())return b;if(a.B>=0){var c=a.mediaElement.vA();if(c.length||!b)return IE(c,a.B-a.timestampOffset)}return b}; I3a=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.W.zc()&&(b=a.uc(),b["native"]=""+ +a.Z,b.otgt=""+(a.B+a.timestampOffset),a.ea.oa("seekEnd",b)));m_(a)}; m_=function(a){a.B=NaN;a.Ra=NaN;a.C=null;a.qa=null;a.G=null;a.ra=!1;a.Z=!1;a.Va=0;a.Ma.stop();a.Wa.stop()}; L3a=function(a,b,c){var d=a.mediaElement,e=b.type;switch(e){case "seeking":var f=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.Z&&f!==a.B){var h=!!a.C;a.C=new $E;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){I3a(a,m)},function(){m_(a)}); if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;Lsa({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(l=a.videoData.EW)!=null?l:""},b.j);a.L("enable_ask_gating")&&a.ea.tL()}a.Ra=f;s3a(a.Fa,d.getCurrentTime());a.seekTo(f,{seekSource:104,Zc:"seektimeline_mediaElementEvent"});c&&QUa(c,f*1E3,!!h);a.Z=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":l_(a.ea)||K3a(a);k_(a);break;case "progress":k_(a);break;case "pause":a.Y=a.getCurrentTime()}a.Y&& ((e==="play"||e==="playing"||e==="timeupdate"||e==="progress")&&a.getCurrentTime()-a.Y>10&&a.seekTo(a.Y,{Zc:"pauseJump"}),e!=="pause"&&e!=="play"&&e!=="playing"&&e!=="progress"&&(a.Y=0))}; M3a=function(a){return(rQ(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||y3a(a))&&!!a.videoData.j}; y3a=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9}; x3a=function(a){var b=0,c=NaN,d="";if(!a.N)return{startSeconds:b,eN:c,source:d};a.videoData.Ka?b=a.videoData.Ra:OP(a.videoData)&&(b=Infinity);if(g.qQ(a.videoData))return{startSeconds:b,eN:c,source:d};a.videoData.startSeconds?(d="ss",b=a.videoData.startSeconds):a.videoData.ge&&(d="stss",b=a.videoData.ge);a.videoData.liveUtcStartSeconds&&(c=a.videoData.liveUtcStartSeconds);if(isFinite(b)&&(b>a.Vd()||ba.Vd()||c 0?(d.onesie="0",a.handleError(new $D("html5.missingapi",d)),!1):!0}; U3a=function(a){var b=sR();tR(b,a);return g.cA(b,wBa())}; R3a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M,N,S,ba,ha,na,Y,R;return g.J(function(W){if(W.j==1)return b.fetchType="onesie",c=TLa(b,a.getPlayerSize(),a.getVisibilityState()),d=new mZ(a,c),g.G(W,d.fetch(),2);e=W.B;f={player_response:e};b.loading=!1;h=a.Ad.Nu;if(d.dg){l=g.w(d.dg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.w(n),q=p.next().value,r=p.next().value,t=q,u=r,h.j.set(t,u,180),t===b.videoId&&(y=u.Hr(),b.UC=y);h.Yw=d}A=g.w(d.gY.entries());for(D=A.next();!D.done;D= A.next())F=D.value,H=g.w(F),M=H.next().value,N=H.next().value,S=M,ba=N,h.B.set(S,ba,180);g.IP(b,f,!0);if(b.loading||FP(b))return W.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.UC=[];ha={};na="onesie.response";Y=0;b.errorCode?(na="auth",ha.ec=b.errorCode,ha.ed=b.errorDetail,ha.es=b.Rn||"",Y=2):(ha.successButUnplayable="1",ha.disposed=""+ +b.La(),ha.afmts=""+ +/adaptiveFormats/.test(e),ha.cpn=b.clientPlaybackNonce);R=new $D(na,ha,Y);return W.return(Promise.reject(R))})}; P3a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.J(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f0)){t.Ha(5);break}return g.G(t,Le(5E3),6);case 6:h=new g.Hs("Retrying OnePlatform request",{attempt:f}),g.yw(h);case 5:return g.wa(t,7),g.G(t,V3a(a,b),9);case 9:return t.return();case 7:l=g.ya(t);m=bE(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&n==="manifest.net.badstatus"&&m.details.rc===401&&(d=!1,f===e-1&&(e+=1)):d&&n=== "manifest.net.badstatus"&&m.details.rc==="401"&&(d=!1,f===e-1&&(e+=1));if(n==="auth"||n==="manifest.net.retryexhausted")return t.return(Promise.reject(m));a.handleError(m);if(aE(m.severity)){t.Ha(4);break}case 3:f++;t.Ha(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new $D(q,{backend:"op"},r)))}})}; V3a=function(a,b){function c(na){na.readyState===2&&a.Md("ps_c")} var d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M,N,S,ba,ha;return g.J(function(na){switch(na.j){case 1:b.fetchType="gp";d=a.U();e=g.TO(d,g.DQ(b));if(!e.j){f=e.getValue();na.Ha(2);break}return g.G(na,e.j,3);case 3:f=na.B;case 2:return h=f,l=U3a(h),m=TLa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.Py(W3a),p=g.DQ(b),q=(0,g.T)(),r=!1,t="empty",u=0,a.Md("psns"),y={CB:c},g.G(na,g.Sz(l,m,n,void 0,y),4);case 4:A=na.B;a.Md("psnr");if(b.La())return na.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message, u=A.error.code):A.errorMetadata&&(r=!0,t="its",u=A.errorMetadata.status):r=!0;if(r)return D=0,F=((0,g.T)()-q).toFixed(),H={},H=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Eq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.mj||"",token_eq:p===g.DQ(b)?"1":"0"}:{backend:"op", rc:""+u,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Eq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.mj||"",token_eq:p===g.DQ(b)?"1":"0"},M="manifest.net.connect",u===429?(M="auth",D=2):u>200&&(M="manifest.net.badstatus",u===400&&(D=2)),na.return(Promise.reject(new $D(M,H,D)));b.loading=!1;g.IP(b,{raw_player_response:A},!0); N=A;g.wO(b.U())&&N&&N.trackingParams&&zK(N.trackingParams);if(b.errorCode)return S={ec:b.errorCode,ed:b.errorDetail,es:b.Rn||""},na.return(Promise.reject(new $D("auth",S,2)));if(!b.loading&&!FP(b))return ba=b.isAd()?"auth":"manifest.net.retryexhausted",ha=b.isAd()?2:1,na.return(Promise.reject(new $D(ba,{successButUnplayable:"1",hasMedia:g.nQ(b)?"1":"0"},ha)));g.va(na)}})}; O3a=function(a,b,c){function d(u){u=bE(u);if(aE(u.severity))return Promise.reject(u);a.handleError(u);return!1} function e(){return!0} var f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:var y=a.U(),A=a.getPlayerSize(),D=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(b.Va===38&&y.playerStyle==="books")F=b.videoId.indexOf(":"),F=g.Hi("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.s4});else if(b.Va===30&&y.playerStyle==="docs")F=g.Hi("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.Hda,authkey:b.xfa,eurl:y.Rc});else if(b.Va=== 33&&y.playerStyle==="google-live")F=g.Hi("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{y.qa!=="yt"&&g.xw(Error("getVideoInfoUrl for invalid namespace: "+y.qa));var H={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:y.Rc,ps:y.playerStyle,el:yQ(b),hl:y.Aj,list:b.playlistId,agcid:b.pX,aqi:b.adQueryId,sts:19936,lact:ov()};Object.assign(H,y.j);y.forcedExperiments&&(H.forced_experiments=y.forcedExperiments);b.ra?(H.vvt=b.ra,b.mdxEnvironment&&(H.mdx_environment=b.mdxEnvironment)): g.DQ(b)&&(H.access_token=g.DQ(b));b.adFormat&&(H.adformat=b.adFormat);b.slotPosition>=0&&(H.slot_pos=b.slotPosition);b.breakType&&(H.break_type=b.breakType);b.dD!==null&&(H.ad_id=b.dD);b.hD!==null&&(H.ad_sys=b.hD);b.WD!==null&&(H.encoded_ad_playback_context=b.WD);b.LD&&(H.tpra="1");y.captionsLanguagePreference&&(H.cc_lang_pref=y.captionsLanguagePreference);y.Jb&&y.Jb!==2&&(H.cc_load_policy=y.Jb);var M=g.Cs(g.Bs(),65);g.KO(y)&&M!=null&&!M&&(H.device_captions_on="1");y.mute&&(H.mute=y.mute);b.annotationsLoadPolicy&& y.annotationsLoadPolicy!==2&&(H.iv_load_policy=b.annotationsLoadPolicy);b.uw&&(H.endscreen_ad_tracking=b.uw);(M=y.Ka.get(b.videoId))&&M.TM&&(H.ic_track=M.TM);b.Ma&&(H.itct=b.Ma);CQ(b)&&(H.autoplay="1");b.mutedAutoplay&&(H.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(H.autonav="1");b.ZE&&(H.noiba="1");b.isMdxPlayback&&(H.mdx="1",H.ytr=b.Rj);b.mdxControlMode&&(H.mdx_control_mode=b.mdxControlMode);b.Pw&&(H.ytrcc=b.Pw);b.sG&&(H.utpsa="1");b.isFling&&(H.is_fling="1");b.isInlinePlaybackNoAd&&(H.mute="1"); b.vnd&&(H.vnd=b.vnd);b.forceAdsUrl&&(M=b.forceAdsUrl.split("|").length===3,H.force_ad_params=M?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Ed&&(H.preload=b.Ed);A.width&&(H.width=A.width);A.height&&(H.height=A.height);(b.Jg?0:b.Vi)&&(H.splay="1");b.ypcPreview&&(H.ypc_preview="1");AQ(b)&&(H.content_v=AQ(b));b.yb&&(H.livemonitor=1);y.Aa&&(H.authuser=y.Aa);y.pageId&&(H.pageid=y.pageId);y.fb&&(H.ei=y.fb);y.D&&(H.iframe="1");b.contentCheckOk&&(H.cco="1");b.racyCheckOk&&(H.rco="1");y.N&&b.sI&&(H.live_start_walltime= b.sI);y.N&&b.dk&&(H.live_manifest_duration=b.dk);y.N&&b.playerParams&&(H.player_params=b.playerParams);y.N&&b.cycToken&&(H.cyc=b.cycToken);y.N&&b.ND&&(H.tkn=b.ND);D!==0&&(H.vis=D);y.enableSafetyMode&&(H.enable_safety_mode="1");b.Jb&&(H.kpt=b.Jb);b.yp&&(H.kids_age_up_mode=b.yp);b.kidsAppInfo&&(H.kids_app_info=b.kidsAppInfo);b.KB&&(H.upg_content_filter_mode="1");y.widgetReferrer&&(H.widget_referrer=y.widgetReferrer.substring(0,128));b.qa?(A=b.qa.latitudeE7!=null&&b.qa.longitudeE7!=null?b.qa.latitudeE7+ ","+b.qa.longitudeE7:",",A+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):A=null;A&&(H.uloc=A);b.Fn&&(H.internalipoverride=b.Fn);y.embedConfig&&(H.embed_config=y.embedConfig);y.zn&&(H.co_rel="1");y.ancestorOrigins.length>0&&(H.ancestor_origins=Array.from(y.ancestorOrigins).join(","));y.homeGroupInfo!==void 0&&(H.home_group_info=y.homeGroupInfo);y.livingRoomAppMode!==void 0&&(H.living_room_app_mode=y.livingRoomAppMode);y.enablePrivacyFilter&& (H.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");b.jw&&b.lw&&(H.clip=b.jw,H.clipt=b.lw);b.pw&&(H.disable_watch_next="1");b.En&&(H.forced_by_var="1");for(var N in H)!X3a.has(N)&&H[N]&&String(H[N]).length>512&&(g.yw(Error("GVI param too long: "+N)),H[N]="");N=y.Fa;g.xO(y)&&(N=GC(N.replace(/\b(?:www|web)([.-])/,"tv$1"))||y.Fa);y=g.Hi(N+"get_video_info",H);F&&(y=Rma(y,F));F=y}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m0)){u.Ha(5);break}return g.G(u, Le(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Uq(f,p);case 5:return g.G(u,Y3a(b,n).then(e,d),7);case 7:if(q=u.B)return u.return();m++;u.Ha(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&Math.random()<1E-4)try{g.yw(new g.Hs("b/152131571",btoa(f)))}catch(S){}return u.return(Promise.reject(new $D(r,{backend:"gvi"},t)))}})}; Y3a=function(a,b){function c(A){return d(A.xhr)} function d(A){if(!a.La()){A=A?A.status:-1;var D=0,F=((0,g.T)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var H="manifest.net.connect";A===429?(H="auth",D=2):A>200&&(H="manifest.net.badstatus",A===400&&(D=2));return Promise.reject(new $D(H,F,D))}} var e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){if(A.j==1){a.fetchType="gvi";e=a.U();var D={};a.DD&&(D.ytrext=a.DD);(l=g.Bc(D)?void 0:D)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Uq(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b);m={};e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData);(n=SN(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);Object.keys(m).length> 0&&(f.headers=m);p=(0,g.T)();return g.G(A,bN(pr,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=Qq(q.responseText);g.IP(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.Rn||""},A.return(Promise.reject(new $D("auth",t,2)));if(!a.loading&&!FP(a))return u=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,A.return(Promise.reject(new $D(u,{successButUnplayable:"1"},y)));g.va(A)})}; q_=function(a,b,c){c=c===void 0?!1:c;var d,e,f,h;g.J(function(l){if(l.j==1){d=a.U();if(c&&(!g.MO(d)||yQ(b)!=="embedded")||b.pw||yQ(b)!=="adunit"&&(g.iC(d)||DO(d)||g.yy(d)||g.xO(d)||g.QN(d)==="WEB_CREATOR"))return l.return();e=g.TO(d,g.DQ(b));return e.j?g.G(l,e.j,3):(f=e.getValue(),l.Ha(2))}l.j!=2&&(f=l.B);h=f;return l.return(Z3a(a,b,h))})}; Z3a=function(a,b,c){var d,e,f,h,l;return g.J(function(m){if(m.j==1){g.wa(m,2);d=U3a(c);var n=b.U();g.Bs();var p={context:g.MQ(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};yQ(b)==="adunit"&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.zn&&(p.showContentOwnerOnly=!0);b.SX&&(p.showShortsOnly=!0);g.Cs(0,141)&&(p.autonavState=g.Cs(0,140)?"STATE_OFF":"STATE_ON");if(g.KO(n)){var q=g.Cs(0,65);q=q!=null? !q:!1;var r=!!g.vs("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=(t=n.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.Py($3a);a.Md("wn_s");return g.G(m,g.Sz(d,e,f),4)}if(m.j!=2)return h=m.B,a.Md("wn_r"),!h||"error"in h&&h.error||(l=h,g.wO(b.U())&&l.trackingParams&&zK(l.trackingParams),g.IP(b,{raw_watch_next_response:h},!1)),g.xa(m,0);g.ya(m);g.va(m)})}; a4a=function(a){a.Md("vir");a.Md("ps_s");Pz("vir",void 0,"video_to_ad");var b=T3a(a);b.then(function(){a.Md("virc");Pz("virc",void 0,"video_to_ad");a.Md("ps_r");Pz("ps_r",void 0,"video_to_ad")},function(){a.Md("virc"); Pz("virc",void 0,"video_to_ad")}); return b}; g.t_=function(a,b,c,d,e,f,h,l,m,n){m=m===void 0?new g.EP(a):m;n=n===void 0?!0:n;g.Xw.call(this);var p=this;this.W=a;this.playerType=b;this.Lb=c;this.NH=d;this.getVisibilityState=f;this.visibility=h;this.Ad=l;this.videoData=m;this.u7=n;this.logger=new g.uN("VideoPlayer");this.oE=new h3a(this.W);this.Be=null;this.MB=new EZ;this.Dr=null;this.Pk=new C1a(this.W,this.NH,this);this.ZY=!0;this.Qa=this.ya=null;this.Aq=[];this.Bq=new p_;this.Kf=this.SG=null;this.Fs=new p_;this.UL=null;this.iZ=this.yu=!1;this.VL= NaN;this.V0=!1;this.playerState=new g.fF;this.YL=[];this.LC=new g.iE;this.zl=new o1a(this);this.mediaElement=null;this.Px=new g.Lo(this.aba,15E3,this);this.rT=this.oL=!1;this.Cy=NaN;this.WI=!1;this.tO=0;this.JF=!1;this.QK=NaN;this.bU=new sT(new Map([["bufferhealth",function(){return D3a(p.Qc)}], ["bandwidth",function(){return p.IP()}], ["networkactivity",function(){return p.W.schedule.qa}], ["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?b4a(p):NaN}], ["rawlivelatency",function(){return b4a(p)}]])); this.aG=0;this.loop=!1;this.playbackRate=1;this.VZ=0;this.Qc=new w3a(this);this.aX=!1;this.XL=[];this.eR=this.W0=0;this.mT=this.z3=!1;this.Gv=this.Ws=0;this.gO=new g.Lo(this.v9,0,this);this.H2=!1;this.ub=this.bd=null;this.caa=[this.LC,this.gO,this.Px,this.bU];this.Jf=function(){var q=p.hc();q.provider.W.Rf||q.provider.ea.getVisibilityState()===3||(q.provider.W.Rf=!0);S2a(q);if(q.B){var r=q.B;r.G&&r.j<0&&r.provider.ea.getVisibilityState()!==3&&S1a(r)}q.qoe&&(q=q.qoe,q.Wa&&q.B<0&&q.provider.W.Rf&&n2a(q), q.C&&NZ(q));p.ya&&r_(p);p.W.Qp&&!p.videoData.backgroundable&&p.mediaElement&&!p.ri()&&(p.isBackground()&&p.mediaElement.II()?(p.oa("bgmobile",{suspend:1}),p.Wo(!0,!0)):p.isBackground()||s_(p)&&p.oa("bgmobile",{resume:1}))}; this.hd={uq:function(q){p.uq(q)}, ypa:function(q){p.Be=q}, Tna:function(){return p.hB}, sA:function(){return p.iB}, rna:function(){return p.uO}, sna:function(){return p.vO}, Soa:function(){}, U:function(){return p.W}, Le:function(){return p.mediaElement}, Voa:function(q){p.HL(q)}}; this.logger.debug(function(){return"creating, type "+b}); this.Ch=new a_(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.NC("endcr")||g.Z(p.playerState,32)||BW(p); e(q,r,p.playerType)},function(q,r){g.SP(p.videoData)&&p.oa(q,r)}); g.P(this,this.Ch);g.P(this,this.Qc);c4a(this,m);this.videoData.subscribe("dataupdated",this.Ica,this);this.videoData.subscribe("dataloaded",this.NO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.oa,this);this.videoData.subscribe("ctmpstr",this.Fy,this);this.sJ();wTa(this.Jf);this.visibility.subscribe("visibilitystatechange",this.Jf);this.uO=new g.Lo(this.vM,g.VB(this.W.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.vO= new g.Lo(this.vM,g.VB(this.W.experiments,"html5_player_att_retry_delay_ms")||4500,this)}; WE=function(a){return a.L("html5_not_reset_media_source")&&!a.ej()&&!a.videoData.isLivePlayback&&g.zQ(a.videoData)&&!a.W.supportsGaplessShorts()}; c4a=function(a,b){if(a.playerType===2||a.W.iq)b.OU=!0;var c=$Ja(b.wc,b.GC,a.W.D,a.W.N);c&&(b.adFormat=c);a.playerType===2&&(b.Qk=!0);if(a.isFullscreen()||a.W.D)c=g.vs("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&n_(a,b.endSeconds)}; e4a=function(a){if(a.videoData.Y){var b=a.Ad.Vc();a.videoData.Pv=a.videoData.Pv||(b==null?void 0:b.MP());a.videoData.Qv=a.videoData.Qv||(b==null?void 0:b.PP())}if(xLa(a.videoData)||!HQ(a.videoData))b=a.videoData.errorDetail,a.Mf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Rn||void 0);a.videoData.Vf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&d4a(a);a.L("html5_enable_d6de4")&&a.hI()}; f4a=function(a){T2a(a.hB);g.gb(a.hB);for(var b=a.iB,c=g.w(b.j.values()),d=c.next();!d.done;d=c.next())T2a(d.value);b.j.clear();g.gb(a.iB)}; g4a=function(a){return a.mediaElement&&a.mediaElement.dw()?a.mediaElement.Ib():null}; u_=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;a.U().K&&a.U().houseBrandUserStatus&&a.oa("hbut",{status:a.U().houseBrandUserStatus});if(a.videoData.ue())return!0;a.Mf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.AW=function(a,b){(b=b===void 0?!1:b)||g.SP(a.videoData)||iX(a.hc());a.yu=b;!u_(a)||a.Bq.Cu()?g.iC(a.W)&&a.videoData.isLivePlayback&&a.Bq.Cu()&&!a.Bq.j&&!a.yu&&a.NO():(a.Bq.start(),b=a.hc(),g.FI(b.provider),b.qoe&&i2a(b.qoe),a.NO())}; h4a=function(a){var b=a.videoData;a4a(a).then(void 0,function(c){a.videoData!==b||b.La()||(c=bE(c),c.errorCode==="auth"&&a.videoData.errorDetail?a.Mf(c.errorCode,2,unescape(a.videoData.errorReason),ZD(c.details),a.videoData.errorDetail,a.videoData.Rn||void 0):a.handleError(c))})}; $Ta=function(a,b){a.bd=b;a.ya&&o0a(a.ya,new g.wZ(b))}; k4a=function(a){if(!g.Z(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.Aq=g.Tb(a.videoData.Ga),g.nQ(a.videoData)){a.Lb.tick("bpd_s");v_(a).then(function(){a.Lb.tick("bpd_c");if(!a.La()){a.yu&&(a.Ec(iF(iF(a.playerState,512),1)),s_(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&n_(a,c.endSeconds);a.Bq.j=!0;w_(a,"dataloaded");a.Fs.Cu()&&i4a(a);R1a(a.Pk,a.Kf)}}); a.L("html5_log_media_perf_info")&&a.oa("loudness",{v:a.videoData.Ij.toFixed(3)},!0);var b=ILa(a.videoData);b&&a.oa("playerResponseExperiment",{id:b},!0);j4a(a)}else w_(a,"dataloaded")}; v_=function(a){x_(a);a.Kf=null;var b=j3a(a.W,a.videoData,a.ri());a.SG=b;a.SG.then(function(c){l4a(a,c)},function(c){a.La()||(c=bE(c),a.visibility.isBackground()?(y_(a,"vp_none_avail"),a.SG=null,a.Bq.reset()):(a.Bq.j=!0,a.Mf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",ZD(c.details))))}); return b}; HZ=function(a){a.logger.debug("Updating for format change");v_(a).then(function(){return s_(a)}); a.playerState.isOrWillBePlaying()&&a.playVideo()}; l4a=function(a,b){if(!a.La()&&!b.videoData.La()){a.logger.debug("finished building playback data");a.Kf=b;z3a(a.Qc,a.Kf);if(a.videoData.isLivePlayback){var c=iVa(a.Ad.Nu,a.videoData.videoId)||a.ya&&!isNaN(a.ya.Aa);c=a.L("html5_onesie_live")&&c;l_(a)||a.videoData.Ob>0&&!RP(a.videoData)||c||a.seekTo(a.Vd(),{Zc:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.L("html5_sabr_report_missing_url_as_error")&&HLa(a.videoData)){a.handleError(new $D("fmt.missing",{missabrurl:"1"},2));return}a.ya? g.yw(Error("Duplicated Loader")):(c=g.VB(a.W.experiments,"html5_onesie_defer_content_loader_ms"))&&sZ(a)&&iVa(a.Ad.Nu,a.videoData.u4)?g.cr(function(){a.La()||a.ya||m4a(a)},c):m4a(a)}else!a.videoData.C.j&&EQ(a.videoData)&&a.AL(new xY(a.videoData.videoId||"",4)); z_(a);I1a(b).then(function(){var d={};a.hp(d);a.W.zc()&&a.L("html5_log_media_perf_info")&&a.oa("av1Info",d);r_(a)})}}; n4a=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.AW(a);u_(a)&&!g.Z(a.playerState,128)&&(a.Fs.Cu()||(a.Fs.start(),a.videoData.Yl?a.Ec(iF(a.playerState,4)):a.Ec(iF(iF(a.playerState,8),1))),i4a(a))}; i4a=function(a){a.La();a.logger.debug("try finish readying playback");if(a.Fs.j)a.logger.debug("already finished readying");else if(a.Bq.j)if(g.Z(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.Aq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.Aq}); else if(a.Ch.started||e3a(a.Ch),a.po())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.ya&&(a.iZ=dXa(a.ya.timing));a.Fs.j||(a.Fs.j=!0);var b=a.L("html5_onesie_live")&&a.ya&&!isNaN(a.ya.Aa);!a.videoData.isLivePlayback||a.videoData.Ob>0&&!RP(a.videoData)||b||l_(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{Zc:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.rT=!0));R2a(a.hc());a.logger.debug("finished readying playback");a.publish("playbackready", a);Nz("pl_c",a.Lb.timerName)||(a.Lb.tick("pl_c"),Pz("pl_c",void 0,"video_to_ad"));Nz("pbr",a.Lb.timerName)||(a.Lb.tick("pbr"),Pz("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")}; BW=function(a,b,c){b=b===void 0?!0:b;(c===void 0||c)&&a.mediaElement&&a.mediaElement.pause();a.Ec(b?new g.fF(14):new g.fF)}; n_=function(a,b){a.Dr&&o4a(a);a.Dr=new g.LC(b*1E3,0x7ffffffffffff);a.Dr.namespace="endcr";a.addCueRange(a.Dr)}; o4a=function(a){a.removeCueRange(a.Dr);a.Dr=null}; p4a=function(a,b,c,d,e){var f=a.hc(e);e=g.SP(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.wT(a);f.NG(new B1a(e,c,b,h?h.itag:"",d));c=a.Pk;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,b==="m")}; g.wT=function(a){var b=A_(a);return aL(b)||!a.Kf?null:g.Lb(a.Kf.j.videoInfos,function(c){return b.D(c)})}; A_=function(a){if(a.Kf){var b=a.Pk;var c=a.Kf;a=a.hx();if(b.ea.cj().isInline())var d=DP;else b.L("html5_exponential_memory_for_sticky")?d=mO(b.W.Qf,"sticky-lifetime")<.5?"auto":bL[JK()]:d=bL[JK()],d=g.$K("auto",d,!1,"s");if(aL(d)){d=D1a(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.w(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if((m=l.B)==null?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;ena()&&!g.iC(b.W)&&rE(c.j.videoInfos[0])&& (f=Math.min(f,g.lE.large));h=g.VB(b.W.experiments,"html5_chipset_soft_cap");h>0&&(f=Math.min(f,h));if(l=g.VB(b.W.experiments,"html5_max_vertical_resolution")){h=4320;for(m=0;ml&&(h=Math.min(h,n.video.j))}if(h<4320){for(m=l=0;m32){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.VB(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=P1a(b,c,f);d=e.call(d,g.VB(b.W.experiments,"html5_byterate_soft_cap_mweb")>0&&b.W.B&&!g.wO(b.W)?new XK(0,f===4320?0:f,!1,"d",g.VB(b.W.experiments,"html5_byterate_soft_cap_mweb")):new XK(0,f===4320?0:f,!1,"d")).compose(O1a(b,c.videoData)).compose(Q1a(b,c.videoData,c)).compose(N1a(b, c)).compose(G1a(b,c));if(aL(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(H1a(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(N1a(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(H1a(b,c)));d=d.compose(G1a(b,c));b=c.videoData.XB.compose(d).compose(c.videoData.e_).compose(a)}else b=DP;return b}; i_a=function(a){var b=a.Pk;a=a.videoData;var c=O1a(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(Q1a(b,a));return c}; g.q4a=function(a,b,c,d){a.videoData.XB=b;if(a.Kf&&c){c=a.Pk;var e=a.Kf;if(e.j.j){var f=JK(),h=e.j.videoInfos[0].video.j;if(!(f>h&&h!==0&&b.j===h)){var l;f=F1a(c,(l=e.j)==null?void 0:l.videoInfos);l=c.ea.getPlaybackRate();l>1&&f&&(l=SIa(c.W.G,e.j.videoInfos,l),b.j!==0&&l=480;if(c.L("html5_exponential_memory_for_sticky")){m= c.W.Qf;n=1;var p=p===void 0?!1:p;jJa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Qr["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Qr["sticky-lifetime"]=0);p&&mO(m,"sticky-lifetime")>.0625&&(n=m.Qr["sticky-lifetime"]*2);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Qr["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.W;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=c===void 0?!1:c;m=m.L("html5_gradual_perf_cap");m=m===void 0?!1:m;if(n===void 0?0:n){n= LK();b=g.w(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,e.indexOf("1")!==0&&(n[e]=0);g.us("yt-player-performance-cap",n,m?2592E3:604800)}else g.ws("yt-player-performance-cap");PBa(c);if(c){c=g.w(vN.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||vN.delete(m);c=g.w(IZ.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||IZ.delete(m);c=g.w(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else vN.clear(),IZ.clear(), p.clear()}}}}a.ya&&(p=a.ya,d=d||"",$T(p.policy)?lY(p.B.j,d):lY(p.j.G,d));z_(a)}; d4a=function(a){a.videoData.mw="";a.videoData.videoId?a.Ad.FP(a.videoData.videoId).then(function(b){a.videoData.mw=b;a.publish("contentPoTokenReady",a.videoData,!0)}):a.oa("pomvid",{})}; z_=function(a){if(!a.La()&&!g.Z(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)r_(a);else{var b=A_(a),c=a.videoData;a:{var d=a.videoData.Fd;if(b.j){for(var e=g.w(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.lE[h.video.quality];if((!b.C||h.video.quality!=="auto")&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.ob=d;p4a(a,b.reason,r4a(a,a.videoData.ob))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Qc.N=!1,a.playVideo()}}; r_=function(a){if(a.videoData.C&&a.videoData.C.j){var b=A_(a);a.ya&&W_a(a.ya,b)}}; s4a=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.gt&&((b=a.videoData.B)==null?0:xE(b)))}; t4a=function(a){if(!s4a(a))return!1;var b;a=(b=a.mediaElement)==null?void 0:b.audioTracks();return!!(a&&a.length>1)}; v4a=function(a){var b=u4a(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.dc.getName()===b})}; u4a=function(a){var b;if(a=(b=a.mediaElement)==null?void 0:b.audioTracks())for(b=0;b 0&&(b.Qf=d.Nv));b.Uf=d.Zj;b.xj=xN(c,{},d.C||void 0,bQ(d));b.fb=aQ(d)&&g.yy(c);PP(d)&&(c.L("html5_sabr_report_partial_segment_estimated_duration")&&(b.Uv=!0),c.L("html5_sabr_report_full_segment_for_partial_eviction")&&(b.mw=!0),b.B=!0,b.Fn=c.L("html5_sabr_enable_utc_seek_requests"),b.wm=c.L("html5_disable_client_resume_policy_for_sabr"),b.ww=c.L("html5_trigger_loader_when_idle_network"),b.Mv=c.L("html5_sabr_parse_live_metadata_playback_boundaries"),b.iz=c.L("html5_enable_platform_backpressure_with_sabr"), b.Vf=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.Vv=c.L("html5_sabr_report_next_ad_break_time"),b.G=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.yp=c.L("html5_sabr_exclude_quality_ordinal_check"),b.Cp=c.L("html5_log_high_res_buffer_timeline"),b.Bw=c.L("html5_gapless_sabr_btl_last_slice")&&$P(d),RP(d)&&(b.zn=c.L("html5_disable_variability_tracker_for_live"),b.Ya=c.L("html5_sabr_use_accurate_slice_info_params")),b.Qv=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"), b.qa=c.L("html5_enable_sabr_request_pipelining")&&!g.SP(d),b.Oj=c.L("html5_ignore_partial_segment_from_live_readahead"),b.Cw=c.L("html5_use_non_active_broadcast_for_post_live"),b.yb=c.L("html5_use_centralized_player_time"),b.Jg=c.L("html5_consume_onesie_sabr_seek"),b.ra=c.L("html5_enable_sabr_seek_loader_refactor"),b.fl=c.L("html5_reset_onesie_request_on_start_time_mismatch"),b.Aw=c.L("html5_update_segment_start_time_from_media_header"),b.G&&(b.ow=c.L("html5_reset_server_stitch_state_for_non_sabr_seek"), b.Tv=c.L("html5_remove_ssdai_append_pause"),b.Ab=c.L("html5_consume_ssdai_info_with_streaming")));b.K=b.B&&c.L("html5_sabr_live");oL(c.G,pL.BITRATE)&&(b.tb=NaN);if(l=g.VB(c.experiments,"html5_request_size_max_kb"))b.Wa=l*1024;c.G.D?b.Ob="; "+pL.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.Ob="; tunnelmode=true");l=d.serverPlaybackStartConfig;(l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(b.Aj=!0,bU(b,l.playbackStartPolicy,2));l=w4a(a);a.MB.removeAll();a:{c=a.Ad.Nu; if(d=a.videoData.videoId)if(e=c.j.get(d)){c.j.remove(d);c=e;break a}c=void 0}a.ya=new g.rZ(a,a.W.schedule,b,a.videoData.j,a.videoData.C,A_(a),l,a.videoData.enableServerStitchedDai,c,a.videoData.Ya);b=a.yu&&g.iC(a.W)&&a.videoData.isLivePlayback;a.ya.initialize(a.getCurrentTime(),A_(a),b);a.videoData.probeUrl&&(a.ya.Va=a.videoData.probeUrl);if(a.Aq.length||a.yu)a.videoData.cotn||B_(a,!1);B3a(a.Qc,a.ya);a.bd&&o0a(a.ya,new g.wZ(a.bd));a.ub&&(a.ya.GH(a.ub),a.Qc.N=!1);g.GQ(a.videoData)&&(a=a.ya,a.policy.Fj= a.policy.VF)}; x_=function(a){a.ya&&(a.ya.dispose(),a.ya=null,B3a(a.Qc,null));WE(a)?x4a(a):DW(a)}; x4a=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.aA(),a.Qa.K)try{a.W.zc()&&a.oa("rms",{l:"vprms",sr:WE(a),rs:YE(a.Qa)});a.Qa.clear();var b;(b=a.mediaElement)!=null&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.Hs("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=bE(b),a.handleError(b),DW(a)}else DW(a)}; DW=function(a){a.Qa&&(a.logger.debug("remove media source"),Dwa(a.Qa),a.aA(),a.Qa.dispose(),a.Qa=null)}; y4a=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.Dr()&&a.videoData.SQ()&&Fwa(a.mediaElement);var b=a.mediaElement.Mr(a.iA(),a.NP())}catch(d){if(u1a(a.zl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Mf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}jTa(a,b)}var c;return((c=a.Mr())==null?void 0:c.C)||null}; jTa=function(a,b,c,d){function e(f){try{z4a(a,f,c,d)}catch(h){g.yw(h),a.handleError(new $D("fmt.unplayable",{msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},1))}} c=c===void 0?!1:c;d=d===void 0?!1:d;A4a(a);a.Qa=b;WE(a)&&YE(a.Qa)==="open"?e(a.Qa):ywa(a.Qa,e)}; A4a=function(a){if(a.ya){var b=a.getCurrentTime()-a.Dc();a.ya.seek(b,{}).Xk(function(){})}else m4a(a)}; z4a=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&RP(a.videoData)&&(e=25200);if(a.Qa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e}); f>a.Qa.getDuration()&&a.Qa.Yo(f)}else a.Qa.Yo(e);T_a(a.ya,a.Qa,c,d);a.publish("mediasourceattached")}}; Y_a=function(a,b){p4a(a,b.reason,b.j.info,b.token,b.videoId)}; GZ=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d,e,f;return g.J(function(h){if(h.j==1){a.ya&&a.ya.qx();a.ya&&a.ya.La()&&x_(a);if(a.L("html5_enable_vp9_fairplay")&&a.ej()&&(d=a.videoData.j)!=null)for(var l in d.j)d.j.hasOwnProperty(l)&&(d.j[l].j=null,d.j[l].C=!1);a.Ec(iF(a.playerState,2048));a.publish("newelementrequired");return b?g.G(h,v_(a),2):h.Ha(2)}a.videoData.Vb()&&((e=a.ya)==null?0:e.Aa)&&!l_(a)&&((f=a.isAtLiveHead())&&OP(a.videoData)?a.seekTo(Infinity,{Zc:"videoPlayer_getNewElement"}): a.videoData.Wd&&a.ya&&(l=a.ya,l.manifest.Vb&&(l.manifest.Wd||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{Zc:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):rN(l.manifest)&&XY(l))));c&&a.seekTo(0,{seekSource:105});g.Z(a.playerState,8)&&a.playVideo();g.va(h)})}; C_=function(a,b){a.oa("hgte",{ne:+b});a.videoData.Y=!1;b&&GZ(a);a.ya&&Q_a(a.ya)}; rTa=function(a,b){a.oa("newelem",{r:b});GZ(a)}; B4a=function(a,b){a.Lb.D.MR();g.Z(a.playerState,32)||(a.Ec(iF(a.playerState,32,b==null?void 0:b.seekSource)),g.Z(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Tc()}; iUa=function(a,b){b=b==null?void 0:b.seekSource;g.Z(a.playerState,32)?(a.Ec(kF(a.playerState,16,32,b)),a.publish("endseeking",a)):g.Z(a.playerState,2)||a.Ec(iF(a.playerState,16,b));a.Lb.D.RR(a.videoData,a.playerState.isPaused())}; C4a=function(a,b){a.W.experiments.kb("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.tL(),b&&a.Mf("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; xNa=function(a){var b=0,c="";if(a.bd){if(a.bd.Pn)return"D,";b=a.bd.LP();c=a.bd.Dl().substring(0,4)}else a.ub&&(b=a.ub.LP(),c=a.ub.Dl().substring(0,4));return b>0?(a="AD"+b+", ",c&&(a+=c+", "),a):""}; w_=function(a,b){a.publish("internalvideodatachange",b===void 0?"dataupdated":b,a,a.videoData)}; D4a=function(a){for(var b=g.w("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.LC.T(a.mediaElement,c.value,a.HL,a);a.W.tm&&a.mediaElement.dw()&&(a.LC.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.iaa,a),a.LC.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.jaa,a))}; gTa=function(a){g.fr(a.VL);E4a(a)||(a.VL=g.dr(function(){return E4a(a)},100))}; E4a=function(a){var b=a.mediaElement;b&&a.oL&&!a.videoData.Aa&&!Nz("vfp",a.Lb.timerName)&&b.ll()>=2&&!b.isEnded()&&KE(b.Fh())>0&&a.Lb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Aa&&b.getDuration()>0&&(b.isPaused()&&b.ll()>=2&&KE(b.Fh())>0&&(Nz("pbp",a.Lb.timerName)||a.Lb.tick("pbp"),!a.videoData.Yl||a.V0||b.isSeeking()||(a.V0=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),b_(a.oE,b))?(hTa(a),!0):!1}; hTa=function(a){g.fr(a.VL);a.Px.stop();a.videoData.Aa=!0;a.W.xp=!0;a.W.Kb=0;var b=a.zl;if(b.videoData.B){var c=b.Da.G,d=b.videoData.B.rb;c.C.has(d)&&(c.C.delete(d),c.B=!0)}b.j.stop();F4a(a);g.Z(a.playerState,8)&&a.Ec(jF(a.playerState,65));a.yu=!1;NUa(a.hc());g.Mo(a.uO);a.publish("playbackstarted");(a=g.Ma("yt.scheduler.instance.clearPriorityThreshold"))?a():Qs(0,0)}; F4a=function(a){var b=a.Ad.Od(),c={},d={};!Nz("pbs",a.Lb.timerName)&&zz.measure&&zz.getEntriesByName&&(zz.getEntriesByName("mark_nr")[0]?Gta("mark_nr"):Gta());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);a.mediaElement&&a.mediaElement.isPaused()&&(d.isPausedOnLoad=!0);d.itag=b.B?Number(b.B.itag):-1;b.Ed&&(d.preloadType=String(a.iZ?2:1));c.liveStreamMode=G4a[lQ(b)];c.playerInfo=d;a.Lb.infoGel(c);if(a.ya){b=a.ya.timing; window&&window.performance&&window.performance.getEntriesByName&&(b.C&&(c=window.performance.getEntriesByName(b.C),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var e in b)b.hasOwnProperty(e)&&a.Lb.tick(e,b[e])}}; H4a=function(a){a.hc().Dg();if(OP(a.videoData)&&Date.now()>a.VZ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&lN(a.videoData.j))){var b=a.hc();if(b.qoe){b=b.qoe;var c=b.provider.ea.tF(),d=g.FI(b.provider);e2a(b,d,c);c=c.C;isNaN(c)||g.LZ(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.gC(b.U())?!0:g.QN(b.U())==="TVHTML5"?b.il==="6":!1):b=g.gC(a.W);b&&a.oa("rawlat",{l:uT(a.bU,"rawlivelatency").toFixed(3)});a.VZ=Date.now()}a.videoData.B&&xE(a.videoData.B)&&(b=g4a(a))&& b.videoHeight!==a.eR&&(a.eR=b.videoHeight,p4a(a,"a",r4a(a,a.videoData.ob)))}; r4a=function(a,b){if(b.j.video.quality==="auto"&&xE(b.getInfo())&&a.videoData.Fd)for(var c=g.w(a.videoData.Fd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.eR&&d.j.video.quality!=="auto")return d.getInfo();return b.getInfo()}; b4a=function(a){if(!OP(a.videoData))return NaN;var b=0;a.ya&&a.videoData.j&&(b=RP(a.videoData)?a.ya.nJ.gh()||0:a.videoData.j.Ma);return(0,g.T)()/1E3-a.cf()-b}; J4a=function(a){a.mediaElement&&a.mediaElement.ri()&&(a.QK=(0,g.T)());a.W.Gq?g.cr(function(){I4a(a)},0):I4a(a)}; I4a=function(a){var b;if((b=a.Qa)==null||!b.Qm()){if(a.mediaElement)try{a.UL=a.mediaElement.playVideo()}catch(d){y_(a,"err."+d)}if(a.UL){var c=a.UL;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d}); if(!g.Z(a.playerState,4)&&!g.Z(a.playerState,256)&&a.UL===c)if(d&&d.name==="AbortError"&&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);y_(a,e);a.aX=!0;a.videoData.Jg=!0}})}}}; y_=function(a,b){g.Z(a.playerState,128)||(a.Ec(kF(a.playerState,1028,9)),a.oa("dompaused",{r:b}),a.publish("onAutoplayBlocked"))}; s_=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if((b=a.videoData.C)==null?0:b.j){c=y4a(a);var d;(d=a.ya)==null||d.resume()}else x_(a),a.videoData.ob&&(c=a.videoData.ob.xD());b=c;d=a.mediaElement.II();c=!1;d&&b!==null&&b.resource===d.resource||(K4a(a,b),c=!0);g.Z(a.playerState,2)||(b=a.Qc,b.G||!(b.D>0)||b.mediaElement&&b.mediaElement.getCurrentTime()>0||(d={Zc:"seektimeline_resumeTime"},b.videoData.Aa||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(PP(a.videoData)){if(!a.videoData.ej())break a}else if(!g.jQ(a.videoData))break a; if(a.mediaElement)if((d=a.videoData.G)&&a.mediaElement.dw()){var e=a.mediaElement.Ib();if(a.Be)if(e!==a.Be.element)D_(a);else if(b&&d.flavor==="fairplay"&&!Er())D_(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&Er()&&d.flavor==="widevine")a.Mf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Be=new h1a(e,a.videoData,a.W);a.Be.subscribe("licenseerror",a.zL,a);a.Be.subscribe("qualitychange",a.Yaa,a);a.Be.subscribe("heartbeatparams", a.BG,a);a.Be.subscribe("keystatuseschange",a.uq,a);a.Be.subscribe("ctmp",a.oa,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&d.flavor==="widevine"&&a.Be.py(new wY(L4a,"cenc",!1));b=g.w(a.MB.keys);for(d=b.next();!d.done;d=b.next())d=a.MB.get(d.value),a.Be.py(d);a.L("html5_eme_loader_sync")||a.MB.removeAll()}}else a.Mf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c}; K4a=function(a,b){a.Lb.tick("vta");Pz("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&F3a(a.Qc,a.getCurrentTime());a.mediaElement.activate(b);a.Qa&&Qs(0,4);!a.videoData.Aa&&a.playerState.isOrWillBePlaying()&&a.Px.start();if(s4a(a)){var c;if(b=(c=a.mediaElement)==null?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}}; D_=function(a){a.Be&&(a.Be.dispose(),a.Be=null)}; yW=function(a,b){b=b===void 0?!1:b;OP(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.hq()||g.qQ(a.videoData))?a=a.getCurrentTime():g.SP(a.videoData)&&a.ub?(b=a.ub,a=a.getCurrentTime(),a=(a=CUa(b,a*1E3))?(a.ai()-a.bf())/1E3:0):a=a.Vd(b);return a}; M4a=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(D_(a),DW(a),y4a(a)):(a.videoData.ob&&a.videoData.ob.uT(),a.mediaElement.stopVideo()),a.playVideo())}; N4a=function(a,b){a.W.L("html5_log_rebuffer_reason")&&a.oa("bufreason",{r:b,lact:ov()})}; VW=function(a,b,c,d,e,f,h,l,m){var n;if((n=a.videoData.j)==null?0:n.isLive){var p=c.playerType===2?c:b,q=b.videoData.videoId,r=c.videoData.videoId;if(q&&r){n=a.hc();if(n.qoe){var t=n.qoe,u=b.cpn,y=c.cpn,A=p.videoData.wc,D=t.provider.videoData.clientPlaybackNonce,F=t.provider.videoData.videoId,H=y!==D&&r!==F;D=u!==D&&q!==F;t.reportStats();t.adCpn&&t.adCpn!==u||(t.adCpn=D?u:"",t.Y=D?q:"",t.adFormat=D?A:void 0,hX(t,2,h?4:f?2:0,y,r,e),t.reportStats(),t.adCpn=H?y:"",t.Y=H?r:"",t.adFormat=H?A:void 0,hX(t, 2,h?5:f?3:1,u,q,d),t.reportStats())}d=b.cpn;if(n.C.has(d)){if(f=n.C.get(d),XZ(f,!0).send(),WZ(f),d!==n.provider.videoData.clientPlaybackNonce){K2a(f);var M;(M=n.j)==null||F2a(M);n.C.delete(d)}}else n.Ng=n.provider.videoData.clientPlaybackNonce,n.Ng&&n.j&&(n.C.set(n.Ng,n.j),XZ(n.j).send(),WZ(n.j));M=c.cpn;p=p.videoData;e-=a.fu();if(n.C.has(M)){e=n.C.get(M);var N=e.C&&isNaN(e.D)?VZ(e):NaN;e=J2a(e,!1);isNaN(N)||(e.G=N);e.send()}else e=W2a(n,n.provider,p,e),n.C.set(M,e),L2a(e,new g.dy(iF(new g.fF,8), new g.fF)),E2a(e),(N=n.j)==null||WZ(N);n.Ng=M;a.L("html5_unify_csi_server_stitched_transition_logging")?PNa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,c.videoData,l,void 0,m):(n=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===n?"video":"ad")+"_to_"+(c.cpn===n?"video":"ad"),n={},a.K&&(n.cttAuthInfo={token:a.K,videoId:a.videoId}),l&&(n.startTime=l),Mz(b,n),g.Lz({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),Kz("pbs",m!=null?m:(0,g.T)(),b))}}}; p1a=function(a,b){a.videoData.IU=!0;a.Id(new $D("qoe.restart",b));GZ(a,!0)}; O4a=function(a,b){if(a.W.zc()&&a.mediaElement){var c=a.mediaElement.uc();c.omt=(a.mediaElement.getCurrentTime()+a.Dc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(g.FI(a.hc().provider)*1E3).toFixed();c.e=b;a.XL[a.W0++%5]=c}try{if(b==="timeupdate"||b==="progress")return}catch(d){}a.logger.debug(function(){return"video element event "+b})}; P4a=function(a){if(a.W.zc()){a.XL.sort(function(d,e){return+d.rt-+e.rt}); for(var b=g.w(a.XL),c=b.next();!c.done;c=b.next())c=c.value,a.oa("vpe",Object.assign({t:c.rt},c));a.XL=[];a.W0=0}}; Q4a=function(a){if(g.Br("cobalt")&&g.Br("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.oa("nxdock",{d:b})}}; fTa=function(a,b,c,d,e){a.oa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})}; B_=function(a,b){var c;(c=a.ya)==null||uZ(c,b)}; sZ=function(a){return g.Nb(a.Aq,"ad")}; q1a=function(a){return g.SP(a.videoData)&&a.ub?AUa(a.ub):!1}; j4a=function(a){MP(a.videoData,"html5_set_debugging_opt_in")&&(a=g.Bs(),g.Cs(0,183)||(Es(183,!0),a.save()))}; R4a=function(a){return g.SP(a.videoData)&&a.ub?fX(a.ub):a.videoData.Vd()}; w0a=function(a,b){a.Ad.Eo()||(a.oa("sgap",{f:b}),a.Ad.clearQueue(!1,b==="pe"))}; l_=function(a){return PP(a.videoData)&&a.L("html5_disable_video_player_initiated_seeks")}; g.E_=function(a,b,c,d){g.O.call(this);var e=this;this.logger=new g.uN("App");this.uB=this.Bj=!1;this.jt={};this.eM={};this.kC=[];this.zZ=!1;this.MQ=null;this.EZ=!1;this.Hx=!0;this.KT=!1;this.ZZ=this.gR=null;this.m_=!0;this.mediaElement=this.Hb=null;this.CR=NaN;this.QG=!1;this.ze=this.NC=this.ub=this.xe=this.screenLayer=this.wb=this.playlist=null;this.hd={Cf:function(){return e.ub}, GH:function(h){e.ub=h}, mO:function(h,l){e.ub&&e.ub.mO(h,l)}}; this.logger.debug("constructor begin");this.config=Gna(b||{});this.webPlayerContextConfig=c;Tna();b=this.config.args||{};this.W=new EO(b,c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.P(this,this.W);QTa(this.W);STa(this.W);this.W.experiments.kb("jspb_serialize_with_worker")&&Aqa();this.W.experiments.kb("gzip_gel_with_worker")&&spa();this.W.B&&!S4a&&(window.addEventListener(nO?"touchstart":"click",YSa,{capture:!0,passive:!0}),S4a=!0);this.L("html5_onesie")&&(this.uy=new pW(this.W), g.P(this,this.uy));this.z2=Qr(sO(this.W)&&!0,b.enablesizebutton);this.ZQ=Qr(!1,b.player_wide);this.visibility=new yTa;g.P(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.wC(Qr(!1,b.player_wide));this.Bj=Qr(!1,b.external_list);this.events=new g.iE(this);g.P(this,this.events);this.L("start_client_gcf")&&(rv(wv(),{bH:Xt,AU:Poa()}),this.H7=wv().resolve(Xt),Soa(this.H7));this.lda=new SQ;g.P(this,this.lda);this.Vr=new sVa;d=new TQ;this.Ua=new g.gR(this,d);g.P(this,this.Ua);this.template= new mVa(this);g.P(this,this.template);this.appState=1;this.Si=T4a(this);g.P(this,d);d={};this.rO=(d.internalvideodatachange=this.KR,d.playbackready=this.paa,d.playbackstarted=this.qaa,d.statechange=this.raa,d);this.C8=new IT(this.Ua);this.Rd=U4a(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");if(d&&V4a||b)this.W.dk=COa(this.Rd,b),lU(this.W.dk.nf(function(h){e.W.wd=h;var l;(l=g.ZQ(e))==null||l.oa("wasm",{a:h.Co})}),function(h){g.yw(h); h="message"in h&&h.message||h.toString()||"";var l;(l=g.ZQ(e))==null||l.oa("wasm",{e:h})}); else if(d&&!V4a){var f;(f=g.ZQ(this))==null||f.oa("wasm",{e:"wasm unavailable"})}this.Lb=new KT(this.W,this.Rd);this.Ua.publish("csiinitialized");this.sb=W4a(this);this.sb.setPlaybackRate(this.W.D?1:X4a(this,Number(g.vs("yt-player-playback-rate"))||1));g.Yw(this.sb,this.rO,this);e4a(this.sb);f={};this.e1=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.MR,f.contentPoTokenReady=this.zG,f.endseeking=this.RR,f.internalAbandon= this.CG,f.internalaudioformatchange=this.tG,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.NG,f.liveviewshift=this.Zaa,f.playbackstalledatstart=this.uca,f.progresssync=this.Iba,f.onAbnormalityDetected=this.tL,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.EB,f.SEEK_TO=this.ica,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.xba,f.playbackready=this.yba, f.statechange=this.J0,f.connectionissue=this.yG,f.newelementrequired=this.o0,f.heartbeatparams=this.BG,f.videoelementevent=this.HL,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.pca,f.nonfatalerror=this.pba,f);this.Mu=new g.iE(this);g.P(this,this.Mu);f=10;g.iC(this.W)&&(f=3);LO(this.W)&&(f=g.VB(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Nu=new sX;g.P(this,this.Nu);this.Ay=new qX(f,function(h){h!==g.ZQ(e,h.getPlayerType())&&h.dispose()}); g.P(this,this.Ay);this.yP=this.OJ=-1;this.rM=new g.Lo(this.template.resize,16,this.template);g.P(this,this.rM);this.bd=new SUa(this.Ua,this.W,this.sb);this.Cq=new MW(this.W);this.Zk=new pTa(this);g.P(this,this.Zk);this.hN=new uW(this);g.P(this,this.hN);gVa(this.W.j.c);this.events.T(this.Ua,g.NC("appapi"),this.maa);this.events.T(this.Ua,g.OC("appapi"),this.naa);this.events.T(this.Ua,g.NC("appprogressboundary"),this.Hba);this.events.T(this.Ua,g.OC("applooprange"),this.uM);this.events.T(this.Ua,"presentingplayerstatechange", this.Mk);this.events.T(this.Ua,"resize",this.Uba);this.template.Ja(Zd(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.rba);this.Rd.J.U().Fj&&vU(this.Rd,"offline");this.W.Ya&&g.RT("ux",g.nW);this.VW=new g.Lo(this.pda,g.VB(this.W.experiments,"html5_defer_fetch_att_ms"),this);g.P(this,this.VW);this.Od().ue()&&(g.xs()&&this.Od().Ga.push("remote"),Y4a(this));this.Lb.tick("fs");Z4a(this);this.W.Ya&&vU(this.Rd,"ux",!0);g.qO(this.Rd.J.U())&&vU(this.Rd,"embed");this.L("web_player_sentinel_is_uniplayer")|| g.yw(new g.Hs("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.hr("web_player_sentinel_yt_experiments_sync");a!==f&&g.yw(new g.Hs("b/195699950",{yt:a,player:f}));c||g.yw(new g.Hs("b/179532961"));this.s3=$4a(this);if(c=g.VB(this.W.experiments,"html5_block_pip_safari_delay"))this.EP=new g.Lo(this.kX,c,this),g.P(this,this.EP);ur=this.W.yc;c=g.VB(this.W.experiments,"html5_performance_impact_profiling_timer_ms");c>0&&(this.R0= new g.Je(c),g.P(this,this.R0),this.events.T(this.R0,"tick",function(){e.S0&&a5a.gA("apit",e.S0);e.S0=a5a.AC()})); this.Ua.publish("applicationInitialized");this.logger.debug("constructor end")}; $4a=function(a){function b(c){c.stack&&c.stack.indexOf("player")!==-1&&(c={n:c.name,m:c.message},(a.wb||a.sb).hc().Id("player.exception",ZD(c)))} zw.subscribe("handleError",b);Gq.push(b);return function(){zw.unsubscribe("handleError",b);var c=Gq.indexOf(b);c!==-1&&Gq.splice(c,1)}}; W4a=function(a){var b=new g.EP(a.W,a.config.args);a.Ua.publish("initialvideodatacreated",b);return a.Xz(1,b)}; b5a=function(a,b){if(a.sb!==b){b.getVideoData().autonavState=a.sb.getVideoData().autonavState;Zw(a.sb,a.rO,a);var c=a.sb.getPlaybackRate();a.sb.dispose();a.sb=b;a.sb.setPlaybackRate(c);g.Yw(b,a.rO,a);Y4a(a)}}; U4a=function(a){var b="",c=kVa(a);c.indexOf("//")===0&&(c=a.W.protocol+":"+c);var d=c.lastIndexOf("/base.js");d!==-1&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.yw(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new tU(a.Ua,b);c5a(a,b);return b}; c5a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c); b.C=c}; T4a=function(a){if(a.W.storeUserVolume){a=g.vs("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.Bd(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.W.mute};return a}; F_=function(a){a.mediaElement=a.W.deviceIsAudioOnly?new g.qT(g.he("AUDIO")):tW.pop()||new g.qT(g.he("VIDEO"));g.P(a,a.mediaElement);a.wb&&a.wb.setMediaElement(a.mediaElement);try{a.W.Wc?(a.NC&&a.events.Oc(a.NC),a.NC=a.events.T(a.mediaElement,"volumechange",a.jba)):(a.mediaElement.pC(a.Si.muted),a.mediaElement.setVolume(a.Si.volume/100))}catch(e){a.Tg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g, "_")));return}g.ps(a.Mu);d5a(a);var b=a.template,c=a.mediaElement.Ib();b.Bc=c;b.AK=!1;b.Bc.parentNode||ne(b.Uz,b.Bc,0);b.cM=new g.Sl(0,0,0,0);rVa(b);uX(b);c=b.Bc;g.To(c,"video-stream");g.To(c,g.tX.MAIN_VIDEO);var d=b.app.U();d.Wk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in cE()&&(c.playsInline=!0):d.qm&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.zq&&b.Bc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Tg("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}}; CW=function(a,b,c){if(a.wb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId}); var d=null;if(a.wb){d=a.wb.getPlayerState();a.logger.debug("set presenting player, destroy modules");wU(a.Rd,3);G_(a,"cuerangesremoved",a.wb.Cl());a.Zk&&!b.isGapless()&&a.wb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=WE(b)&&WE(a.wb);a.Lb.Ev("iv_s");e5a(a,e)}b.getPlayerType()===1&&b5a(a,b);f5a(a,b);a.wb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.Yw(b,a.e1,a);if(b.NK())g5a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.lF(d,b.getPlayerState())&& a.J0(new g.dy(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&b.getPlayerType()===1;if(b.Bq.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Bi("onPlaybackQualityChange",c.quality);G_(a,"cuerangesadded",a.wb.Cl());c=b.getPlayerState();g.Z(c,2)?h5a(a):g.Z(c,8)?b.playVideo():b.OF()&&b.pauseVideo();if(b.getPlayerType()===2){var f;b.getVideoData().EW=(f=g.ZQ(a,1))==null?void 0:f.getVideoData().clientPlaybackNonce}b.getPlayerType()!== 2||a.Ff()||(f=b.getVideoData(),a.sb.Ey(f.clientPlaybackNonce,f.wc||"",f.breakType||0,f.Ij,f.videoId||""));a.logger.debug("finish set presenting player")}}}; h5a=function(a){if(!i5a(a)){var b=a.sb.Le();b&&(b=b.SE(),b instanceof Promise&&b.catch(function(){})); H_(a,nF(a.getPlayerStateObject()))}}; d5a=function(a){var b=a.mediaElement;gE()?a.Mu.T(b,"webkitpresentationmodechanged",a.fca):window.document.pictureInPictureEnabled&&(a.Mu.T(b,"enterpictureinpicture",function(){a.Ny(!0)}),a.Mu.T(b,"leavepictureinpicture",function(){a.Ny(!1)})); Jr&&(a.Mu.T(b,"webkitbeginfullscreen",function(){a.jn(3)}),a.Mu.T(b,"webkitendfullscreen",function(){a.jn(0)}))}; f5a=function(a,b){var c=b.getPlayerType();if(b!==a.sb&&b!==a.jt[c]){var d;(d=a.jt[c])==null||d.dispose();a.jt[c]=b}}; e5a=function(a,b){b=b===void 0?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Sj(),F_(a));a.wb&&(a.wb.Sj(!b),Zw(a.wb,a.e1,a),a.wb.getPlayerType()!==1&&a.wb.dispose());a.wb=null;a.logger.debug("finish clear presenting player")}; g.ZQ=function(a,b){return b?b===1?a.sb:a.getVideoData().enableServerStitchedDai&&b===2?a.getVideoData().enablePreroll?a.jt[2]||a.wb:a.wb:g.SP(a.getVideoData())&&b===2?a.jt[2]||a.wb:a.jt[b]||null:a.wb}; j5a=function(a,b,c,d){a=a.Xz(b,c,d);e4a(a);return a}; I_=function(a,b){return a.Ff(b)?a.sb:b}; J_=function(a,b){var c=a.wb;return c&&b===a.sb&&a.Ff(b)&&a.Ff(c)?c:b}; m5a=function(a){a.logger.debug("start application playback");if(a.sb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=K_(a);a.Od().isLoaded();b&&a.Nq(6);k5a(a);uOa(a.Rd)||l5a(a)}}; l5a=function(a){if(!K_(a)){var b=xU(a.Rd);b&&!b.created&&lOa(a.Rd)&&(a.logger.debug("reload ad module"),b.create())}}; k5a=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Rd;uOa(c)||c.dP();!V4a&&c.J.L("html5_allow_asmjs")&&BOa(c);vU(c,"embed");vU(c,"inline_preview");vU(c,"kids");vU(c,"remote");vU(c,"miniplayer");vU(c,"offline");vU(c,"unplugged");vU(c,"ypc",!1,!0);vU(c,"ypc_clickwrap",!1,!0);vU(c,"yto",!1,!0);vU(c,"webgl",!1,!0);vOa(c)||(vU(c,"captions",!0),vU(c,"endscreen"),c.rJ(),vU(c,"creatorendscreen",!0));c.AX();a.Ua.publish("videoready",b)}; L_=function(a){a=a.Od();a.ue();return BQ(a)}; Z4a=function(a){a.logger.debug("start prepare initial playback");a.kP();var b=a.config.args;F_(a);var c=a.Od();a.Ua.Bi("onVolumeChange",a.Si);if(b&&NT(b)){var d=IO(a.W);d&&!a.Bj&&(b.fetch=0);var e=g.qO(a.W);e&&!a.Bj&&(b.fetch=0);M_(a,b);g.qO(a.W)&&a.Lb.tick("ep_pr_s");if(!d||a.Bj)if(e&&!a.Bj)n5a(a);else if(!c.ue())a.playlist.onReady(function(){N_(a)})}CW(a,a.sb); g.Z(a.sb.getPlayerState(),128)||(b=rwa(!a.W.deviceIsAudioOnly),b==="fmt.noneavailable"?a.Tg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):b==="html5.missingapi"?a.Tg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.ue()&&L_(a)&&(a.W.Gi||a.W.Vi)?O_(a):c.HD?a.Ua.mutedAutoplay():g.vs("yt-player-playback-on-reload")?(g.Xs("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.Aa}),g.us("yt-player-playback-on-reload",!1),O_(a)):QO(a.W)||o5a(a),g.KO(a.W)||g.QN(a.W)=== "MWEB"?(g.Ms(g.Os(),function(){P_(a)}),g.Ms(g.Os(),function(){aua()})):(P_(a),aua()),a.logger.debug("finish prepare initial playback"))}; P_=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.Mo(a.VW);else{var b=a.getVideoData().botguardData;b&&g.IK(b,a.W,a.getVideoData().xr||"")}}; o5a=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.publish("initializingmode");a.Nq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.MO(a.W)?g.Ms(g.Os(),function(){vU(a.Rd,"remote")}):vU(a.Rd,"remote"); vU(a.Rd,"miniplayer");a.logger.debug("initialized to CUED mode")}; O_=function(a){a.logger.debug("start initialize application playback");if(g.Z(a.sb.getPlayerState(),128))return!1;var b=a.sb.getVideoData();L_(a)&&a.W.Vi&&(tW.length&&a.uB?(Q_(a,{muted:!1,volume:a.Si.volume},!1),R_(a,!1)):tW.length||a.Si.muted||(Q_(a,{muted:!0,volume:a.Si.volume},!1),R_(a,!0)));L_(a)&&g.qO(a.W)&&b.mutedAutoplay&&(Q_(a,{muted:!0,volume:a.Si.volume},!1),R_(a,!0));b.kZ&&Q_(a,{muted:!0,volume:a.Si.volume},!1);p5a(a,1,b,!1);a.Ua.publish("initializingmode");CW(a,a.sb);a.Nq(3);var c;if(!(c= !a.W.Dn)){if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.zZ}c&&(a.Sj(),F_(a),a.sb.setMediaElement(a.mediaElement));n4a(a.sb);if(g.Z(a.sb.getPlayerState(),128))return!1;b.Yl||H_(a,3);return a.zZ=!0}; K_=function(a){a=jR(a.Rd);return!!a&&a.loaded}; q5a=function(a,b){if(!a.Hb)return!1;var c=a.Hb.startTimeMs*.001-1,d=a.Hb.endTimeMs*.001;a.Hb.type==="repeatChapter"&&d--;return Math.abs(b-c)<=1E-6||Math.abs(b-d)<=1E-6||b>=c&&b<=d}; t5a=function(a){var b,c=(b=g.ZQ(a))==null?void 0:b.ya;a.wb&&$P(a.getVideoData())&&c&&c.policy.Xa&&(b=g.VB(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=r5a(a)*1E3-b,a.L("html5_gapless_new_slr")?(a=a.hN,s5a(a.app,"gaplessshortslooprange"),b=new g.LC(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Vc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))}; u5a=function(a){if(!(g.Z(a.sb.getPlayerState(),64)&&a.Od().isLivePlayback&&a.Hb.startTimeMs<5E3)){if(a.Hb.type==="repeatChapter"){var b,c=(b=bMa(a.Bb()))==null?void 0:b.Ki(),d;b=(d=a.getVideoData())==null?void 0:d.Yk;c instanceof g.LU&&b&&(d=b[cV(b,a.Hb.startTimeMs)],c.lH(0,d.title));isNaN(Number(a.Hb.loopCount))?a.Hb.loopCount=0:a.Hb.loopCount++;a.Hb.loopCount===1&&a.Ua.ib("innertubeCommand",a.getVideoData().x4)}c={Zc:"application_loopRangeStart"};if(a.Hb.type==="clips"||a.Hb.type==="shortsLoop")c.seekSource= 58;a.sb.seekTo(a.Hb.startTimeMs*.001,c)}}; X4a=function(a,b){var c=a.Ua.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(b*100+.001)%5,b=a===0?b:Math.floor((b-a*.01)*100+.001)/100);return b}; r5a=function(a,b){b=g.ZQ(a,b);if(!b)return 0;b=I_(a,b);return S_(a,yW(b),b)}; S_=function(a,b,c){if(a.Ff(c)){c=c.getVideoData();if(T_(a))c=b;else{a=a.bd;for(var d=g.w(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.rd===e.rd){b+=e.pc/1E3;break}d=b;a=g.w(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.rd===e.rd)break;var f=e.pc/1E3;if(f1&&(e=!1);if(!a.QG||e!==b){c=c.lock(e?"portrait":"landscape");if(c!=null)c["catch"](function(){}); a.QG=!0}}else a.QG&&(a.QG=!1,c.unlock())}; G_=function(a,b,c){a.Ua.publish(b,c);var d=g.iC(a.W)||g.xO(a.W)||g.yy(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.ib(e,c.map(function(f){return{getId:function(){return this.id}, end:f.end,id:f.getId(),namespace:f.namespace==="ad"?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}}; Z_=function(a,b,c,d,e,f){c=c===void 0?!0:c;var h=g.ZQ(a,e);h&&(h.getPlayerType()===2&&!a.Ff(h)||g.qQ(h.getVideoData()))||(a.getPresentingPlayerType()===3?jR(a.Rd).AG("control_seek",b,c):(h===a.sb&&a.Hb&&!q5a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))}; g5a=function(a,b,c){c&&(a.Sj(),F_(a));c=g.ZQ(a);c.Id(new $D("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?RP(d)&&g.gC(a.W)&&(e.live_utc_start=c.cf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.ra&&(e.vvt=d.ra);d.K&&(e.vss_credentials_token=d.K,e.vss_credentials_token_type=d.yn);d.oauthToken&&(e.oauth_token=d.oauthToken);d.En&&(e.force_gvi=d.En);e.autoplay=1;e.reload_count=d.yc+1;e.reload_reason=b;d.bD&&(e.unplugged_partner_opt_out= d.bD);d.Xi&&(e.ypc_is_premiere_trailer=d.Xi);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);b==="signature"&&a.xe&&l5a(a)}; J5a=function(a,b){a.Od().autonavState=b;g.us("yt-player-autonavstate",b);a.Ua.publish("autonavchange",b)}; K5a=function(a){var b=a.getVideoData().bl,c=a.W.ob,d=a.isInline()&&!a.getVideoData().R1,e=a.mediaElement;b||c||d?e.mP():(e.qP(),Q_(a,a.Si))}; U_=function(a){var b=xU(a.Bb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())}; T_=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.xe}; L5a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.w(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Zl(a,d);b.hidden=!!a.hidden}; kVa=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?iq(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""}; M5a=function(a){return a.isTimeout?"NO_BID":"ERR_BID"}; N5a=function(){var a=null;qna().then(function(b){return a=b},function(b){return a=M5a(b)}); return a}; O5a=function(){var a=Le(1E3,"NO_BID");return He(kca([qna(),a]).Xk(M5a),function(){a.cancel()})}; $_=function(a){return a.ge?g.Cs(g.Bs(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; a0=function(a){this.player=a;this.C=this.j=1}; R5a=function(a,b,c,d,e){b.client||(b.client={});a.player.U().L("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=c);var f=Vq(c),h=g.Ai(c)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.Ai(c)?!1:!0;if(f||h||d!==""){var l={};c=Pq($q(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");n.length>1&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))}); m.has("bid")&&(l.bid=m.get("bid"));l.params=[];P5a.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))}); Q5a(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;a!=null&&a!=="cosver"&&(b.client.osVersion=a);a=e.j.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(b.client.platform=a);a=e.j.cmodel;a!=null&&a!=="cmodel"&&(b.client.deviceModel=a);a=e.j.cplayer;a!=null&&a!=="cplayer"&&(b.client.playerType=a);e=e.j.cbrand;e!=null&&e!=="cbrand"&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1}; U5a=function(a,b){var c=!1;if(b==="")return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";d[0]==="!"&&(d=d.substring(1),h="INACTIVE");d=d.split("-");d.length<3||(d[0]in S5a&&(f.clientName=S5a[d[0]]),d[1]in T5a&&(f.platform=T5a[d[1]]),f.applicationState=h,f.clientVersion=d.length>2?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)}); return c}; W5a=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in V5a))return!1;a=a.split(RegExp("[:&]"));var b=V5a.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(b/31)).toString();b=1<=2?h[1]:"";var l=Y5a.test(b),m=Z5a.exec(b);m=m!=null&&m.length>=2?m[1]:"";var n=$5a.exec(b);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=a6a.exec(b),q=p!=null&&p.length>=2?p[1]:"0",r=BO(a.player.U().Fa);p=a.player.getVideoData(1);var t=g.Ly(p.Ma,!0),u="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";R5a(a,t,b,u.toString(),a.player.U()); var y={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19936,autonavState:$_(a.player.U())};d&&(d={},U5a(d,c.YT_REMOTE)&&(y.mdxContext=d));if(d=b6a.includes(r)?void 0:g.xr("PREF")){for(var A=d.split(RegExp("[:&]")),D=0,F=A.length;D1&&H[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0; break}}y.autoCaptionsDefaultOn=W5a(d)}b=c6a.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:y};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:Pq($q(u.toString())),overridePlaybackContext:b};e!==void 0&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams= c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(c.AD_BREAK_LENGTH*1E3).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(a.player.getCurrentTime(1)*1E3);(a=KLa(p))&&(h.getAdBreakContext=a);return h}; e6a=function(){a0.apply(this,arguments)}; f6a=function(a,b,c,d,e){var f=c.Sw;c=c.je;var h=a.player.U().Ij,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Eh:0,AUTONAV_STATE:$_(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.Lr()*1E3,LACT:ov(),LIVE_INDEX:f?a.C++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.qb().ji().height,P_W:a.player.qb().ji().width,YT_REMOTE:h?h.join(","): ""},m=Zq(Yq);Object.keys(m).forEach(function(n){m[n]!=null&&(l[n.toUpperCase()]=m[n].toString())}); d!==""&&(l.BISCOTTI_ID=d);d={};Xq(b)&&(d.sts="19936",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return Uq(g.lo(b,l),d)}; g6a=function(a,b){var c=a.player.U(),d,e=(d=a.player.getVideoData(1))==null?void 0:d.oauthToken;return g.TO(c,e).then(function(f){if(f&&Wq()){var h=sR();tR(h,f)}return g.Sz(a.player.Jm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})}; h6a=function(a){this.Oa=a}; i6a=function(a){this.J=a}; j6a=function(a){this.Oa=a}; l6a=function(a){g.O.call(this);this.eh=a;this.z6=k6a(this)}; k6a=function(a){var b=new sua(a.eh.od);g.P(a,b);a=g.w([new h6a(a.eh.Oa),new i6a(a.eh.J),new j6a(a.eh.Oa),new mA(a.eh.Kl,a.eh.Lo),new oA,new rA(a.eh.Lf,a.eh.Al,a.eh.Oa),new nA,new lA]);for(var c=a.next();!c.done;c=a.next())tua(b,c.value);a=g.w(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())pA(b,c.value,function(){}); return b}; b0=function(a){var b=a.Sa,c=a.Ca;a=a.Ne;var d=new uAa,e={On:new nwa(b.get(),c),Ca:c};return{Rb:new kJ(c,a,b,e),context:e,Qg:d}}; c0=function(a,b,c,d,e){g.O.call(this);this.J=a;this.B=b;this.Ia=c;this.Sa=d;this.yf=e;this.listeners=[];var f=new ns(this);g.P(this,f);f.T(a,"internalAbandon",this.CG);this.addOnDisposeCallback(function(){g.ps(f)})}; d0=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.C=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; m6a=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.D="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.C=!1;a.B=!1}; n6a=function(a,b){a=g.w(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){Kz("ad_i");g.Lz({isMonetized:!0});break}}; o6a=function(a){var b;(b=a.J.getVideoData(1))!=null&&b.Aa&&(a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),Mz("video_to_ad",b))}; UF=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});Mz("ad_to_video",b);p6a(a)}; p6a=function(a){if(a.C)if(a.D==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")Hz("video_to_ad");else{var b={adBreakType:xF(a.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType};a.actionType==="ad_to_video"?(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.Lz(b,a.actionType)}}; e0=function(a){g.O.call(this);this.J=a;this.j=new Map;this.B=new ns(this);g.P(this,this.B);this.B.T(this.J,g.NC("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.OC("ad"),this.onCueRangeExit,this)}; q6a=function(a,b,c,d,e){g.LC.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; f0=function(a){this.J=a}; g0=function(a){this.J=a}; r6a=function(a){return h0(a)&&yI(a,"html5_ssap_play_cached_preroll")}; LI=function(a,b){b=b===void 0?!1:b;return a.J.U().L("html5_ssap_force_ads_ctmp")?!0:(b||a.J.U().zc())&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")}; h0=function(a){var b,c;return(c=(b=a.J.getVideoData(1))==null?void 0:g.SP(b))!=null?c:!1}; yI=function(a,b){return a.J.U().L(b)}; s6a=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")}; EI=function(a){var b,c,d;return((b=a.J.getVideoData(1).getPlayerResponse())==null?void 0:(c=b.playerConfig)==null?void 0:(d=c.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1}; kAa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")}; t6a=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")}; hI=function(a){return a.J.U().experiments.kb("enable_desktop_player_underlay")}; u6a=function(a){return a.J.U().experiments.kb("html5_load_empty_player_in_media_break_sub_lra")}; IF=function(a){return a.J.U().experiments.kb("html5_load_ads_instead_of_cue")}; JF=function(a){return a.J.U().experiments.kb("html5_preload_ads")}; eJ=function(a){return a.J.U().experiments.kb("enable_ads_control_flow_deterministic_id_generation")}; v6a=function(a){return a.J.U().experiments.kb("enable_desktop_discovery_video_abandon_pings")}; w6a=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}}; x6a=function(){g.Xw.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.w(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; i0=function(){if(y6a===null){y6a=new x6a;ql(ko).B="b";var a=ql(ko),b=co(a)=="h"||co(a)=="b",c=!(vl(),!1);b&&c&&(a.D=!0,a.G=new Ija)}return y6a}; z6a=function(a,b,c){a.j[b]=c}; A6a=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}}; j0=function(a,b,c){this.Ia=a;this.J=b;this.Ca=c;this.B=new Set;this.j=new Map;i0().subscribe("adactiveviewmeasurable",this.gy,this);i0().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ey,this);i0().subscribe("adviewableimpression",this.iy,this);i0().subscribe("adaudioaudible",this.Yx,this);i0().subscribe("adaudiomeasurable",this.Zx,this)}; l0=function(a,b,c){var d=c.Bt,e=c.mI,f=c.listener,h=c.e7;c=c.Fo===void 0?!1:c.Fo;if(a.j.has(b))cy("Unexpected registration of layout in LidarApi");else{if(h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);Vk(vl().Lc,"fmd",1);Ska(ql(ko),d);var l=c?b:void 0;z6a(i0(),b,{RP:function(){if(!e)return{};var m=a.J.getPresentingPlayerType(!0),n;return(n=a.J.getVideoData(m))!=null&&n.isAd()?{currentTime:a.Ia.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:k0(a.Ia.get(),m).isPlaying(),isVpaid:!1,isYouTube:!0, volume:a.Ia.get().isMuted()?0:a.Ia.get().getVolume()/100}:{}}})}}; m0=function(a,b){a.j.has(b)?(a.j.delete(b),delete i0().j[b]):cy("Unexpected unregistration of layout in LidarApi")}; D6a=function(a,b,c){var d={};B6a(a,d,b,c);C6a(d);d.LACT=n0(function(){return ov().toString()}); d.VIS=n0(function(){return a.getVisibilityState().toString()}); d.SDKV="h.3.0";d.VOL=n0(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()}); d.VED="";return d}; E6a=function(a,b){var c={};if(b)return c;if(!a.kind)return g.xw(Error("AdPlacementConfig without kind")),c;if(a.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||a.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.xw(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=n0(Xc(Math.round(Vd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=n0(Xc("0"));return c}; n0=function(a){return{toString:function(){return a()}}}; F6a=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.Bc(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}; B6a=function(a,b,c,d){b.CPN=n0(function(){var e;(e=a.getVideoData(1))?e=e.clientPlaybackNonce:(g.yw(Error("Video data is null.")),e=null);return e}); b.AD_MT=n0(function(){if(d!=null)var e=d;else{var f=c;a.U().L("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var h=a.getPresentingPlayerType(!0),l;e=((l=a.getVideoData(h))==null?0:l.isAd())?G6a(a,h,f):0}else e=G6a(a,2,f)}return Math.round(Math.max(0,e*1E3)).toString()}); b.MT=n0(function(){return Math.round(Math.max(0,a.getCurrentTime(1,!1)*1E3)).toString()}); b.P_H=n0(function(){return a.qb().ji().height.toString()}); b.P_W=n0(function(){return a.qb().ji().width.toString()}); b.PV_H=n0(function(){return a.qb().getVideoContentRect().height.toString()}); b.PV_W=n0(function(){return a.qb().getVideoContentRect().width.toString()})}; C6a=function(a){a.CONN=n0(Xc("0"));a.WT=n0(function(){return Date.now().toString()})}; G6a=function(a,b,c){return c!==void 0?a.getCurrentTime(b,!1,c):a.getCurrentTime(b,!1)}; H6a=function(){}; I6a=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,u,y,A,D;g.J(function(F){switch(F.j){case 1:f=!!b.scrubReferrer;h=g.lo(b.baseUrl,F6a(c,f,d));l={};if(!b.headers){F.Ha(2);break}m=a.D();if(!m.j){n=m.getValue();F.Ha(3);break}return g.G(F,m.j,4);case 4:n=F.B;case 3:p=n;q=g.w(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.Eq("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.Eq("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Eq("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]= g.Eq("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(u=a.G())&&(l["X-Goog-PageId"]=u);break;case "AUTH_USER":y=a.j();!p&&y&&(l["X-Goog-AuthUser"]=y);break;case "DATASYNC_ID":if(A=void 0,(A=a.C())==null?0:A.kb("enable_datasync_id_header_in_web_vss_pings"))D=a.B(),Vq(h)&&g.Eq("LOGGED_IN")&&D&&(l["X-Yt-DataSync-Id"]=D)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.Hu(h,void 0,f,Object.keys(l).length!== 0?l:void 0,"",!0,e),g.va(F)}})}; J6a=function(a,b,c,d,e){this.D=a;this.G=b;this.j=c;this.B=d;this.C=e}; K6a=function(a,b){this.j=a;this.Ca=b}; o0=function(a,b,c,d,e,f,h){var l=l===void 0?new J6a(function(){var m=a.U(),n=a.getVideoData(1);return g.TO(m,n?g.DQ(n):"")},function(){return a.U().pageId},function(){return a.U().Aa},function(){var m; return(m=a.U().datasyncId)!=null?m:""},function(){return a.U().experiments}):l; this.J=a;this.B=b;this.zb=c;this.Sa=d;this.Rb=e;this.Ca=f;this.Qg=h;this.D=l;this.XH=null;this.j=new Map;this.C=new K6a(l,this.Ca)}; M6a=function(a,b,c,d,e){var f=OI(a.B.get(),c);f?(c=iD(a,L6a(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):cy("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; xva=function(a,b,c,d,e,f){d=d===void 0?[]:d;var h=OI(a.B.get(),b);if(h){var l=a.zb.get().Th(b,c),m=iD(a,L6a(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Rb.us("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new Xxa(n,p),void 0,void 0,h.adLayoutLoggingData))})}else cy("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b, trackingType:c})}; aG=function(a,b){g.Xs("adsClientStateChange",b)}; N6a=function(a,b){a.j.has(b.pA())?cy("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.pA(),b)}; O6a=function(a,b){a.j.delete(b.pA())||cy("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; dG=function(a,b,c){typeof c==="string"?a.J.getVideoData(1).Fy(b,c):a.J.getVideoData(1).oa(b,c)}; L6a=function(a){var b=OB(a.Ba,"metadata_type_ad_placement_config");a=OB(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,C_:a}}; iD=function(a,b,c,d,e,f){var h=c?P6a(a):{},l=c?Q6a(a,c.layoutId):{},m=R6a(a),n,p=e!=null?e:(n=tF(a.Sa.get(),2))==null?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=tF(a.Sa.get(),1).clientPlaybackNonce);e=void 0;if(c){var q;if((q=a.Qg.j.get(c.layoutId))==null?0:q.Fo)e=c.layoutId}q={};a=Object.assign({},D6a(a.J,e,d),E6a(b.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),l,h,m,(q.FINAL=n0(function(){return"1"}),q.AD_CPN=n0(function(){return p|| ""}),q)); (c==null?void 0:c.renderingContent)!==void 0||(a.SLOT_POS=n0(function(){return(b.C_||0).toString()})); c={};f=Object.assign({},a,f);a=g.w(Object.values(S6a));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],h!=null&&h.toString()!=null&&(c[d]=h.toString());return c}; P6a=function(a){var b={},c,d=(c=a.XH)==null?void 0:c.rj/1E3;d!=null&&(b.SURVEY_ELAPSED_MS=n0(function(){return Math.round(d*1E3).toString()})); b.SURVEY_LOCAL_TIME_EPOCH_S=n0(function(){return Math.round(Date.now()/1E3).toString()}); return b}; Q6a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.GP();if(!a)return{};b={};return b.YT_ERROR_CODE=a.jN.toString(),b.ERRORCODE=a.lI.toString(),b.ERROR_MSG=a.errorMessage,b}; R6a=function(a){var b={},c=a.J.getVideoData(1);b.ASR=n0(function(){var d;return(d=c==null?void 0:c.Tv)!=null?d:null}); b.EI=n0(function(){var d;return(d=c==null?void 0:c.eventId)!=null?d:null}); return b}; p0=function(a,b,c){g.O.call(this);this.J=a;this.Ts=b;this.Ca=c;this.listeners=[];this.jR=null;this.lO=new Map;b=new g.iE(this);g.P(this,b);b.T(a,"videodatachange",this.Hca);b.T(a,"serverstitchedvideochange",this.jca);this.Tw=tF(this)}; tF=function(a,b){var c=a.J.getVideoData(b);return c?a.ZI(c,b||a.J.getPresentingPlayerType(!0)):null}; T6a=function(a,b,c){var d=a.ZI(b,c);a.Tw=d;a.listeners.forEach(function(e){e.CL(d)})}; UD=function(a,b,c){a.J.getVideoData(1).oa(b,c)}; U6a=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; q0=function(a,b,c){g.O.call(this);this.J=a;this.Sa=b;this.Ca=c;this.listeners=[];this.yE=[];this.j=function(){cy("Called 'doUnlockPreroll' before it's initialized.")}; b=new ns(this);c=new g.iE(this);g.P(this,c);g.P(this,b);b.T(a,"progresssync",this.Jba);b.T(a,"presentingplayerstatechange",this.Aba);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.ph);b.T(a,"overlayvisibilitychange",this.Kj);b.T(a,"shortsadswipe",this.Mj);b.T(a,"resize",this.kc);c.T(a,g.NC("appad"),this.Jj)}; r0=function(a){h0(a.Ca.get())||a.j()}; V6a=function(a,b){a.yE=a.yE.filter(function(c){return c!==b})}; s0=function(a,b,c){return a.getCurrentTimeSec(b,c)}; W6a=function(a,b){var c;b=(c=a.Sa.get().lO.get(b))!=null?c:null;if(b===null)return cy("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a0){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&h.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&h.adTimeOffset&&h.adTimeOffset.offsetEndMilliseconds==="-1"&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)}); d.map(function(h){return g.Q(h,ZH)}).forEach(function(h){var l; (h=h==null?void 0:(l=h.slotEntryTrigger)==null?void 0:l.mediaTimeRangeTrigger)&&h.offsetEndMilliseconds==="-1"&&(h.offsetEndMilliseconds=f)})}return{Dw:e, adSlots:d,EC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}}; x0=function(a){g.O.call(this);this.J=a;this.listeners=[];this.j=new ns(this);g.P(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.JR);this.j.T(this.J,"aduxmouseout",this.IR);this.j.T(this.J,"muteadaccepted",this.haa)}; a7a=function(a,b,c){b=g.nl(b,function(d){return new vsa(d,c,d.id)}); a.J.ib("onAdUxUpdate",b)}; y0=function(a,b){a=g.w(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)}; z0=function(a,b){this.B=a;this.C=b===void 0?!1:b;this.j={}}; b7a=function(a,b){var c=a.startSecs+a.Eh;c=c<=0?null:c;if(c===null)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{O7:new ip(b,c),f$:new HL(b,c-b,a.context,a.identifier,a.event,a.j)}}; c7a=function(){this.j=[]}; oxa=function(a,b,c){var d=g.Yb(a.j,b);if(d>=0)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; A0=function(a,b,c){g.O.call(this);this.J=a;this.Ca=b;this.Oa=c;this.listeners=[];this.D=!1;this.WM=[];this.B=null;this.G=new z0(this,t6a(b.get()));this.C=new c7a;this.j=null}; d7a=function(a,b){a.WM.push(b);for(var c=!1,d=g.w(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.m0(b)||c;a.D=c}; f7a=function(a,b){aG(a.Oa.get(),{cuepointTrigger:{event:e7a(b.event),cuepointId:b.identifier,totalCueDurationMs:b.Eh*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})}; e7a=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 Kd(a,"Unexpected cuepoint event")}}; B0=function(a){this.J=a}; g7a=function(a,b){a.J.cueVideoByPlayerVars(b,2)}; C0=function(a){this.J=a}; D0=function(a){this.J=a}; h7a=function(a){this.J=a}; i7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=wC(function(){return new dJ(f.Ca)}); g.P(this,h);var l=wC(function(){return new fJ(h,f.Ca)}); g.P(this,l);var m=wC(function(){return new MI}); g.P(this,m);var n=wC(function(){return new JI(a)}); g.P(this,n);var p=wC(function(){return new gJ(h,l,f.Ca)}); g.P(this,p);var q=wC(function(){return new lJ}); g.P(this,q);this.Ac=wC(function(){return new x0(b)}); g.P(this,this.Ac);this.Mb=wC(function(){return new yC(e)}); g.P(this,this.Mb);this.Cc=wC(function(){return new d0(b)}); g.P(this,this.Cc);this.Pc=wC(function(){return new e0(b)}); g.P(this,this.Pc);this.md=wC(function(){return new B0(b)}); g.P(this,this.md);this.od=wC(function(){return new f0(b)}); g.P(this,this.od);this.Ca=wC(function(){return new g0(b)}); g.P(this,this.Ca);var r=wC(function(){return new w0(d)}); g.P(this,r);var t=wC(function(){return new WB(f.Ca)}); g.P(this,t);this.Zf=wC(function(){return new C0(b)}); g.P(this,this.Zf);this.Jo=wC(function(){return new BC}); g.P(this,this.Jo);this.Sa=wC(function(){return new p0(b,q,f.Ca)}); g.P(this,this.Sa);var u=b0({Sa:this.Sa,Ca:this.Ca,Ne:t}),y=u.context,A=u.Qg;this.Rb=u.Rb;this.yf=wC(function(){return new A0(b,f.Ca,f.Oa)}); g.P(this,this.yf);this.Gc=wC(function(){return new D0(b)}); g.P(this,this.Gc);this.Ia=wC(function(){return new q0(b,f.Sa,f.Ca)}); g.P(this,this.Ia);u=wC(function(){return new AI(h,p,l,f.Ca,t,"SLOT_TYPE_ABOVE_FEED",f.Ia,f.vk)}); g.P(this,u);this.jf=wC(function(){return new CC}); this.zb=wC(function(){return new j0(f.Ia,b,f.Ca)}); g.P(this,this.zb);this.Oa=wC(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Ca,A)}); g.P(this,this.Oa);this.Sk=new HI(GI,E0,function(F,H,M,N){return gI(l.get(),F,H,M,N)},n,p,l,t,this.Ca,this.Sa); g.P(this,this.Sk);this.Sd=new II(n,u,c,this.Ca,a,this.Sa,this.Ia,this.Cc);g.P(this,this.Sd);var D=new c0(b,this.Sd,this.Ia,this.Sa,this.yf);this.Ah=wC(function(){return D}); this.jy=D;this.vk=new DI(n,p,this.Ah,this.yf,this.Ia,this.Ca,this.Oa,this.Gc);g.P(this,this.vk);this.Gg=new KI(n,p,this.Pc,this.Ah,y);g.P(this,this.Gg);this.Td=new YH(this.Ca,n,p,u,this.Sa,this.Gg,c);g.P(this,this.Td);this.gk=wC(function(){return new UC(r,l,t,f.Ca,f.Oa,f.Ia,f.Gc)}); g.P(this,this.gk);this.Ze=wC(function(){return new VC}); g.P(this,this.Ze);this.Yg=new TI(a,this.Ac,this.Ca);g.P(this,this.Yg);this.Yb=new UI(a);g.P(this,this.Yb);this.Ow=new VI(a);g.P(this,this.Ow);this.Bh=new XI(a,this.Ah,y);g.P(this,this.Bh);this.zf=new YI(a,this.Pc,this.Ia,this.Sa,y);g.P(this,this.zf);this.Ox=new ZI(a,this.Sa);g.P(this,this.Ox);this.hf=new $I(a);g.P(this,this.hf);this.Yd=new cJ(a);g.P(this,this.Yd);this.Ok=new aJ(a);g.P(this,this.Ok);this.Xy=new bJ(a);g.P(this,this.Xy);this.Yd=new cJ(a);g.P(this,this.Yd);this.Re=wC(function(){return new PI}); g.P(this,this.Re);this.Tk=wC(function(){return new QI(f.Ia)}); g.P(this,this.Tk);this.KW=wC(function(){return new Sva(f.Ac,f.Oa,a,m,f.zb)}); g.P(this,this.KW);this.fk=wC(function(){return new BD(f.Td,n,h)}); g.P(this,this.fk);this.yk=wC(function(){return new GD(f.Ca,f.Oa,f.hf,f.zb)}); g.P(this,this.yk);this.Rk=wC(function(){return new kG(a,f.Yd,f.hf,f.Sa,f.Gc,f.Ia,f.Oa,q,f.yf,f.zb,f.jf,f.md,f.Pc,f.Cc,f.od,f.Mb,f.Zf,f.Ca,m,y,A)}); g.P(this,this.Rk);this.JS=wC(function(){return new fwa(f.Ia,f.Oa,f.Ca,f.zb)}); g.P(this,this.JS);this.vu=wC(function(){return new Mxa(f.Ac,f.Ia,f.Oa,m,f.zb,f.Ow,f.Xy,f.Mb,f.Ca,c)}); g.P(this,this.vu);this.t3=wC(function(){return new Tva(f.Ac)}); g.P(this,this.t3);this.hO=new v0(a,this.Jo,h);g.P(this,this.hO);this.qh={HB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.vk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_ABOVE_FEED",this.Ze],["SLOT_TYPE_FORECASTING",this.Ze], ["SLOT_TYPE_IN_PLAYER",this.Ze],["SLOT_TYPE_PLAYER_BYTES",this.Ze],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ze],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ze],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ze]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Yg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Yg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ow],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.zf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.zf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.zf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.zf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ox],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ox],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Bh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Xy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Av:new Map([["SLOT_TYPE_ABOVE_FEED",this.Re],["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.Tk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Re],["SLOT_TYPE_PLAYBACK_TRACKING",this.Re],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Re]]),Gu:new Map([["SLOT_TYPE_ABOVE_FEED", this.KW],["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_PLAYER_BYTES",this.Rk],["SLOT_TYPE_PLAYBACK_TRACKING",this.JS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.JS],["SLOT_TYPE_IN_PLAYER",this.vu],["SLOT_TYPE_PLAYER_UNDERLAY",this.t3]])};this.listeners=[m.get()];this.dB={Td:this.Td,Al:this.Ca.get(),jb:this.Mb.get(),OB:this.Ia.get(),Sd:this.Sd,wx:h.get(),cG:this.Jo.get(),Lo:this.Yg,Kl:m.get(),Lf:this.Sa.get()}}; j7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=wC(function(){return new dJ(f.Ca)}); g.P(this,h);var l=wC(function(){return new fJ(h,f.Ca)}); g.P(this,l);var m=wC(function(){return new MI}); g.P(this,m);var n=wC(function(){return new JI(a)}); g.P(this,n);var p=wC(function(){return new gJ(h,l,f.Ca)}); g.P(this,p);var q=wC(function(){return new lJ}); g.P(this,q);this.Ac=wC(function(){return new x0(b)}); g.P(this,this.Ac);this.Mb=wC(function(){return new yC(e)}); g.P(this,this.Mb);this.Cc=wC(function(){return new d0(b)}); g.P(this,this.Cc);this.Pc=wC(function(){return new e0(b)}); g.P(this,this.Pc);this.md=wC(function(){return new B0(b)}); g.P(this,this.md);this.od=wC(function(){return new f0(b)}); g.P(this,this.od);this.Ca=wC(function(){return new g0(b)}); g.P(this,this.Ca);var r=wC(function(){return new w0(d)}); g.P(this,r);var t=wC(function(){return new WB(f.Ca)}); g.P(this,t);var u=wC(function(){return new AI(h,p,l,f.Ca,t,null,null,f.vk)}); g.P(this,u);this.Zf=wC(function(){return new C0(b)}); g.P(this,this.Zf);this.Jo=wC(function(){return new BC}); g.P(this,this.Jo);this.Sa=wC(function(){return new p0(b,q,f.Ca)}); g.P(this,this.Sa);var y=b0({Sa:this.Sa,Ca:this.Ca,Ne:t}),A=y.context,D=y.Qg;this.Rb=y.Rb;this.yf=wC(function(){return new A0(b,f.Ca,f.Oa)}); this.Ia=wC(function(){return new q0(b,f.Sa,f.Ca)}); g.P(this,this.Ia);this.zb=wC(function(){return new j0(f.Ia,b,f.Ca)}); g.P(this,this.zb);this.Oa=wC(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Ca,D)}); g.P(this,this.Oa);this.jf=wC(function(){return new CC}); g.P(this,this.jf);this.Sk=new HI(GI,E0,function(H,M,N,S){return gI(l.get(),H,M,N,S)},n,p,l,t,this.Ca,this.Sa); g.P(this,this.Sk);this.Sd=new II(n,u,c,this.Ca,a,this.Sa,this.Ia,this.Cc);g.P(this,this.Sd);var F=new c0(b,this.Sd,this.Ia,this.Sa,this.yf);this.Ah=wC(function(){return F}); this.jy=F;this.vk=new DI(n,p,this.Ah,this.yf,this.Ia,this.Ca,this.Oa);g.P(this,this.vk);this.Gg=new KI(n,p,this.Pc,this.Ah,A);g.P(this,this.Gg);this.Td=new YH(this.Ca,n,p,u,this.Sa,this.Gg,c);g.P(this,this.Td);this.gk=wC(function(){return new UC(r,l,t,f.Ca,f.Oa,f.Ia)}); g.P(this,this.gk);this.Ze=wC(function(){return new VC}); g.P(this,this.Ze);this.Yg=new TI(a,this.Ac,this.Ca);g.P(this,this.Yg);this.Yb=new UI(a);g.P(this,this.Yb);this.Ow=new VI(a);g.P(this,this.Ow);this.Bh=new XI(a,this.Ah,A);g.P(this,this.Bh);this.zf=new YI(a,this.Pc,this.Ia,this.Sa,A);g.P(this,this.zf);this.hf=new $I(a);g.P(this,this.hf);this.Ok=new aJ(a);g.P(this,this.Ok);this.Xy=new bJ(a);g.P(this,this.Xy);this.Gc=wC(function(){return new D0(b)}); g.P(this,this.Gc);this.Yd=new cJ(a);g.P(this,this.Yd);this.Re=wC(function(){return new PI}); g.P(this,this.Re);this.Tk=wC(function(){return new QI(f.Ia)}); g.P(this,this.Tk);this.fk=wC(function(){return new BD(f.Td,n,h)}); g.P(this,this.fk);this.yk=wC(function(){return new GD(f.Ca,f.Oa,f.hf,f.zb)}); g.P(this,this.yk);this.vu=wC(function(){return new Nxa(f.Ac,f.Ia,f.Oa,m,f.zb,f.Ow,f.Xy,f.Mb,f.Ca,c)}); g.P(this,this.vu);this.Rk=wC(function(){return new lG(a,f.Yd,f.hf,f.Oa,f.zb,f.jf,f.md,f.Sa,f.Ia,f.Pc,f.Cc,f.od,f.Mb,f.Zf,f.Ca,f.Gc,A,D)}); g.P(this,this.Rk);this.hO=new v0(a,this.Jo,h);g.P(this,this.hO);this.qh={HB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.vk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_FORECASTING",this.Ze],["SLOT_TYPE_IN_PLAYER",this.Ze], ["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Yg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ow],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.Xy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Av:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.Tk]]),Gu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_IN_PLAYER",this.vu],["SLOT_TYPE_PLAYER_BYTES",this.Rk]])};this.listeners=[m.get()];this.dB={Td:this.Td,Al:this.Ca.get(),jb:this.Mb.get(),OB:this.Ia.get(),Sd:this.Sd,wx:h.get(),cG:this.Jo.get(),Lo:this.Yg, Kl:m.get(),Lf:this.Sa.get()}}; k7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=wC(function(){return new dJ(f.Ca)}); g.P(this,h);var l=wC(function(){return new fJ(h,f.Ca)}); g.P(this,l);var m=wC(function(){return new MI}); g.P(this,m);var n=wC(function(){return new JI(a)}); g.P(this,n);var p=wC(function(){return new gJ(h,l,f.Ca)}); g.P(this,p);var q=wC(function(){return new lJ}); g.P(this,q);this.Ac=wC(function(){return new x0(b)}); g.P(this,this.Ac);this.Mb=wC(function(){return new yC(e)}); g.P(this,this.Mb);this.Cc=wC(function(){return new d0(b)}); g.P(this,this.Cc);this.Pc=wC(function(){return new e0(b)}); g.P(this,this.Pc);this.md=wC(function(){return new B0(b)}); g.P(this,this.md);this.od=wC(function(){return new f0(b)}); g.P(this,this.od);this.Ca=wC(function(){return new g0(b)}); g.P(this,this.Ca);var r=wC(function(){return new w0(d)}); g.P(this,r);var t=wC(function(){return new WB(f.Ca)}); g.P(this,t);var u=wC(function(){return new AI(h,p,l,f.Ca,t,null,null,null)}); g.P(this,u);this.Zf=wC(function(){return new C0(b)}); g.P(this,this.Zf);this.Sa=wC(function(){return new p0(b,q,f.Ca)}); g.P(this,this.Sa);var y=b0({Sa:this.Sa,Ca:this.Ca,Ne:t}),A=y.context,D=y.Qg;this.Rb=y.Rb;this.Ia=wC(function(){return new q0(b,f.Sa,f.Ca)}); g.P(this,this.Ia);this.zb=wC(function(){return new j0(f.Ia,b,f.Ca)}); g.P(this,this.zb);this.Oa=wC(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Ca,D)}); g.P(this,this.Oa);this.jf=wC(function(){return new CC}); g.P(this,this.jf);this.Sk=new HI(GI,E0,function(H,M,N,S){return gI(l.get(),H,M,N,S)},n,p,l,t,this.Ca,this.Sa); g.P(this,this.Sk);this.Sd=new II(n,u,c,this.Ca,a,this.Sa,this.Ia,this.Cc);g.P(this,this.Sd);var F=new c0(b,this.Sd,this.Ia,this.Sa);this.Ah=wC(function(){return F}); this.jy=F;this.Gg=new KI(n,p,this.Pc,this.Ah,A);g.P(this,this.Gg);this.Td=new YH(this.Ca,n,p,u,this.Sa,this.Gg,c);g.P(this,this.Td);this.gk=wC(function(){return new UC(r,l,t,f.Ca,f.Oa,f.Ia)}); g.P(this,this.gk);this.Ze=wC(function(){return new VC}); g.P(this,this.Ze);this.Yg=new TI(a,this.Ac,this.Ca);g.P(this,this.Yg);this.Yb=new UI(a);g.P(this,this.Yb);this.Bh=new XI(a,this.Ah,A);g.P(this,this.Bh);this.zf=new YI(a,this.Pc,this.Ia,this.Sa,A);g.P(this,this.zf);this.hf=new $I(a);g.P(this,this.hf);this.Ok=new aJ(a);g.P(this,this.Ok);this.Gc=wC(function(){return new D0(b)}); g.P(this,this.Gc);this.Yd=new cJ(a);g.P(this,this.Yd);this.Re=wC(function(){return new PI}); g.P(this,this.Re);this.Tk=wC(function(){return new QI(f.Ia)}); g.P(this,this.Tk);this.fk=wC(function(){return new BD(f.Td,n,h)}); g.P(this,this.fk);this.yk=wC(function(){return new GD(f.Ca,f.Oa,f.hf,f.zb)}); g.P(this,this.yk);this.O0=wC(function(){return new dwa(f.Ac,f.Ia,f.Oa,m,c,f.Ca)}); g.P(this,this.O0);this.Rk=wC(function(){return new lG(a,f.Yd,f.hf,f.Oa,f.zb,f.jf,f.md,f.Sa,f.Ia,f.Pc,f.Cc,f.od,f.Mb,f.Zf,f.Ca,f.Gc,A,D)}); g.P(this,this.Rk);this.qh={HB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_FORECASTING",this.Ze],["SLOT_TYPE_IN_PLAYER",this.Ze],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Yg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Av:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_ABOVE_FEED",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.Tk]]),Gu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_IN_PLAYER", this.O0],["SLOT_TYPE_PLAYER_BYTES",this.Rk]])};this.listeners=[m.get()];this.dB={Td:this.Td,Al:this.Ca.get(),jb:this.Mb.get(),OB:this.Ia.get(),Sd:this.Sd,wx:h.get(),cG:null,Lo:this.Yg,Kl:m.get(),Lf:this.Sa.get()}}; l7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=wC(function(){return new dJ(f.Ca)}); g.P(this,h);var l=wC(function(){return new fJ(h,f.Ca)}); g.P(this,l);var m=wC(function(){return new MI}); g.P(this,m);var n=wC(function(){return new JI(a)}); g.P(this,n);var p=wC(function(){return new gJ(h,l,f.Ca)}); g.P(this,p);var q=wC(function(){return new lJ}); g.P(this,q);this.Gn=wC(function(){return new h7a(b)}); g.P(this,this.Gn);this.Ac=wC(function(){return new x0(b)}); g.P(this,this.Ac);this.Mb=wC(function(){return new yC(e)}); g.P(this,this.Mb);this.Cc=wC(function(){return new d0(b)}); g.P(this,this.Cc);this.Pc=wC(function(){return new e0(b)}); g.P(this,this.Pc);this.md=wC(function(){return new B0(b)}); g.P(this,this.md);this.od=wC(function(){return new f0(b)}); g.P(this,this.od);this.Ca=wC(function(){return new g0(b)}); g.P(this,this.Ca);var r=wC(function(){return new w0(d)}); g.P(this,r);var t=wC(function(){return new WB(f.Ca)}); g.P(this,t);var u=wC(function(){return new AI(h,p,l,f.Ca,t,null,null,null)}); g.P(this,u);this.Zf=wC(function(){return new C0(b)}); g.P(this,this.Zf);this.Sa=wC(function(){return new p0(b,q,f.Ca)}); g.P(this,this.Sa);var y=b0({Sa:this.Sa,Ca:this.Ca,Ne:t}),A=y.context,D=y.Qg;this.Rb=y.Rb;this.Ia=wC(function(){return new q0(b,f.Sa,f.Ca)}); g.P(this,this.Ia);this.zb=wC(function(){return new j0(f.Ia,b,f.Ca)}); g.P(this,this.zb);this.Oa=wC(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Ca,D)}); g.P(this,this.Oa);this.jf=wC(function(){return new CC}); g.P(this,this.jf);this.Sk=new HI(rAa,E0,function(H,M,N,S){return IAa(l.get(),H,M,N,S)},n,p,l,t,this.Ca,this.Sa); g.P(this,this.Sk);this.Sd=new II(n,u,c,this.Ca,a,this.Sa,this.Ia,this.Cc);g.P(this,this.Sd);var F=new c0(b,this.Sd,this.Ia,this.Sa);this.Ah=wC(function(){return F}); this.jy=F;this.Gg=new KI(n,p,this.Pc,this.Ah,A);g.P(this,this.Gg);this.Td=new YH(this.Ca,n,p,u,this.Sa,this.Gg,c);g.P(this,this.Td);this.gk=wC(function(){return new UC(r,l,t,f.Ca,f.Oa,f.Ia)}); g.P(this,this.gk);this.Ze=wC(function(){return new VC}); g.P(this,this.Ze);this.Yg=new TI(a,this.Ac,this.Ca);g.P(this,this.Yg);this.Yb=new UI(a);g.P(this,this.Yb);this.Bh=new XI(a,this.Ah,A);g.P(this,this.Bh);this.zf=new YI(a,this.Pc,this.Ia,this.Sa,A);g.P(this,this.zf);this.hf=new $I(a);g.P(this,this.hf);this.Ok=new aJ(a);g.P(this,this.Ok);this.Gc=wC(function(){return new D0(b)}); g.P(this,this.Gc);this.Yd=new cJ(a);g.P(this,this.Yd);this.Re=wC(function(){return new PI}); g.P(this,this.Re);this.Tk=wC(function(){return new QI(f.Ia)}); g.P(this,this.Tk);this.fk=wC(function(){return new BD(f.Td,n,h)}); g.P(this,this.fk);this.yk=wC(function(){return new GD(f.Ca,f.Oa,f.hf,f.zb)}); g.P(this,this.yk);this.Rk=wC(function(){return new lG(a,f.Yd,f.hf,f.Oa,f.zb,f.jf,f.md,f.Sa,f.Ia,f.Pc,f.Cc,f.od,f.Mb,f.Zf,f.Ca,f.Gc,A,D)}); g.P(this,this.Rk);this.Q3=wC(function(){return new Pxa(f.Ac,f.Ia,f.Oa,m,f.Gn,c,f.Sa)}); g.P(this,this.Q3);this.qh={HB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_FORECASTING",this.Ze],["SLOT_TYPE_IN_PLAYER",this.Ze],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Yg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Av:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES",this.Tk]]),Gu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_IN_PLAYER",this.Q3],["SLOT_TYPE_PLAYER_BYTES", this.Rk]])};this.listeners=[m.get()];this.dB={Td:this.Td,Al:this.Ca.get(),jb:this.Mb.get(),OB:this.Ia.get(),Sd:this.Sd,wx:h.get(),cG:null,Lo:this.Yg,Kl:m.get(),Lf:this.Sa.get()}}; m7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=wC(function(){return new dJ(f.Ca)}); g.P(this,h);var l=wC(function(){return new fJ(h,f.Ca)}); g.P(this,l);var m=wC(function(){return new MI}); g.P(this,m);var n=wC(function(){return new JI(a)}); g.P(this,n);var p=wC(function(){return new gJ(h,l,f.Ca)}); g.P(this,p);var q=wC(function(){return new lJ}); g.P(this,q);this.Gn=wC(function(){return new h7a(b)}); g.P(this,this.Gn);this.Ac=wC(function(){return new x0(b)}); g.P(this,this.Ac);this.Mb=wC(function(){return new yC(e)}); g.P(this,this.Mb);this.Cc=wC(function(){return new d0(b)}); g.P(this,this.Cc);this.Pc=wC(function(){return new e0(b)}); g.P(this,this.Pc);this.md=wC(function(){return new B0(b)}); g.P(this,this.md);this.od=wC(function(){return new f0(b)}); g.P(this,this.od);this.Ca=wC(function(){return new g0(b)}); g.P(this,this.Ca);var r=wC(function(){return new w0(d)}); g.P(this,r);var t=wC(function(){return new WB(f.Ca)}); g.P(this,t);this.Zf=wC(function(){return new C0(b)}); g.P(this,this.Zf);this.Sa=wC(function(){return new p0(b,q,f.Ca)}); g.P(this,this.Sa);var u=b0({Sa:this.Sa,Ca:this.Ca,Ne:t}),y=u.context,A=u.Qg;this.Rb=u.Rb;this.yf=wC(function(){return new A0(b,f.Ca,f.Oa)}); g.P(this,this.yf);this.Gc=wC(function(){return new D0(b)}); g.P(this,this.Gc);this.Ia=wC(function(){return new q0(b,f.Sa,f.Ca)}); g.P(this,this.Ia);u=wC(function(){return new AI(h,p,l,f.Ca,t,null,f.Ia,f.vk,3)}); g.P(this,u);this.jf=wC(function(){return new CC}); this.zb=wC(function(){return new j0(f.Ia,b,f.Ca)}); g.P(this,this.zb);this.Oa=wC(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Ca,A)}); g.P(this,this.Oa);this.Sd=new II(n,u,c,this.Ca,a,this.Sa,this.Ia,this.Cc);g.P(this,this.Sd);var D=new c0(b,this.Sd,this.Ia,this.Sa,this.yf);this.Ah=wC(function(){return D}); this.jy=D;this.Sk=new HI(sAa,E0,function(F,H,M,N){return IAa(l.get(),F,H,M,N)},n,p,l,t,this.Ca,this.Sa); g.P(this,this.Sk);this.vk=new DI(n,p,this.Ah,this.yf,this.Ia,this.Ca,this.Oa,this.Gc);g.P(this,this.vk);this.Gg=new KI(n,p,this.Pc,this.Ah,y);g.P(this,this.Gg);this.Td=new YH(this.Ca,n,p,u,this.Sa,this.Gg,c);g.P(this,this.Td);this.gk=wC(function(){return new UC(r,l,t,f.Ca,f.Oa,f.Ia,f.Gc)}); g.P(this,this.gk);this.Ze=wC(function(){return new VC}); g.P(this,this.Ze);this.Yg=new TI(a,this.Ac,this.Ca);g.P(this,this.Yg);this.Yb=new UI(a);g.P(this,this.Yb);this.Bh=new XI(a,this.Ah,y);g.P(this,this.Bh);this.zf=new YI(a,this.Pc,this.Ia,this.Sa,y);g.P(this,this.zf);this.Ox=new ZI(a,this.Sa);g.P(this,this.Ox);this.hf=new $I(a);g.P(this,this.hf);this.Ok=new aJ(a);g.P(this,this.Ok);this.Yd=new cJ(a);g.P(this,this.Yd);this.Re=wC(function(){return new PI}); g.P(this,this.Re);this.Tk=wC(function(){return new QI(f.Ia)}); g.P(this,this.Tk);this.fk=wC(function(){return new BD(f.Td,n,h)}); g.P(this,this.fk);this.yk=wC(function(){return new GD(f.Ca,f.Oa,f.hf,f.zb)}); g.P(this,this.yk);this.Rk=wC(function(){return new kG(a,f.Yd,f.hf,f.Sa,f.Gc,f.Ia,f.Oa,q,f.yf,f.zb,f.jf,f.md,f.Pc,f.Cc,f.od,f.Mb,f.Zf,f.Ca,m,y,A)}); g.P(this,this.Rk);this.vu=wC(function(){return new Qxa(f.Ac,f.Ia,f.Oa,m,f.Gn,c,f.Ca,f.Sa)}); g.P(this,this.vu);this.qh={HB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.vk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Gg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_FORECASTING",this.Ze],["SLOT_TYPE_IN_PLAYER",this.Ze],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),xn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Yg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.zf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ox],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ox],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Av:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Re],["SLOT_TYPE_FORECASTING",this.Re],["SLOT_TYPE_IN_PLAYER",this.Re],["SLOT_TYPE_PLAYER_BYTES", this.Tk]]),Gu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_PLAYER_BYTES",this.Rk],["SLOT_TYPE_IN_PLAYER",this.vu]])};this.listeners=[m.get()];this.dB={Td:this.Td,Al:this.Ca.get(),jb:this.Mb.get(),OB:this.Ia.get(),Sd:this.Sd,wx:h.get(),cG:null,Lo:this.Yg,Kl:m.get(),Lf:this.Sa.get()}}; o7a=function(a,b,c,d){g.O.call(this);var e=this;this.j=n7a(function(){return e.B},a,b,c,d); g.P(this,this.j);this.B=(new xC(this.j)).C();g.P(this,this.B)}; F0=function(a){return a.j.dB}; n7a=function(a,b,c,d,e){try{var f=b.U();if(g.KO(f))var h=new i7a(a,b,c,d,e);else if(g.MO(f))h=new j7a(a,b,c,d,e);else if(DO(f))h=new k7a(a,b,c,d,e);else if(g.yy(f))h=new l7a(a,b,c,d,e);else if(g.xO(f))h=new m7a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),cy("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,voa:h.j.cver,uoa:h.j.ctheme,toa:h.j.cplayer,dpa:h.playerStyle}),new Z6a(a,b,c,d,e)}}; p7a=function(a){Ix.call(this,a)}; q7a=function(a,b,c,d,e){Qx.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.ra=this.Ea("ytp-ad-timed-pie-countdown");this.D=this.Ea("ytp-ad-timed-pie-countdown-container"); this.B=this.Ea("ytp-ad-timed-pie-countdown-inner");this.G=this.Ea("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(Math.PI*10);this.hide()}; r7a=function(a,b,c,d,e,f){fx.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.OT=e;this.CM=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ga=this.Ea("ytp-ad-action-interstitial-instream-info");this.ra=this.Ea("ytp-ad-action-interstitial-image-container");this.Y=new Ex(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-image");g.P(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Ea("ytp-ad-action-interstitial-headline-container"); this.G=new Ox(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-headline");g.P(this,this.G);this.G.Ja(this.Wa);this.Va=this.Ea("ytp-ad-action-interstitial-description-container");this.C=new Ox(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-description");g.P(this,this.C);this.C.Ja(this.Va);this.Xa=this.Ea("ytp-ad-action-interstitial-background-container");this.Ka=new Ex(this.api,this.layoutId,this.interactionLoggingClientData, this.jb,"ytp-ad-action-interstitial-background",!0);g.P(this,this.Ka);this.Ka.Ja(this.Xa);this.fb=this.Ea("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ea("ytp-ad-action-interstitial-slot");this.xf=this.Ea("ytp-ad-action-interstitial-card");this.D=new ns;g.P(this,this.D);this.hide()}; s7a=function(a){var b=g.ce("html5-video-player");b&&g.Xo(b,"ytp-ad-display-override",a)}; w7a=function(a,b,c,d){fx.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.fb=this.Ga=this.D=this.Xa=this.Va=null;this.Wa=!1;this.G=null;this.ra=0;a=this.Ea("ytp-ad-overlay-container");this.Ka=new Zx(a,45E3,6E3,.3,.4);g.P(this,this.Ka);this.C=t7a(this);g.P(this,this.C);this.C.Ja(a);this.B=u7a(this);g.P(this,this.B);this.B.Ja(a);this.j=v7a(this);g.P(this,this.j);this.j.Ja(a);this.hide()}; t7a=function(a){var b=new g.ex({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:[wx(x7a)]}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Ea("ytp-ad-overlay-title"),"click",function(c){G0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-link"),"click",function(c){G0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.RN);b.hide();return b}; u7a=function(a){var b=new g.ex({I:"div",Na:["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:[wx(x7a)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], va:"{{displayUrl}}"}]});a.T(b.Ea("ytp-ad-overlay-title"),"click",function(c){G0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-link"),"click",function(c){G0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.RN);a.T(b.Ea("ytp-ad-overlay-text-image"),"click",a.yca);b.hide();return b}; v7a=function(a){var b=new g.ex({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:[wx(x7a)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ea("ytp-ad-overlay-image"),"click",function(c){G0(a,b.element,c)}); a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.RN);b.hide();return b}; y7a=function(a,b){if(b){var c=g.Q(b,UH)||null;if(c==null)g.xw(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.ce("video-ads ytp-ad-module")||null,b==null)g.xw(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ga=new g.ex({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.P(a,a.Ga),a.Ga.Ja(b),b=new Nx(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.Ga.element,!1),g.P(a,b),b.init(Vw("ad-info-hover-text-button"), c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.eaa,a);b.subscribe("e",a.jS,a);a.T(a.G,"click",a.faa);var d=g.ce("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.Q((e=g.Q(c.button,g.WH))==null?void 0:e.serviceEndpoint,Fsa))a.Wa=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); a.fb=b}else g.xw(Error("Ad info button container within overlay ad was not present."))}else g.yw(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; A7a=function(a,b){if(z7a(a,H0)||a.api.isMinimized())return!1;var c=gx(b.title),d=gx(b.description);if(g.qb(c)||g.qb(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",gx(b.title));a.C.updateValue("description",gx(b.description));a.C.updateValue("displayUrl",gx(b.displayUrl));b.navigationEndpoint&&g.Ub(a.Y,b.navigationEndpoint);a.C.show();a.Ka.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++}); return!0}; B7a=function(a,b){if(z7a(a,H0)||a.api.isMinimized())return!1;var c=gx(b.title),d=gx(b.description);if(g.qb(c)||g.qb(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",gx(b.title));a.B.updateValue("description",gx(b.description));a.B.updateValue("displayUrl",gx(b.displayUrl));a.B.updateValue("imageUrl",Xra(b.image));b.navigationEndpoint&&g.Ub(a.Y,b.navigationEndpoint);a.Xa=b.imageNavigationEndpoint||null;a.B.show();a.Ka.start();a.logVisibility(a.B.element,!0); a.T(a.B.element,"mouseover",function(){a.ra++}); return!0}; C7a=function(a,b){if(a.api.isMinimized())return!1;var c=Yra(b.image),d=c;c.width0?(b=new vy(a.api,a.j),b.Ja(a.playerOverlay), g.P(a,b)):g.xw(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.xw(Error("addCommonComponents() needs to be called before starting countdown."))}; N7a=function(a){function b(c){return{toString:function(){return c()}}} a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()}); a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Xa()-a.C).toString()})}; O7a=function(a,b,c,d,e){L0.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()}; P7a=function(a,b,c){a.noneOfTheAbove=new I7a(a.api,a.layoutId,a.interactionLoggingClientData,a.jb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(Vw("survey-none-of-the-above"),b,c)}; R7a=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)}); Q7a(a,!0)}; Q7a=function(a,b){var c=a.D;a=S7a(a);b=b===void 0?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof iy&&!c.j.D&&Osa(c.j,!1));c.B&&(a?c.B.show():c.B.hide())}; S7a=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()}; M0=function(a,b,c,d,e){L0.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.U().L("supports_multi_step_on_desktop")&&e([h])}); var f=this;this.hide()}; N0=function(a,b,c,d){fx.call(this,a,{I:"div",S:"ytp-ad-survey",V:[{I:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Ea("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Ea("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Ea("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; V7a=function(a,b){var c=a.B[b],d;(d=a.C)==null||d.dispose();g.Q(c,SH)?T7a(a,g.Q(c,SH),a.macros):g.Q(c,RH)&&U7a(a,g.Q(c,RH),a.macros);a.j=b}; T7a=function(a,b,c){var d=new M0(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.D.bind(a));d.Ja(a.G);d.init(Vw("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)}; U7a=function(a,b,c){var d=new O7a(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.D.bind(a));d.Ja(a.G);d.init(Vw("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)}; O0=function(a,b,c,d){fx.call(this,a,{I:"div",S:"ytp-ad-survey-interstitial",V:[{I:"div",S:"ytp-ad-survey-interstitial-contents",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Ea("ytp-ad-survey-interstitial");this.B=this.Ea("ytp-ad-survey-interstitial-contents");this.text=this.Ea("ytp-ad-survey-interstitial-text"); this.logoImage=this.Ea("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Tx(this,500,!1,300);g.P(this,this.transition)}; X7a=function(a,b){b=b&&Dx(b)||"";if(g.qb(b))g.yw(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Cla(d.style);b=new g.sd([c,Hba(W7a,b)].map(Fba).join(""),Ad);a.style.cssText=td(b)}}; Y7a=function(a){var b=g.ce("html5-video-player");b&&g.Xo(b,"ytp-ad-display-override",a)}; P0=function(a){this.content=a.content;if(a.commandRuns){a=g.w(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.Q(b,Z7a),b.onTap&&(this.interaction={onTap:b.onTap})}}; Q0=function(a,b,c,d){fx.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()}; R0=function(a,b,c,d){fx.call(this,a,{I:"span",S:"ytp-ad-badge"},"ad-badge",b,c,d);this.adBadgeText=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);this.adBadgeText.Ja(this.element);g.P(this,this.adBadgeText);this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; S0=function(a,b,c,d,e,f){f=f===void 0?0:f;Qx.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.ra=f;this.B=0;this.D=-1;this.C=this.Ea("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Tx(this,400,!1,100,function(){h.hide()}); g.P(this,this.transition);this.hide()}; T0=function(a,b,c,d){fx.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()}; $7a=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}}; U0=function(a,b,c,d){fx.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()}; a8a=function(a,b,c,d,e){Qx.call(this,a,{I:"div",Na:["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 T0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.adAvatar);ne(this.element,this.adAvatar.element,0);this.headline=new Q0(this.api,this.layoutId,this.interactionLoggingClientData, this.jb);g.P(this,this.headline);this.headline.Ja(this.Ea("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.description);this.description.Ja(this.Ea("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new U0(this.api,this.layoutId,this.interactionLoggingClientData, this.jb);g.P(this,this.adButton);this.adButton.Ja(this.element);this.hide()}; b8a=function(a,b,c,d){fx.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.Ea("ytp-skip-ad-button__text");this.transition=new g.Tx(this,500,!1,100,function(){e.hide()}); g.P(this,this.transition);this.j=new Zx(this.element,15E3,5E3,.5,.5,!0);g.P(this,this.j);this.hide()}; c8a=function(a,b,c,d,e){Qx.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j);g.P(this,this.B);this.B.Ja(this.element);this.C=new b8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.C);this.C.Ja(this.element);this.hide()}; V0=function(a,b,c,d){fx.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()}; W0=function(a,b,c,d,e){fx.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"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.ra=this.Ea("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Ea("ytp-ad-player-overlay-layout__ad-info-container"); this.G=this.Ea("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Y=this.Ea("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; X0=function(a,b,c){Ix.call(this,a);this.api=a;this.jb=b;this.B={};a=new g.U({I:"div",Na:["video-ads","ytp-ad-module"]});g.P(this,a);UN&&g.To(a.element,"ytp-ads-tiny-mode");this.G=new hv(a.element);g.P(this,this.G);g.oR(this.api,a.element,4);hI(c)&&(c=new g.U({I:"div",Na:["ytp-ad-underlay"]}),g.P(this,c),this.C=new hv(c.element),g.P(this,this.C),g.oR(this.api,c.element,0));g.P(this,qsa())}; d8a=function(a,b){a=g.Cc(a.B,b.id,null);a==null&&g.yw(Error("Component not found for element id: "+b.id));return a||null}; e8a=function(a){g.ST.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new e6a(this.player):new a0(this.player);this.D=function(){if(b.B!=null)return b.B;var d=new l6a({Lo:F0(b.j).Lo,Lf:F0(b.j).Lf,J:b.player,Al:F0(b.j).Al,Oa:b.j.j.Oa,Kl:F0(b.j).Kl,od:b.j.j.od});b.B=d.z6;return b.B}; this.j=new o7a(this.player,this,this.C,this.D);g.P(this,this.j);var c=a.U();!hC(c)||g.xO(c)||DO(c)||(g.P(this,new X0(a,F0(this.j).jb,F0(this.j).Al)),g.P(this,new p7a(a)))}; f8a=function(a){a.created!==a.loaded&&cy("Created and loaded are out of sync")}; i8a=function(a){g.ST.prototype.load.call(a);var b=F0(a.j).Al;try{a.player.getRootNode().classList.add("ad-created")}catch(l){cy(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.kb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((e==null?void 0:e.adSlots)||[]).map(function(l){return g.Q(l,ZH)}); e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.Vb();b=g8a(f,h,b,F0(a.j).wx);f=c&&c.clientPlaybackNonce||"";c=c&&c.Ip||!1;h=1E3*a.player.getDuration(1);h8a(a);a.j.j.jy.Lk(f,h,c,b.QL,b.PW,b.QL,e,d)}; h8a=function(a){var b,c;if(c=!(((b=a.player.getVideoData(1))==null?0:b.Ip)||g.Eq("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=hC(b)&&!g.gC(b)&&b.playerStyle==="desktop-polymer";c&&(b=a.player.getInternalApi(),(a=a.player.getInternalApi())?(a.addEventListener("updateKevlarOrC3Companion",Usa),a.addEventListener("updateEngagementPanelAction",Vsa),a.addEventListener("changeEngagementPanelVisibility",Wsa)):(b.addEventListener("updateKevlarOrC3Companion",Usa),b.addEventListener("updateEngagementPanelAction", Vsa),b.addEventListener("changeEngagementPanelVisibility",Wsa)),window.addEventListener("yt-navigate-start",Ysa))}; Y0=function(a,b){b===a.At&&(a.At=void 0)}; j8a=function(a){var b=F0(a.j).Sd,c=b.D().fQ("SLOT_TYPE_PLAYER_BYTES",1);b=tF(b.Sa.get(),1).clientPlaybackNonce;var d=!1;c=g.w(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.slotEntryTrigger instanceof cH?e.slotEntryTrigger.Iv:void 0;f&&f===b&&(d&&cy("More than 1 preroll playerBytes slot detected",e),d=!0)}d||r0(F0(a.j).OB)}; k8a=function(a){if(h0(F0(a.j).Al))return!0;var b="";a=g.w(F0(a.j).Kl.pj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.bb==="core")return!0;b+=c.slotType+" "}Math.random()<.01&&cy("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1}; l8a=function(a){a=g.w(F0(a.j).Kl.pj.values());for(var b=a.next();!b.done;b=a.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; vya=function(a,b,c,d,e){c=c===void 0?[]:c;d=d===void 0?"":d;e=e===void 0?"":e;var f=F0(a.j).Al,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Vb();c=g8a(b,c,f,F0(a.j).wx);zya(F0(a.j).Td,d,c.QL,c.PW,b,e)}; g8a=function(a,b,c,d){b={QL:[],PW:b};a=g.w(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.renderer!=null){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.Q((n=f.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,zI)?(h=g.Q((m=f.sandwichedLinearAdRenderer)==null?void 0:m.adVideoStart,zI),h=EAa(h,p),g.Dw(f.sandwichedLinearAdRenderer.adVideoStart,zI,h)):g.Q((l=f.linearAdSequenceRenderer)==null?void 0:l.adStart,zI)&& (m=g.Q((h=f.linearAdSequenceRenderer)==null?void 0:h.adStart,zI),h=EAa(m,p),g.Dw(f.linearAdSequenceRenderer.adStart,zI,h))}b.QL.push(e)}return b}; g.Z0=function(a){if(typeof DOMParser!="undefined"){var b=new DOMParser;a=vma(a);return b.parseFromString(g.vd(a),"application/xml")}throw Error("Your browser does not support loading xml documents");}; g.$0=function(a){g.O.call(this);this.callback=a;this.j=new gp(0,0,.4,0,.2,1,1,1);this.delay=new g.Ko(this.next,window,this);g.P(this,this.delay)}; g.m8a=function(a){var b=a.U();return b.Ed&&!b.C&&g.qO(b)?a.jd()?(a=a.ao(),Math.min(a.width,a.height)>=315):!a.Pg():!1}; g.a1=function(a){g.U.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.iE(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.U({I:"h2",S:"ytp-related-title",va:"{{title}}"});this.previous=new g.U({I:"button",Na:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},V:[g.kx()]});this.N=new g.$0(function(c){b.suggestions.element.scrollLeft=-c}); this.next=new g.U({I:"button",Na:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},V:[g.lx()]});g.P(this,this.D);this.K=a.U().D;g.P(this,this.title);this.title.Ja(this.element);this.suggestions=new g.U({I:"div",S:"ytp-suggestions"});g.P(this,this.suggestions);this.suggestions.Ja(this.element);g.P(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.B6,this);g.P(this,this.N);n8a(this);g.P(this,this.next);this.next.Ja(this.element);this.next.listen("click", this.A6,this);this.D.T(this.api,"appresize",this.kc);this.D.T(this.api,"fullscreentoggled",this.ly);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.kc(this.api.qb().getPlayerSize());this.onVideoDataChange()}; n8a=function(a){for(var b={EA:0};b.EA<16;b={EA:b.EA},++b.EA){var c=new g.U({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",va:"{{title}}"},{I:"div",S:"ytp-suggestion-author",va:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration", va:"{{duration}}"}]}]});g.P(a,c);var d=c.Ea("ytp-suggestion-link");g.Vl(d,"transitionDelay",b.EA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.EA;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.Fl(),l={},g.lR(a.api,l,"emb_rel_pause"),h=g.Hi(h,l),g.jS(h,a.api,f)):g.iS(f,a.api,a.K,m||void 0)&&a.api.tp(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)}}; o8a=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.b1=function(a){var b=a.api.Ih()?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.Xo(a.element,"ytp-scroll-min",b>=0);g.Xo(a.element,"ytp-scroll-max",b<=c)}; q8a=function(a){for(var b=a.suggestionData.length,c=0;c>>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;c0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}}); ma("Set",function(a){function b(c){this.j=new Map;if(c){c=g.w(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(g.w([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)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||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a; b.prototype.add=function(c){c=c===0?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 Ea(this,function(b,c){return[b,c]})}}); ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(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 typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); ma("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}}); ma("Array.prototype.values",function(a){return a?a:function(){return Ea(this,function(b,c){return 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)pa(b,d)&&c.push(b[d]);return c}}); ma("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||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(c<0&&(c=Math.max(c+e,0));c>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}}); ma("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}}); ma("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}}); ma("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Fa(this,null,"padStart");b-=d.length;c=c!==void 0?String(c):" ";return(b>0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}}); ma("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}}); ma("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}}); ma("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.w(c);for(var d;!(d=c.next()).done;)this.add(d.value)}} if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a; b.prototype.add=function(c){this.j.set(c,!0);return this}; b.prototype.has=function(c){return this.j.has(c)}; b.prototype.delete=function(c){return this.j.delete(c)}; return b}); ma("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#d;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); ma("Int8Array.prototype.copyWithin",Ia);ma("Uint8Array.prototype.copyWithin",Ia);ma("Uint8ClampedArray.prototype.copyWithin",Ia);ma("Int16Array.prototype.copyWithin",Ia);ma("Uint16Array.prototype.copyWithin",Ia);ma("Int32Array.prototype.copyWithin",Ia);ma("Uint32Array.prototype.copyWithin",Ia);ma("Float32Array.prototype.copyWithin",Ia);ma("Float64Array.prototype.copyWithin",Ia);ma("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}}); ma("Int8Array.prototype.findLastIndex",Ja);ma("Uint8Array.prototype.findLastIndex",Ja);ma("Uint8ClampedArray.prototype.findLastIndex",Ja);ma("Int16Array.prototype.findLastIndex",Ja);ma("Uint16Array.prototype.findLastIndex",Ja);ma("Int32Array.prototype.findLastIndex",Ja);ma("Uint32Array.prototype.findLastIndex",Ja);ma("Float32Array.prototype.findLastIndex",Ja);ma("Float64Array.prototype.findLastIndex",Ja);ma("Number.parseInt",function(a){return a||parseInt}); ma("String.raw",function(a){return a?a:function(b,c){if(b==null)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=ab.prototype;g.k.l7=function(a){var b=g.Da.apply(1,arguments),c=this.JP(b);c?c.push(new paa(a)):this.d2(a,b)}; g.k.d2=function(a){this.j.set(this.zV(g.Da.apply(1,arguments)),[new paa(a)])}; g.k.JP=function(){var a=this.zV(g.Da.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0}; g.k.P8=function(){var a=this.JP(g.Da.apply(0,arguments));return a&&a.length?a[0]:void 0}; g.k.clear=function(){this.j.clear()}; g.k.zV=function(){var a=g.Da.apply(0,arguments);return a?a.join(","):"key"};g.z(db,ab);db.prototype.B=function(a){var b=g.Da.apply(1,arguments),c=0,d=this.P8(b);d&&(c=d.j);this.d2(c+a,b)};g.z(eb,ab);eb.prototype.Rh=function(a){this.l7(a,g.Da.apply(1,arguments))};g.O.prototype.Kq=!1;g.O.prototype.La=function(){return this.Kq}; g.O.prototype.dispose=function(){this.Kq||(this.Kq=!0,this.xa())}; g.O.prototype[Symbol.dispose]=function(){this.dispose()}; g.O.prototype.addOnDisposeCallback=function(a,b){this.Kq?b!==void 0?a.call(b):a():(this.uo||(this.uo=[]),b&&(a=a.bind(b)),this.uo.push(a))}; g.O.prototype.xa=function(){if(this.uo)for(;this.uo.length;)this.uo.shift()()};g.Ya(jb,Error);jb.prototype.name="CustomError";var Uba;g.Ya(kb,jb);kb.prototype.name="AssertionError";g.nb.prototype.stopPropagation=function(){this.B=!0}; g.nb.prototype.preventDefault=function(){this.defaultPrevented=!0};var fba=function(){if(!g.Ka.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{var c=function(){}; g.Ka.addEventListener("test",c,b);g.Ka.removeEventListener("test",c,b)}catch(d){}return a}();var c1=Na(1,!0),yb=Na(610401301,!1),uea,Mda;Na(899588437,!1);uea=Na(188588736,!0);g.x8a=Na(641353869,c1);g.y8a=Na(644029907,c1);g.z8a=Na(1822726157,c1);Mda=Na(645172343,c1);Na(651175828,!1);Na(653718497,c1);Na(2147483644,!1);Na(2147483645,!1);Na(2147483646,c1);Na(2147483647,!0);var zb=!!g.Ma("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var ub=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},taa=/&/g,uaa=//g,waa=/"/g,xaa=/'/g,yaa=/\x00/g,saa=/[\x00&<>"']/;var Bb,A8a=g.Ka.navigator;Bb=A8a?A8a.userAgentData||null:null;var Gaa,pl,qm;Gaa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0); for(var c=0;c=0;c--)if(c in a&&a[c]===b)return c;return-1}; g.cc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;fparseFloat(G8a)){F8a=String(d1);break a}}F8a=G8a}var Uaa=F8a,Saa={};var hPa=Vaa("AnimationEnd"),nS=Vaa("TransitionEnd");g.Ya(mc,g.nb); mc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY= a.clientY!==void 0?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||(c=="keypress"?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=a.pointerType;this.state=a.state;this.timeStamp=a.timeStamp;this.j=a;a.defaultPrevented&&mc.Pf.preventDefault.call(this)}; mc.prototype.stopPropagation=function(){mc.Pf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0}; mc.prototype.preventDefault=function(){mc.Pf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Waa="closure_listenable_"+(Math.random()*1E6|0);var Xaa=0;var cba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=Hc.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=Jc(a,b,d,e);h>-1?(b=a[h],c||(b.fJ=!1)):(b=new Yaa(b,this.src,f,!!d,e),b.fJ=c,a.push(b));return b}; g.k.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Jc(e,b,c,d);return b>-1?(oc(e[b]),g.Ob(e,b),e.length==0&&(delete this.listeners[a],this.j--),!0):!1}; g.k.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e-1?a[e]:null}; g.k.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return g.uc(this.listeners,function(f){for(var h=0;h>>0);g.Ya(g.Uc,g.O);g.Uc.prototype[Waa]=!0;g.k=g.Uc.prototype;g.k.addEventListener=function(a,b,c,d){g.Lc(this,a,b,c,d)}; g.k.removeEventListener=function(a,b,c,d){jba(this,a,b,c,d)}; g.k.dispatchEvent=function(a){var b=this.CS;if(b){var c=[];for(var d=1;b;b=b.CS)c.push(b),++d}b=this.f7;d=a.type||a;if(typeof a==="string")a=new g.nb(a,b);else if(a instanceof g.nb)a.target=a.target||b;else{var e=a;a=new g.nb(d,b);g.Gc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&f>=0;f--){var h=a.currentTarget=c[f];e=Vc(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Vc(h,d,!0,a)&&e,a.B||(e=Vc(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f0){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var J8a={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};cd.prototype.toString=function(){return this.j}; var oba={},nba={};ed("");var fd;g.id.prototype.toString=function(){return this.o1+""}; var pba={};g.ld.prototype.toString=function(){return this.s1}; g.pd=new g.ld("about:invalid#zClosurez");var MPa=od("tel"),KPa=od("sms"),qba=[od("data"),od("http"),od("https"),od("mailto"),od("ftp"),new nd(function(a){return/^[^:]*([/?#]|$)/.test(a)})],rba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Ad={};g.sd.prototype.toString=function(){return this.n1.toString()}; var xla=new g.sd("",Ad),uba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),tba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),sba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),vba=/\/\*/;var Cba={};g.ud.prototype.toString=function(){return this.m1.toString()}; var K8a=/^[a-zA-Z0-9-]+$/,L8a={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},M8a={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},zba=new g.ud(g.Ka.trustedTypes&&g.Ka.trustedTypes.emptyHTML||"",Cba);xd.prototype.toString=function(){return this.j};yd.prototype.toString=function(){return this.q1.toString()};var N8a=ad(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.vd(zba);return!b.parentElement});g.k=g.Ed.prototype;g.k.clone=function(){return new g.Ed(this.x,this.y)}; g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.k.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};g.k=g.Gd.prototype;g.k.clone=function(){return new g.Gd(this.width,this.height)}; g.k.area=function(){return this.width*this.height}; g.k.aspectRatio=function(){return this.width/this.height}; g.k.isEmpty=function(){return!this.area()}; g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.k.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var Pd={};g.O8a=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Vba={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=Wd.prototype;g.k.Ib=function(a){return Zd(this.j,a)}; g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))}; g.k.Ea=function(a){return g.ce(a,this.j)}; g.k.setProperties=de;g.k.createElement=function(a){return fe(this.j,a)}; g.k.appendChild=g.je;g.k.append=function(a,b){Zba(Xd(a),a,arguments,1)}; g.k.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.k.removeNode=g.oe;g.k.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})}; g.k.contains=g.pe;var te;we.prototype.add=function(a,b){var c=fca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c}; we.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a}; var fca=new Wc(function(){return new xe},function(a){return a.reset()}); xe.prototype.set=function(a,b){this.Hm=a;this.scope=b;this.next=null}; xe.prototype.reset=function(){this.next=this.scope=this.Hm=null};var ye,ze=!1,dca=new we;gca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1}; var hca=new Wc(function(){return new gca},function(a){a.reset()}); g.Ce.prototype.then=function(a,b,c){return rca(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)}; g.Ce.prototype.$goog_Thenable=!0;g.k=g.Ce.prototype;g.k.Xk=function(a,b){return rca(this,null,a,b)}; g.k.catch=g.Ce.prototype.Xk;g.k.cancel=function(a){if(this.j==0){var b=new Ie(a);g.Ae(function(){nca(this,b)},this)}}; g.k.Zea=function(a){this.j=0;Be(this,2,a)}; g.k.afa=function(a){this.j=0;Be(this,3,a)}; g.k.y8=function(){for(var a;a=oca(this);)pca(this,a,this.j,this.N);this.K=!1}; var vca=ve;g.Ya(Ie,jb);Ie.prototype.name="cancel";g.Ya(g.Je,g.Uc);g.k=g.Je.prototype;g.k.enabled=!1;g.k.ud=null;g.k.setInterval=function(a){this.dj=a;this.ud&&this.enabled?(this.stop(),this.start()):this.ud&&this.stop()}; g.k.Lea=function(){if(this.enabled){var a=g.Xa()-this.a_;a>0&&a>>0,c=a.j.j+c;a.j.j>>0);return!0},function(a,b,c){b=zf(b); b!=null&&b!=null&&(hh(a,c,0),eh(a.j,b))}),g9a=xh(function(a,b,c){if(a.B!==0)return!1; zh(b,c,Ng(a.j));return!0},function(a,b,c){b=yf(b); b!=null&&(b=parseInt(b,10),hh(a,c,0),Cea(a.j,b))});g.z(bfa,$g);g.z(Gh,$g);var Lh=[1,2,3];var h9a=[0,Lh,d9a,Y8a,b9a];var i9a=[0,h1,[0,Q8a,T8a]];g.z(Hh,$g);var Kh=[1,2,3];var j9a=[0,Kh,V8a,S8a,i1,i9a];g.z(Ih,$g);var k9a=[0,h1,h9a,j9a];var l9a=[0,[1,2,3],i1,[0,g1,-1,a9a],i1,[0,g1,-1,W8a,a9a],i1,[0,g1]];g.z(Jh,$g);Jh.prototype.Jr=function(){Qda(this,3,Ef,3,void 0,!0);throw Error();};Jh.prototype.j=afa([0,g1,l9a,c9a,h1,k9a,Z8a,$8a]);g.z(cfa,$g);var jfa={};g.k=Mh.prototype;g.k.isEnabled=function(){if(!g.Ka.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{kG:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.k.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.Pda;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.kG}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');l===void 0&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(e!=null?";samesite="+ e:"")}; g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e=0;b--)this.remove(a[b])}; var vr=new Mh(typeof document=="undefined"?null:document);g.z(Ph,$g);Uh.prototype.setInterval=function(a){this.intervalMs=a;this.Ye&&this.enabled?(this.stop(),this.start()):this.Ye&&this.stop()}; Uh.prototype.start=function(){var a=this;this.enabled=!0;this.Ye||(this.Ye=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())}; Uh.prototype.stop=function(){this.enabled=!1;this.Ye&&(clearTimeout(this.Ye),this.Ye=void 0)}; Uh.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b0&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.GE||this.j.enabled||this.j.start()}}; g.k.flush=function(a,b){var c=this;if(this.C.length===0)a&&a();else{var d=Date.now();if(this.Aa>d&&this.Y0&&(c.Y=Date.now(),c.Aa=c.Y+m),n=k1.j?k1.B(n,k1.j,175237375,!0):k1.B(n,175237375,null,!0),n=n===null?void 0:n)&&(n=yg(n,1,-1),n!==-1&&(c.D=new g.Xh(n<1?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0}; l=function(m,n){var p=Zda(e,gi);var q=$da(e,14);g.Yh(c.D);c.j.setInterval(c.D.getValue());m===401&&f&&(c.ra=f);q&&(c.G+=q);n===void 0&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.GE||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z}; c.network&&c.network.send(d,h,l)}}}}; g.k.zP=function(){wfa(this.B,!0);this.flush();wfa(this.B,!1)}; g.k.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; ii.prototype.EH=function(a){this.j.EH(a);return this}; ii.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;e=e===void 0?0:e;f=f===void 0?0:f;c=c===void 0?0:c;if(Zf(mi(this),bi,11)){var h=ni(this);Yf(h,3,xf(c))}Zf(mi(this),bi,11)&&(c=ni(this),Yf(c,4,xf(e)));Zf(mi(this),bi,11)&&(e=ni(this),Yf(e,5,xf(f)));f=this.j.clone();e=Date.now().toString();f=Yf(f,4,Cf(e));a=ug(f,gi,3,a.slice());d&&(f=new Vh,d=Yf(f,13,xf(d)),f=new Wh,d=tg(f,Vh,2,d),f=new fi,d=tg(f,Wh,1,d),d=Fg(d,2,9),tg(a,fi,18,d));b&&Cg(a,14,b);return a};oi.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:return f=(e=d.c7?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.wa(u,2,3),h=Object.assign({},{method:a.requestType, headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.G(u,fetch(a.url,h),5);case 5:l=u.B;if(l.status!==200){(m=c)==null||m(l.status);u.Ha(3);break}if((n=b)==null){u.Ha(7);break}return g.G(u,l.text(),8);case 8:n(u.B);case 7:case 3:g.za(u);clearTimeout(f);g.Aa(u,0);break;case 2:p=g.ya(u);switch((q=p)==null?void 0:q.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}u.Ha(3)}})}; oi.prototype.lK=function(){return 4};g.z(pi,g.O);pi.prototype.MX=function(){this.D=!0;return this}; pi.prototype.build=function(){this.network||(this.network=new oi);var a=new ki({logSource:this.logSource,bF:this.bF?this.bF:mfa,sessionIndex:this.sessionIndex,lfa:this.B,Ix:this.C,GE:!1,MX:this.D,cX:this.cX,network:this.network});g.P(this,a);if(this.j){var b=this.j,c=li(a.B);Dg(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.WB&&(a.WB=this.WB);this.pageId&&(a.pageId=this.pageId);this.Mz&&((c=this.Mz)?(a.experimentIds||(a.experimentIds=new Ph),b=a.experimentIds,c=c.dn(),Dg(b,4,c)):a.experimentIds&& Yf(a.experimentIds,4));xfa(a.B);this.network.EH&&this.network.EH(this.logSource);this.network.iea&&this.network.iea(a);return a};g.z(qi,g.O);qi.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new cfa,c=[],d=0;d0&&(this.getStatus(),this.qa=g.Ke(this.B5,this.ra,this)),this.getStatus(),this.Z=!0,this.j.send(a), this.Z=!1}catch(h){this.getStatus(),Qfa(this,h)}}; g.k.B5=function(){typeof Ni!="undefined"&&this.j&&(this.D="Timed out after "+this.ra+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Mi(this))}; g.k.xa=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),Mi(this,!0));g.Li.Pf.xa.call(this)}; g.k.x0=function(){this.La()||(this.Ga||this.Z||this.G?Rfa(this):this.Lba())}; g.k.Lba=function(){Rfa(this)}; g.k.isActive=function(){return!!this.j}; g.k.isComplete=function(){return g.Oi(this)==4}; g.k.getStatus=function(){try{return g.Oi(this)>2?this.j.status:-1}catch(a){return-1}}; g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),a===null?void 0:a}; g.k.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};Ti.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; c=c===void 0?function(){}:c; Ofa(a.url,function(d){d=d.target;Pi(d)?b(g.Qi(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)}; Ti.prototype.lK=function(){return 1};Vi.prototype.start=function(){this.startMillis=Ui()}; Vi.prototype.done=function(){this.startMillis!=null&&this.logger.gG(this.event,Ui()-this.startMillis)}; g.z(Wi,g.O);g.z(Yi,Wi);g.k=Yi.prototype;g.k.o_=function(){}; g.k.lR=function(){}; g.k.gG=function(){}; g.k.Ll=function(){}; g.k.ut=function(){}; g.k.mR=function(a,b,c){return c}; g.k.q_=function(){}; g.k.n_=function(){}; g.k.p_=function(){}; g.z(Zi,Wi);g.k=Zi.prototype;g.k.o_=function(){this.qa.j.mm("/client_streamz/bg/fic",this.lh)}; g.k.lR=function(){this.Fa.j.mm("/client_streamz/bg/fsc","",this.lh)}; g.k.gG=function(a,b){if(a==="t")this.Aa.Rh(b,"",this.lh);else if(a==="n")this.Ga.Rh(b,"",this.lh);else if(a==="h"||a==="u"||a==="k"){if(a=this.D.get(a))this.N.j.mm("/client_streamz/bg/fcc",a,this.lh),this.Z.Rh(b,a,this.lh)}else this.Y.Rh(b,a,"",this.B,this.lh)}; g.k.Ll=function(a){var b=this.C.get(a);b?this.ra.j.mm("/client_streamz/bg/fiec","",this.lh,b):this.errorCount.j.mm("/client_streamz/bg/cec",a,"",this.B,this.lh)}; g.k.mR=function(a,b,c){function d(h){var l=Ui()-f;e.Ma.Rh(l,a,b,h,e.B,e.lh)} var e=this,f=Ui();c.then(function(){d(0)},function(h){h instanceof ri?d(h.code):d(-1)}); return c}; g.k.q_=function(a){this.Ra.j.mm("/client_streamz/bg/po/csc",a,this.B,this.lh)}; g.k.n_=function(a){this.K.j.mm("/client_streamz/bg/po/ctav",a,this.B,this.lh)}; g.k.p_=function(a){this.Ka.j.mm("/client_streamz/bg/po/cwsc",a,this.B,this.lh)}; g.k.ut=function(){this.j.BN()};g.z($i,$g);g.z(aj,$g);g.z(bj,$g);var p9a=Fh(bj),Vfa=function(a){return Eh(function(b){return b instanceof a&&!(jf(b.xb)&2)})}(bj); bj.messageId="bfkj";g.z(dj,g.O);dj.prototype.snapshot=function(a){var b=this;if(this.La())throw Error("Already disposed");this.Wf.lR();return this.B.then(function(c){var d=c.r7;return new Promise(function(e){var f=new Vi(b.Wf,"n");d(function(h){f.done();b.Wf.ut();e(h)},[a.Br, a.pea,a.P3,a.tea])})})}; dj.prototype.B2=function(a){var b=this;if(this.La())throw Error("Already disposed");this.Wf.lR();var c=Xi(this.Wf,function(){return b.C([a.Br,a.pea,a.P3,a.tea])},"n"); this.Wf.ut();return c}; g.z(ej,Error);g.z(ij,$g);g.z(jj,$g);g.z(kj,$g);lj.prototype.UE=function(a,b){var c=this,d,e,f,h,l;return g.J(function(m){if(m.j==1){var n=new ij;d=Eg(n,1,c.dC);a&&Eg(d,2,a);b&&Eg(d,3,b);e=c.j();return g.G(m,c.client.create(d,e),2)}f=m.B;h=Ye(fg(f,2));if(h.length){n=m.return;var p=new Uint8Array(h.length);for(var q=0;q0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.z(uj,g.O);uj.prototype.mG=function(a,b){var c=this.j(a);b==null||b(c);return Xi(this.logger,function(){return g.Pe(c,2)},this.B)}; g.z(xj,uj);xj.prototype.j=function(a){var b=this;++this.K>=this.N&&this.D.resolve();var c=a();a=Xi(this.logger,function(){return b.G(c)},"C"); if(a===void 0)throw new ej(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new ej(18,"ODM:Invalid");return a}; g.z(yj,uj);yj.prototype.j=function(){return this.G}; g.z(zj,uj);zj.prototype.j=function(){var a=this;return Xi(this.logger,function(){return Re(a.G)},"d")}; zj.prototype.mG=function(){return this.G}; g.z(Aj,uj);Aj.prototype.j=function(){if(this.G)return this.G;this.G=Bga(this,function(a){return"_"+zga(a)}); return Bga(this,function(a){return a})}; g.z(Bj,uj);Bj.prototype.j=function(a){var b=a();if(b.length>118)throw new ej(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[Math.random()*255,Math.random()*255],d=c.concat([this.G&255,this.clientState],[a>>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;d=1&&this.j&&this.readyState!=4&&(this.j=!1,Wj(this));this.readyState=0}; g.k.K9=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,Vj(this)),this.j&&(this.readyState=3,Vj(this),this.j)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.I9.bind(this),this.uK.bind(this));else if(typeof g.Ka.ReadableStream!=="undefined"&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.N=new TextDecoder;Nga(this)}else a.text().then(this.J9.bind(this),this.uK.bind(this))}; g.k.z9=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Wj(this):Vj(this);this.readyState==3&&Nga(this)}}; g.k.J9=function(a){this.j&&(this.response=this.responseText=a,Wj(this))}; g.k.I9=function(a){this.j&&(this.response=a,Wj(this))}; g.k.uK=function(){this.j&&Wj(this)}; g.k.setRequestHeader=function(a,b){this.Z.append(a,b)}; g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""}; g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")}; g.k.setCredentialsMode=function(a){this.G=a}; Object.defineProperty(Uj.prototype,"withCredentials",{get:function(){return this.G==="include"}, set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Xj.prototype.toString=function(){var a=[],b=this.G;b&&a.push(ek(b,v9a,!0),":");var c=this.j;if(c||b=="file")a.push("//"),(b=this.Z)&&a.push(ek(b,v9a,!0),"@"),a.push(g.Qd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,c!=null&&a.push(":",String(c));if(c=this.B)this.j&&c.charAt(0)!="/"&&a.push("/"),a.push(ek(c,c.charAt(0)=="/"?w9a:x9a,!0));(c=this.D.toString())&&a.push("?",c);(c=this.K)&&a.push("#",ek(c,y9a));return a.join("")}; g.Xj.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.Yj(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.Zj(b,a.j):c=a.C!=null;var d=a.B;if(c)g.ak(b,a.C);else if(c=!!a.B){if(d.charAt(0)!="/")if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");e!=-1&&(d=b.B.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(g.sb(e,"./")||g.sb(e,"/.")){d=ob(e,"/");e=e.split("/");for(var f=[],h=0;h1||f.length==1&&f[0]!="")&&f.pop(), d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=a.D.toString()!=="";c?bk(b,a.D.clone()):c=!!a.K;c&&(b.K=a.K);return b}; g.Xj.prototype.clone=function(){return new g.Xj(this)}; var v9a=/[#\/\?@]/g,x9a=/[#\?:]/g,w9a=/[#\?]/g,Pga=/[#\?@]/g,y9a=/#/g;g.k=dk.prototype;g.k.add=function(a,b){hk(this);this.C=null;a=ik(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this}; g.k.remove=function(a){hk(this);a=ik(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1}; g.k.clear=function(){this.j=this.C=null;this.B=0}; g.k.isEmpty=function(){hk(this);return this.B==0}; g.k.forEach=function(a,b){hk(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; g.k.Yn=function(){hk(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d0?String(a[0]):b}; g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c>>3;f.C!=1&&f.C!=2&&f.C!=15&&mk(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0} function c(m){f.D++;f.D==5&&m&240&&mk(f,h,l,"message length too long");f.B|=(m&127)<<(f.D-1)*7;m&128||(f.j=2,f.Z=0,typeof Uint8Array!=="undefined"?f.G=new Uint8Array(f.B):f.G=Array(f.B),f.B==0&&e())} function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()} function e(){if(f.C<15){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;l0?a:null};nk.prototype.isInputValid=function(){return this.j===null}; nk.prototype.Yf=function(){return this.j}; nk.prototype.MI=function(){return!1}; nk.prototype.parse=function(a){this.j!==null&&Xga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||Wga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(d==0)var e=null;else{try{var f=Xca(c.j.slice(0,d*4))}catch(h){Wga(c,c.j,h.message)}c.B+=d*4;c.j=c.j.slice(d*4);e=f}b=e===null?null:this.D.parse(e)}catch(h){Xga(this,a,h.message)}this.B+=a.length;return b};var A9a={INIT:0,YD:1,XN:2,yz:3,TC:4,SC:5,STRING:6,VN:7,gW:8,tW:9,uW:10,vW:11,JU:12,KU:13,LU:14,MU:15,kW:16,lW:17,mW:18,P6:19,WN:20};g.k=pk.prototype;g.k.isInputValid=function(){return this.G!=3}; g.k.Yf=function(){return this.Y}; g.k.done=function(){return this.G===2}; g.k.MI=function(){return!1}; g.k.parse=function(a){function b(){for(;r0;)if(u=a[r++], f.Z===4?f.Z=0:f.Z++,!u)break a;if(u==='"'&&!f.N){f.j=d();break}if(u==="\\"&&!f.N&&(f.N=!0,u=a[r++],!u))break;if(f.N)if(f.N=!1,u==="u"&&(f.Z=1),u=a[r++])continue;else break;l.lastIndex=r;u=l.exec(a);if(!u){r=a.length+1;break}r=u.index+1;u=a[u.index];if(!u)break}f.C+=r-y;continue;case m.tW:if(!u)continue;u==="r"?f.j=m.uW:qk(f,a,r);continue;case m.uW:if(!u)continue;u==="u"?f.j=m.vW:qk(f,a,r);continue;case m.vW:if(!u)continue;u==="e"?f.j=d():qk(f,a,r);continue;case m.JU:if(!u)continue;u==="a"?f.j=m.KU: qk(f,a,r);continue;case m.KU:if(!u)continue;u==="l"?f.j=m.LU:qk(f,a,r);continue;case m.LU:if(!u)continue;u==="s"?f.j=m.MU:qk(f,a,r);continue;case m.MU:if(!u)continue;u==="e"?f.j=d():qk(f,a,r);continue;case m.kW:if(!u)continue;u==="u"?f.j=m.lW:qk(f,a,r);continue;case m.lW:if(!u)continue;u==="l"?f.j=m.mW:qk(f,a,r);continue;case m.mW:if(!u)continue;u==="l"?f.j=d():qk(f,a,r);continue;case m.P6:u==="."?f.j=m.WN:qk(f,a,r);continue;case m.WN:if("0123456789.eE+-".indexOf(u)!==-1)continue;else r--,f.C--,f.j= d();continue;default:qk(f,a,r)}}} function d(){var u=h.pop();return u!=null?u:m.YD} function e(u){f.B>1||(u||(u=q===-1?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(u):f.K.push(JSON.parse(u)),q=r)} for(var f=this,h=f.ra,l=f.Aa,m=A9a,n=a.length,p=0,q=-1,r=0;r0?(t=f.K,f.K=[],t):null}return null};rk.prototype.isInputValid=function(){return this.G===null}; rk.prototype.Yf=function(){return this.G}; rk.prototype.MI=function(){return!1}; rk.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);} function c(){f.C=new pk({Gma:!0,X7:!0})} function d(m){if(m)for(var n=0;n1)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}} for(var f=this,h=0;h0?(a=f.D,f.D=[],a):null};sk.prototype.lQ=function(){return this.j}; sk.prototype.getStatus=function(){return this.D}; sk.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Oi(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Qi(this.j);a=[];if(g.Ri(this.j)instanceof Array){var f=g.Ri(this.j);f.length>0&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?tk(this,7):c==7?tk(this,8):d||tk(this,3)),this.B||(this.B=Yga(this.j),this.B==null&&tk(this,5)),this.D>2)uk(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.MI())for(var l=0;lthis.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);n!=null&&this.G&&this.G(n)}catch(p){tk(this,5);uk(this);break a}}b==4?(e.length!= 0||this.Y?tk(this,2):tk(this,4),uk(this)):tk(this,1)}}}catch(p){tk(this,6),uk(this)}};g.k=Zga.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.Qb(c,b);(a=this.j[a])&&g.Qb(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.Gaa=function(a){var b=this.B.data;b&&$ga(a,b);(b=this.j.data)&&$ga(a,b);this.j.data=[]}; g.k.vca=function(){switch(this.C.getStatus()){case 1:vk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:vk(this,"error");break;case 8:vk(this,"close");break;case 2:vk(this,"end")}};aha.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return bha(function(h){var l=h.j,m=h.getMetadata(),n=eha(e,!1);m=fha(e,m,n,f+l.getName());var p=gha(n,l.B,!0);h=l.j(h.B);n.send(m,"POST",h);return p},this.D).call(this,Hga(d,b,c))};wk.prototype.create=function(a,b){return mj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},t9a)}; wk.prototype.ping=function(a,b){return mj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},u9a)};var B9a=1,Ek=new WeakMap;g.z(xk,g.O);xk.prototype.signal=function(){var a=new zk(!1);this.signals.add(a);g.P(this,a);return a}; xk.prototype.ZA=function(a){return yk(this,a).ZA()}; g.z(zk,g.O);g.k=zk.prototype;g.k.sO=function(){var a=this,b=B9a++;Ak(function(){iha(a,b)}); return b}; g.k.detach=function(a){var b=this;Ak(function(){var c=b.slots.get(a);c&&c.JX()})}; g.k.value=function(a){return this.promise(!0,a)}; g.k.ZA=function(){return this.YZ}; g.k.next=function(a){return this.promise(!1,a)}; g.k.promise=function(a,b){var c=this,d=mca();Ak(function(){if(c.La())d.reject(new Ie("Signal initially disposed"));else if(b&&b.La())d.reject(new Ie("Owner initially disposed"));else if(a&&c.hX&&c.dZ)d.resolve(c.YZ);else if(c.iC.add(d),He(d.promise,function(){c.iC.delete(d)}),b){var e=function(){d.reject(new Ie("Owner asynchronously disposed"))}; He(d.promise,function(){var f=Ek.get(b);f&&g.Qb(f,e)}); lha(b,e)}}); return d.promise}; g.k.xa=function(){var a=this;g.O.prototype.xa.call(this);Ak(function(){for(var b=g.w(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.JX,c();a.slots.clear();b=g.w(a.iC);for(c=b.next();!c.done;c=b.next())c.value.reject(new Ie("Signal asynchronously disposed"));a.iC.clear()})}; var Ck=[],Dk=!1;g.z(Fk,g.O);Fk.prototype.start=function(){var a=this;if(this.La())throw new Lk("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=a.milliseconds>0?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Bk(yk(d,a.C),a)}a.Cb.rS(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3; a.handle=void 0;a.D=1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Bk(yk(d,a.C),a)}a.Cb.rS(a)},this.milliseconds); this.state=1}}; Fk.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;(a=this.B)==null||a.reject(new Gk);var b;(b=this.Cb.Z_)==null||b.call(this);if(this.G){var c;(c=this.j)!=null&&Bk(yk(c,this.G))}}}; Fk.prototype.xa=function(){this.clear();var a;(a=this.B)==null||a.reject(new Lk);this.state=4;g.O.prototype.xa.call(this)}; Fk.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; g.ea.Object.defineProperties(Fk.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, tick:{configurable:!0,enumerable:!0,get:function(){return this.D}}, Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.B!=null||(this.B=new g.cj),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Gk("Timer has been cancelled."));case 4:return Promise.reject(new Lk("Timer has been disposed."));default:Kd(this.state)}}}, rS:{configurable:!0,enumerable:!0,get:function(){if(this.La())throw new Lk("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new xk(this)),this.C=this.j.signal());return this.C}}, Z_:{configurable:!0,enumerable:!0,get:function(){if(this.La())throw new Lk("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new xk(this)),this.G=this.j.signal());return this.G}}}); g.z(Gk,jb);g.z(Lk,jb);g.z(Mk,Cj);g.k=Mk.prototype;g.k.isReady=function(){return!!this.j}; g.k.ready=function(){var a=this;return g.J(function(b){return g.G(b,a.C.promise,0)})}; g.k.UE=function(a){return oha(this,this.logger.mR("c",a===void 0?1:a,this.Yw.UE(gj().j,null)),new ej(10,"JVZ:Timeout"))}; g.k.prefetch=function(){this.state===1&&(this.FF=this.UE())}; g.k.start=function(){if(this.state===1){this.state=2;var a=new Vi(this.logger,"r");this.ready().finally(function(){return void a.done()}); qha(this)}}; g.k.mG=function(a){if(a.jk&&!this.cache){var b=Math.min(a.jk.v_,150);if(!(b>150))try{this.cache=new uga(b,this.logger)}catch(f){this.reportError(new ej(22,"GBJ:init",f))}}b={Br:a.Br,FJ:a.FJ,S$:!0,T$:!0};a.jk&&(a=a.jk,b.jk={rE:a.rE,VI:a.VI,JM:a.JM});a:{try{if(this.La())throw new ej(21,"BNT:disposed");var c,d;var e=(d=(c=Cga(this,b))!=null?c:Dga(this,b))!=null?d:Ega(this,b);break a}catch(f){if(!b.T$)throw f;e=Fga(this,f);break a}e=void 0}return e};var uha={NONE:0,tha:1},aia={t4:0,wka:1,vka:2,xka:3},wl={b4:"a",oha:"d",VIDEO:"v"};Ok.prototype.isVisible=function(){return this.Dx?this.Ce>=.3:this.Ce>=.5};var Yk={Yga:0,Jha:1},Zha={NONE:0,yia:1,Qha:2};Pk.prototype.getValue=function(){return this.B}; g.z(Qk,Pk);Qk.prototype.C=function(a){this.B===null&&g.zc(this.D,a)&&(this.B=a)}; g.z(Rk,Pk);Rk.prototype.C=function(a){this.B===null&&typeof a==="number"&&(this.B=a)}; g.z(Sk,Pk);Sk.prototype.C=function(a){this.B===null&&typeof a==="string"&&(this.B=a)};Tk.prototype.disable=function(){this.B=!1}; Tk.prototype.enable=function(){this.B=!0}; Tk.prototype.isEnabled=function(){return this.B}; Tk.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var sm=document,bl=window;var cja=!g.Xl&&!Ib();Zk.prototype.now=function(){return 0}; Zk.prototype.B=function(){return 0}; Zk.prototype.C=function(){return 0}; Zk.prototype.j=function(){return 0};g.z(al,Zk);al.prototype.now=function(){return $k()&&bl.performance.now?bl.performance.now():Zk.prototype.now.call(this)}; al.prototype.B=function(){return $k()&&bl.performance.memory?bl.performance.memory.totalJSHeapSize||0:Zk.prototype.B.call(this)}; al.prototype.C=function(){return $k()&&bl.performance.memory?bl.performance.memory.usedJSHeapSize||0:Zk.prototype.C.call(this)}; al.prototype.j=function(){return $k()&&bl.performance.memory?bl.performance.memory.jsHeapSizeLimit||0:Zk.prototype.j.call(this)};var xha=ad(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); g.Ka.addEventListener("test",null,b)}catch(c){}return a});yha.prototype.isVisible=function(){return el(sm)===1};ed("csi.gstatic.com");ed("googleads.g.doubleclick.net");ed("partner.googleadservices.com");ed("pubads.g.doubleclick.net");ed("securepubads.g.doubleclick.net");ed("tpc.googlesyndication.com");var Aha={Jfa:"allow-forms",Kfa:"allow-modals",Lfa:"allow-orientation-lock",Mfa:"allow-pointer-lock",Nfa:"allow-popups",Ofa:"allow-popups-to-escape-sandbox",Pfa:"allow-presentation",Qfa:"allow-same-origin",Rfa:"allow-scripts",Sfa:"allow-top-navigation",Tfa:"allow-top-navigation-by-user-activation"},Eha=ad(function(){return Bha()});var Iha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");jl.prototype.De=function(a,b,c){a=a+"//"+b+c;var d=Mha(this)-c.length;if(d<0)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=c==null?f:c}}d="";c!=null&&(d=b+"trn="+c);return a+d};rl.prototype.setInterval=function(a,b){return bl.setInterval(a,b)}; rl.prototype.clearInterval=function(a){bl.clearInterval(a)}; rl.prototype.setTimeout=function(a,b){return bl.setTimeout(a,b)}; rl.prototype.clearTimeout=function(a){bl.clearTimeout(a)};g.z(tl,$g);tl.prototype.j=afa([0,R8a,U8a,-2,X8a]);var $ha={dka:1,b7:2,wja:3};bia.prototype.PS=function(a){if(typeof a==="string"&&a.length!=0){var b=this.Lc;if(b.B){a=a.split("&");for(var c=a.length-1;c>=0;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);d.length>1?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var l1=null;var zl=g.Ka.performance,C9a=!!(zl&&zl.mark&&zl.measure&&zl.clearMarks),xl=ad(function(){var a;if(a=C9a){var b;if(l1===null){l1="";try{a="";try{a=g.Ka.top.location.hash}catch(c){a=g.Ka.location.hash}a&&(l1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=l1;a=!!b.indexOf&&b.indexOf("1337")>=0}return a}); yl.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(xl()&&g.cc(this.events,hia),this.events.length=0)}; yl.prototype.start=function(a,b){if(!this.j)return null;var c=fia()||eia();a=new gia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";zl&&xl()&&zl.mark(b);return a}; yl.prototype.end=function(a){if(this.j&&typeof a.value==="number"){var b=fia()||eia();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";zl&&xl()&&zl.mark(b);!this.j||this.events.length>2048||this.events.push(a)}};iia.prototype.pR=function(a,b,c,d,e){e=e||this.WX;try{var f=new jl;f.j.push(1);f.B[1]=kl("context",a);b.error&&b.meta&&b.id||(b=new Dl(El(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=kl("msg",h)}var l=b.meta||{};if(this.nO)try{this.nO(l)}catch(t){}if(d)try{d(l)}catch(t){}b=[l];f.j.push(3);f.B[3]=b;var m=Kha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=kl("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(yi);var r=wi(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5); f.B[5]=n;cia(this.j,e,f,c)}catch(t){try{cia(this.j,e,{context:"ecmserr",rctx:a,msg:El(t),url:m&&m.j.url},c)}catch(u){}}return this.QT}; g.z(Dl,dia);var Bl,Cl,Al=new yl;Bl=new function(){var a="https:";bl&&bl.location&&bl.location.protocol==="http:"&&(a="http:");this.B=a;this.j=.01}; Cl=new iia;bl&&bl.document&&(bl.document.readyState=="complete"?kia():Al.j&&dl(bl,"load",function(){kia()}));var nia=Date.now(),Ll=-1,Jl=-1,Eja,Ml=-1,Kl=!1;g.k=Nl.prototype;g.k.getHeight=function(){return this.bottom-this.top}; g.k.clone=function(){return new Nl(this.top,this.right,this.bottom,this.left)}; g.k.contains=function(a){return this&&a?a instanceof Nl?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Ql.prototype.Ib=function(){return this.N};var D9a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},nn={V6:"start",y4:"firstquartile",M6:"midpoint",W6:"thirdquartile",COMPLETE:"complete",ERROR:"error",L6:"metric",PAUSE:"pause",R6:"resume",S6:"skip",a7:"viewable_impression",O6:"mute",Y6:"unmute",z4:"fullscreen",w4:"exitfullscreen",m4:"bufferstart",l4:"bufferfinish",A4:"fully_viewable_audible_half_duration_impression",K6:"measurable_impression",Z3:"abandon",v4:"engagedview",E4:"impression",q4:"creativeview",J6:"loaded", ika:"progress",CLOSE:"close",Uga:"collapse",Qja:"overlay_resize",Rja:"overlay_unmeasurable_impression",Sja:"overlay_unviewable_impression",Uja:"overlay_viewable_immediate_impression",Tja:"overlay_viewable_end_of_session_impression",r4:"custom_metric_viewable",d4:"audio_audible",f4:"audio_measurable",e4:"audio_impression"},Pka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Qka=["start","firstquartile","midpoint","thirdquartile"],Gja=["abandon"],Hn={UNKNOWN:-1,V6:0,y4:1,M6:2, W6:3,COMPLETE:4,L6:5,PAUSE:6,R6:7,S6:8,a7:9,O6:10,Y6:11,z4:12,w4:13,A4:14,K6:15,Z3:16,v4:17,E4:18,q4:19,J6:20,r4:21,m4:22,l4:23,e4:27,f4:28,d4:29};var qia={Afa:"addEventListener",Sha:"getMaxSize",Tha:"getScreenSize",Uha:"getState",Vha:"getVersion",rka:"removeEventListener",Uia:"isViewable"};g.k=g.Sl.prototype;g.k.clone=function(){return new g.Sl(this.left,this.top,this.width,this.height)}; g.k.contains=function(a){return a instanceof g.Ed?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.Gd(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=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var uia={};Dia.prototype.update=function(a){a&&a.document&&(this.N=Rl(!1,a,this.isMobileDevice),this.j=Rl(!0,a,this.isMobileDevice),Fia(this,a),Eia(this,a))};um.prototype.cancel=function(){sl().clearTimeout(this.j);this.j=null}; um.prototype.schedule=function(){var a=this,b=sl(),c=vl().j.j;this.j=b.setTimeout(ul(c,Gl(143,function(){a.B++;a.C.sample()})),oia())};g.k=vm.prototype;g.k.tD=function(){return!1}; g.k.initialize=function(){return this.isInitialized=!0}; g.k.lA=function(){return this.j.Ga}; g.k.AF=function(){return this.j.qa}; g.k.aj=function(a,b){if(!this.qa||(b===void 0?0:b))this.qa=!0,this.Ga=a,this.Z=0,this.j!=this||xm(this)}; g.k.getName=function(){return this.j.Ra}; g.k.Wt=function(){return this.j.uY()}; g.k.uY=function(){return{}}; g.k.Pr=function(){return this.j.Z}; g.k.AV=function(){var a=rm();a.j=Rl(!0,this.C,a.isMobileDevice)}; g.k.BV=function(){Eia(rm(),this.C)}; g.k.JY=function(){return this.D.j}; g.k.sample=function(){}; g.k.isActive=function(){return this.j.K}; g.k.xA=function(a){var b=this.j;this.j=a.Pr()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,xm(this)):this.K!==this.j.K&&(this.K=this.j.K,xm(this))}; g.k.nu=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(c===void 0||!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&&Iia(this)}}; g.k.Iq=function(){return this.Y}; g.k.dispose=function(){this.Fa=!0}; g.k.La=function(){return this.Fa};g.k=ym.prototype;g.k.CN=function(){return!0}; g.k.FI=function(){}; g.k.dispose=function(){if(!this.La()){var a=this.B;g.Qb(a.G,this);a.Y&&this.Iq()&&Hia(a);this.FI();this.qa=!0}}; g.k.La=function(){return this.qa}; g.k.Wt=function(){return this.B.Wt()}; g.k.Pr=function(){return this.B.Pr()}; g.k.lA=function(){return this.B.lA()}; g.k.AF=function(){return this.B.AF()}; g.k.xA=function(){}; g.k.nu=function(){this.Ft()}; g.k.Iq=function(){return this.ra};g.k=zm.prototype;g.k.Pr=function(){return this.j.Pr()}; g.k.lA=function(){return this.j.lA()}; g.k.AF=function(){return this.j.AF()}; g.k.create=function(a,b,c){var d=null;this.j&&(d=this.GI(a,b,c),wm(this.j,d));return d}; g.k.CV=function(){return this.uD()}; g.k.uD=function(){return!1}; g.k.init=function(a){return this.j.initialize()?(wm(this.j,this),this.D=a,!0):!1}; g.k.xA=function(a){a.Pr()==0&&this.D(a.lA(),this)}; g.k.nu=function(){}; g.k.Iq=function(){return!1}; g.k.dispose=function(){this.G=!0}; g.k.La=function(){return this.G}; g.k.Wt=function(){return{}};Am.prototype.add=function(a,b,c){++this.C;a=new Jia(a,b,c);this.j.push(new Jia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Oia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Cm(this.j);b.length>0&&(a+="?"+b);return a};Dm.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(c===void 0?!a:c)this.D=0};var Tia=[1,.75,.5,.3,0];Em.prototype.update=function(a,b,c,d,e,f){f=f===void 0?!0:f;b=e?Math.min(a,b):b;for(e=0;e0&&b>=h;h=!(a>0&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Km.prototype.update=function(a,b,c,d){this.N=this.N!=-1?Math.min(this.N,b.Ce):b.Ce;this.ra=Math.max(this.ra,b.Ce);this.Aa=this.Aa!=-1?Math.min(this.Aa,b.Uk):b.Uk;this.Ga=Math.max(this.Ga,b.Uk);this.Xa.update(b.Uk,c.Uk,b.j,a,d);this.B.update(b.Ce,c.Ce,b.j,a,d);c=d||c.Dx!=b.Dx?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ra.update(c,a,b)}; Km.prototype.qs=function(){return this.Ra.C>=this.Ya};if(sm&&sm.URL){var E9a=sm.URL,F9a;if(F9a=!!E9a){var G9a;a:{if(E9a){var H9a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var m1=H9a.exec(decodeURIComponent(E9a));if(m1){G9a=m1[1]&&m1[1].length>1?m1[1].substring(1):"true";break a}}catch(a){}}G9a=""}F9a=G9a.length>0}Cl.QT=!F9a};var I9a=new Nl(0,0,0,0);var aja=new Nl(0,0,0,0);g.z(Pm,g.O);g.k=Pm.prototype; g.k.xa=function(){if(this.rk.j){if(this.Rw.AR){var a=this.rk.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Rw.AR,cl());this.Rw.AR=null}this.Rw.zR&&(a=this.rk.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Rw.zR,cl()),this.Rw.zR=null)}this.SH&&this.SH.dispose();this.ag&&this.ag.dispose();delete this.bL;delete this.qR;delete this.v3;delete this.rk.Ku;delete this.rk.j;delete this.Rw;delete this.SH;delete this.ag;delete this.Lc;g.O.prototype.xa.call(this)}; g.k.au=function(){return this.ag?this.ag.j:this.position}; g.k.PS=function(a){vl().PS(a)}; g.k.Iq=function(){return!1}; g.k.dK=function(){return new Km}; g.k.Dj=function(){return this.bL}; g.k.yY=function(a){return eja(this,a,1E4)}; g.k.Ta=function(a,b,c,d,e,f,h){this.wu||(this.NE&&(a=this.AO(a,c,e,h),d=d&&this.xi.Ce>=(this.Dx()?.3:.5),this.vU(f,a,d),this.lq=b,a.Ce>0&&-1===this.S2&&(this.S2=b),this.X2==-1&&this.qs()&&(this.X2=b),this.kR==-2&&(this.kR=Nm(this.au())?a.Ce:-1),this.xi=a),this.qR(this))}; g.k.vU=function(a,b,c){this.Dj().update(a,b,this.xi,c)}; g.k.ZP=function(){return new Ok}; g.k.AO=function(a,b,c,d){c=this.ZP();c.j=b;b=sl().B;b=el(sm)===0?-1:b.isVisible()?0:1;c.B=b;c.Ce=this.VO(a);c.Dx=this.Dx();c.Uk=d;return c}; g.k.VO=function(a){return this.opacity===0&&Wk(this.Lc,"opac")===1?0:a}; g.k.Dx=function(){return!1}; g.k.EM=function(){return this.j$||this.m$}; g.k.Ux=function(){Il()}; g.k.tB=function(){Il()}; g.k.Xp=function(){return 0}; g.k.qs=function(){return this.bL.qs()}; g.k.MY=function(){var a=this.NE;a=(this.hasCompleted||this.La())&&!a;var b=vl().B!==2||this.Sea;return this.wu||b&&a?2:this.qs()?4:3}; g.k.RJ=function(){return 0};g.Rm.prototype.next=function(){return g.n1}; g.n1={done:!0,value:void 0};g.Rm.prototype.xm=function(){return this};g.z(kja,Ok);var o1=mja([void 0,1,2,3,4,8,16]),p1=mja([void 0,4,8,16]),J9a={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Vm("p0",p1),p1:Vm("p1",p1),p2:Vm("p2",p1),p3:Vm("p3",p1),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Um("mtos1",[0,2,4],!1,p1),mtos2:Um("mtos2",[0,2,4],!1,p1),mtos3:Um("mtos3",[0,2,4],!1,p1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Vm("a0",p1),a1:Vm("a1",p1),a2:Vm("a2",p1),a3:Vm("a3",p1),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Vm("c0",p1),c1:Vm("c1",p1),c2:Vm("c2",p1),c3:Vm("c3",p1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Vm("qmtos",o1),qnc:Vm("qnc",o1),qmv:Vm("qmv",o1),qnv:Vm("qnv",o1), raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Vm("ss0",p1),ss1:Vm("ss1",p1),ss2:Vm("ss2",p1),ss3:Vm("ss3",p1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co"},K9a=Object.assign({},J9a,{avid:Xc("audio"),avas:"avas",vs:"vs"}),L9a={atos:"atos",avt:Um("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return c[a]===void 0&&b!==void 0?b:c[a]}}("ss",0), t:"t"};Zm.prototype.getValue=function(){return this.B}; Zm.prototype.update=function(a,b){a>=32||(this.j&1<=.5;pm(b.volume)&&(this.D=this.D!=-1?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Fa+=a,this.Y+=e?a:0);this.j.update(b.Ce,c.Ce,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.fb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ma.update(a,b.isVisible());this.Wa.update(a,b.Ce>=1);this.Va.update(a, Tm(b))}};sja.prototype.B=function(a){this.C||(this.j(a)?(a=Dka(this.Y,this.D,a),this.G|=a,a=a==0):a=!1,this.C=a)};g.z(bn,sja);bn.prototype.j=function(){return!0}; bn.prototype.K=function(){return!1}; bn.prototype.getId=function(){var a=this,b=Ac(nn,function(c){return c==a.D}); return Hn[b].toString()}; bn.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");this.G>0&&(a+=":"+this.G);return this.getId()+a};g.z(cn,bn);cn.prototype.B=function(a,b){b=b===void 0?null:b;b!=null&&this.N.push(b);bn.prototype.B.call(this,a)};g.z(dn,tja);dn.prototype.B=function(){return null}; dn.prototype.C=function(){return[]};g.z(en,ym);g.k=en.prototype;g.k.DO=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=Aia(a.getBoundingClientRect())}catch(n){c=new Nl(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=xia(a,b),h=f.x,l=f.y;var m=new Nl(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=I9a.clone()}this.j=m}}; g.k.iX=function(){this.D=this.B.D.j}; g.k.JZ=function(a){var b=Wk(this.Lc,"od")==1;return $ia(a,this.D,this.element,b)}; g.k.jX=function(){this.timestamp=Il()}; g.k.Ft=function(){this.jX();this.DO();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var b=new g.Gd(a.videoWidth,a.videoHeight);a=this.j;var c=Ol(a),d=a.getHeight(),e=b.width;b=b.height;e<=0||b<=0||c<=0||d<=0||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,d>0&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),c>0&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.iX(); a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Nl(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new Nl(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Nl(0,0,0,0):a;a=this.B.D;b=e=d=0;(this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0&&(this.JZ(c)?c=new Nl(0,0,0,0):(d=rm().D,b=new Nl(0,d.height,d.width,0),d=Om(c,this.j),e=Om(c,rm().j),b=Om(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Nl(0,0,0, 0):Pl(c,-this.j.left,-this.j.top);tm()||(e=d=0);this.N=new Ql(a,this.element,this.j,c,d,e,this.timestamp,b)}; g.k.getName=function(){return this.B.getName()};var M9a=new Nl(0,0,0,0);g.z(fn,en);g.k=fn.prototype;g.k.CN=function(){this.C();return!0}; g.k.nu=function(){en.prototype.Ft.call(this)}; g.k.jX=function(){}; g.k.DO=function(){}; g.k.Ft=function(){this.C();en.prototype.Ft.call(this)}; g.k.xA=function(a){a=a.isActive();a!==this.K&&(a?this.C():(rm().j=new Nl(0,0,0,0),this.j=new Nl(0,0,0,0),this.D=new Nl(0,0,0,0),this.timestamp=-1));this.K=a};var q1={},Dja=(q1.firstquartile=0,q1.midpoint=1,q1.thirdquartile=2,q1.complete=3,q1);g.z(hn,Pm);g.k=hn.prototype;g.k.Iq=function(){return!0}; g.k.Go=function(){return this.Ik==2}; g.k.yY=function(a){return eja(this,a,Math.max(1E4,this.C/3))}; g.k.Ta=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.Gc(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Ra=m.isYouTube||this.Ra;sl();this.ob=!1;e=vja(this,b);uja(this)===1&&(f=e);Pm.prototype.Ta.call(this,a,b,c,d,m,f,h);this.ws&&this.ws.C&&g.cc(this.K,function(n){n.B(l)})}; g.k.vU=function(a,b,c){Pm.prototype.vU.call(this,a,b,c);ln(this).update(a,b,this.xi,c);this.fb=Tm(this.xi)&&Tm(b);this.Ga==-1&&this.Xa&&(this.Ga=this.Dj().C.j);this.Lg.C=0;a=this.qs();b.isVisible()&&Ym(this.Lg,"vs");a&&Ym(this.Lg,"vw");pm(b.volume)&&Ym(this.Lg,"am");Tm(b)?Ym(this.Lg,"a"):Ym(this.Lg,"mut");this.JA&&Ym(this.Lg,"f");b.B!=-1&&(Ym(this.Lg,"bm"),b.B==1&&(Ym(this.Lg,"b"),Tm(b)&&Ym(this.Lg,"umutb")));Tm(b)&&b.isVisible()&&Ym(this.Lg,"avs");this.fb&&a&&Ym(this.Lg,"avw");b.Ce>0&&Ym(this.Lg, "pv");mn(this,this.Dj().C.j,!0)&&Ym(this.Lg,"gdr");Im(this.Dj().B,1)>=2E3&&Ym(this.Lg,"pmx");this.ob&&Ym(this.Lg,"tvoff")}; g.k.dK=function(){return new $m}; g.k.Dj=function(){return this.bL}; g.k.ZP=function(){return new kja}; g.k.AO=function(a,b,c,d){a=Pm.prototype.AO.call(this,a,b,c,d===void 0?-1:d);a.fullscreen=this.JA;a.paused=this.Go();a.volume=c.volume;pm(a.volume)||(this.Jb++,b=this.xi,pm(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=c!==void 0&&c>=0?c:-1;return a}; g.k.VO=function(a){return rm(),this.JA?1:Pm.prototype.VO.call(this,a)}; g.k.Xp=function(){return 1}; g.k.getDuration=function(){return this.C}; g.k.MY=function(){return this.wu?2:xja(this)?5:this.qs()?4:3}; g.k.RJ=function(){return this.yb?this.Dj().G.C>=2E3?4:3:2};var N9a=g.Xa();Oja.prototype.reset=function(){this.j=[];this.B=[]}; var sn=ql(Oja);g.z(vn,zm);g.k=vn.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()}; g.k.Wt=function(){return(this.B?this.B:this.j).Wt()}; g.k.Pr=function(){return(this.B?this.B:this.j).Pr()}; g.k.init=function(a){var b=!1;(0,g.cc)(this.C,function(c){c.initialize()&&(b=!0)}); b&&(this.D=a,wm(this.j,this));return b}; g.k.dispose=function(){(0,g.cc)(this.C,function(a){a.dispose()}); zm.prototype.dispose.call(this)}; g.k.CV=function(){return qm(this.C,function(a){return a.tD()})}; g.k.uD=function(){return qm(this.C,function(a){return a.tD()})}; g.k.GI=function(a,b,c){return new en(a,this.j,b,c)}; g.k.nu=function(a){this.B=a.B};var Xja={threshold:[0,.3,.5,.75,1]};g.z(wn,en);g.k=wn.prototype;g.k.CN=function(){var a=this;this.Y||(this.Y=Il());if(mia(298,function(){return Yja(a)}))return!0; this.B.aj("msf");return!1}; g.k.FI=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}}; g.k.Ft=function(){var a=xn(this);a.length>0&&yn(this,a);en.prototype.Ft.call(this)}; g.k.DO=function(){}; g.k.JZ=function(){return!1}; g.k.iX=function(){}; g.k.Wt=function(){var a={};return Object.assign(this.B.Wt(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))}; g.k.getName=function(){return"nio"};g.z(zn,zm);zn.prototype.getName=function(){return"nio"}; zn.prototype.uD=function(){return!rm().B&&this.j.j.C.IntersectionObserver!=null}; zn.prototype.GI=function(a,b,c){return new wn(a,this.j,b,c)};g.z(An,vm);An.prototype.JY=function(){return rm().j}; An.prototype.tD=function(){var a=$ja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,xm(this)),this.Z=a);return a==2};Bn.prototype.sample=function(){En(this,tn(),!1)}; Bn.prototype.D=function(){var a=tm(),b=Il();a?(Kl||(Ll=b,g.cc(sn.j,function(c){var d=c.Dj();d.Ka=an(d,b,c.Ik!=1)})),Kl=!0):(this.N=eka(this,b),Kl=!1,Eja=b,g.cc(sn.j,function(c){c.NE&&(c.Dj().Z=b)})); En(this,tn(),!a)}; var Cn=ql(Bn);var gka=null,ao="",$n=!1;var jka=ika().Lp,Gn=ika().Pp;var mka={Kha:"visible",qga:"audible",fla:"time",gla:"timetype"},nka={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, audible:function(a){return a=="0"||a=="1"}, timetype:function(a){return a=="mtos"||a=="tos"}, time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}}; lka.prototype.setTime=function(a,b,c){b=="ms"?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=c===void 0?"tos":c;return this};g.z(Kn,bn);Kn.prototype.getId=function(){return this.N}; Kn.prototype.K=function(){return!0}; Kn.prototype.j=function(a){var b=a.Dj(),c=a.getDuration();return qm(this.Z,function(d){if(d.j!=void 0)var e=pka(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}e==0?d=!1:(d=d.C!=-1?d.C:c!==void 0&&c>0?d.D*c:-1,d=d!=-1&&e>=d);return d})};g.z(Ln,oja);Ln.prototype.j=function(a){var b=new nja;b.j=Xm(a,J9a);b.B=Xm(a,L9a);return b};g.z(Mn,bn);Mn.prototype.j=function(a){return xja(a)};g.z(Nn,tja);g.z(On,bn);On.prototype.j=function(a){return a.Dj().qs()};g.z(Pn,cn);Pn.prototype.j=function(a){var b=g.Nb(this.N,Wk(vl().Lc,"ovms"));return!a.wu&&(a.Ik!=0||b)};g.z(Qn,Nn);Qn.prototype.B=function(){return new Pn(this.j)}; Qn.prototype.C=function(){return[new On("viewable_impression",this.j),new Mn(this.j)]};g.z(Rn,fn);Rn.prototype.C=function(){var a=g.Ma("ima.admob.getViewability"),b=Wk(this.Lc,"queryid");typeof a==="function"&&b&&a(b)}; Rn.prototype.getName=function(){return"gsv"};g.z(Sn,zm);Sn.prototype.getName=function(){return"gsv"}; Sn.prototype.uD=function(){var a=rm();vl();return a.B&&!1}; Sn.prototype.GI=function(a,b,c){return new Rn(this.j,b,c)};g.z(Tn,fn);Tn.prototype.C=function(){var a=this,b=g.Ma("ima.bridge.getNativeViewability"),c=Wk(this.Lc,"queryid");typeof b==="function"&&c&&b(c,function(d){g.Bc(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Bia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?M9a.clone():Bia(e);a.timestamp=d.opt_nativeTime||-1;rm().j=h.j;d=d.opt_nativeVolume;d!==void 0&&(h.volume=d)})}; Tn.prototype.getName=function(){return"nis"};g.z(Un,zm);Un.prototype.getName=function(){return"nis"}; Un.prototype.uD=function(){var a=rm();vl();return a.B&&!1}; Un.prototype.GI=function(a,b,c){return new Tn(this.j,b,c)};g.z(Vn,vm);g.k=Vn.prototype;g.k.tD=function(){return this.B.Ko!=null}; g.k.uY=function(){var a={};this.Ma&&(a.mraid=this.Ma);this.Aa&&(a.mlc=1);a.mtop=this.B.sea;this.N&&(a.mse=this.N);this.Ka&&(a.msc=1);a.mcp=this.B.compatibility;return a}; g.k.uv=function(a){var b=g.Da.apply(1,arguments);try{return this.B.Ko[a].apply(this.B.Ko,b)}catch(c){Hl(538,c,.01,function(d){d.method=a})}}; g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.AF();this.isInitialized=!0;if(this.B.compatibility===2)return this.N="ng",this.aj("w"),!1;if(this.B.compatibility===1)return this.N="mm",this.aj("w"),!1;rm().Z=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?tka(this):Mm(this.C,"load",function(){sl().setTimeout(Gl(292,function(){return tka(a)}),100)},292); return!0}; g.k.AV=function(){var a=rm(),b=yka(this,"getMaxSize");a.j=new Nl(0,b.width,b.height,0)}; g.k.BV=function(){rm().D=yka(this,"getScreenSize")}; g.k.dispose=function(){vka(this);vm.prototype.dispose.call(this)};var Xha=new function(a,b){this.key=a;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=Xn.prototype;g.k.yJ=function(a){Qm(a,!1);Sja(a)}; g.k.mK=function(){}; g.k.jH=function(a,b,c,d){var e=this;a=new hn(bl,a,c?b:-1,7,this.fP(),this.BX());a.jj=d;sha(a.Lc);Vk(a.Lc,"queryid",a.jj);a.PS("");hja(a,function(){return e.UY.apply(e,g.x(g.Da.apply(0,arguments)))},function(){return e.M9.apply(e,g.x(g.Da.apply(0,arguments)))}); (d=ql(un).j)&&dja(a,d);a.rk.Ku&&ql(aka);return a}; g.k.xA=function(a){switch(a.Pr()){case 0:if(a=ql(un).j)a=a.j,g.Qb(a.G,this),a.Y&&this.Iq()&&Hia(a);Zn();break;case 2:Dn()}}; g.k.nu=function(){}; g.k.Iq=function(){return!1}; g.k.M9=function(a,b){a.wu=!0;switch(a.Xp()){case 1:Eka(a,b);break;case 2:this.cT(a)}}; g.k.V9=function(a){var b=a.N(a);b&&(b=b.volume,a.yb=pm(b)&&b>0);Aja(a,0);return on(a,"start",tm())}; g.k.HC=function(a,b,c){En(Cn,[a],!tm());return this.Yp(a,b,c)}; g.k.Yp=function(a,b,c){return on(a,c,tm())}; g.k.Q9=function(a){return fo(a,"firstquartile",1)}; g.k.S9=function(a){a.Xa=!0;return fo(a,"midpoint",2)}; g.k.W9=function(a){return fo(a,"thirdquartile",3)}; g.k.N9=function(a){var b=fo(a,"complete",4);jn(a);return b}; g.k.O9=function(a){a.Ik=3;return on(a,"error",tm())}; g.k.N1=function(a,b,c){b=tm();if(a.Go()&&!b){var d=a.Dj(),e=Il();d.Z=e}En(Cn,[a],!b);a.Go()&&(a.Ik=1);return on(a,c,b)}; g.k.U9=function(a,b){b=this.HC(a,b||{},"skip");jn(a);return b}; g.k.R9=function(a,b){Qm(a,!0);return this.HC(a,b||{},"fullscreen")}; g.k.P9=function(a,b){Qm(a,!1);return this.HC(a,b||{},"exitfullscreen")}; g.k.FS=function(a,b,c){b=a.Dj();var d=Il();b.Ka=an(b,d,a.Ik!=1);En(Cn,[a],!tm());a.Ik==1&&(a.Ik=2);return on(a,c,tm())}; g.k.T9=function(a){En(Cn,[a],!tm());return a.B()}; g.k.vQ=function(a){En(Cn,[a],!tm());this.H1(a);jn(a);return a.B()}; g.k.UY=function(){}; g.k.cT=function(){}; g.k.H1=function(){}; g.k.EV=function(){}; g.k.gP=function(){}; g.k.BX=function(){this.j||(this.j=this.gP());return this.j==null?new dn:new Qn(this.j)}; g.k.fP=function(){return new Ln};g.z(go,bn);go.prototype.j=function(a){return a.RJ()==4};g.z(ho,cn);ho.prototype.j=function(a){a=a.RJ();return a==3||a==4};g.z(io,Nn);io.prototype.B=function(){return new ho(this.j)}; io.prototype.C=function(){return[new go(this.j)]};g.z(jo,oja);jo.prototype.j=function(a){a&&(a.e===28&&(a=Object.assign({},a,{avas:3})),a.vs===4||a.vs===5)&&(a=Object.assign({},a,{vs:3}));var b=new nja;b.j=Xm(a,K9a);b.B=Xm(a,L9a);return b};Ika.prototype.B=function(){return g.Ma(this.j)};g.z(ko,Xn);g.k=ko.prototype;g.k.mK=function(a,b){var c=this,d=ql(un);if(d.j!=null)switch(d.j.getName()){case "nis":var e=Mka(this,a,b);break;case "gsv":e=Lka(this,a,b);break;case "exc":e=Nka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Gka(this,a,b.opt_adElement,b.opt_osdId)));e&&e.Xp()==1&&(e.N==g.Yc&&(e.N=function(f){return c.EV(f)}),Kka(this,e,b)); return e}; g.k.EV=function(a){a.B=0;a.Fa=0;if(a.D=="h"||a.D=="n"){vl();a.Ya&&(vl(),co(this)!="h"&&co(this));var b=g.Ma("ima.common.getVideoMetadata");if(typeof b==="function")try{var c=b(a.jj)}catch(e){a.B|=4}else a.B|=2}else if(a.D=="b")if(b=g.Ma("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{c=b(a.jj)}catch(e){a.B|=4}else a.B|=2;else if(a.D=="ml")if(b=g.Ma("ima.common.getVideoMetadata"),typeof b==="function")try{c=b(a.jj)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(c===void 0?a.B|=8:c===null? a.B|=16:g.Bc(c)?a.B|=32:c.errorCode!=null&&(a.Fa=c.errorCode,a.B|=64));c==null&&(c={});b=c;a.Z=0;for(var d in D9a)b[d]==null&&(a.Z|=D9a[d]);Hka(b,"currentTime");Hka(b,"duration");pm(c.volume)&&pm()&&(c.volume*=NaN);return c}; g.k.gP=function(){vl();co(this)!="h"&&co(this);var a=Oka(this);return a!=null?new Ika(a):null}; g.k.cT=function(a){!a.j&&a.wu&&eo(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)}; g.k.H1=function(a){a.w2&&(a.qs()?eo(this,a,"overlay_viewable_end_of_session_impression"):eo(this,a,"overlay_unviewable_impression"),a.w2=!1)}; g.k.UY=function(){}; g.k.jH=function(a,b,c,d){if(Yha()){var e=Wk(vl().Lc,"mm"),f={};(e=(f[wl.b4]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[wl.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Ska(this,e);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Hl(1044,Error())}a=Xn.prototype.jH.call(this,a,b,c,d);this.D&&(b=this.G,a.G==null&&(a.G=new ija),b.j[a.jj]=a.G,a.G.G=N9a);return a}; g.k.yJ=function(a){a&&a.Xp()==1&&this.D&&delete this.G.j[a.jj];return Xn.prototype.yJ.call(this,a)}; g.k.BX=function(){this.j||(this.j=this.gP());return this.j==null?new dn:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new io(this.j):new Qn(this.j)}; g.k.fP=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new jo:new Ln}; var O9a=Fl(193,Uka,void 0,Fka);g.La("Goog_AdSense_Lidar_sendVastEvent",O9a);var P9a=Gl(194,function(a,b){b=b===void 0?{}:b;a=Rka(ql(ko),a,b);return Tka(a)}); g.La("Goog_AdSense_Lidar_getViewability",P9a);var Q9a=Fl(195,function(){return Sha()}); g.La("Goog_AdSense_Lidar_getUrlSignalsArray",Q9a);var R9a=Gl(196,function(){return JSON.stringify(Sha())}); g.La("Goog_AdSense_Lidar_getUrlSignalsList",R9a);var Xua=oa(["//tpc.googlesyndication.com/sodar/",""]);var Kma=(new Date).getTime();var Wka="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),Xka=/\bocr\b/;var Zka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var S9a=0,T9a=0,U9a=0;var mo;mo=null;g.oo=!1;g.zo=1;g.yo=Symbol("SIGNAL");g.Bo={version:0,TZ:0,yl:!1,eg:void 0,By:void 0,Zm:void 0,mL:0,gj:void 0,Hu:void 0,Lt:!1,YO:!1,t1:function(){return!1}, v1:function(){}, xE:function(){}, Uma:function(){}};var V9a=Symbol("UNSET"),W9a=Symbol("COMPUTING"),X9a=Symbol("ERRORED");Object.assign({},g.Bo,{value:V9a,yl:!0,error:null,uP:$ka,t1:function(a){return a.value===V9a||a.value===W9a}, v1:function(a){if(a.value===W9a)throw Error("Detected cycle in computations.");var b=a.value;a.value=W9a;var c=g.po(a);try{var d=a.Sma()}catch(e){d=X9a,a.error=e}finally{g.so(a,c)}b!==V9a&&b!==X9a&&d!==X9a&&a.uP(b,d)?a.value=b:(a.value=d,a.version++)}});var gla;g.ila=null;gla=Object.assign({},g.Bo,{uP:$ka,value:void 0});g.Y9a=Object.assign({},g.Bo,{YO:!0,Lt:!1,xE:function(a){a.schedule!==null&&a.schedule(a.bC)}, BF:!1,Jz:g.Ao});g.Z9a=kla(!1);g.$9a=kla(!0);var a$a=Symbol("updater");g.z(Do,g.Uc);Do.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Ho.lk(this.G);delete Do.instance}; Do.prototype.Kh=function(){return this.j}; Do.prototype.Ve=function(){var a=this;this.G=this.Ho.Wi(function(){var b;return g.J(function(c){if(c.j==1)return a.j?((b=window.navigator)==null?0:b.onLine)?c.Ha(3):g.G(c,Co(a),3):g.G(c,Co(a),3);a.Ve();g.va(c)})},3E4)};Fo.prototype.set=function(a,b){b=b===void 0?!0:b;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)}; Fo.prototype.get=function(a){return!!this.data[a]};var Ho;g.Ya(g.Ko,g.O);g.k=g.Ko.prototype;g.k.start=function(){this.stop();this.D=!1;var a=nla(this),b=ola(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.Lc(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(lba(this.C),20)}; g.k.stop=function(){if(this.isActive()){var a=nla(this),b=ola(this);a&&!b&&this.B.mozRequestAnimationFrame?Rc(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null}; g.k.isActive=function(){return this.j!=null}; g.k.C5=function(){this.D&&this.j&&Rc(this.j);this.j=null;this.K.call(this.G,g.Xa())}; g.k.xa=function(){this.stop();g.Ko.Pf.xa.call(this)};g.Ya(g.Lo,g.O);g.k=g.Lo.prototype;g.k.vD=0;g.k.xa=function(){g.Lo.Pf.xa.call(this);this.stop();delete this.j;delete this.B}; g.k.start=function(a){this.stop();this.vD=g.Ke(this.C,a!==void 0?a:this.dj)}; g.k.stop=function(){this.isActive()&&g.Ka.clearTimeout(this.vD);this.vD=0}; g.k.isActive=function(){return this.vD!=0}; g.k.FV=function(){this.vD=0;this.j&&this.j.call(this.B)};g.Po.prototype[Symbol.iterator]=function(){return this}; g.Po.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.Ya(g.Yo,g.Uc);g.k=g.Yo.prototype;g.k.isPlaying=function(){return this.j==1}; g.k.isPaused=function(){return this.j==-1}; g.k.uL=function(){this.Qn("begin")}; g.k.As=function(){this.Qn("end")}; g.k.onFinish=function(){this.Qn("finish")}; g.k.onStop=function(){this.Qn("stop")}; g.k.Qn=function(a){this.dispatchEvent(a)};var b$a=ad(function(){var a=g.he("DIV"),b=g.lc?"-webkit":Wl?"-moz":g.Xl?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!K8a.test("div"))throw Error("");if("DIV"in M8a)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!K8a.test(n))throw Error("");var e=c[n];if(e!=null){var f=void 0;var h=n;if(e instanceof cd)e=dd(e);else if(h.toLowerCase()=="style"){if(!g.Ra(e))throw Error("");if(!(e instanceof g.sd)){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];m!=null&&(m=Array.isArray(m)?m.map(yba).join(" "):yba(m),l+=f+":"+m+";")}e=l?new g.sd(l,Ad):xla}e=td(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in L8a)if(e instanceof g.id)e=g.jd(e).toString();else if(e instanceof g.ld)e=g.md(e);else if(typeof e==="string")e=g.qd(e).toString();else throw Error("");}f=h+'="'+rb(String(e))+ '"';d+=" "+f}}var n="":(b=Bba(b),n+=">"+g.vd(b).toString()+"");n=wd(n);if(N8a())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.vd(n);return g.Yl(a.firstChild,"transition")!=""});g.Ya(Zo,g.Yo);g.k=Zo.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.uL();this.Qn("play");this.startTime=g.Xa();this.j=1;if(b$a())return g.Vl(this.B,this.K),this.C=g.Ke(this.Wca,void 0,this),!0;this.DN(!1);return!1}; g.k.Wca=function(){g.mm(this.B);rla(this.B,this.N);g.Vl(this.B,this.D);this.C=g.Ke((0,g.Ua)(this.DN,this,!1),this.G*1E3)}; g.k.stop=function(){this.isPlaying()&&this.DN(!0)}; g.k.DN=function(a){g.Vl(this.B,"transition","");g.Ka.clearTimeout(this.C);g.Vl(this.B,this.D);this.endTime=g.Xa();this.j=0;if(a)this.onStop();else this.onFinish();this.As()}; g.k.xa=function(){this.stop();Zo.Pf.xa.call(this)}; g.k.pause=function(){};var tla={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};$o("Element","attributes")||$o("Node","attributes");$o("Element","innerHTML")||$o("HTMLElement","innerHTML");$o("Node","nodeName");$o("Node","nodeType");$o("Node","parentNode");$o("Node","childNodes");$o("HTMLElement","style")||$o("Element","style");$o("HTMLStyleElement","sheet");var Ala=vla("getPropertyValue"),Bla=vla("setProperty");$o("Element","namespaceURI")||$o("Node","namespaceURI");var zla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Fla,p8a,Ela,Dla,Gla;Fla=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");p8a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.c$a=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); g.ap=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");Ela=/^http:\/\/.*/;g.d$a=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Dla=/\s+/;Gla=/[\d\u06f0-\u06f9]/;cp.prototype.xm=function(){return new dp(this.B())}; cp.prototype[Symbol.iterator]=function(){return new ep(this.B())}; cp.prototype.j=function(){return new ep(this.B())}; g.z(dp,g.Rm);dp.prototype.next=function(){return this.B.next()}; dp.prototype[Symbol.iterator]=function(){return new ep(this.B)}; dp.prototype.j=function(){return new ep(this.B)}; g.z(ep,cp);ep.prototype.next=function(){return this.C.next()};gp.prototype.clone=function(){return new gp(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};ip.prototype.clone=function(){return new ip(this.start,this.end)};(function(){if(H5a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.xb()))?a[1]:"0"}return wX?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.xb()))?a[0].replace(/_/g,"."):"10"):g.Mr?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.xb()))?a[1]:""):C8a||D8a||E8a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.xb()))?a[1].replace(/_/g,"."):""):""})();var Ila=function(){if(g.GN)return jp(/Firefox\/([0-9.]+)/);if(g.Xl||g.Jt||g.oO)return Uaa;if(g.eE){if(gc()||hc()){var a=jp(/CriOS\/([0-9.]+)/);if(a)return a}return jp(/Chrome\/([0-9.]+)/)}if(g.gt&&!gc())return jp(/Version\/([0-9.]+)/);if(Jr||Kr){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.xb()))return a[1]+"."+a[2]}else if(g.pO)return(a=jp(/Android\s+([0-9.]+)/))?a:jp(/Version\/([0-9.]+)/);return""}();g.Ya(g.lp,g.O);g.k=g.lp.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.wh(a)}return!1}; g.k.wh=function(a){var b=this.j[a];if(b){var c=this.B[b];this.D!=0?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Qb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; g.k.publish=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e0&&this.D==0)for(;c=this.C.pop();)this.wh(c)}}return e!=0}return!1}; g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.wh,this),delete this.B[a])}else this.j.length=0,this.B={}}; g.k.xa=function(){g.lp.Pf.xa.call(this);this.clear();this.C.length=0};g.mp.prototype.set=function(a,b){b===void 0?this.j.remove(a):this.j.set(a,g.si(b))}; g.mp.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}}; g.mp.prototype.remove=function(a){this.j.remove(a)};g.Ya(np,g.mp);np.prototype.set=function(a,b){np.Pf.set.call(this,a,Lla(b))}; np.prototype.B=function(a){a=np.Pf.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; np.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ya(op,np);op.prototype.set=function(a,b,c){if(b=Lla(b)){if(c){if(c=c.length)return g.n1;var e=c.key(b++);if(a)return g.Sm(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Sm(e)}; return d}; g.k.clear=function(){sp(this);this.j.clear()}; g.k.key=function(a){sp(this);return this.j.key(a)};g.Ya(tp,rp);g.Ya(Ola,rp);g.Ya(up,qp);up.prototype.set=function(a,b){this.B.set(this.j+a,b)}; up.prototype.get=function(a){return this.B.get(this.j+a)}; up.prototype.remove=function(a){this.B.remove(this.j+a)}; up.prototype.xm=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.Rm;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.Sm(a?e.slice(c.j.length):c.B.get(e))}; return d};wp.prototype.getValue=function(){return this.B}; wp.prototype.clone=function(){return new wp(this.j,this.B)};g.k=xp.prototype;g.k.Gh=function(a,b){var c=this.j;c.push(new wp(a,b));a=c.length-1;b=this.j;for(c=b[a];a>0;){var d=a-1>>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(!(b<=0)){if(b==1)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=a*2+1,h=a*2+2;f=he.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; g.k.Nm=function(){for(var a=this.j,b=[],c=a.length,d=0;d>>16&65535|0;for(var f;c!==0;){f=c>2E3?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var $p={},r1,i$a=[],s1=0;s1<256;s1++){r1=s1;for(var j$a=0;j$a<8;j$a++)r1=r1&1?3988292384^r1>>>1:r1>>>1;i$a[s1]=r1}$p=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^i$a[(a^b[d])&255];return a^-1};var Qp={};Qp={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 Jp=[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],Mp=[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],kma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$la=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Up=Array(576);Bp(Up);var Vp=Array(60);Bp(Vp);var Lp=Array(512);Bp(Lp);var Ip=Array(256);Bp(Ip);var Kp=Array(29);Bp(Kp);var Np=Array(30);Bp(Np);var hma,ima,jma,gma=!1;var eq;eq=[new dq(0,0,0,0,function(a,b){var c=65535;for(c>a.Ym-5&&(c=a.Ym-5);;){if(a.jc<=1){aq(a);if(a.jc===0&&b===0)return 1;if(a.jc===0)break}a.Fb+=a.jc;a.jc=0;var d=a.wl+c;if(a.Fb===0||a.Fb>=d)if(a.jc=a.Fb-d,a.Fb=d,Wp(a,!1),a.ye.Ke===0)return 1;if(a.Fb-a.wl>=a.uj-262&&(Wp(a,!1),a.ye.Ke===0))return 1}a.Gh=0;if(b===4)return Wp(a,!0),a.ye.Ke===0?3:4;a.Fb>a.wl&&Wp(a,!1);return 1}), new dq(4,4,8,4,bq),new dq(4,5,16,8,bq),new dq(4,6,32,32,bq),new dq(4,4,16,16,cq),new dq(8,16,32,32,cq),new dq(8,16,128,128,cq),new dq(8,32,128,256,cq),new dq(32,128,258,1024,cq),new dq(32,258,258,4096,cq)];var fma={};fma=function(){this.input=null;this.Zy=this.yj=this.Xx=0;this.output=null;this.lU=this.Ke=this.vB=0;this.msg="";this.state=null;this.jP=2;this.Ud=0};var lma=Object.prototype.toString; fq.prototype.push=function(a,b){var c=this.ye,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Pla(a):lma.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.Xx=0;c.yj=c.input.length;do{c.Ke===0&&(c.output=new Ap.lz(d),c.vB=0,c.Ke=d);a=ema(c,e);if(a!==1&&a!==0)return this.As(a),this.ended=!0,!1;if(c.Ke===0||c.yj===0&&(e===4||e===2))if(this.options.to==="string"){var f=Ap.PT(c.output,c.vB);b=f;f=f.length;if(f<65537&&(b.subarray&& h$a||!b.subarray))b=String.fromCharCode.apply(null,Ap.PT(b,f));else{for(var h="",l=0;l0||c.Ke===0)&&a!==1);if(e===4)return(c=this.ye)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=Rp(c,-2):(c.state=null,a=d===113?Rp(c,-3):0)):a=-2,this.As(a),this.ended=!0,a===0;e===2&&(this.As(0),c.Ke=0);return!0}; fq.prototype.As=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Ap.dY(this.chunks));this.chunks=[];this.err=a;this.msg=this.ye.msg};var hq="@@redux/INIT"+gq(),rma="@@redux/REPLACE"+gq();var sma=typeof Symbol==="function"&&Symbol.observable||"@@observable";var k$a=[0,e9a,-3,j1];g.z(kq,$g);kq.prototype.getType=function(){return Bg(this,11)};var SXa=function(){var a=[0,g9a,f9a,g1,e9a,g1,-1,j1,e9a,j1,-1,g9a,j1,f9a,h1,k$a,g1,-1,j1];return function(b,c){if(f1.length){var d=f1.pop();gea(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Tg(b,c);try{var e=new kq,f=e.xb;oh(a)(f,b);var h=e}finally{b.free()}return h}}();var Fsa=new g.lq("adInfoDialogEndpoint");var vua=new g.lq("adPingingEndpoint");var Nwa=new g.lq("crossDeviceProgressCommand");var AH=new g.lq("actionCompanionAdRenderer");var ND=new g.lq("adActionInterstitialRenderer");var l$a=new g.lq("adDurationRemainingRenderer");var UH=new g.lq("adHoverTextButtonRenderer");var Dsa=new g.lq("adInfoDialogRenderer");var zI=new g.lq("adMessageRenderer");var VH=new g.lq("adPreviewRenderer");var CH=new g.lq("adsEngagementPanelRenderer");var iya=new g.lq("dismissablePanelTextPortraitImageRenderer");var m$a=new g.lq("flyoutCtaRenderer");var BH=new g.lq("imageCompanionAdRenderer");var LD=new g.lq("instreamAdPlayerOverlayRenderer");var n$a=new g.lq("instreamAdPlayerUnderlayRenderer");var L7a=new g.lq("instreamSurveyAdBackgroundImageRenderer");var TH=new g.lq("instreamSurveyAdPlayerOverlayRenderer");var LH=new g.lq("instreamSurveyAdRenderer"),SH=new g.lq("instreamSurveyAdSingleSelectQuestionRenderer"),RH=new g.lq("instreamSurveyAdMultiSelectQuestionRenderer"),t1=new g.lq("instreamSurveyAdAnswerRenderer"),o$a=new g.lq("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var JH=new g.lq("instreamVideoAdRenderer");var p$a=new g.lq("textOverlayAdContentRenderer"),q$a=new g.lq("enhancedTextOverlayAdContentRenderer"),r$a=new g.lq("imageOverlayAdContentRenderer");var MD=new g.lq("playerOverlayLayoutRenderer");var mya=new g.lq("aboveFeedAdLayoutRenderer");var nya=new g.lq("belowPlayerAdLayoutRenderer");var lya=new g.lq("inPlayerAdLayoutRenderer");var OH=new g.lq("playerBytesAdLayoutRenderer");var QH=new g.lq("playerUnderlayAdLayoutRenderer");var KH=new g.lq("adIntroRenderer");var eya=new g.lq("playerBytesSequentialLayoutRenderer");var tza=new g.lq("slidingTextPlayerOverlayRenderer");var MH=new g.lq("surveyTextInterstitialRenderer");var s$a=new g.lq("simpleAdBadgeRenderer");var hG=new g.lq("skipAdRenderer"),t$a=new g.lq("skipButtonRenderer");var ZH=new g.lq("adSlotRenderer");var PH=new g.lq("squeezebackPlayerSidePanelRenderer");var u$a=new g.lq("timedPieCountdownRenderer");var v$a=new g.lq("adAvatarViewModel");var w$a=new g.lq("adBadgeViewModel");var x$a=new g.lq("adButtonViewModel");var y$a=new g.lq("adDisclosureBannerViewModel");var z$a=new g.lq("adPreviewViewModel");var A$a=new g.lq("playerAdAvatarLockupCardButtonedViewModel");var B$a=new g.lq("skipAdButtonViewModel");var C$a=new g.lq("skipAdViewModel");var D$a=new g.lq("visitAdvertiserLinkViewModel");var DH=new g.lq("bannerImageLayoutViewModel");var EH=new g.lq("topBannerImageTextIconButtonedLayoutViewModel");var FH=new g.lq("adsEngagementPanelLayoutViewModel");g.oQ=new g.lq("browseEndpoint");var E$a=new g.lq("confirmDialogEndpoint");var Zqa=new g.lq("rawColdConfigGroup");var Yqa=new g.lq("rawHotConfigGroup");g.hy=new g.lq("commandExecutorCommand");g.z(xma,$g);var qJa={Ela:0,Pla:1,ama:32,fma:61,mma:67,hma:86,Zla:42,bma:60,Rla:62,ema:73,dma:76,jma:88,kma:90,nma:99,Xla:98,lma:100,oma:41,pma:69,qma:70,rma:71,Eja:2,Fja:27,ANDROID:3,Wfa:54,Xfa:14,hga:91,Yfa:55,Zfa:24,aga:20,cga:18,ega:21,jga:30,nga:29,oga:28,Kla:101,pga:34,iga:36,dga:38,IOS:5,Aia:15,Kia:92,Bia:40,Dia:25,Eia:17,Fia:19,Gia:64,Hia:66,Iia:26,Mia:22,Nia:33,Oia:68,Pia:35,Jia:53,Lia:37,Cia:39,qla:7,rla:57,sla:43,ula:59,tla:93,lga:74,wla:75,xla:85,yla:65,Ala:80,Bla:8,nla:10,Dla:58,Cla:63,zla:72,kga:23, vma:11,wma:13,Rga:12,ola:16,Yla:56,gma:31,Bja:77,Wha:84,cma:87,Yha:89,Xha:94,oja:95};g.z(mq,$g);mq.prototype.Q8=function(){return Ag(this,3)}; mq.prototype.Z8=function(){return Ag(this,5)}; mq.prototype.Ks=function(a){return Dg(this,5,a)};g.z(nq,$g);g.z(yma,$g);g.z(oq,$g);oq.prototype.getDeviceId=function(){return Ag(this,6)}; oq.prototype.getPlayerType=function(){return Bg(this,36)}; oq.prototype.setHomeGroupInfo=function(a){return tg(this,yma,81,a)}; oq.prototype.clearLocationPlayabilityToken=function(){return Yf(this,89)};g.z(pq,$g);pq.prototype.getValue=function(){return Ag(this,og(this,Vqa)===2?2:-1)}; var Vqa=[2,3,4,5,6];g.z(qq,$g);g.z(rq,$g);g.z(sq,$g);sq.prototype.getToken=function(){return xg(this,2)}; sq.prototype.setToken=function(a){return Dg(this,2,a)};g.z(tq,$g);tq.prototype.setSafetyMode=function(a){return Fg(this,5,a)};g.z(uq,$g);uq.prototype.CH=function(a){return tg(this,oq,1,a)};var XH=new g.lq("thumbnailLandscapePortraitRenderer");g.F$a=new g.lq("changeEngagementPanelVisibilityAction");var bta=new g.lq("continuationCommand");g.G$a=new g.lq("openPopupAction");g.u1=new g.lq("webCommandMetadata");var dLa=new g.lq("metadataBadgeRenderer");var My=new g.lq("signalServiceEndpoint");var Aw=new g.lq("innertubeCommand");var Z7a=new g.lq("loggingDirectives");var jna={yha:"EMBEDDED_PLAYER_MODE_UNKNOWN",vha:"EMBEDDED_PLAYER_MODE_DEFAULT",xha:"EMBEDDED_PLAYER_MODE_PFP",wha:"EMBEDDED_PLAYER_MODE_PFL"};var zLa=new g.lq("channelThumbnailEndpoint");var yLa=new g.lq("embeddedPlayerErrorMessageRenderer");var uLa=new g.lq("embeddedPlayerOverlayVideoDetailsRenderer"),ALa=new g.lq("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),BLa=new g.lq("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var aLa=new g.lq("embedsInfoPanelRenderer");var H$a=new g.lq("feedbackEndpoint");var I$a=new g.lq("callToActionButtonViewModel");var J$a=new g.lq("interactionLoggingCommandMetadata");var fpa={Wla:"WEB_DISPLAY_MODE_UNKNOWN",Sla:"WEB_DISPLAY_MODE_BROWSER",Ula:"WEB_DISPLAY_MODE_MINIMAL_UI",Vla:"WEB_DISPLAY_MODE_STANDALONE",Tla:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z(vq,$g);vq.prototype.setTrackingParams=function(a){return Yf(this,1,hf(a,!1,!1))};g.z(wq,$g);wq.prototype.getPlayerType=function(){return Bg(this,7)}; wq.prototype.qf=function(){return Ag(this,19)}; wq.prototype.setVideoId=function(a){return Dg(this,19,a)};g.z(xq,$g);g.z(yq,$g);g.z(zq,$g); var K$a=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496];g.z(Aq,$g);g.z(Bq,$g);Bq.prototype.qf=function(){return xg(this,og(this,$v)===1?1:-1)}; Bq.prototype.setVideoId=function(a){return mg(this,1,$v,Df(a))}; Bq.prototype.getPlaylistId=function(){return xg(this,og(this,$v)===2?2:-1)}; var $v=[1,2];g.z(zma,$g);var XP=new g.lq("changeKeyedMarkersVisibilityCommand");var L$a=new g.lq("changeMarkersVisibilityCommand");var fLa=new g.lq("loadMarkersCommand");var M$a=new g.lq("suggestedActionDataViewModel");var wQa=new g.lq("productListItemRenderer");var N$a=new g.lq("shoppingOverlayRenderer");var vLa=new g.lq("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var O$a=new g.lq("adFeedbackEndpoint");var P$a=new g.lq("menuEndpoint");var LPa=new g.lq("phoneDialerEndpoint");var JPa=new g.lq("sendSmsEndpoint");var tLa=new g.lq("copyTextEndpoint");var Q$a=new g.lq("shareEndpoint"),R$a=new g.lq("shareEntityEndpoint"),S$a=new g.lq("shareEntityServiceEndpoint"),T$a=new g.lq("webPlayerShareEntityServiceEndpoint");g.Bx=new g.lq("urlEndpoint");g.VP=new g.lq("watchEndpoint");var U$a=new g.lq("watchPlaylistEndpoint");var VMa=new g.lq("compositeVideoOverlayRenderer");var V$a=new g.lq("miniplayerRenderer");var rLa=new g.lq("paidContentOverlayRenderer");var PKa=new g.lq("playerMutedAutoplayOverlayRenderer"),QKa=new g.lq("playerMutedAutoplayEndScreenRenderer");var eKa=new g.lq("unserializedPlayerResponse"),RKa=new g.lq("unserializedPlayerResponse");var W$a=new g.lq("playlistEditEndpoint");var v1;g.WH=new g.lq("buttonRenderer");v1=new g.lq("toggleButtonRenderer");var gya=new g.lq("counterfactualRenderer");var X$a=new g.lq("resolveUrlCommandMetadata");var Y$a=new g.lq("modifyChannelNotificationPreferenceEndpoint");var uua=new g.lq("pingingEndpoint");var Z$a=new g.lq("unsubscribeEndpoint");g.pQ=new g.lq("subscribeButtonRenderer");var $$a=new g.lq("subscribeEndpoint");var MMa=new g.lq("buttonViewModel");var hya=new g.lq("qrCodeRenderer");var sJa={hja:"LIVING_ROOM_APP_MODE_UNSPECIFIED",eja:"LIVING_ROOM_APP_MODE_MAIN",dja:"LIVING_ROOM_APP_MODE_KIDS",fja:"LIVING_ROOM_APP_MODE_MUSIC",gja:"LIVING_ROOM_APP_MODE_UNPLUGGED",cja:"LIVING_ROOM_APP_MODE_GAMING"};var YKa=new g.lq("autoplaySwitchButtonRenderer");var mP,lRa,lKa,wRa;mP=new g.lq("decoratedPlayerBarRenderer");lRa=new g.lq("chapteredPlayerBarRenderer");lKa=new g.lq("multiMarkersPlayerBarRenderer");wRa=new g.lq("chapterRenderer");g.pRa=new g.lq("markerRenderer");var bLa=new g.lq("desktopOverlayConfigRenderer");var $Ka=new g.lq("gatedActionsOverlayViewModel");var tRa=new g.lq("heatMarkerRenderer");var sRa=new g.lq("heatmapRenderer");var eLa=new g.lq("watchToWatchTransitionRenderer");var wLa=new g.lq("playlistPanelRenderer");var aab=new g.lq("productUpsellSuggestedActionViewModel");var bab=new g.lq("suggestedActionTimeRangeTrigger"),cab=new g.lq("suggestedActionsRenderer"),dab=new g.lq("suggestedActionRenderer");var uRa=new g.lq("timedMarkerDecorationRenderer");var uDa=new g.lq("cipher");var fKa=new g.lq("playerVars");var SKa=new g.lq("playerVars");var w1=g.Ka.window,eab,fab,Cq=(w1==null?void 0:(eab=w1.yt)==null?void 0:eab.config_)||(w1==null?void 0:(fab=w1.ytcfg)==null?void 0:fab.data_)||{};g.La("yt.config_",Cq);var Gq=[];var Jma=/^[\w.]*$/,Fma={q:!0,search_query:!0},Ema=String(Oq);var Yq=new function(){var a=window.document;this.j=window;this.B=a}; g.La("yt.ads_.signals_.getAdSignalsString",function(a){return Pq($q(a))});g.Xa();var Lma="XMLHttpRequest"in g.Ka?function(){return new XMLHttpRequest}:null;var gab="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.x(gab);var Pma={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Qma="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.x(gab)),Xma=!1,Nma=Rma,Uma=lr;g.z(or,jb);rr.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):this.C===1&&a?(a=a.call(c,this.B))&&typeof a.then==="function"?a:tr(a):this.C===2&&b?(a=b.call(c,this.B))&&typeof a.then==="function"?a:sr(a):this}; rr.prototype.getValue=function(){return this.B}; rr.prototype.$goog_Thenable=!0;var ur=!1;var It=Jr||Kr;var hna=/^([0-9\.]+):([0-9\.]+)$/;g.z(Zr,jb);Zr.prototype.name="BiscottiError";g.z(Yr,jb);Yr.prototype.name="BiscottiMissingError";var lna={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},$r=null;var Dba=oa(["data-"]),una={};var hab=0,as=g.lc?"webkit":Wl?"moz":g.Xl?"ms":g.oO?"o":"",iab=g.Ma("ytDomDomGetNextId")||function(){return++hab}; g.La("ytDomDomGetNextId",iab);var yna={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};gs.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; gs.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; gs.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var hs=g.Ka.ytEventsEventsListeners||{};g.La("ytEventsEventsListeners",hs);var Bna=g.Ka.ytEventsEventsCounter||{count:0};g.La("ytEventsEventsCounter",Bna);var Fna=ad(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a}),Cna=ad(function(){var a=!1; try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); window.addEventListener("test",null,b)}catch(c){}return a});var x1;x1=window;g.T=x1.ytcsi&&x1.ytcsi.now?x1.ytcsi.now:x1.performance&&x1.performance.timing&&x1.performance.now&&x1.performance.timing.navigationStart?function(){return x1.performance.timing.navigationStart+x1.performance.now()}:function(){return(new Date).getTime()};g.Ya(ms,g.O);ms.prototype.Y=function(a){a.j===void 0&&zna(a);var b=a.j;a.B===void 0&&zna(a);this.j=new g.Ed(b,a.B)}; ms.prototype.au=function(){return this.j||new g.Ed}; ms.prototype.qa=function(){if(this.j){var a=(0,g.T)();if(this.D!=0){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=Math.abs((d-this.G)/this.G)>.5?1:0;for(c=b=0;c<4;c++)b+=this.B[c]||0;b>=3&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}}; ms.prototype.xa=function(){g.fr(this.Z);g.js(this.ra)};g.z(ns,g.O);ns.prototype.T=function(a,b,c,d,e){c=g.Iq((0,g.Ua)(c,d||this.ob));c={target:a,name:b,callback:c};var f;e&&Fna()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c}; ns.prototype.Oc=function(a){for(var b=0;b=N.In)||A.j.version>=S||A.j.objectStoreNames.contains(M)||F.push(M)}m=F;if(m.length===0){y.Ha(5);break}n=Object.keys(c.options.zs); p=l.objectStoreNames();if(c.Gc.options.version+1)throw r.close(),c.C=!1,toa(c,t);return y.return(r);case 8:throw b(), q instanceof Error&&!g.hr("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),ht(q,c.name,"",(u=c.options.version)!=null?u:-1);}})} function b(){c.j===d&&(c.j=void 0)} var c=this;if(!this.C)throw toa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, closed:b,Iea:b,upgrade:this.options.upgrade};return this.j=d=a()};var Gt=new Et("YtIdbMeta",{zs:{databases:{In:1}},upgrade:function(a,b){b(1)&&g.pt(a,"databases",{keyPath:"actualName"})}});var Lt,Kt=new function(){}(new function(){});new g.cj;g.z(Ot,Et);Ot.prototype.B=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?Coa:Boa)(a,b,Object.assign({},c))}; Ot.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Goa:Doa)(this.name,a)};var qab={},Ioa=g.Pt("ytGcfConfig",{zs:(qab.coldConfigStore={In:1},qab.hotConfigStore={In:1},qab),shared:!1,upgrade:function(a,b){b(1)&&(g.wt(g.pt(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.wt(g.pt(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.z(Rt,g.O);Rt.prototype.xa=function(){for(var a=g.w(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.B.length=0;g.O.prototype.xa.call(this)};Xt.prototype.Ks=function(a){this.hotHashData=a;g.La("yt.gcf.config.hotHashData",this.hotHashData||null)};var rab=typeof TextEncoder!=="undefined"?new TextEncoder:null,xpa=rab?function(a){return rab.encode(a)}:function(a){a=g.Oe(a); for(var b=new Uint8Array(a.length),c=0;c=b?!1:!0}; g.k.sM=function(){var a=this;if(!Cu(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Mh.zY("QUEUED",this.Af).then(function(b){b&&!a.pM(b,a.C1)?a.Ho.Wi(function(){return g.J(function(c){if(c.j==1)return b.id===void 0?c.Ha(2):g.G(c,a.Mh.jT(b.id,a.Af),2);a.sM();g.va(c)})}):a.nh.Kh()&&a.FC()})};var Fu;var bra={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,vrCowatchUserStartOrJoinEvent:504,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,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,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,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503};var tab={},Ppa=g.Pt("ServiceWorkerLogsDatabase",{zs:(tab.SWHealthLog={In:1},tab),shared:!0,upgrade:function(a,b){b(1)&&g.wt(g.pt(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var Iu={},Vpa=0;var Ju;Lu.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; Lu.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:a===!1&&this.B?!0:null}; Lu.prototype.removeParams=function(a){return a.split("?")[0]}; Lu.prototype.removeParams=Lu.prototype.removeParams;Lu.prototype.isEndpointCFR=Lu.prototype.isEndpointCFR;Lu.prototype.requestComplete=Lu.prototype.requestComplete;Lu.getInstance=Mu;g.z(Nu,g.Uc);g.k=Nu.prototype;g.k.Kh=function(){return this.j.Kh()}; g.k.Vx=function(a){this.j.j=a}; g.k.s9=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; g.k.l8=function(){this.B=!0}; g.k.listen=function(a,b){return this.j.listen(a,b)}; g.k.wM=function(a){a=Co(this.j,a);a.then(function(b){g.hr("use_cfr_monitor")&&Mu().requestComplete("generate_204",b)}); return a}; Nu.prototype.sendNetworkCheckRequest=Nu.prototype.wM;Nu.prototype.listen=Nu.prototype.listen;Nu.prototype.enableErrorFlushing=Nu.prototype.l8;Nu.prototype.getWindowStatus=Nu.prototype.s9;Nu.prototype.networkStatusHint=Nu.prototype.Vx;Nu.prototype.isNetworkAvailable=Nu.prototype.Kh;Nu.getInstance=Ypa;g.z(g.Ou,g.Uc);g.Ou.prototype.Kh=function(){var a=g.Ma("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0}; g.Ou.prototype.Vx=function(a){var b=g.Ma("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)}; g.Ou.prototype.wM=function(a){var b=this,c;return g.J(function(d){c=g.Ma("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.hr("skip_network_check_if_cfr")&&Mu().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Vx(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.Kh())})):c?d.return(c(a)):d.return(!0)})};var Pu;g.z(Qu,Du);Qu.prototype.writeThenSend=function(a,b){b||(b={});b=Su(a,b);g.Js()||(this.j=!1);Du.prototype.writeThenSend.call(this,a,b)}; Qu.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Su(a,b);g.Js()||(this.j=!1);Du.prototype.sendThenWrite.call(this,a,b,c)}; Qu.prototype.sendAndWrite=function(a,b){b||(b={});b=Su(a,b);g.Js()||(this.j=!1);Du.prototype.sendAndWrite.call(this,a,b)}; Qu.prototype.awaitInitialization=function(){return this.C.promise};var cqa=g.Ka.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.La("ytNetworklessLoggingInitializationOptions",cqa);g.Tu.prototype.isReady=function(){!this.config_&&Zoa()&&(this.config_=g.Zt());return!!this.config_};var uab,Wu,Yu;uab=g.Ka.ytPubsubPubsubInstance||new g.lp;Wu=g.Ka.ytPubsubPubsubSubscribedKeys||{};Yu=g.Ka.ytPubsubPubsubTopicToKeys||{};g.Xu=g.Ka.ytPubsubPubsubIsSynchronous||{};g.lp.prototype.subscribe=g.lp.prototype.subscribe;g.lp.prototype.unsubscribeByKey=g.lp.prototype.wh;g.lp.prototype.publish=g.lp.prototype.publish;g.lp.prototype.clear=g.lp.prototype.clear;g.La("ytPubsubPubsubInstance",uab);g.La("ytPubsubPubsubTopicToKeys",Yu);g.La("ytPubsubPubsubIsSynchronous",g.Xu); g.La("ytPubsubPubsubSubscribedKeys",Wu);var iqa={};g.z(gv,g.O);gv.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Ib();this.Ib().appendChild(a)}; g.z(hv,gv);hv.prototype.Ib=function(){return this.j};g.z(lqa,g.O);var iv=Date.now().toString();var nv={};var tv=Symbol("injectionDeps");pv.prototype.toString=function(){return"InjectionToken("+this.name+")"}; pqa.prototype.resolve=function(a){return a instanceof qv?uv(this,a.key,[],!0):uv(this,a,[])};var vv;var xv=window;var Bv=g.hr("web_enable_lifecycle_monitoring")&&yv()!==0,vqa=g.hr("web_enable_lifecycle_monitoring");sqa.prototype.cancel=function(){for(var a=g.w(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.dM||this.scheduler.lk(b.jobId),b.dM=!0;this.B.resolve()};g.k=Cv.prototype;g.k.install=function(a){this.plugins.push(a);return this}; g.k.uninstall=function(){var a=this;g.Da.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);b>-1&&a.plugins.splice(b,1)})}; g.k.transition=function(a,b){var c=this;Bv&&rqa(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a}); if(d){this.B&&(tqa(this.B),this.B=void 0);wqa(this,a,b);this.state=a;Bv&&zv(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); d(uqa(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; g.k.Jda=function(a){var b=g.Da.apply(1,arguments);g.Os();for(var c=g.w(a),d=c.next(),e={};!d.done;e={dG:void 0},d=c.next())e.dG=d.value,Sna(function(f){return function(){Ev(f.dG.name);f.dG.callback.apply(f.dG,g.x(b));Fv(f.dG.name)}}(e))}; g.k.Ida=function(a){var b=g.Da.apply(1,arguments),c,d,e,f;return g.J(function(h){h.j==1&&(g.Os(),c=g.w(a),d=c.next(),e={});if(h.j!=3){if(d.done)return h.Ha(0);e.eB=d.value;e.UI=void 0;f=function(l){return function(){Ev(l.eB.name);var m=l.eB.callback.apply(l.eB,g.x(b));typeof(m==null?void 0:m.then)==="function"?l.UI=m.then(function(){Fv(l.eB.name)}):Fv(l.eB.name)}}(e); Sna(f);return e.UI?g.G(h,e.UI,3):h.Ha(3)}e={eB:void 0,UI:void 0};d=c.next();return h.Ha(2)})}; g.k.l2=function(a){var b=g.Da.apply(1,arguments),c=this,d=a.map(function(e){return{bR:function(){Ev(e.name);e.callback.apply(e,g.x(b));Fv(e.name)}, priority:Dv(c,e)}}); d.length&&(this.B=new sqa(d))}; g.ea.Object.defineProperties(Cv.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Hv;g.z(Gv,Cv);Gv.prototype.G=function(a,b){var c=this;this.j=g.Ms(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); a(b==null?void 0:b.event)}; Gv.prototype.K=function(a,b){this.j&&(g.Eo.lk(this.j),this.j=null);a(b==null?void 0:b.event)};var hw=[];g.La("yt.logging.transport.getScrapedGelPayloads",function(){return hw});Iv.prototype.storePayload=function(a,b){a=Jv(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a}; Iv.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Lv(this,a.keys.splice(0,1)[0]),c=[],d=0;d=0){d=!1;break a}}d=!0}d&&(b=Cw(b))&&this.vH(b)}}; g.k.w1=function(a){return a}; g.k.F5=function(a){var b=this.Aa;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=mqa(b,a)||a.length!=1;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c=0)}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0}; g.k.D5=function(a){if(this.Aa){var b=this.Aa,c=a.changedTouches;c&&b.N&&b.B==1&&!b.D&&!b.G&&!b.K&&mqa(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;b.B===0&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}}; g.k.vH=function(a){this.layoutId?this.jb.executeCommand(a,this.layoutId):g.xw(new g.Hs("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.Oc(this.ob);for(var a=g.w(this.Fa),b=a.next();!b.done;b=a.next())this.Oc(b.value);g.ex.prototype.xa.call(this)};g.z(xx,fx); xx.prototype.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);this.j=b;if(b.text==null&&b.icon==null)g.yw(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}a!=null&&g.To(this.element,a);b.text!=null&&(a=g.hx(b.text),g.qb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.ex({I:"span",S:"ytp-ad-button-text",va:a}),g.P(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.qb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);b.icon!=null&&(b=wx(b.icon),b!=null&&(this.B=new g.ex({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.P(this,this.B)),this.D?ne(this.element,this.B.element,0):this.B.Ja(this.element))}}; xx.prototype.clear=function(){this.hide()}; xx.prototype.onClick=function(a){fx.prototype.onClick.call(this,a);a=g.w(psa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.xw(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(yx,g.O);yx.prototype.xa=function(){this.B&&g.js(this.B);this.j.clear();zx=null;g.O.prototype.xa.call(this)}; yx.prototype.register=function(a,b){b&&this.j.set(a,b)}; var zx=null;g.z(Cx,fx); Cx.prototype.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.Q(b.button,g.WH)||null;b==null?g.xw(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new xx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.button),this.button.init(Vw("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.hx(a)),this.button.Ja(this.element),this.G&&!g.So(this.button.element,"ytp-ad-clickable")&&g.To(this.button.element, "ytp-ad-clickable"),a&&(this.B=new g.ex({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.ex({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.P(this,b)),g.P(this,this.B),this.B.Ja(this.element),b=Ax(a),ne(this.B.element,b,0)),this.show())}; Cx.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();fx.prototype.hide.call(this)}; Cx.prototype.show=function(){this.button&&this.button.show();fx.prototype.show.call(this)};g.z(Ex,fx); Ex.prototype.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&Dx(a)||"";g.qb(c)?Math.random()<.01&&g.yw(Error("Found AdImage without valid image URL")):(this.j?g.Vl(this.element,"backgroundImage","url("+c+")"):de(this.element,{src:c}),de(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())}; Ex.prototype.clear=function(){this.hide()};g.z(Fx,fx);g.k=Fx.prototype;g.k.hide=function(){fx.prototype.hide.call(this);this.C&&this.C.focus()}; g.k.show=function(){this.C=document.activeElement;fx.prototype.show.call(this);this.D.focus()}; g.k.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.xw(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.xw(Error("ConfirmDialogRenderer.cancelLabel was not set.")):tsa(this,b):g.xw(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.k.clear=function(){g.ps(this.j);this.hide()}; g.k.NR=function(){this.hide()}; g.k.EN=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.xw(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.k.OR=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.xw(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(Gx,fx);g.k=Gx.prototype; g.k.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);this.C=b;if(b.defaultText==null&&b.defaultIcon==null)g.xw(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.xw(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}a!=null&&g.To(this.D,a)}a={};b.defaultText? (c=g.hx(b.defaultText),g.qb(c)||(a.buttonText=c,this.api.U().experiments.kb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.kb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.nm(this.Ga,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=wx(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra= !0,c=wx(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.nm(this.Y,!0),g.nm(this.G,!1)),g.nm(this.j,!1)):g.nm(this.B,!1);g.Bc(a)||this.update(a);b.isToggled&&(g.To(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Hx(this);this.T(this.element,"change",this.GV);this.show()}}; g.k.onClick=function(a){this.Fa.length>0&&(this.toggleButton(!this.isToggled()),this.GV());fx.prototype.onClick.call(this,a)}; g.k.GV=function(){g.Xo(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.w(usa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.xw(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Hx(this)}; g.k.clear=function(){this.hide()}; g.k.toggleButton=function(a){g.Xo(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Hx(this)}; g.k.isToggled=function(){return this.j.checked};g.z(Ix,ns);Ix.prototype.K=function(a){if(Array.isArray(a)){a=g.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof vsa&&this.D(b)}};g.z(Jx,fx);g.k=Jx.prototype;g.k.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);b.reasons?b.confirmLabel==null?g.xw(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.yw(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.yw(Error("AdFeedbackRenderer.title was not set.")),zsa(this,b)):g.xw(Error("AdFeedbackRenderer.reasons were not set."))}; g.k.clear=function(){ks(this.G);ks(this.Y);this.D.length=0;this.hide()}; g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();fx.prototype.hide.call(this);this.C&&this.C.focus()}; g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;fx.prototype.show.call(this);this.G.focus()}; g.k.e0=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.k.Fca=function(){this.hide()}; Kx.prototype.Ib=function(){return this.j.element}; Kx.prototype.getCommand=function(){return this.B}; Kx.prototype.isChecked=function(){return this.C.checked};g.z(Lx,Fx);Lx.prototype.NR=function(a){Fx.prototype.NR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Lx.prototype.EN=function(a){Fx.prototype.EN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Lx.prototype.OR=function(a){Fx.prototype.OR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z(Mx,fx);g.k=Mx.prototype; g.k.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);this.G=b;if(b.dialogMessage==null&&b.title==null)g.xw(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.yw(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.Q(b.closeOverlayRenderer,g.WH)||null)this.j=new xx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.P(this,this.j),this.j.init(Vw("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.hx(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c=this.Ka?(this.Ga.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ka-a)/1E3)),a!=this.Xa&&(Px(this.C,{TIME_REMAINING:String(a)}),this.Xa=a)))}};g.z(Xx,Qx);g.k=Xx.prototype; g.k.init=function(a,b,c){Qx.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.Q(b.actionButton,g.WH))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;e!=null&&e.length>0&&g.qb(g.Td(e[0].url))&&(e[0].url=d.profilePicture)}else g.yw(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(Vw("ad-image"),b.image,c);this.G.init(Vw("ad-text"), b.headline,c);this.D.init(Vw("ad-text"),b.description,c);this.B.init(Vw("button"),a,c);c=Jo(this.B.element);Io(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.PF()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Ea("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Ea("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Ea("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.Ea("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Ea("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Ea("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Ea("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.IV.bind(this));this.Ga=b.startMs||0;Rx(this)}else g.xw(Error("FlyoutCtaRenderer has no valid action button."));else g.xw(Error("FlyoutCtaRenderer has no description AdText."));else g.xw(Error("FlyoutCtaRenderer has no headline AdText."));else g.yw(Error("FlyoutCtaRenderer has no image."))}; g.k.onClick=function(a){Qx.prototype.onClick.call(this,a);this.api.pauseVideo();!g.pe(this.B.element,a.target)&&this.ra&&(this.layoutId?this.jb.executeCommand(this.ra,this.layoutId):g.xw(Error("Missing layoutId for flyout cta.")))}; g.k.Uo=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Ka)&&1E3*a.current>=this.Ga&&(Sx(this),g.Vo(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}}; g.k.Eq=function(){this.clear()}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.IV.bind(this))}; g.k.show=function(){this.B&&this.B.show();Qx.prototype.show.call(this)}; g.k.hide=function(){this.B&&this.B.hide();Qx.prototype.hide.call(this)}; g.k.IV=function(a){a=="hidden"?this.show():this.hide()};g.z(Yx,fx);g.k=Yx.prototype; g.k.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.Q(this.j.likeButton,v1),b=this.j.dislikeButton&&g.Q(this.j.dislikeButton,v1),this.C.init(Vw("toggle-button"),a,c),this.B.init(Vw("toggle-button"),b,c),this.T(this.element,"change",this.JV),this.D.show(100),this.show(),c=g.w(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.jb.executeCommand(a,this.layoutId):g.xw(Error("Missing layoutId for instream user sentiment."))}; g.k.clear=function(){this.hide()}; g.k.hide=function(){this.C.hide();this.B.hide();fx.prototype.hide.call(this)}; g.k.show=function(){this.C.show();this.B.show();fx.prototype.show.call(this)}; g.k.JV=function(){qla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.ib("onYtShowToast",this.j.postMessageAction);this.D.hide()}; g.k.onClick=function(a){this.Fa.length>0&&this.JV();fx.prototype.onClick.call(this,a)};g.z(Zx,g.O);g.k=Zx.prototype;g.k.xa=function(){this.reset();g.O.prototype.xa.call(this)}; g.k.reset=function(){g.ps(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.N.play())}; g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.LV,this);this.D.T(this.B,"mouseout",this.KV,this);this.qa&&(this.D.T(this.B,"focusin",this.LV,this),this.D.T(this.B,"focusout",this.KV,this));this.j?this.j.start():(this.K=this.C=!0,g.Vl(this.B,{opacity:this.Y}))}; g.k.LV=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()}; g.k.KV=function(){this.K?this.G.start():this.j&&this.j.start()}; g.k.XW=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.z(gy,Qx);g.k=gy.prototype; g.k.init=function(a,b,c){Qx.prototype.init.call(this,a,b,c);this.ra=b;(this.Ga=Nsa(this))&&g.yw(Error("hasAdControlInClickCommands_ is true."));if(!b||g.Bc(b))g.xw(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Bc(b.message))g.xw(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=wx(a);b==null?g.xw(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")): (this.C=new g.ex({I:"button",Na:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.P(this,this.C),this.C.Ja(this.D.element),this.B=new Ox(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(Vw("ad-text"),this.ra.message,c),g.P(this,this.B),ne(this.C.element,this.B.element, 0));var d=d===void 0?null:d;c=this.api.U();!(this.Fa.length>0)&&c.B&&(UN?0:"ontouchstart"in document.documentElement&&(zha()||fl()))&&(this.Oc(this.ob),d&&this.Oc(d),this.Fa=[this.T(this.element,"touchstart",this.F5,this),this.T(this.element,"touchmove",this.E5,this),this.T(this.element,"touchend",this.D5,this)])}}; g.k.clear=function(){this.Ka.reset();this.hide()}; g.k.hide=function(){this.D.hide();this.B&&this.B.hide();Sx(this);Qx.prototype.hide.call(this)}; g.k.onClick=function(a){if(this.C!=null){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(Ksa(a,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;Qx.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");if(this.Wa||!this.Ga)this.api.onAdUxClicked(this.componentType, this.layoutId)}}; g.k.w1=function(a){if(!this.Wa)return this.Ga&&cy("SkipButton click commands not pruned while ALC exist"),a;var b,c=(b=g.Q(a,g.hy))==null?void 0:b.commands;if(!c)return a;a=[];for(b=0;b=this.G&&Osa(this,!0)};g.z(jy,xx);jy.prototype.init=function(a,b,c){xx.prototype.init.call(this,a,b,c);a=!1;b.text!=null&&(a=g.hx(b.text),a=!g.qb(a));a?b.navigationEndpoint==null?g.yw(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.yw(Error("Button style was not a link-style type in renderer,")):this.show():g.yw(Error("No visit advertiser text was present in the renderer."))};g.z(ky,fx); ky.prototype.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);a=b.text;g.qb(gx(a))?g.yw(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 Ox(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),a.init(Vw("simple-ad-badge"),b,c),a.Ja(this.element),g.P(this,a)),this.api.U().experiments.kb("enable_unified_ad_badge_style_fix")&&this.C&& this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())}; ky.prototype.clear=function(){this.hide()};g.z(ly,Ww);g.z(my,g.Xw);g.k=my.prototype;g.k.TJ=function(){return this.durationMs}; g.k.stop=function(){this.j&&this.Hd.Oc(this.j)}; g.k.Tc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.publish("h")}; g.k.getProgressState=function(){return this.B}; g.k.G5=function(a){g.fy(a,2)&&this.publish("g")};g.z(ny,g.Xw);g.k=ny.prototype;g.k.TJ=function(){return this.durationMs}; g.k.start=function(){this.j||(this.j=!0,this.Ye.start())}; g.k.stop=function(){this.j&&(this.j=!1,this.Ye.stop())}; g.k.Tc=function(){this.rj+=100;var a=!1;this.rj>this.durationMs&&(this.rj=this.durationMs,this.Ye.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.rj/1E3};this.publish("h");a&&this.publish("g")}; g.k.getProgressState=function(){return this.B};g.z(qy,Qx);g.k=qy.prototype;g.k.init=function(a,b,c){Qx.prototype.init.call(this,a,b,c);var d;if(b==null?0:(d=b.templatedCountdown)==null?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.yw(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new Ox(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);this.B.init(Vw("ad-text"),a,{});this.B.Ja(this.element);g.P(this,this.B)}this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){Sx(this);Qx.prototype.hide.call(this)}; g.k.Eq=function(){this.hide()}; g.k.Uo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&this.B&&(a=(this.j instanceof my?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof ny?a.seekableEnd:this.api.getDuration(2,!1))-a.current,Px(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.oy(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; g.k.show=function(){Rx(this);Qx.prototype.show.call(this)};g.z(ry,Ox);ry.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.z(sy,fx); sy.prototype.init=function(a,b){fx.prototype.init.call(this,a,b,{});if(b!=null&&b.text){var c;if(((c=b.text)==null?0:c.content)&&!g.qb(b.text.content)){this.j=new g.ex({I:"div",S:"ytp-ad-disclosure-banner__text",va:b.text.content});g.P(this,this.j);this.j.Ja(this.element);var d,e;a=((d=b.interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label)||b.text.content;this.element.setAttribute("aria-label",a);var f;if((f=b.interaction)==null?0:f.onTap)this.B=new g.ex({I:"div",S:"ytp-ad-disclosure-banner__chevron",V:[g.lx()]}), g.P(this,this.B),this.B.Ja(this.element);this.show()}}else g.xw(Error("No banner text found in AdDisclosureBanner."))}; sy.prototype.clear=function(){this.hide()};g.z(vy,g.ex);vy.prototype.Tc=function(){var a=this.B.getProgressState();this.progressBar.style.width=uy(new ty(a.seekableStart,a.seekableEnd),a.current,0)*100+"%"}; vy.prototype.onStateChange=function(){g.xO(this.api.U())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.B.subscribe("h",this.Tc,this),this.Tc()):this.j!==-1&&(this.hide(),this.B.wh(this.j),this.j=-1))};g.z(wy,fx); wy.prototype.init=function(a,b,c,d){fx.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.Q(c,hG),c=g.Q(c,VH),a?(c=new iy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,this.Y),c.Ja(this.G),c.init(Vw("skip-button"),a,this.macros),g.P(this,c)):c&&(a=new Vx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,!1),a.Ja(this.G),a.init(Vw("ad-preview"),c,this.macros),Wx(a),g.P(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer, c=new Yx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(this.Ga),c.init(Vw("instream-user-sentiment"),a,this.macros),g.P(this,c));if(a=g.Q(b,m$a))if(a=g.Q(a,m$a))c=new Xx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,!!b.showWithoutLinkedMediaLayout),g.P(this,c),c.Ja(this.C),c.init(Vw("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,a==null&&(a={text:{text:"Ad",isTemplated:!1}}), c=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),g.P(this,c),c.Ja(this.j),c.init(Vw("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,a==null&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,d),g.P(this,d),d.Ja(this.j),d.init(Vw("ad-duration-remaining"), a,this.macros));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer,UH))&&(a=new Nx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,a),a.Ja(this.j),a.init(Vw("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(a=g.Q(b.visitAdvertiserRenderer,g.WH))&&(c=Rsa(this)&&this.D?this.D:this.j)&&(d=new jy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,d),d.Ja(c),d.init(Vw("visit-advertiser"),a,this.macros),Go(d.element),a=Jo(d.element), Io(d.element,a+" This link opens in new tab"));!(d=this.api.U())||g.vO(d)||d.controlsType!="3"&&!d.disableOrganicUi||(d=new vy(this.api,this.B),d.Ja(this.Ka),g.P(this,d));b.adDisclosureBannerRenderer&&(b=g.Q(b.adDisclosureBannerRenderer,y$a))&&(d=new sy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),d.Ja(this.ra),d.init(Vw("ad-disclosure-banner"),b),g.P(this,d));this.api.U().L("enable_updated_html5_player_focus_style")&&g.To(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()}; wy.prototype.clear=function(){this.hide()};By.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.j.set(a,b,c)}; By.prototype.get=function(a){return this.j.get(a)}; By.prototype.remove=function(a){this.j.remove(a)};var Fy=null,Gy=null,Hy=null,Xsa=null;g.La("yt.www.ads.eventcache.getLastCompanionData",function(){return Fy}); g.La("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.La("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Gy}); g.La("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Hy}); g.La("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Xsa});var Zsa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Iy.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.eq.context)==null?void 0:(d=c.request)==null?void 0:d.consistencyTokenJars)||[];var e;(a=(e=a.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(b,a)}; Iy.prototype.replace=function(a,b){a=g.w(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];ata(this,b)};var zab=window.location.hostname.split(".").slice(-2).join("."),C1;Ky.getInstance=function(){C1=g.Ma("yt.clientLocationService.instance");C1||(C1=new Ky,g.La("yt.clientLocationService.instance",C1));return C1}; g.k=Ky.prototype; g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.j)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.C|| this.locationPlayabilityToken}; g.k.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.j=void 0,g.Eq("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Jy(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.wr("YT_CL",JSON.stringify({loctok:a}),15552E3,zab,!0))}; g.k.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=Jy(this))&&this.localStorage.remove("yt-location-playability-token"):g.yr("YT_CL");this.C=void 0;this.B!==-1&&(clearTimeout(this.B),this.B=-1)}; 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;g.Eq("INNERTUBE_CLIENT_NAME")==="MWEB"&&(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(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b}; g.k.createLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);return b};g.k=eta.prototype;g.k.contains=function(a){return Object.prototype.hasOwnProperty.call(this.j,a)}; g.k.get=function(a){if(this.contains(a))return this.j[a]}; g.k.set=function(a,b){this.j[a]=b}; g.k.Yn=function(){return Object.keys(this.j)}; g.k.remove=function(a){delete this.j[a]};Ny.prototype.getModuleId=function(a){return a.serviceId.getModuleId()}; Ny.prototype.get=function(a){a:{var b=this.mappings.get(a.toString());switch(b.type){case "mapping":a=b.value;break a;case "factory":b=b.value();this.mappings.set(a.toString(),{type:"mapping",value:b});a=b;break a;default:a=Kd(b)}}return a}; Ny.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a}; new Ny;var D1={},fta=(D1.WEB_UNPLUGGED="^unplugged/",D1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",D1.WEB_UNPLUGGED_OPS="^unplugged/",D1.WEB_UNPLUGGED_PUBLIC="^unplugged/",D1.WEB_CREATOR="^creator/",D1.WEB_KIDS="^kids/",D1.WEB_EXPERIMENTS="^experiments/",D1.WEB_MUSIC="^music/",D1.WEB_REMIX="^music/",D1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",D1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",D1);Qy.prototype.G=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?au:c;var d={context:g.Ly(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.Py(this.C());(e=(f=g.Q(a.commandMetadata,g.u1))==null?void 0:f.apiUrl)&&(b=e);f=cna(zr(b));a=Object.assign({},{command:a},void 0);d={input:f,qv:Ar(f),eq:d,config:a};d.config.Gw?d.config.Gw.identity=c:d.config.Gw={identity:c};return d}g.xw(new g.Hs("Error: Failed to create Request from Command.",a))}; g.ea.Object.defineProperties(Qy.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.z(Ry,Qy);g.z(Sy,Ry);Sy.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",qv:Ar("/getDatasyncIdsEndpoint","GET"),eq:{}}}; Sy.prototype.C=function(){return[]}; Sy.prototype.B=function(){}; Sy.prototype.j=function(){};var Aab={},Mta=(Aab.GET_DATASYNC_IDS=Oy(Sy),Aab);var E1={},mta=(E1.auto_search="LATENCY_ACTION_AUTO_SEARCH",E1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",E1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",E1["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",E1.app_startup="LATENCY_ACTION_APP_STARTUP",E1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",E1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",E1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",E1["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS", E1["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",E1["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",E1["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",E1["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",E1["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",E1["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",E1["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",E1["asset.metadata"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",E1["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",E1["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",E1["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",E1["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",E1["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",E1["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",E1["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS", E1["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",E1["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",E1["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",E1.browse="LATENCY_ACTION_BROWSE",E1.cast_splash="LATENCY_ACTION_CAST_SPLASH",E1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",E1.channels="LATENCY_ACTION_CHANNELS",E1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",E1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS", E1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",E1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",E1["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",E1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",E1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",E1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",E1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",E1["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", E1["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",E1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",E1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",E1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",E1.chips="LATENCY_ACTION_CHIPS",E1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",E1["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",E1["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT", E1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",E1.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",E1.embed="LATENCY_ACTION_EMBED",E1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",E1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",E1.explore="LATENCY_ACTION_EXPLORE",E1.favorites="LATENCY_ACTION_FAVORITES",E1.home="LATENCY_ACTION_HOME",E1.inboarding="LATENCY_ACTION_INBOARDING",E1.library="LATENCY_ACTION_LIBRARY",E1.live= "LATENCY_ACTION_LIVE",E1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",E1.mini_app="LATENCY_ACTION_MINI_APP_PLAY",E1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",E1.onboarding="LATENCY_ACTION_ONBOARDING",E1.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",E1["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",E1["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",E1["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",E1["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS", E1["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",E1["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",E1["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",E1["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",E1["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",E1["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",E1["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",E1["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING", E1["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",E1["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",E1["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",E1["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",E1["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",E1["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",E1["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",E1["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",E1["owner.videos"]= "LATENCY_ACTION_CREATOR_CMS_VIDEOS",E1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",E1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",E1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",E1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",E1["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",E1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",E1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",E1.prebuffer="LATENCY_ACTION_PREBUFFER", E1.prefetch="LATENCY_ACTION_PREFETCH",E1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",E1.profile_switcher="LATENCY_ACTION_LOGIN",E1.reel_watch="LATENCY_ACTION_REEL_WATCH",E1.results="LATENCY_ACTION_RESULTS",E1["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",E1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",E1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",E1.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",E1.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",E1.search_ui= "LATENCY_ACTION_SEARCH_UI",E1.search_suggest="LATENCY_ACTION_SUGGEST",E1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",E1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",E1.seek="LATENCY_ACTION_PLAYER_SEEK",E1.settings="LATENCY_ACTION_SETTINGS",E1.store="LATENCY_ACTION_STORE",E1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",E1.tenx="LATENCY_ACTION_TENX",E1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",E1.watch="LATENCY_ACTION_WATCH",E1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", E1["watch,watch7"]="LATENCY_ACTION_WATCH",E1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",E1["watch,watch7ad"]="LATENCY_ACTION_WATCH",E1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",E1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",E1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",E1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",E1["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",E1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",E1["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT", E1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",E1["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",E1["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",E1["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",E1["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",E1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",E1["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",E1["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT", E1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",E1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",E1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",E1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",E1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",E1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",E1);g.z(uz,bu);var Ata=new cu("aft-recorded",uz);var Bab=g.Ka.ytLoggingGelSequenceIdObj_||{};g.La("ytLoggingGelSequenceIdObj_",Bab);var xz=g.Ka.ytLoggingLatencyUsageStats_||{};g.La("ytLoggingLatencyUsageStats_",xz);vz.prototype.tick=function(a,b,c,d){yz(this,"tick_"+a+"_"+b)||g.Xs("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})}; vz.prototype.info=function(a,b,c){var d=Object.keys(a).join("");yz(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Xs("latencyActionInfo",a,{cttAuthInfo:c}))}; vz.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=this.start&&(a=2&&c.ssdaiAdsConfig&&cy("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!((f=e.renderer)==null?0:(h=f.linearAdSequenceRenderer)==null?0:(l=h.linearAds)==null?0:l.length)||!((m=e.renderer)==null||!m.instreamVideoAdRenderer)})||pva(a)})}; PC.prototype.GO=function(){bva(this.j)};QC.prototype.VE=function(){var a=this;ava(this.j,function(){var b=OB(a.slot.Ba,"metadata_type_ad_break_request_data");return a.B.get().fetch({F3:b.getAdBreakUrl,EX:new g.LC(b.WS,b.VS)})})}; QC.prototype.GO=function(){bva(this.j)};RC.prototype.VE=function(){var a=this.slot.Ba,b,c=(b=this.slot.fulfilledLayout)!=null?b:OB(a,"metadata_type_fulfilled_layout");Gua(this.callback,this.slot,c)}; RC.prototype.GO=function(){aC(this.callback,this.slot,new MB("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};TC.prototype.build=function(a,b){return b.fulfilledLayout||SC(b,{Nd:["metadata_type_fulfilled_layout"]})?new RC(a,b):this.C(a,b)};g.z(UC,TC); UC.prototype.C=function(a,b){if(SC(b,{Nd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new PC(a,b,this.j,this.B,this.Ne,this.Ca,this.Oa,this.Ia,this.Gc);if(SC(b,{Nd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new QC(a,b,this.j,this.B,this.Ne,this.Ca);throw new MB("Unsupported slot with type: "+b.slotType+" and client metadata: "+PB(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(VC,TC);VC.prototype.C=function(a,b){throw new MB("Unsupported slot with type: "+b.slotType+" and client metadata: "+PB(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=qva.prototype;g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.If(this.slot,a,new LB("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{var b=OB(a.Ba,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.vc(this.slot,a),xya(this.B,this.slot, b)):cy("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}}; g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new LB("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.Nc(this.slot,a,b),sva(this))};g.z($C,g.Xw);g.k=$C.prototype;g.k.Zb=function(){return this.B.slot}; g.k.Za=function(){return this.B.layout}; g.k.init=function(){this.C.get().addListener(this)}; g.k.release=function(){this.C.get().removeListener(this);this.dispose()}; g.k.rQ=function(){}; g.k.pQ=function(){}; g.k.oQ=function(){}; g.k.qK=function(){}; g.k.startRendering=function(a){var b=this;ZC(this.B,a,function(){return void b.FM()})}; g.k.FM=function(){this.C.get().FM(this.j)}; g.k.Kd=function(a,b){var c=this;ZC(this.B,a,function(){var d=c.C.get();a7a(d,c.j,3);c.j=[];c.callback.Nc(c.slot,a,b)})}; g.k.xa=function(){this.C.La()||this.C.get().removeListener(this);g.Xw.prototype.xa.call(this)}; g.ea.Object.defineProperties($C.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});gD.prototype.Th=function(a,b){b=b===void 0?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&vva(a)){var d=this.C.get(b);d&&c.push.apply(c,g.x(d))}jD(this,a,c);this.j.add(a);b&&this.j.add(b)}; gD.prototype.Xb=function(a,b){b=b===void 0?!1:b;if(!this.j.has(a)){var c=b&&vva(a);c&&(b=!this.j.has(c));this.Th(a,b)}};g.z(yva,Ww);g.z(oD,$C);g.k=oD.prototype;g.k.jg=function(a,b){cD("ads-engagement-panel-layout",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),g.Q(this.Za().renderingContent,FH),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new yva(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Li():cy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)};g.z(Ava,Ww);g.z(pD,$C);g.k=pD.prototype;g.k.jg=function(a,b){cD("banner-image",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),g.Q(this.Za().renderingContent,DH),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new Ava(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Li():cy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)};g.z(qD,Ww);g.z(rD,$C);g.k=rD.prototype;g.k.jg=function(a,b){cD("action-companion",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),g.Q(this.Za().renderingContent,AH),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new qD(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Li():cy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)};g.z(Dva,Ww);g.z(sD,$C);g.k=sD.prototype;g.k.jg=function(a,b){cD("image-companion",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),g.Q(this.Za().renderingContent,BH),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Dva(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Li():cy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)};g.z(Fva,Ww);g.z(tD,$C);g.k=tD.prototype;g.k.jg=function(a,b){cD("shopping-companion",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new Fva(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Li():cy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)};g.z(uD,$C);g.k=uD.prototype;g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new qD(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(){}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)}; g.k.jg=function(){};g.k=Mva.prototype;g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().yE.push(this);var a=OB(this.layout.Ba,"metadata_type_video_length_seconds"),b=OB(this.layout.Ba,"metadata_type_active_view_traffic_type");dD(this.layout.Db)&&l0(this.zb.get(),this.layout.layoutId,{Bt:b,mI:a,listener:this})}; g.k.release=function(){this.Ia.get().removeListener(this);V6a(this.Ia.get(),this);dD(this.layout.Db)&&m0(this.zb.get(),this.layout.layoutId)}; g.k.startRendering=function(a){this.callback.vc(this.slot,a)}; g.k.Kd=function(a,b){v6a(this.Ca.get())&&!this.j&&(this.eb.Xb("abandon"),this.j=!0);this.callback.Nc(this.slot,a,b)}; g.k.Jj=function(a){switch(a.id){case "part2viewed":this.eb.Xb("start");this.eb.Xb("impression");break;case "videoplaytime25":this.eb.Xb("first_quartile");break;case "videoplaytime50":this.eb.Xb("midpoint");break;case "videoplaytime75":this.eb.Xb("third_quartile");break;case "videoplaytime100":v6a(this.Ca.get())?this.j||(this.eb.Xb("complete"),this.j=!0):this.eb.Xb("complete");nD(this.eb)&&lD(this.eb,Infinity,!0);break;case "engagedview":nD(this.eb)||this.eb.Xb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:cy("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.k.onVolumeChange=function(){}; g.k.hj=function(){}; g.k.ph=function(){}; g.k.Kj=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Cg=function(){}; g.k.Oi=function(){}; g.k.PR=function(a){nD(this.eb)&&lD(this.eb,a*1E3,!1)}; g.k.Mj=function(){}; g.k.gy=function(){this.eb.Xb("active_view_measurable")}; g.k.iy=function(){this.eb.Xb("active_view_viewable")}; g.k.ey=function(){this.eb.Xb("active_view_fully_viewable_audible_half_duration")}; g.k.Zx=function(){this.eb.Xb("audio_measurable")}; g.k.Yx=function(){this.eb.Xb("audio_audible")};g.z(vD,$C);g.k=vD.prototype;g.k.init=function(){$C.prototype.init.call(this);var a=OB(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac};this.j.push(new ly(a,this.layout.layoutId,OB(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))}; g.k.tq=function(){this.D||this.Ia.get().resumeVideo(1)}; g.k.startRendering=function(a){$C.prototype.startRendering.call(this,a);t0(this.Ia.get(),"ad-showing");this.callback.vc(this.slot,a);this.G.At=this}; g.k.Kd=function(a,b){$C.prototype.Kd.call(this,a,b);u0(this.Ia.get(),"ad-showing");Y0(this.G,this)}; g.k.jg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ia.get().Go(1))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo()}}; g.k.xa=function(){$C.prototype.xa.call(this)};g.z(wD,Ww);g.z(xD,$C);g.k=xD.prototype;g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new wD(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(){}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)}; g.k.jg=function(){};g.z(yD,Ww);g.z(zD,$C);zD.prototype.init=function(){$C.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,ND)||OB(this.layout.Ba,"metadata_type_ad_action_interstitial_renderer"),b=aD(this.eb);this.j.push(new yD(a,b,this.layout.layoutId,{adsClientData:this.layout.ac},!0,!0))}; zD.prototype.startRendering=function(a){$C.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)}; zD.prototype.jg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=OB(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.EL(this.Zb(),this.layout)}}; zD.prototype.xa=function(){$C.prototype.xa.call(this)};BD.prototype.build=function(a,b,c,d){if(AD(d,{Nd:["metadata_type_ad_break_response_data"],Ge:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new qva(a,c,d,this.B,this.C,this.j);throw new LB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PB(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(Pva,Ww);g.z(CD,$C);g.k=CD.prototype;g.k.jg=function(a,b){cD("ads-engagement-panel",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),g.Q(this.Za().renderingContent,CH),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new Pva(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Li():cy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)};g.z(DD,$C);g.k=DD.prototype;g.k.jg=function(a,b){cD("top-banner-image-text-icon-buttoned",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; g.k.startRendering=function(a){bD(this.eb,this.Zb(),this.Za(),g.Q(this.Za().renderingContent,EH),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new wD(b,c,d,e,f)},this.j); $C.prototype.startRendering.call(this,a)}; g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Li():cy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.xa=function(){ZB(this.qc(),this);$C.prototype.xa.call(this)};Sva.prototype.build=function(a,b,c,d){if(AD(d,Qva())||g.Q(d.renderingContent,CH)!==void 0)return new CD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(AD(d,Cva())||g.Q(d.renderingContent,AH)!==void 0)return new rD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(AD(d,Eva())||g.Q(d.renderingContent,BH)!==void 0)return new sD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(AD(d,Gva()))return new tD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(AD(d,Lva()))return new uD(a,c,d,this.Ac,this.Oa,this.qc, this.zb,this.j);if(AD(d,Bva())||g.Q(d.renderingContent,DH)!==void 0)return new pD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(AD(d,Rva())||g.Q(d.renderingContent,EH)!==void 0)return new DD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(AD(d,Nva()))return new xD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(AD(d,zva())||g.Q(d.renderingContent,FH)!==void 0)return new oD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);throw new LB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ PB(d.Ba)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.z(ED,Ww);g.z(FD,$C);FD.prototype.init=function(){$C.prototype.init.call(this);var a=OB(this.layout.Ba,"metadata_type_player_underlay_renderer");this.j.push(new ED(g.Q(a,n$a),this.layout.layoutId,{adsClientData:this.layout.ac}))}; FD.prototype.jg=function(){}; FD.prototype.startRendering=function(a){$C.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)}; FD.prototype.xa=function(){$C.prototype.xa.call(this)};Tva.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.w(hD()),f=e.next();!f.done;f=e.next())b.push(f.value);if(AD(d,{Nd:b,Ge:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new FD(a,c,d,this.Ac);throw new LB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PB(d.Ba)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=Uva.prototype;g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new LB("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.callback.vc(this.slot,a),this.eb.Xb("impression"),VF(this.Pi,a,"normal"))}; g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new LB("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Nc(this.slot,a,b)};g.k=Wva.prototype;g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){}; g.k.release=function(){}; g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new LB("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.callback.vc(this.slot,a),this.eb.Xb("impression"),VF(this.Pi,a,"normal"))}; g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.If(this.slot,a,new LB("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Nc(this.slot,a,b)};GD.prototype.build=function(a,b,c,d){if(!this.Ca.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(AD(d,Vva()))return new Uva(a,c,d,this.Oa,this.Pi)}else if(AD(d,{Nd:[],Ge:["LAYOUT_TYPE_FORECASTING"]}))return new Wva(a,c,d,this.Oa,this.Pi);throw new LB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PB(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(Zva,Ww);g.z(HD,$C);g.k=HD.prototype;g.k.init=function(){$C.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,MD)||OB(this.layout.Ba,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.ac};this.j.push(new Zva(a,OB(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))}; g.k.tq=function(){this.D||this.Ia.get().resumeVideo(2)}; g.k.startRendering=function(a){$C.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.At=this}; g.k.Kd=function(a,b){$C.prototype.Kd.call(this,a,b);Y0(this.G,this)}; g.k.jg=function(a){if(NI(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Go(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser-link":this.Ia.get().pauseVideo();$va(this).mM();break; case "skip-button":if(a=$va(this),!this.layout.renderingContent&&a.KK)cy("Requesting to skip by LegacyPlayerBytes when components enabled"),a.qy(this.Zb(),this.layout);else{var b;(a=(b=OB(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.EL(this.Zb(),this.layout)}}}; g.k.xa=function(){$C.prototype.xa.call(this)};g.z(ID,$C);g.k=ID.prototype;g.k.init=function(){$C.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,LD)||OB(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac},c;(c=!!this.layout.renderingContent)||(c=!JD(this).KK);this.j.push(new ly(a,this.layout.layoutId,OB(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))}; g.k.tq=function(){this.D||this.Ia.get().resumeVideo(2)}; g.k.startRendering=function(a){$C.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.At=this}; g.k.Kd=function(a,b){$C.prototype.Kd.call(this,a,b);Y0(this.G,this)}; g.k.jg=function(a){if(NI(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Go(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo();JD(this).mM();break;case "skip-button":if(a= JD(this),!this.layout.renderingContent&&a.KK)cy("Requesting to skip by LegacyPlayerBytes"),a.qy(this.Zb(),this.layout);else{var b;(a=(b=OB(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.EL(this.Zb(),this.layout)}}}; g.k.xa=function(){$C.prototype.xa.call(this)};g.z(bwa,Ww);g.z(KD,$C);g.k=KD.prototype;g.k.startRendering=function(a){var b=this;ZC(this.B,a,function(){b.j.push(new bwa(OB(b.layout.Ba,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.ac));b.FM();b.callback.vc(b.slot,a);g.Z(k0(b.Ia.get(),1),512)&&b.callback.If(b.Zb(),b.Za(),new LB("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.k.Oi=function(){}; g.k.Cg=function(a){if(a.state.isError()){var b;this.callback.If(this.Zb(),this.Za(),new LB("A player error happened during adNotify",{playerErrorCode:(b=a.state.fh)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.k.onFullscreenToggled=function(){}; g.k.ph=function(){}; g.k.Kj=function(){}; g.k.hj=function(){}; g.k.onVolumeChange=function(){}; g.k.Jj=function(){}; g.k.Mj=function(){}; g.k.jg=function(){};dwa.prototype.build=function(a,b,c,d){if(a=OD(a,c,d,this.Ac,this.Ia,this.Oa,this.B,this.j,this.Ca))return a;throw new LB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PB(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=ewa.prototype;g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().yE.push(this);var a=OB(this.layout.Ba,"metadata_type_video_length_seconds"),b=OB(this.layout.Ba,"metadata_type_active_view_traffic_type"),c=OB(this.layout.Ba,"metadata_type_active_view_identifier");dD(this.layout.Db)&&l0(this.zb.get(),this.layout.layoutId,{Bt:b,mI:a,listener:this,e7:c})}; g.k.release=function(){this.Ia.get().removeListener(this);V6a(this.Ia.get(),this);dD(this.layout.Db)&&m0(this.zb.get(),this.layout.layoutId)}; g.k.startRendering=function(a){this.callback.vc(this.slot,a)}; g.k.Kd=function(a,b){RD(this,"abandon");this.callback.Nc(this.slot,a,b)}; g.k.Jj=function(a){switch(a.id){case "part2viewed":this.eb.Xb("start");this.eb.Xb("impression");break;case "videoplaytime25":this.eb.Xb("first_quartile");break;case "videoplaytime50":this.eb.Xb("midpoint");break;case "videoplaytime75":this.eb.Xb("third_quartile");break;case "videoplaytime100":RD(this,"complete");nD(this.eb)&&lD(this.eb,Infinity,!0);break;case "engagedview":nD(this.eb)||this.eb.Xb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:cy("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.k.onVolumeChange=function(){}; g.k.hj=function(){}; g.k.ph=function(){}; g.k.Kj=function(){}; g.k.onFullscreenToggled=function(){}; g.k.Cg=function(a){this.j||(g.fy(a,4)&&!g.fy(a,2)?kD(this.eb,"pause"):ey(a,4)<0&&!(ey(a,2)<0)&&kD(this.eb,"resume"))}; g.k.Oi=function(){}; g.k.PR=function(a){nD(this.eb)&&lD(this.eb,a*1E3,!1)}; g.k.Mj=function(){RD(this,"swipe")}; g.k.gy=function(){this.eb.Xb("active_view_measurable")}; g.k.iy=function(){this.eb.Xb("active_view_viewable")}; g.k.ey=function(){this.eb.Xb("active_view_fully_viewable_audible_half_duration")}; g.k.Zx=function(){this.eb.Xb("audio_measurable")}; g.k.Yx=function(){this.eb.Xb("audio_audible")};fwa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.w(hD()),f=e.next();!f.done;f=e.next())b.push(f.value);if(AD(d,{Nd:b,Ge:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new ewa(a,c,d,this.Ia,this.Oa,this.Ca,this.zb):new Mva(a,c,d,this.Ia,this.Oa,this.Ca,this.zb);throw new LB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+PB(d.Ba)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); };var VD={contentCpn:"",Ht:new Map};nwa.prototype.Hk=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.Lf.Im(),c));UD(this.Lf,a,b)};var Gab,H1,owa; Gab={Ufa:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",rga:"AUTHENTICATION_MALFORMED",tga:"AUTHENTICATION_MISSING",wga:"BAD_REQUEST",Dga:"CAST_SESSION_DEVICE_MISMATCHED",Ega:"CAST_SESSION_VIDEO_MISMATCHED",Fga:"CAST_TOKEN_EXPIRED",Gga:"CAST_TOKEN_FAILED",Hga:"CAST_TOKEN_MALFORMED",Iga:"CGI_PARAMS_MALFORMED",Jga:"CGI_PARAMS_MISSING",hha:"DEVICE_FALLBACK",Cha:"GENERIC_WITH_LINK_AND_CPN",Dha:"ERROR_HDCP",Eha:"LICENSE",Gha:"VIDEO_UNAVAILABLE",Mha:"FORMAT_UNAVAILABLE",Rha:"GEO_FAILURE", jia:"HTML5_AUDIO_RENDERER_ERROR",kia:"GENERIC_WITHOUT_LINK",lia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",oia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",pia:"HTML5_SPS_UMP_STATUS_REJECTED",zia:"INVALID_DRM_MESSAGE",kka:"PURCHASE_NOT_FOUND",lka:"PURCHASE_REFUNDED",ska:"RENTAL_EXPIRED",yka:"RETRYABLE_ERROR",Gka:"SERVER_ERROR",Oka:"SIGNATURE_EXPIRED",Vka:"STOPPED_BY_ANOTHER_PLAYBACK",Wka:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Xka:"STREAMING_NOT_ALLOWED", Yka:"STREAM_LICENSE_NOT_FOUND",ila:"TOO_MANY_REQUESTS",jla:"TOO_MANY_REQUESTS_WITH_LINK",kla:"TOO_MANY_STREAMS_PER_ENTITLEMENT",lla:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Hla:"VIDEO_FORBIDDEN",Ila:"VIDEO_NOT_FOUND",zga:"BROWSER_OR_EXTENSION_ERROR"};H1={}; g.HU=(H1.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",H1.DEVICE_FALLBACK="Sorry, this video is not available on this device.",H1.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",H1.LICENSE="Sorry, there was an error licensing this video.",H1.VIDEO_UNAVAILABLE= "Video unavailable",H1.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",H1.GEO_FAILURE="This video isn't available in your country.",H1.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",H1.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",H1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",H1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", H1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",H1.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",H1.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",H1.PURCHASE_NOT_FOUND="This video requires payment.",H1.PURCHASE_REFUNDED="This video's purchase has been refunded.",H1.RENTAL_EXPIRED="This video's rental has expired.",H1.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",H1.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",H1.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",H1.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",H1.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",H1.SERVER_ERROR="There was an internal server error. Please try again later.",H1.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",H1.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",H1.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",H1.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",H1.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",H1.TOO_MANY_REQUESTS="Please log in to watch this video.", H1.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",H1.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",H1.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",H1.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",H1.VIDEO_FORBIDDEN="Access to this video is forbidden.",H1.VIDEO_NOT_FOUND="This video can not be found.",H1.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",H1); owa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED", 5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var Hab;var Iab=g.xb(),Jab=Iab.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Jab||Jab.length<2)Hab=void 0;else{var Kab=Iab.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Hab=Kab&&Kab.length===6?Number(Kab[5].replace("_",".")):0}var KP=Hab,CU=KP>=0;g.z(g.iE,ns);g.iE.prototype.T=function(a,b,c,d,e){return ns.prototype.T.call(this,a,b,c,d,e)};var I1={},hN=(I1.FAIRPLAY="fairplay",I1.PLAYREADY="playready",I1.WIDEVINE="widevine",I1.CLEARKEY=null,I1.FLASHACCESS=null,I1.UNKNOWN=null,I1.WIDEVINE_CLASSIC=null,I1);jE.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var J1={},pL=(J1.WIDTH={name:"width",video:!0,valid:640,Ao:99999},J1.HEIGHT={name:"height",video:!0,valid:360,Ao:99999},J1.FRAMERATE={name:"framerate",video:!0,valid:30,Ao:9999},J1.BITRATE={name:"bitrate",video:!0,valid:3E5,Ao:2E9},J1.EOTF={name:"eotf",video:!0,valid:"bt709",Ao:"catavision"},J1.CHANNELS={name:"channels",video:!1,valid:2,Ao:99},J1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Ao:"invalidformat"},J1.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Ao:"nope"},J1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Ao:"av99.0.05M.08"},J1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Ao:"invalid"},J1);var Lab=["h","H"],Mab=["9","("],Nab=["9h","(h"],Oab=["8","*"],Pab=["a","A"],Qab=["o","O"],Rab=["m","M"],Sab=["mac3","MAC3"],Uab=["meac3","MEAC3"],K1={},yIa=(K1.h=Lab,K1.H=Lab,K1["9"]=Mab,K1["("]=Mab,K1["9h"]=Nab,K1["(h"]=Nab,K1["8"]=Oab,K1["*"]=Oab,K1.a=Pab,K1.A=Pab,K1.o=Qab,K1.O=Qab,K1.m=Rab,K1.M=Rab,K1.mac3=Sab,K1.MAC3=Sab,K1.meac3=Uab,K1.MEAC3=Uab,K1),Vab=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),gDa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var L1={},pE=(L1["0"]="f",L1["160"]="h",L1["133"]="h",L1["134"]="h",L1["135"]="h",L1["136"]="h",L1["137"]="h",L1["264"]="h",L1["266"]="h",L1["138"]="h",L1["298"]="h",L1["299"]="h",L1["304"]="h",L1["305"]="h",L1["214"]="h",L1["216"]="h",L1["374"]="h",L1["375"]="h",L1["140"]="a",L1["141"]="ah",L1["327"]="sa",L1["258"]="m",L1["380"]="mac3",L1["328"]="meac3",L1["161"]="H",L1["142"]="H",L1["143"]="H",L1["144"]="H",L1["222"]="H",L1["223"]="H",L1["145"]="H",L1["224"]="H",L1["225"]="H",L1["146"]="H",L1["226"]= "H",L1["227"]="H",L1["147"]="H",L1["384"]="H",L1["376"]="H",L1["385"]="H",L1["377"]="H",L1["149"]="A",L1["261"]="M",L1["381"]="MAC3",L1["329"]="MEAC3",L1["598"]="9",L1["278"]="9",L1["242"]="9",L1["243"]="9",L1["244"]="9",L1["775"]="9",L1["776"]="9",L1["777"]="9",L1["778"]="9",L1["779"]="9",L1["780"]="9",L1["781"]="9",L1["782"]="9",L1["783"]="9",L1["247"]="9",L1["248"]="9",L1["353"]="9",L1["355"]="9",L1["356"]="9",L1["271"]="9",L1["577"]="9",L1["313"]="9",L1["579"]="9",L1["272"]="9",L1["302"]="9", L1["303"]="9",L1["407"]="9",L1["408"]="9",L1["308"]="9",L1["315"]="9",L1["330"]="9h",L1["331"]="9h",L1["332"]="9h",L1["333"]="9h",L1["334"]="9h",L1["335"]="9h",L1["336"]="9h",L1["337"]="9h",L1["338"]="so",L1["600"]="o",L1["250"]="o",L1["251"]="o",L1["194"]="*",L1["195"]="*",L1["220"]="*",L1["221"]="*",L1["196"]="*",L1["197"]="*",L1["279"]="(",L1["280"]="(",L1["317"]="(",L1["318"]="(",L1["273"]="(",L1["274"]="(",L1["357"]="(",L1["358"]="(",L1["275"]="(",L1["359"]="(",L1["360"]="(",L1["276"]="(",L1["583"]= "(",L1["584"]="(",L1["314"]="(",L1["585"]="(",L1["561"]="(",L1["277"]="(",L1["361"]="(h",L1["362"]="(h",L1["363"]="(h",L1["364"]="(h",L1["365"]="(h",L1["366"]="(h",L1["591"]="(h",L1["592"]="(h",L1["367"]="(h",L1["586"]="(h",L1["587"]="(h",L1["368"]="(h",L1["588"]="(h",L1["562"]="(h",L1["409"]="(",L1["410"]="(",L1["411"]="(",L1["412"]="(",L1["557"]="(",L1["558"]="(",L1["394"]="1",L1["395"]="1",L1["396"]="1",L1["397"]="1",L1["787"]="1",L1["788"]="1",L1["398"]="1",L1["399"]="1",L1["400"]="1",L1["401"]= "1",L1["571"]="1",L1["402"]="1",L1["694"]="1h",L1["695"]="1h",L1["696"]="1h",L1["697"]="1h",L1["698"]="1h",L1["699"]="1h",L1["700"]="1h",L1["701"]="1h",L1["702"]="1h",L1["703"]="1h",L1["386"]="3",L1["387"]="w",L1["406"]="6",L1["645"]="(",L1["646"]="(",L1["647"]="(",L1["648"]="(",L1["649"]="(",L1["650"]="(",L1["651"]="(",L1["652"]="(",L1["653"]="(",L1["654"]="(",L1["655"]="(",L1["656"]="(",L1["657"]="(",L1["658"]="(",L1["659"]="(",L1["660"]="(",L1["661"]="(",L1["662"]="(",L1["663"]="(",L1["664"]="(", L1["665"]="(",L1["666"]="(",L1["667"]="(",L1["668"]="(",L1["669"]="(",L1["670"]="(",L1["671"]="(",L1["672"]="(",L1["673"]="(",L1["674"]="(h",L1["675"]="(h",L1["676"]="(h",L1["677"]="(h",L1["678"]="(h",L1["679"]="(h",L1["680"]="(h",L1["681"]="(h",L1["682"]="(h",L1["683"]="(h",L1["684"]="(h",L1["685"]="(h",L1["686"]="(h",L1["687"]="(h",L1["688"]="A",L1["689"]="A",L1["690"]="A",L1["691"]="MEAC3",L1["773"]="i",L1);var M1={},YHa=(M1.STEREO_LAYOUT_UNKNOWN=0,M1.STEREO_LAYOUT_LEFT_RIGHT=1,M1.STEREO_LAYOUT_TOP_BOTTOM=2,M1);var N1,bL;N1={};g.lE=(N1.auto=0,N1.tiny=144,N1.light=144,N1.small=240,N1.medium=360,N1.large=480,N1.hd720=720,N1.hd1080=1080,N1.hd1440=1440,N1.hd2160=2160,N1.hd2880=2880,N1.highres=4320,N1);bL={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var nE="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");mE.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};qE.prototype.Me=function(){return this.containerType===2}; qE.prototype.isEncrypted=function(){return!!this.oe}; qE.prototype.Hh=function(){return!!this.audio}; qE.prototype.Ag=function(){return!!this.video};g.z(NE,g.Xw);g.k=NE.prototype;g.k.appendBuffer=function(a,b,c){if(this.Jd.aF()!==this.appendWindowStart+this.start||this.Jd.QJ()!==this.appendWindowEnd+this.start||this.Jd.Dc()!==this.timestampOffset+this.start)this.Jd.supports(1),this.Jd.vT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Jd.Oq(this.timestampOffset+this.start);this.Jd.appendBuffer(a,b,c)}; g.k.abort=function(){this.Jd.abort()}; g.k.remove=function(a,b){this.Jd.remove(a+this.start,b+this.start)}; g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.k.clear=function(){this.Jd.clear()}; g.k.vT=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; g.k.jQ=function(){return this.timestampOffset+this.start}; g.k.aF=function(){return this.appendWindowStart}; g.k.QJ=function(){return this.appendWindowEnd}; g.k.Oq=function(a){this.timestampOffset=a}; g.k.Dc=function(){return this.timestampOffset}; g.k.qe=function(a){a=this.Jd.qe(a===void 0?!1:a);return ME(a,this.start,this.end)}; g.k.Fk=function(){return this.Jd.Fk()}; g.k.oK=function(){return this.Jd.oK()}; g.k.Qm=function(){return this.Jd.Qm()}; g.k.QQ=function(){return this.Jd.QQ()}; g.k.Lz=function(){this.Jd.Lz()}; g.k.Jx=function(a){return this.Jd.Jx(a)}; g.k.ex=function(){return this.Jd.ex()}; g.k.ZJ=function(){return this.Jd.ZJ()}; g.k.tU=function(a,b){this.Jd.tU(a,b)}; g.k.supports=function(a){return this.Jd.supports(a)}; g.k.Kr=function(){return this.Jd.Kr()}; g.k.isView=function(){return!0}; g.k.hJ=function(){return this.Jd.hJ()?this.isActive:!1}; g.k.isLocked=function(){return this.qI&&!this.isActive}; g.k.uc=function(a){a=this.Jd.uc(a);a.vw=this.start+"-"+this.end;return a}; g.k.aK=function(){return this.Jd.aK()}; g.k.kF=function(){return this.Jd.kF()}; g.k.dQ=function(){return this.Jd.dQ()}; g.k.xa=function(){Zw(this.Jd,this.YY);g.Xw.prototype.xa.call(this)}; g.k.TF=function(){return this.Jd.TF()}; g.k.lJ=function(){this.Jd.lJ()};var LW=!1;g.z(PE,g.Xw);g.k=PE.prototype;g.k.appendBuffer=function(a,b,c){this.sE=!1;c&&(this.YF=c);if(a.length){var d;((d=this.Qb)==null?0:d.appendBuffer)?this.Qb.appendBuffer(a):this.Qb?this.Qb.append(a):this.wg&&this.wg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.fR=this.YF),b.type===3&&(this.Hf=b,b.Ni()&&(this.pI=!0)),this.XF.push(b.Sc()),this.XF.length>4&&this.XF.shift());this.jC&&(this.jC.length>=2||a.length>1048576?delete this.jC:this.jC.push(a))}; g.k.abort=function(){try{this.Qb?this.Qb.abort():this.wg&&this.wg.webkitSourceAbort(this.id)}catch(a){PTa&&g.xw(new g.Hs("Error while abort the source buffer: "+a.name+", "+a.message))}this.YF=this.Hf=null;this.pI=!1}; g.k.remove=function(a,b,c){this.sE=!1;var d;if((d=this.Qb)==null?0:d.remove)c&&c({b:GE(this.qe()),s:a,e:b}),this.Qb.remove(a,b)}; g.k.removeAll=function(){this.remove(this.aF(),this.QJ())}; g.k.clear=function(){this.Qm()||(this.abort(),this.removeAll(),this.fR=this.YF=this.Hf=null,this.appendWindowStart=this.timestampOffset=0,this.CO=FE([],[]),this.sE=!1,this.jC=OE?[]:void 0,this.mJ=!0,this.pI=!1)}; g.k.aF=function(){if(LW&&this.Ag)return this.appendWindowStart;var a;return((a=this.Qb)==null?void 0:a.appendWindowStart)||0}; g.k.QJ=function(){var a;return((a=this.Qb)==null?void 0:a.appendWindowEnd)||0}; g.k.vT=function(a,b){this.Qb&&(LW&&this.Ag?(this.appendWindowStart=a,this.Qb.appendWindowEnd=b):a>this.aF()?(this.Qb.appendWindowEnd=b,this.Qb.appendWindowStart=a):(this.Qb.appendWindowStart=a,this.Qb.appendWindowEnd=b))}; g.k.jQ=function(){return this.timestampOffset}; g.k.Oq=function(a){LW?this.timestampOffset=a:this.supports(1)&&(this.Qb.timestampOffset=a)}; g.k.Dc=function(){return LW?this.timestampOffset:this.supports(1)?this.Qb.timestampOffset:0}; g.k.qe=function(a){if(a===void 0?0:a)return this.sE||this.Fk()||(this.CO=this.qe(!1),this.sE=!0),this.CO;try{return this.Qb?this.Qb.buffered:this.wg?this.wg.webkitSourceBuffered(this.id):FE([0],[Infinity])}catch(b){return FE([],[])}}; g.k.Fk=function(){var a;return((a=this.Qb)==null?void 0:a.updating)||!1}; g.k.Qm=function(){return this.mJ}; g.k.QQ=function(){return!this.mJ&&this.Fk()}; g.k.Lz=function(){this.mJ=!1}; g.k.Jx=function(a){var b=a==null?void 0:a.rb;a=a==null?void 0:a.containerType;return!b&&!a||b===this.rb&&a===this.containerType}; g.k.ex=function(){return this.YF}; g.k.ZJ=function(){return this.fR}; g.k.tU=function(a,b,c){if(this.containerType!==a||c)this.supports(4),QE()&&this.Qb.changeType(b);this.containerType=a}; g.k.Kr=function(){return this.Hf}; g.k.isView=function(){return!1}; g.k.supports=function(a){switch(a){case 1:var b;return((b=this.Qb)==null?void 0:b.timestampOffset)!==void 0;case 0:var c;return!((c=this.Qb)==null||!c.appendBuffer);case 2:var d;return!((d=this.Qb)==null||!d.remove);case 3:var e,f;return!!(((e=this.Qb)==null?0:e.addEventListener)&&((f=this.Qb)==null?0:f.removeEventListener));case 4:return!(!this.Qb||!this.Qb.changeType);default:return!1}}; g.k.hJ=function(){return!this.Fk()}; g.k.isLocked=function(){return!1}; g.k.uc=function(a){a.to=this.Dc();a.up=this.Fk();var b,c=((b=this.Qb)==null?void 0:b.appendWindowStart)||0,d;b=((d=this.Qb)==null?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=GE(this.qe())}catch(e){}return a}; g.k.oK=function(){var a;return((a=this.Qb)==null?void 0:a.writeHead)||0}; g.k.aK=function(){for(var a={},b=0;b=7&&qwa(this,function(){g.cr(function(){Gwa(a,a.getCurrentTime(),0)},500)}); return b}; g.k.seekTo=function(a){this.ll()>0&&(CU&&KP<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))}; g.k.Wo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;VE(this,{l:"mer",sr:(a=this.ea)==null?void 0:WE(a),rs:YE(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.Hs("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.xw(a),this.stopVideo()}else this.stopVideo()}; g.k.stopVideo=function(){var a=this;if(!this.B){var b;(b=this.Qa)==null||Dwa(b);if(MTa){if(!this.C){var c=new $E;c.then(void 0,function(){}); this.C=c;NTa&&this.pause();g.cr(function(){a.C===c&&(dF(a),c.resolve())},200)}}else dF(this)}}; g.k.qA=function(){var a=this.Fh();return KE(a)>0&&this.getDuration()?JE(a,this.getCurrentTime()):0}; g.k.ix=function(){var a=this.getDuration();return a===Infinity?1:a?this.qA()/a:0}; g.k.uc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:GE(this.mx(),",",3),vbu:GE(this.Fh()),vbs:GE(this.vA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.ll(),vns:""+this.cK(),vec:""+this.Zh(),vemsg:this.Yf(),vvol:""+this.getVolume(),vdom:""+ +this.RQ(),vsrc:""+ +!!this.gi(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}}; g.k.hasError=function(){return this.Zh()>0}; g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.tP(a)}; g.k.removeEventListener=function(a,b){this.D.Oc(a,b,!1,this)}; g.k.dispatchEvent=function(a){if(this.C&&a.type==="pause")return!1;if(OTa){var b,c=((b=a.j)==null?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((c==null?0:c.Qm())||b<=((c==null?void 0:c.N)||0)){var d;VE(this,{l:"mede",sr:(d=this.ea)==null?void 0:WE(d),et:a.type});return!1}if(this.DK)return VE(this,{l:"medes",et:a.type}),c&&a.type==="seeking"&&(c.N=performance.now(),this.DK=!1),!1}return this.D.dispatchEvent(a)}; g.k.qP=function(){this.K=!1}; g.k.mP=function(){this.K=!0;this.pC(!0)}; g.k.tX=function(){this.K&&!this.bK()&&this.pC(!0)}; g.k.xa=function(){this.N&&this.removeEventListener("volumechange",this.tX);MTa&&dF(this);g.O.prototype.xa.call(this)}; var MTa=!1,NTa=!1,OTa=!1;g.k=g.fF.prototype;g.k.isPaused=function(){return g.Z(this,4)}; g.k.isPlaying=function(){return g.Z(this,8)&&!g.Z(this,512)&&!g.Z(this,64)&&!g.Z(this,2)}; g.k.isOrWillBePlaying=function(){return g.Z(this,8)&&!g.Z(this,2)&&!g.Z(this,1024)}; g.k.isCued=function(){return g.Z(this,64)&&!g.Z(this,8)&&!g.Z(this,4)}; g.k.isBuffering=function(){return g.Z(this,1)&&!g.Z(this,2)}; g.k.isError=function(){return g.Z(this,128)}; g.k.isSuspended=function(){return g.Z(this,512)}; g.k.OF=function(){return g.Z(this,64)&&g.Z(this,4)}; g.k.toString=function(){return"PSt."+this.state.toString(16)}; var O1={},P1=(O1.BUFFERING="buffering-mode",O1.CUED="cued-mode",O1.ENDED="ended-mode",O1.PAUSED="paused-mode",O1.PLAYING="playing-mode",O1.SEEKING="seeking-mode",O1.UNSTARTED="unstarted-mode",O1);g.z(pF,g.O);g.k=pF.prototype;g.k.kA=function(){return this.B}; g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){var a=OB(this.layout.Ba,"metadata_type_video_length_seconds"),b=OB(this.layout.Ba,"metadata_type_active_view_traffic_type");dD(this.layout.Db)&&l0(this.zb.get(),this.layout.layoutId,{Bt:b,mI:a,listener:this,Fo:this.We()});N6a(this.Oa.get(),this);a=this.Qg;b=this.layout.layoutId;var c={Fo:this.We()};a.j.set(b,c);this.zx()}; g.k.release=function(){dD(this.layout.Db)&&m0(this.zb.get(),this.layout.layoutId);O6a(this.Oa.get(),this);this.Qg.j.delete(this.layout.layoutId);this.Gy()}; g.k.Es=function(){}; g.k.Gs=function(){}; g.k.startRendering=function(a){YD(qF(this));rF(this,a)&&(sF(this),this.Ss(a),this.We()||this.YI(!1))}; g.k.vc=function(a,b){if(b.layoutId===this.layout.layoutId){this.lc="rendering";this.j=this.Ia.get().isMuted()||this.Ia.get().getVolume()===0;this.Xb("impression");this.Xb("start");if(this.Ia.get().isMuted()){yF(this,"mute");var c;a=((c=oF(this))==null?void 0:c.muteCommands)||[];zC(this.Mb.get(),a,this.layout.layoutId)}if(this.Ia.get().isFullscreen()){this.Th("fullscreen");var d;c=((d=oF(this))==null?void 0:d.fullscreenCommands)||[];zC(this.Mb.get(),c,this.layout.layoutId)}this.We()||(d=this.Cc.get(), d.C&&!d.B&&(d.G=!1,d.B=!0,d.actionType!=="ad_to_video"&&(Pz("pbs",void 0,d.actionType),g.hr("finalize_all_timelines")&&Fta(d.actionType))));this.Fq(1);this.bS(b);var e;b=((e=oF(this))==null?void 0:e.impressionCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId)}}; g.k.pL=function(a,b,c){this.N={jN:3,lI:a==="load_timeout"?402:400,errorMessage:b.message};this.Xb("error");var d;a=((d=oF(this))==null?void 0:d.errorCommands)||[];zC(this.Mb.get(),a,this.layout.layoutId);this.We()||this.fp.If(this.slot,this.layout,b,c)}; g.k.g3=function(){if(this.lc==="rendering"){yF(this,"pause");var a,b=((a=oF(this))==null?void 0:a.pauseCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId);this.Fq(2)}}; g.k.j3=function(){if(this.lc==="rendering"){yF(this,"resume");var a,b=((a=oF(this))==null?void 0:a.resumeCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId)}}; g.k.cz=function(a,b){b=b===void 0?!1:b;if(this.lc==="rendering"){var c=b,d=this.Za().layoutId;if(!this.C){this.C=!0;var e=this.context.On;if(LI(e.Ca.get(),!0)){var f={};e.Hk("p_ip",(f.cts=a,f.f=c,f.p_ac=d,f))}}lD(this.eb,a*1E3,b);this.j||lD(this.eb,a*1E3,b===void 0?!1:b);if(c=this.oA())c/=1E3,(a>=c*.25||b)&&this.Xb("first_quartile"),(a>=c*.5||b)&&this.Xb("midpoint"),(a>=c*.75||b)&&this.Xb("third_quartile"),this.Ca.get().J.U().experiments.kb("enable_progress_command_flush_on_kabuki")?Kva(this.D,a* 1E3,b):Kva(this.D,a*1E3,Owa(this)?b:!1)}}; g.k.Im=function(){var a;return((a=tF(this.Sa.get(),1))==null?void 0:a.clientPlaybackNonce)||""}; g.k.ez=function(a,b){a.layoutId!==this.layout.layoutId?this.fp.If(this.slot,a,new LB("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):b()}; g.k.Nc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.lc="not_rendering",this.layoutExitReason=void 0,this.We()||(a=c!=="normal"||this.position+1===this.K)&&this.YI(a),this.f3(c),this.Fq(0),c){case "abandoned":if(mD(this.eb,"impression")){var d,e=((d=oF(this))==null?void 0:d.abandonCommands)||[];zC(this.Mb.get(),e,this.layout.layoutId)}break;case "normal":d=((e=oF(this))==null?void 0:e.completeCommands)||[];zC(this.Mb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f= oF(this))==null?void 0:f.skipCommands)||[];zC(this.Mb.get(),d,this.layout.layoutId)}}; g.k.pA=function(){return this.layout.layoutId}; g.k.GP=function(){return this.N}; g.k.gy=function(){if(this.lc==="rendering"){this.eb.Xb("active_view_measurable");var a,b=((a=oF(this))==null?void 0:a.activeViewMeasurableCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId)}}; g.k.ey=function(){if(this.lc==="rendering"){this.eb.Xb("active_view_fully_viewable_audible_half_duration");var a,b=((a=oF(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId)}}; g.k.iy=function(){if(this.lc==="rendering"){this.eb.Xb("active_view_viewable");var a,b=((a=oF(this))==null?void 0:a.activeViewViewableCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId)}}; g.k.Yx=function(){if(this.lc==="rendering"){this.eb.Xb("audio_audible");var a,b=((a=oF(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId)}}; g.k.Zx=function(){if(this.lc==="rendering"){this.eb.Xb("audio_measurable");var a,b=((a=oF(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId)}}; g.k.YI=function(a){this.Cc.get().YI(OB(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.K,!1)}; g.k.onFullscreenToggled=function(a){if(this.lc==="rendering")if(a){this.Th("fullscreen");var b,c=((b=oF(this))==null?void 0:b.fullscreenCommands)||[];zC(this.Mb.get(),c,this.layout.layoutId)}else this.Th("end_fullscreen"),b=((c=oF(this))==null?void 0:c.endFullscreenCommands)||[],zC(this.Mb.get(),b,this.layout.layoutId)}; g.k.onVolumeChange=function(){if(this.lc==="rendering")if(this.Ia.get().isMuted()){yF(this,"mute");var a,b=((a=oF(this))==null?void 0:a.muteCommands)||[];zC(this.Mb.get(),b,this.layout.layoutId)}else yF(this,"unmute"),a=((b=oF(this))==null?void 0:b.unmuteCommands)||[],zC(this.Mb.get(),a,this.layout.layoutId)}; g.k.ph=function(){}; g.k.Kj=function(){}; g.k.hj=function(){}; g.k.Jj=function(){}; g.k.Mj=function(){}; g.k.Th=function(a){this.eb.Th(a,!this.j)}; g.k.Xb=function(a){this.eb.Xb(a,!this.j)}; g.k.We=function(){var a=OB(this.slot.Ba,"metadata_type_eligible_for_ssap");return a===void 0?(cy("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ca.get().We(a)};g.z(CF,pF);g.k=CF.prototype;g.k.WO=function(){this.layoutExitReason?this.fp.Nc(this.slot,this.layout,this.layoutExitReason):Kwa(this)}; g.k.zx=function(){}; g.k.Gy=function(){var a=this.Oa.get();a.XH===this&&(a.XH=null);this.Ye.stop()}; g.k.Es=function(){this.Ye.stop();pF.prototype.g3.call(this)}; g.k.Gs=function(){EF(this);pF.prototype.j3.call(this)}; g.k.oA=function(){return OB(this.Za().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.k.Kd=function(a,b){var c=this;this.ez(a,function(){c.lc!=="rendering_stop_requested"&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,uF(c,b),c.Ye.stop())})}; g.k.Tc=function(){var a=Date.now(),b=a-this.iR;this.iR=a;this.rj+=b;this.rj>=this.oA()?this.RY():(this.cz(this.rj/1E3),DF(this,this.rj))}; g.k.f3=function(){}; g.k.Oi=function(){}; g.z(FF,CF);g.k=FF.prototype;g.k.Cg=function(a){if(this.lc!=="not_rendering"){a=vF(this,a);var b=this.Ia.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&PD(a)&&this.qJ():b?g.fy(a,2)?cy("Receive player ended event during MediaBreak",this.Zb(),this.Za()):wF(this,a):this.ox()}}; g.k.Ss=function(){Mwa(this);Y6a(this.Ia.get());this.Oa.get().XH=this;Nz("pbp")||Nz("pbs")||Pz("pbp");Nz("pbp","watch")||Nz("pbs","watch")||Pz("pbp",void 0,"watch");this.qJ()}; g.k.bS=function(a){this.Cc.get();var b=OB(a.Ba,"metadata_type_ad_placement_config").kind,c=this.position===0;a=OB(a.Ba,"metadata_type_linked_in_player_layout_type");a={adBreakType:xF(b),adType:Xwa(a)};var d=void 0;c?b!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";Kz("ad_mbs",void 0,d);g.Lz(a,d);EF(this)}; g.k.ox=function(){this.wE()}; g.k.RY=function(){Pwa(this);this.wE()}; g.z(GF,CF);g.k=GF.prototype;g.k.Cg=function(a){this.lc!=="not_rendering"&&(a=vF(this,a),wF(this,a))}; g.k.Ss=function(){cy("startRenderingHelper in SSAP")}; g.k.bS=function(){EF(this)}; g.k.ox=function(){cy("handleAdPlayerNoLongerPresenting in SSAP")}; g.k.RY=function(){Pwa(this);this.fp.fC(this.Zb(),this.Za(),"normal")}; g.z(HF,GF);HF.prototype.Kd=function(a,b){var c=this;this.ez(a,function(){TD(c.B,b)&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,uF(c,b),c.Ye.stop())})}; HF.prototype.startRendering=function(a){YD(qF(this));rF(this,a)&&(sF(this),this.Oa.get().XH=this)};g.z(KF,pF);g.k=KF.prototype;g.k.WO=function(){this.layoutExitReason?this.fp.Nc(this.slot,this.layout,this.layoutExitReason):Kwa(this)}; g.k.ox=function(){this.We()&&cy("Unexpected ad player in SSAP",this.slot,this.layout);this.wE()}; g.k.Cg=function(a){if(this.lc!=="not_rendering"){a=vF(this,a);var b=this.Ia.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&PD(a)&&this.qJ():b?g.fy(a,2)?this.wE():wF(this,a):this.ox()}}; g.k.zx=function(){OB(this.Za().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=OB(this.Za().Ba,"metadata_type_shrunken_player_bytes_config")}; g.k.Gy=function(){OB(this.Za().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.Jt&&this.Pc.get().removeCueRange(this.Jt);this.Jt=void 0;var a;(a=this.dL)==null||a.dispose();this.pB&&this.pB.dispose()}; g.k.Ss=function(a){var b=IF(this.Ca.get()),c=JF(this.Ca.get());if(b&&c&&!this.We()){c=OB(a.Ba,"metadata_type_preload_player_vars");var d=g.VB(this.Ca.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.pB&&this.pB.start(d*1E3)}Swa(this,a);Mwa(this);b?(c=this.md.get(),a=OB(a.Ba,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):g7a(this.md.get(),OB(a.Ba,"metadata_type_player_vars"));var e;(e=this.dL)==null||e.start();b||this.md.get().J.playVideo(2)}; g.k.bS=function(){var a;(a=this.dL)==null||a.stop();this.Jt="adcompletioncuerange:"+this.Za().layoutId;this.Pc.get().addCueRange(this.Jt,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.On;var b=this.Jt,c=this.Za().layoutId;if(LI(a.Ca.get(),!0)){var d={};a.Hk("mccr",(d.cid=b,d.p_ac=c,d))}(this.adCpn=Lwa(this))||cy("Media layout confirmed started, but ad CPN not set.");this.od.get().Zu("onAdStart",this.adCpn);this.OW=Date.now()}; g.k.oA=function(){var a;return(a=tF(this.Sa.get(),2))==null?void 0:a.Xca}; g.k.mM=function(){this.eb.Th("clickthrough")}; g.k.Kd=function(a,b){var c=this;this.ez(a,function(){if(c.lc!=="rendering_stop_requested"){c.lc="rendering_stop_requested";c.layoutExitReason=b;uF(c,b);var d;(d=c.dL)==null||d.stop();c.pB&&c.pB.stop();Twa(c)}})}; g.k.onCueRangeEnter=function(a){if(a!==this.Jt)cy("Received CueRangeEnter signal for unknown layout.",this.Zb(),this.Za(),{cueRangeId:a});else{var b=this.context.On,c=this.Za().layoutId;if(LI(b.Ca.get(),!0)){var d={};b.Hk("mccre",(d.cid=a,d.p_ac=c,d))}this.Pc.get().removeCueRange(this.Jt);this.Jt=void 0;yI(this.context.Ca.get(),"html5_ssap_flush_at_stop_rendering")&&this.We()||(a=OB(this.Za().Ba,"metadata_type_video_length_seconds"),this.cz(a,!0),this.Xb("complete"))}}; g.k.f3=function(a){a!=="abandoned"&&this.od.get().Zu("onAdComplete");this.od.get().Zu("onAdEnd",this.adCpn)}; g.k.onCueRangeExit=function(){}; g.k.Oi=function(a){this.lc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ia.get().tC(!0),this.cz(a))}; g.k.cz=function(a,b){pF.prototype.cz.call(this,a,b===void 0?!1:b);if(a>=5&&!this.cZ){b=Date.now()-this.OW;a*=1E3;var c={contentCpn:this.Im(),adCpn:Lwa(this)},d=b<1E3?0:1;$x(d,"i.k_",{metadata:c,i7:b,j7:Math.floor(a/1E3)});Dq("IKDSTAT",d);d===0&&this.NT()&&this.od.get().Zu("onAbnormalityDetected");this.cZ=!0}}; g.k.NT=function(){if(!this.Ca.get().NT())return!1;var a=OB(this.Zb().Ba,"metadata_type_player_bytes_slot_metadata");a===void 0&&cy("PlayerBytesSlotMetadata is not filled",this.Zb(),this.Za());return(a==null?void 0:a.Au)===!0};g.z(LF,KF);LF.prototype.Cg=function(a){this.lc!=="not_rendering"&&(a=vF(this,a),wF(this,a))}; LF.prototype.Ss=function(){cy("startRenderingHelper in SSAP")}; g.z(MF,LF);MF.prototype.Kd=function(a,b){var c=this;this.ez(a,function(){if(TD(c.B,b)){c.lc="rendering_stop_requested";c.layoutExitReason=b;uF(c,b);if(yI(c.context.Ca.get(),"html5_ssap_flush_at_stop_rendering")&&b==="normal"){var d=OB(c.Za().Ba,"metadata_type_video_length_seconds");c.cz(d,!0)}Twa(c)}})}; MF.prototype.startRendering=function(a){YD(qF(this));rF(this,a)&&(sF(this),Swa(this,a))};g.z(PF,g.O);g.k=PF.prototype;g.k.init=function(){var a=OB(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sa.get().addListener(this);this.Ld.init();gwa([this.layout],this.Sa.get());this.oO()}; g.k.oO=function(){var a=OB(this.Ld.Za().Ba,"metadata_type_player_vars");a?this.md.get().addPlayerResponseForAssociation({playerVars:a}):(a=Ywa(this.Ld.Za()),this.md.get().addPlayerResponseForAssociation({vJ:a}))}; g.k.CL=function(){}; g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.Es=function(){this.Ld.Es()}; g.k.Gs=function(){this.Ld.Gs()}; g.k.qy=function(){cy("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; g.k.vc=function(a,b){this.Ld.vc(a,b)}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.Oi=function(a){this.Ld.Oi(a)}; g.k.onFullscreenToggled=function(a){this.Ld.onFullscreenToggled(a)}; g.k.ph=function(a){this.Ld.ph(a)}; g.k.hj=function(a){this.Ld.hj(a)}; g.k.onVolumeChange=function(){this.Ld.onVolumeChange()}; g.k.Jj=function(){}; g.k.Mj=function(){}; g.k.Kj=function(){}; g.z(OF,PF);g.k=OF.prototype;g.k.PQ=function(){return this.Ia.get().getPresentingPlayerType()===2}; g.k.wG=function(a){lwa({cpn:a,Lf:this.Sa.get(),gs:!0});this.layout.layoutId===a&&(DAa(this.Yd,this.slot.slotId),this.Fv.vc(this.slot,this.layout))}; g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void cy("wrong layout");this.Ia.get().addListener(this);YB(this.qc(),this);this.Ld.startRendering(this.layout)}; g.k.Cg=function(a){this.Ld.Cg(a)}; g.k.Nc=function(a,b,c){this.Ld.Nc(a,b,c)}; g.k.release=function(){this.Sa.get().removeListener(this);this.Ld.release();hwa();ZB(this.qc(),this)}; g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?cy("wrong layout"):(this.Ld.Kd(this.layout,b),this.PQ()&&this.Gc.get().finishSegmentByCpn(this.layout.layoutId,tF(this.Sa.get(),1).clientPlaybackNonce),this.Ia.get().removeListener(this))}; g.k.xG=function(a,b,c){mwa({cpn:a,Lf:this.Sa.get(),gs:!0});this.Za().layoutId===a&&(this.Ld.kA().currentState<2&&(a=AF(c),yI(this.params.context.Ca.get(),"html5_fix_non_video_expiration")&&a==="error"?this.Fv.If(this.slot,this.layout,new LB("Non video ad expired during SSAP single layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):VF(this.hf,this.layout,a)),this.Fv.Nc(this.slot,this.layout,this.Ld.kA().j))};g.z(QF,g.O);g.k=QF.prototype;g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.CL=function(){}; g.k.Bf=function(){return this.Sh[this.gE]}; g.k.Bl=function(){return this.gE}; g.k.Es=function(a,b){var c=this.Bf();b.layoutId!==SF(c,a,b)?cy("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Es()}; g.k.Gs=function(a,b){var c=this.Bf();b.layoutId!==SF(c,a,b)?cy("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Gs()}; g.k.qy=function(a,b){var c=this.Bf();bxa(this,a,b);cxa(c,a,b)&&this.NJ(c.Zb(),c.Za(),"skipped")}; g.k.EL=function(a,b){var c=this.Bf();dxa(this);exa(c,a,b)&&(a=fxa(this,c,a,b),a!==void 0&&(this.We()?this.xX():hxa(this,c.Zb(),c.Za(),a)))}; g.k.E0=function(a,b){var c=Object.assign({},RF(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.gs;if(c.Fo){var f={};XD(c.Lf,"wrse",(f.ec=d,f.is=e,f.ctp=WD(d),f))}jC(this.Qq,a,b)}; g.k.vc=function(a,b){var c;(c=this.Bf())==null||c.vc(a,b)}; g.k.Nc=function(a,b,c){b.layoutId===this.Za().layoutId&&(this.yx=!1,ZB(this.qc(),this));var d;(d=this.Bf())==null||d.Nc(a,b,c)}; g.k.Oi=function(a){var b;(b=this.Bf())==null||b.Oi(a)}; g.k.sK=function(a,b,c){this.Bl()===-1&&(this.callback.vc(this.slot,this.layout),this.gE++);var d=this.Bf();d?(d.pL(a,b,c),this.We()&&this.callback.If(this.slot,this.layout,b,c)):cy("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Bl()),layoutId:this.Za().layoutId})}; g.k.onFullscreenToggled=function(a){var b;(b=this.Bf())==null||b.onFullscreenToggled(a)}; g.k.ph=function(a){var b;(b=this.Bf())==null||b.ph(a)}; g.k.hj=function(a){var b;(b=this.Bf())==null||b.hj(a)}; g.k.onVolumeChange=function(){var a;(a=this.Bf())==null||a.onVolumeChange()}; g.k.XO=function(a,b,c){kC(this.Qq,a,b,c)}; g.k.ZT=function(a){a.startRendering(a.Za())}; g.k.init=function(){var a=OB(this.Za().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.Sh.length<1)throw new MB("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Sh.length)});if(a=OB(this.Za().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.w(this.Sh);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),Hua(this.Qq,this.slot,b.Za()),Iua(this.Qq,this.slot,b.Za());if(this.We())for(this.Sa.get().addListener(this), gwa(axa(this),this.Sa.get()),a=axa(this),a=g.w(a),b=a.next();!b.done;b=a.next())this.oO(b.value)}; g.k.oO=function(a){var b=OB(a.Ba,"metadata_type_player_vars");b?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&cy("Non-video ad contains playerVars",this.slot,a),this.md.get().addPlayerResponseForAssociation({playerVars:b})):(a=Ywa(a),this.md.get().addPlayerResponseForAssociation({vJ:a}))}; g.k.release=function(){var a=OB(this.Za().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=OB(this.Za().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.w(this.Sh);for(var b=a.next();!b.done;b=a.next())b=b.value,Jua(this.Qq,this.slot,b.Za()),b.release();this.We()&&(this.Sa.get().removeListener(this),hwa())}; g.k.ez=function(a){return a.layoutId!==this.Za().layoutId?(this.callback.If(this.Zb(),a,new LB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Za().layoutId+("and LayoutType: "+this.Za().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.k.QI=function(){this.Ia.get().addListener(this);YB(this.qc(),this)}; g.k.Cg=function(a){if(a.state.isError()){var b,c;this.sK((b=a.state.fh)==null?void 0:b.errorCode,new LB("There was a player error during this media layout.",{playerErrorCode:(c=a.state.fh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Bf())&&b.Cg(a)}; g.k.We=function(){var a=OB(this.Zb().Ba,"metadata_type_eligible_for_ssap");return a===void 0?(cy("Expected SSAP eligibility in PlayerBytes slots",this.Zb(),this.Za()),!1):this.Ca.get().We(a)}; g.k.Kj=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.Jj=function(){}; g.k.Mj=function(){}; g.z(WF,QF);g.k=WF.prototype;g.k.nR=function(){var a=this.Bf();a&&a.ox()}; g.k.G0=function(a,b,c){this.NJ(a,b,c)}; g.k.F0=function(a,b){this.NJ(a,b,"error")}; g.k.NJ=function(a,b,c){var d=this;gxa(this,a,b,c,function(){TF(d,d.Bl()+1)})}; g.k.startRendering=function(a){this.ez(a)&&(this.QI(),o6a(this.Cc.get()),u6a(this.Ca.get())||Y6a(this.Ia.get()),this.Bl()===-1&&TF(this,this.Bl()+1))}; g.k.Kd=function(a,b){var c=this;this.yx=!0;this.Bl()===this.Sh.length?this.callback.Nc(this.slot,this.layout,b):(a=this.Bf(),a.Kd(a.Za(),b),this.pZ=function(){c.callback.Nc(c.slot,c.layout,b)}); this.Ia.get().J.Hy();g7a(this.md.get(),{});a=k0(this.Ia.get(),1);a.isPaused()&&!g.Z(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.yx&&this.nR()}; g.k.xG=function(){}; g.k.wG=function(){}; g.k.fC=function(){}; g.k.xX=function(){}; g.z(XF,QF);XF.prototype.G0=function(a,b,c){a=Object.assign({},RF(this),{layoutId:b.layoutId,layoutExitReason:c});b=a.layoutId;c=a.layoutExitReason;var d={};XD(a.Lf,"prse",(d.xc=b,d.ler=c,d.ctp=WD(b),d))}; XF.prototype.F0=function(){cy("onSubLayoutError in SSAP")}; XF.prototype.NJ=function(){cy("exitSubLayoutAndPlayNext in SSAP")}; XF.prototype.xX=function(){cy("confirmExitSubLayoutAndPlayTarget in SSAP")}; g.z(YF,XF);g.k=YF.prototype;g.k.Bf=function(){return this.Dh}; g.k.Bl=function(){var a=this;return this.Sh.findIndex(function(b){var c;return b.Za().layoutId===((c=a.Dh)==null?void 0:c.Za().layoutId)})}; g.k.ZT=function(a){by(this.Dh===void 0,"replacing another adapter");this.Dh=a;a.startRendering(a.Za())}; g.k.XO=function(a,b,c){kC(this.Qq,a,b,c);var d;by(b.layoutId===((d=this.Dh)==null?void 0:d.Za().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot: "+a.slotType:"",subLayout:ay(b)})&&(this.Dh=void 0)}; g.k.release=function(){XF.prototype.release.call(this);by(this.Dh===void 0,"currentAdapter is still active during release");this.Dh=void 0}; g.k.PQ=function(){return this.Ia.get().getPresentingPlayerType()===2}; g.k.Kd=function(a,b){by(a.layoutId===this.Za().layoutId,"StopRendering for wrong layout")&&TD(this.Qw.B,b)&&this.Dh&&(a=this.Dh,a.kA().currentState<2&&a.Kd(a.Za(),b),this.PQ()&&this.Gc.get().finishSegmentByCpn(this.Dh.Za().layoutId,tF(this.Sa.get(),1).clientPlaybackNonce))}; g.k.Nc=function(a,b,c){XF.prototype.Nc.call(this,a,b,c);b.layoutId===this.Za().layoutId&&this.Ia.get().removeListener(this)}; g.k.Im=function(){return tF(this.Sa.get(),1).clientPlaybackNonce}; g.k.xG=function(a,b,c){mwa(Object.assign({},RF(this),{cpn:a}));if(this.Dh&&this.Dh.Za().layoutId===a)ixa(this,this.Dh,c);else{var d,e;cy("Exiting cpn does not match active cpn",this.slot,(d=this.Dh)==null?void 0:d.Za(),{exitingCpn:a,transitionReason:c,activeCpn:(e=this.Dh)==null?void 0:e.Za().layoutId})}b===this.Im()&&(this.Dh!==void 0&&(cy("active adapter is not properly exited",this.slot,this.layout,{activeLayout:ay(this.Dh.Za())}),ixa(this,this.Dh,c)),this.Qw.B.currentState<2&&(a=AF(c),yI(this.Ca.get(), "html5_fix_non_video_expiration")&&a==="error"?this.callback.If(this.slot,this.layout,new LB("Non video ad expired into content during SSAP composite layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):VF(this.Pi,this.layout,a)),this.callback.Nc(this.slot,this.layout,this.Qw.B.j))}; g.k.startRendering=function(a){this.ez(a)&&(a=this.Qw,by(a.j===1,"tickStartRendering: state is not initial"),a.j=2,this.QI())}; g.k.wG=function(a){lwa(Object.assign({},RF(this),{cpn:a}));var b=this.Sh.find(function(c){return c.Za().layoutId===a}); b?(this.Qw.j!==2&&(DAa(this.Yd,this.slot.slotId),by(this.Qw.j===2,"Expect started"),this.callback.vc(this.slot,this.layout)),this.ZT(b),jC(this.Qq,this.slot,b.Za())):jxa(this,a)}; g.k.qy=function(a,b){bxa(this,a,b);var c=this.Bf();c?cxa(c,a,b)&&kxa(this,"skipped"):lxa(this,"onSkipRequested")}; g.k.EL=function(a,b){var c;a:{if(c=this.Bf()){if(dxa(this),exa(c,a,b)&&(a=fxa(this,c,a,b),a!==void 0)){c={d7:c,Gea:this.Sh[a]};break a}}else lxa(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.d7,a=a.Gea,c.Kd(c.Za(),"skipped"),a=a.Za().layoutId,this.Gc.get().finishSegmentByCpn(c.Za().layoutId,a)}; g.k.E0=function(){cy("Not used in html5_ssap_fix_layout_exit")}; g.k.Cg=function(a){var b;(b=this.Bf())==null||b.Cg(a)}; g.k.sK=function(){cy("Not used in html5_ssap_fix_layout_exit")}; g.k.fC=function(a,b,c){var d;if(((d=this.Bf())==null?void 0:d.Za().layoutId)!==b.layoutId)return void cy("requestToExitSubLayout: wrong layout");kxa(this,c)};g.z(ZF,g.O);g.k=ZF.prototype;g.k.Zb=function(){return this.Ld.Zb()}; g.k.Za=function(){return this.Ld.Za()}; g.k.init=function(){var a=OB(this.Za().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.zx()}; g.k.zx=function(){this.Ld.init()}; g.k.release=function(){var a=OB(this.Za().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Gy()}; g.k.Gy=function(){this.Ld.release()}; g.k.Es=function(){this.Ld.Es()}; g.k.Gs=function(){this.Ld.Gs()}; g.k.qy=function(a,b){cy("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Zb(),this.Za(),{requestingSlot:a,requestingLayout:b})}; g.k.startRendering=function(a){a.layoutId!==this.Za().layoutId?this.callback.If(this.Zb(),a,new LB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Za().layoutId+("and LayoutType: "+this.Za().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ia.get().addListener(this),YB(this.qc(),this),o6a(this.Cc.get()),u6a(this.Ca.get())||Y6a(this.Ia.get()),this.Ss(a))}; g.k.Ss=function(a){this.Ld.startRendering(a)}; g.k.Kd=function(a,b){this.yx=!0;this.IM(a,b);this.Ia.get().J.Hy();g7a(this.md.get(),{});a=k0(this.Ia.get(),1);a.isPaused()&&!g.Z(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.yx&&this.nR()}; g.k.IM=function(a,b){this.Ld.Kd(a,b)}; g.k.vc=function(a,b){this.Ld.vc(a,b)}; g.k.Nc=function(a,b,c){b.layoutId===this.Za().layoutId&&(this.yx=!1,ZB(this.qc(),this));this.Ld.Nc(a,b,c);b.layoutId===this.Za().layoutId&&UF(this.Cc.get())}; g.k.nR=function(){this.Ld.ox()}; g.k.Oi=function(a){this.Ld.Oi(a)}; g.k.Cg=function(a){if(a.state.isError()){var b,c;this.sK((b=a.state.fh)==null?void 0:b.errorCode,new LB("There was a player error during this media layout.",{playerErrorCode:(c=a.state.fh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Ld.Cg(a)}; g.k.sK=function(a,b,c){this.Ld.pL(a,b,c)}; g.k.onFullscreenToggled=function(a){this.Ld.onFullscreenToggled(a)}; g.k.ph=function(a){this.Ld.ph(a)}; g.k.hj=function(a){this.Ld.hj(a)}; g.k.onVolumeChange=function(){this.Ld.onVolumeChange()}; g.k.Kj=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.Jj=function(){}; g.k.Mj=function(){};g.k=$F.prototype;g.k.Zb=function(){return this.slot}; g.k.Za=function(){return this.layout}; g.k.init=function(){this.yf.get().addListener(this);this.Ia.get().addListener(this);this.zx();var a=OB(this.layout.Ba,"metadata_type_layout_enter_ms"),b=OB(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=(c=this.Sa.get().Tw)==null?void 0:c.clientPlaybackNonce;c=this.layout.ac.adClientDataEntry;aG(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.yf.get();e=oxa(e.C,a,b);e!==null&&(aG(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Gc.get().Kz(e,b))}; g.k.release=function(){this.Gy();this.yf.get().removeListener(this);this.Ia.get().removeListener(this)}; g.k.startRendering=function(){this.Ss();this.callback.vc(this.slot,this.layout)}; g.k.Kd=function(a,b){this.IM(b);this.driftRecoveryMs!==null&&(bG(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(pxa(this)-OB(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Ia.get().J.Lr()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Nc(this.slot,this.layout,b)}; g.k.m0=function(){return!1}; g.k.h0=function(a){var b=OB(this.layout.Ba,"metadata_type_layout_enter_ms"),c=OB(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a0&&lC(this.j(),b)}; g.k.Qh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof vH&&e.triggeringSlotId===a.slotId&&b.push(d)}b.length>0&&lC(this.j(),b)}; g.k.Nh=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof mH&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}b.length>0&&lC(this.j(),b)}; g.k.tf=function(a){this.C.add(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof qH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&lC(this.j(),b)}; g.k.uf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof rH)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof fH){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}b.length>0&&lC(this.j(),b)}; g.k.Oh=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof sH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&lC(this.j(),b)}; g.k.Ph=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof tH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&lC(this.j(),b)}; g.k.oh=function(a,b){this.K.add(b.layoutId)}; g.k.qg=function(a,b){this.K.delete(b.layoutId)}; g.k.vc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof gH)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof lH){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof fH&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));c.length>0&&lC(this.j(),c)}; g.k.Nc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof iH&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof hH){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}a.length>0&&lC(this.j(),a)}; g.k.Rg=function(){}; g.k.Lk=function(){this.D.clear()}; g.k.Mo=function(){};g.z(VI,g.O);VI.prototype.Rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new MB("Tried to register duplicate trigger for slot.");if(!(b instanceof dH))throw new MB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Wb.set(b.triggerId,new yH(a,b,c,d))}; VI.prototype.Vl=function(a){this.Wb.delete(a.triggerId)};g.z(XI,g.O);XI.prototype.Rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new MB("Tried to register duplicate trigger for slot.");if(!(b instanceof cH||b instanceof oH))throw new MB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Wb.set(b.triggerId,new yH(a,b,c,d))}; XI.prototype.Vl=function(a){this.Wb.delete(a.triggerId)}; XI.prototype.Lk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.w(this.Wb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof cH&&l.trigger.Iv===a&&f.push(l);e.call(d,b,g.x(f));if(!r6a(this.context.Ca.get())){d=b.push;e=d.apply;f=[];h=g.w(this.Wb.values());for(l=h.next();!l.done;l=h.next())if(l=l.value,l.trigger instanceof oH){var m=l.trigger.j===a;m?c&&m&&(cy("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:a}), f.push(l)):f.push(l)}e.call(d,b,g.x(f))}b.length&&lC(this.j(),b)}; XI.prototype.Mo=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.w(this.Wb.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof oH&&l.j===a&&e.push(h)}d.call(c,b,g.x(e));b.length&&lC(this.j(),b)};g.z(YI,g.O);g.k=YI.prototype;g.k.Rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new MB("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof kH)zAa(this,a,b,c,d,e,b.j.start,b.j.end,b.Iv,b.visible);else if(b instanceof eH)zAa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Iv,b.visible);else throw new MB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");}; g.k.Vl=function(a){var b=this.Wb.get(a.triggerId);b&&this.Pc.get().removeCueRange(b.wJ);this.Wb.delete(a.triggerId)}; g.k.onCueRangeEnter=function(a){var b=AAa(this,a);if(b&&(b=this.Wb.get(b)))if(g.Z(k0(this.Ia.get()),32))this.j.add(b.wJ);else{var c=b==null?void 0:b.pE.trigger;if(c instanceof kH||c instanceof eH){if(LI(this.context.Ca.get())){var d=b.pE.slot,e=b.pE.layout,f={};this.context.On.Hk("cre",(f.ca=b.pE.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=e==null?void 0:e.layoutType,f.cid=a,f))}lC(this.B(),[b.pE])}}}; g.k.onCueRangeExit=function(a){(a=AAa(this,a))&&(a=this.Wb.get(a))&&this.j.delete(a.wJ)}; g.k.Cg=function(a){if(ey(a,16)<0){a=g.w(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.vc=function(){}; g.k.Nc=function(){}; g.k.Rg=function(){}; g.k.Oi=function(){}; g.k.onFullscreenToggled=function(){}; g.k.ph=function(){}; g.k.Kj=function(){}; g.k.hj=function(){}; g.k.onVolumeChange=function(){}; g.k.Jj=function(){}; g.k.Mj=function(){};g.z(ZI,g.O);g.k=ZI.prototype; g.k.Rl=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new MB("Tried to re-register the trigger.");a=new yH(a,b,c,d);if(a.trigger instanceof Txa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof jH)this.C.set(a.trigger.triggerId,a);else throw new MB("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&lC(this.D(),[a])}; g.k.Vl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)}; g.k.CL=function(a){a=a.slotId;if(this.j!==a){var b=[];this.j!=null&&b.push.apply(b,g.x(BAa(this.C,this.j)));a!=null&&b.push.apply(b,g.x(BAa(this.B,a)));this.j=a;b.length&&lC(this.D(),b)}}; g.k.xG=function(){}; g.k.wG=function(){};g.z($I,g.O);g.k=$I.prototype;g.k.Rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new MB("Tried to register duplicate trigger for slot.");if(!(b instanceof nH))throw new MB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new yH(a,b,c,d))}; g.k.Vl=function(a){this.Wb.delete(a.triggerId)}; g.k.vc=function(){}; g.k.Nc=function(){}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){};g.z(aJ,g.O);g.k=aJ.prototype;g.k.Rg=function(a,b){for(var c=[],d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&lC(this.j(),c)}; g.k.Rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new MB("Tried to register duplicate trigger for slot.");if(!(b instanceof $ua))throw new MB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new yH(a,b,c,d))}; g.k.Vl=function(a){this.Wb.delete(a.triggerId)}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.vc=function(){}; g.k.Nc=function(){};g.z(bJ,g.O);g.k=bJ.prototype;g.k.Rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new MB("Tried to register duplicate trigger for slot.");if(!(b instanceof xH))throw new MB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new yH(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.Vl=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof xH))throw new MB("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),b.size===0&&this.j.delete(a.triggeringLayoutId)}; g.k.Sg=function(){}; g.k.Qh=function(){}; g.k.Nh=function(){}; g.k.tf=function(){}; g.k.uf=function(){}; g.k.Oh=function(){}; g.k.Ph=function(){}; g.k.oh=function(){}; g.k.qg=function(){}; g.k.Rg=function(){}; g.k.vc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.w(a);var d=a.next();for(b={};!d.done;b={VM:void 0},d=a.next())b.VM=d.value,d=new g.Lo(function(e){return function(){var f=c.Wb.get(e.VM.triggerId);lC(c.C(),[f])}}(b),b.VM.durationMs),d.start(),this.B.set(b.VM.triggerId,d)}}; g.k.Nc=function(){};g.z(cJ,g.O);cJ.prototype.Rl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new MB("Tried to register duplicate trigger for slot.");if(!(b instanceof aH))throw new MB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Wb.set(b.triggerId,new yH(a,b,c,d))}; cJ.prototype.Vl=function(a){this.Wb.delete(a.triggerId)};gJ.prototype.Au=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.z(jJ,g.O);g.k=jJ.prototype;g.k.logEvent=function(a){this.us(a)}; g.k.ek=function(a,b,c){this.us(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)}; g.k.Vh=function(a,b,c,d){this.us(a,void 0,void 0,void 0,b,c?c:void 0,void 0,void 0,b.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,d)}; g.k.GN=function(a,b,c,d){yI(this.Ca.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);TB(this.j.get())&&this.us(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; g.k.KI=function(a,b,c,d,e){this.us(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)}; g.k.nm=function(a,b,c,d){this.us("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,d,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:a,errorMessage:b})}; g.k.us=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=q===void 0?0:q;yI(this.Ca.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,Mpa:d,Rpa:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Ca.get().J.U().L("html5_disable_client_tmp_logs")&&(a!=="ADS_CLIENT_EVENT_TYPE_ERROR"||r.JT())&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||cy("Empty PACF event type",e,f);var u=TB(r.j.get()), y={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=SB(u,e));f&&(A.layoutData=Cua(u,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=RB(l.trigger,l.category));b&&(A.opportunityData=Dua(u,b,c,d));u={organicPlaybackContext:{contentCpn:tF(r.Sa.get(),1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=tF(r.Sa.get(),1).Vb;var D;u.organicPlaybackContext.isMdxPlayback= (D=tF(r.Sa.get(),1))==null?void 0:D.isMdxPlayback;var F;if((F=tF(r.Sa.get(),1))==null?0:F.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var H;if(D=(H=tF(r.Sa.get(),2))==null?void 0:H.clientPlaybackNonce)u.adVideoPlaybackContext={adVideoCpn:D};u&&(A.externalContext=u);y.adClientData=A;m&&(y.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(y.serializedAdServingData=n.serializedAdServingDataEntry);p&&(y.errorInfo=p);g.Xs("adsClientStateChange",{adsClientEvent:y})}}; q&&q>0?g.Ms(g.Os(),function(){return t()},q):t()}catch(u){yI(this.Ca.get(),"html5_log_pacf_logging_errors")&&g.Ms(g.Os(),function(){cy(u instanceof Error?u:String(u),e,f,{pacf_message:"exception during pacf logging"})})}}; g.k.JT=function(){return this.Ca.get().JT()};var Xab=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.z(kJ,jJ);g.k=kJ.prototype; g.k.ek=function(a,b,c){jJ.prototype.ek.call(this,a,b,c);LI(this.Ca.get())&&(c={},this.context.On.Hk("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))}; g.k.Vh=function(a,b,c,d){var e=Xab.has(a);jJ.prototype.Vh.call(this,a,b,c,d);LI(this.Ca.get(),e)&&(d={},this.context.On.Hk("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=c==null?void 0:c.layoutType,d.li=c==null?void 0:c.layoutId,d.p_ac=c==null?void 0:c.layoutId,d)))}; g.k.KI=function(a,b,c,d,e){jJ.prototype.KI.call(this,a,b,c,d,e);LI(this.Ca.get())&&(c={},this.context.On.Hk("pacf",(c.et=a,c.ot=b,c.ss=d==null?void 0:d.length,c)))}; g.k.GN=function(a,b,c,d){jJ.prototype.GN.call(this,a,b,c,d);if(LI(this.Ca.get())){var e={};this.context.On.Hk("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e.p_ac=d==null?void 0:d.layoutId,e))}}; g.k.nm=function(a,b,c,d){jJ.prototype.nm.call(this,a,b,c,d);if(LI(this.Ca.get(),!0)){var e={};this.context.On.Hk("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e.p_ac=d==null?void 0:d.layoutId,e))}}; g.k.us=function(a,b,c,d,e,f,h,l,m,n,p){if(g.iC(this.Ca.get().J.U())){var q=this.Ca.get();q=g.VB(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;jJ.prototype.us.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};lJ.prototype.clear=function(){this.j.clear()};var PAa=!1,nJ,oJ,pJ,qJ,rJ;g.z(sJ,g.O); sJ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d=64&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,RAa(this,this.K,0));for(;b+64<=c;b+=64)RAa(this,a,b);b=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{zK:b,un:c}}; DJ.prototype.isFocused=function(a){return a>=this.C&&a=0;var X1a=window;var BBa=ad(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var DK;g.EK=new kA;DK=0;var FK={tY:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}, Iy:function(a){a.reverse()}, G6:function(a,b){a.splice(0,b)}};var X3a=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var RN=KBa()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Jt?!0:!1;var nJa={Hfa:"adunit",gha:"detailpage",sha:"editpage",uha:"embedded",Zia:"leanback",fka:"previewpage",hka:"profilepage",Z6:"unplugged",bka:"playlistoverview",Uka:"sponsorshipsoffer",Kka:"shortspage",aia:"handlesclaiming",ria:"immersivelivepage",cha:"creatormusic",sia:"immersivelivepreviewpage",Bfa:"admintoolyurt"};var TCa={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},UCa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},b2a={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var JKa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.WK.prototype.getLanguageInfo=function(){return this.dc}; g.WK.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags}; g.WK.prototype.toString=function(){return this.dc.name}; g.WK.prototype.getLanguageInfo=g.WK.prototype.getLanguageInfo;XK.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j}; XK.prototype.compose=function(a){if(a.C&&aL(a))return DP;if(a.C||aL(this))return a;if(this.C||aL(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);var d=0;YK&&(d=this.tb!==0&&a.tb!==0?Math.min(this.tb,a.tb):this.tb===0?a.tb:this.tb);return YK&&b===this.B&&c===this.j&&d===this.tb||!YK&&b===this.B&&c===this.j?this:YK?new XK(b,c,!1,c===this.j&&d===this.tb?this.reason:a.reason,d):new XK(b,c,!1,c===this.j?this.reason:a.reason)}; XK.prototype.D=function(a){return!a.video||YK&&this.tb!==0&&this.tb=0}; g.k.Yt=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN}; g.k.Xc=function(){return this.segments[0].startTime}; g.k.tA=function(){return this.segments.length}; g.k.Lm=function(){return 0}; g.k.Mi=function(a){return(a=this.fA(a))?a.Pa:-1}; g.k.iK=function(a){return(a=this.Un(a))?a.sourceURL:""}; g.k.getStartTime=function(a){return(a=this.Un(a))?a.startTime:0}; g.k.VJ=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.k.kK=aa(1);g.k.isLoaded=function(){return this.segments.length>0}; g.k.Un=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Yb(this.segments,new xL(a,0,0,0,""),function(b,c){return b.Pa-c.Pa}); return this.j=a>=0?this.segments[a]:null}; g.k.fA=function(a){if(this.j&&this.j.startTime<=a&&a=0?this.segments[a]:this.segments[Math.max(0,-a-2)]}; g.k.append=function(a){if(a.length)if(a=g.Tb(a),this.segments.length){var b=this.segments.length?g.Jb(this.segments).endTime:0,c=a[0].Pa-this.qd();c>1&&Haa(this.segments);for(c=c>0?0:-c+1;ca.Pa&&this.index.Wn()<=a.Pa+1}; g.k.update=function(a,b,c){this.index.append(a);vDa(this.index,c);a=this.index;a.B=b;a.C="update"}; g.k.pg=function(){return this.UA()?!0:sM.prototype.pg.call(this)}; g.k.xt=function(a,b){var c=this.index.iK(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=this.info.tb>0?this.info.tb*e:1E3;return new EM([new xM(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)}; g.k.YP=function(){return this.UA()?0:this.initRange.length}; g.k.HS=function(){return!1};LM.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new LM,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+JM(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+JM(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Eh:0,m=Date.parse(qHa(JM(a,"yt:segmentIngestTime")))/1E3;c.G=a.parentElement.tagName==="SegmentTemplate";c.G&&(c.N=JM(a,"media"));a=b?h-b.Pa:1;c.K=a>0?0:-a+1;a=g.w(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")|| 0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new oHa(h,l,n,m+p,f);c.j.push(t);var u=d;var y=e,A=t.startSecs;t=u.getAttribute("yt:cuepointTimeOffset");var D=u.getAttribute("yt:cuepointDuration");if(t&&D){t=Number(t);A=-t/y+A;y=Number(D)/y;D=u.getAttribute("yt:cuepointContext")||null;var F=u.getAttribute("yt:cuepointIdentifier")||"";u=u.getAttribute("yt:cuepointEvent")||"";u=new HL(A,y,D,F,mbb[u]||"unknown",t)}else u=null;u&&c.C.push(u);h++;l+=n;f+=n;m+=n+p}}c.j.length&& (c.B=g.Jb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Ub(this.j,c.j);g.Ub(this.C,c.C);this.G=c.G;this.N=c.N;this.D===-1&&(this.D=c.getStreamTimeOffset())}; LM.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.z(NM,g.yL);g.k=NM.prototype;g.k.qo=function(a,b){a=OM(this,a);return a>=0&&(b||!this.segments[a].pending)}; g.k.Wn=function(){return this.Jn?this.segments.length?this.fA(this.Xc()).Pa:-1:g.yL.prototype.Wn.call(this)}; g.k.Xc=function(){if(this.Wd)return 0;if(!this.Jn)return g.yL.prototype.Xc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Jb(this.segments).endTime-this.Cr,0);return this.gf>0&&this.fA(a).Pa0&&this.Tr0&&this.bq>0&&!b&&(b=this.fA(this.Cr))&&(a=Math.min(b.Pa-1,a));return a}; g.k.gx=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.k.HN=function(a){var b=OM(this,a.Pa);if(b>=0)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.lB&&a.Pa%(300/this.Wj)===0){var c=this.segments[0].Pa,d=Math.floor(this.lB/this.Wj);a=a.Pa-d;b=-(b+1)-d;b>0&&a>c&&(this.segments=this.segments.slice(b))}}; g.k.YJ=function(){return this.bq}; g.k.SF=function(a){return MM?!this.B&&a>=0&&this.qd()<=a:g.yL.prototype.SF.call(this,a)}; g.k.fA=function(a){if(!this.Jn)return g.yL.prototype.fA.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.Wj+1);else{b=Zb(this.segments,function(d){return a=d.endTime?1:0}); if(b>=0)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.Un(b)}; g.k.Un=function(a){if(!this.Jn)return g.yL.prototype.Un.call(this,a);if(!this.segments.length)return null;var b=OM(this,a);if(b>=0)return this.segments[b];var c=-(b+1);b=this.Wj;if(c===0)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 xL(a,d,b,0,"sq/"+a,void 0,void 0, !0)}; var MM=!1;g.z(PM,IM);g.k=PM.prototype;g.k.PA=function(){return!0}; g.k.pg=function(){return!0}; g.k.vt=function(a){return this.Fx()&&a.B&&!a.Te||!a.j.index.SF(a.Pa)}; g.k.jx=function(){}; g.k.Nr=function(a,b){return typeof a!=="number"||isFinite(a)?IM.prototype.Nr.call(this,a,b===void 0?!1:b):new EM([new xM(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Vj,void 0,this.Vj*this.info.tb)],"")}; g.k.xt=function(a,b){var c=c===void 0?!1:c;if(this.index.qo(a))return IM.prototype.xt.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Vj*this.info.tb),f=this.Vj;b&&(f=e=0);return new EM([new xM(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],a>=0?"sq/"+a:"")};g.z(QM,sM);g.k=QM.prototype;g.k.Sm=function(){return!1}; g.k.Fx=function(){return!1}; g.k.PA=function(){return!1}; g.k.jx=function(){return new EM([new xM(1,this,void 0,"otfInit")],this.G)}; g.k.sz=function(){return null}; g.k.wD=function(a){this.vt(a);return yHa(this,BM(a),!1)}; g.k.Nr=function(a,b){b=b===void 0?!1:b;a=this.index.Mi(a);b&&(a=Math.min(this.index.qd(),a+1));return yHa(this,a,!0)}; g.k.qQ=function(a){a.info.type===1&&(this.j||(this.j=JJ(a.j)),a.B&&a.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&zHa(this,a.B))}; g.k.vt=function(a){return a.B===0?!0:this.index.qd()>a.Pa&&this.index.Wn()<=a.Pa+1}; g.k.YP=function(){return 0}; g.k.HS=function(){return!1};g.k=g.YM.prototype;g.k.qo=function(a){return a<=this.qd()}; g.k.Lm=function(a){return this.offsets[a]}; g.k.getStartTime=function(a){return this.Ug[a]/this.j}; g.k.VJ=function(a){return this.getStartTime(a)+this.getDuration(a)}; g.k.kK=aa(0);g.k.cf=function(){return NaN}; g.k.getDuration=function(a){a=this.mY(a);return a>=0?a/this.j:-1}; g.k.mY=function(a){return a+1=0}; g.k.Yt=function(){return this.B?this.Ug[this.count]/this.j:NaN}; g.k.Xc=function(){return 0}; g.k.tA=function(){return this.count}; g.k.iK=function(){return""}; g.k.Mi=function(a){a=g.Yb(this.Ug.subarray(0,this.count),a*this.j);return a>=0?a:Math.max(0,-a-2)}; g.k.isLoaded=function(){return this.qd()>=0}; g.k.wY=function(a,b){if(a>=this.qd())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,HHa(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.Ug;this.Ug=new Float64Array(a+1);for(a=0;a0&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),a>0&&d.push(new xM(4,this,vM(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new EM(d)}; g.k.qQ=function(a){if(a.info.type===1){if(this.j)return;this.j=JJ(a.j)}else if(a.info.type===2){if(this.G||this.index.qd()>=0)return;if(g.wE(this.info)){var b=this.index,c=SM(a);a=a.info.range.start;var d=g.ML(c,0,1936286840);c=HDa(d);b.j=c.Us;var e=c.f8;b.offsets[0]=c.E8+a+d.size;b.Ug[0]=e;b.B=!0;a=c.dU.length;for(d=0;d0&&a===f[0].pJ)for(a=0;a=b+c)break}e.length||g.xw(new g.Hs("b189619593",""+a,""+b,""+c));return new EM(e)}; g.k.MV=function(a){for(var b=this.gC(a.info),c=a.info.range.start+a.info.Ub,d=[],e=0;e=this.index.Lm(c+1);)c++;return this.sF(c,b,a.B).gb}; g.k.vt=function(a){a.Ni();return this.pg()?!0:a.range.end+1this.info.contentLength&&(b=new tM(b.start,this.info.contentLength-1)),new EM([new xM(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);a.type===4&&(a=this.gC(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ub+a.B;a.type===3&&(a.Ni(),c=a.Pa,d===a.range.end+1&&(c+=1));return this.sF(c,d,b)}; g.k.wD=function(){return null}; g.k.Nr=function(a,b,c){b=b===void 0?!1:b;a=this.index.Mi(a);b&&(a=Math.min(this.index.qd(),a+1));return this.sF(a,this.index.Lm(a),0,c)}; g.k.Sm=function(){return!0}; g.k.Fx=function(){return!0}; g.k.PA=function(){return!1}; g.k.YP=function(){return this.indexRange.length+this.initRange.length}; g.k.HS=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var V1={},ZHa=(V1.COLOR_PRIMARIES_BT709="bt709",V1.COLOR_PRIMARIES_BT2020="bt2020",V1.COLOR_PRIMARIES_UNKNOWN=null,V1.COLOR_PRIMARIES_UNSPECIFIED=null,V1),W1={},JHa=(W1.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",W1.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",W1.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",W1.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",W1.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,W1.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,W1);g.aN.prototype.getName=function(){return this.name}; g.aN.prototype.getId=function(){return this.id}; g.aN.prototype.getIsDefault=function(){return this.isDefault}; g.aN.prototype.toString=function(){return this.name}; g.aN.prototype.getName=g.aN.prototype.getName;g.aN.prototype.getId=g.aN.prototype.getId;g.aN.prototype.getIsDefault=g.aN.prototype.getIsDefault;var NHa=/action_display_post/;var OHa,dN,eN;g.z(fN,g.Xw);g.k=fN.prototype;g.k.isLoading=function(){return this.state===1}; g.k.Rm=function(){return this.state===3}; g.k.Oca=function(a){var b=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.Vb=this.B=!0;this.timeline||(this.timeline=new sHa);wHa(this.timeline,a);this.publish("refresh");for(a=0;a=0?p=uM(r):q=q+"?range="+r}m.call(l,new xL(n.Pa,n.startSecs,n.Eh,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.ob)}xHa(this.timeline);return!0}this.duration=pHa(JM(a,"mediaPresentationDuration")); a:{for(a=0;a0))return this.Vd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!CE(a[b].info.mimeType))return c.Xc()}return 0}; g.k.getStreamTimeOffset=function(){return this.N}; g.k.cf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Mi(a),e=c.cf(d);if(e)return e+a-c.getStartTime(d)}}return NaN}; var sN=null,nbb,tN=!((nbb=navigator.mediaCapabilities)==null||!nbb.decodingInfo),eIa={commentary:1,alternate:2,dub:3,main:4};g.uN.prototype.info=function(){}; g.uN.prototype.debug=function(){}; var tIa=new Map,wIa=new Map,uIa=new function(){var a=this;this.j=new Map;this.hd={tna:function(){return a.j}}};var IZ=new Set,vN=new Map;yN.prototype.clone=function(a){return new yN(this.flavor,a,this.B,this.experiments)}; yN.prototype.uc=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; yN.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; var obb={},IN=(obb.playready=["com.youtube.playready","com.microsoft.playready"],obb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],obb),X1={},S0a=(X1.widevine="DRM_SYSTEM_WIDEVINE",X1.fairplay="DRM_SYSTEM_FAIRPLAY",X1.playready="DRM_SYSTEM_PLAYREADY",X1),Y1={},pbb=(Y1.widevine=1,Y1.fairplay=2,Y1.playready=3,Y1);KN.prototype.Rh=function(a,b){b=b===void 0?1:b;this.Ln+=b;this.B+=a;a/=b;for(var c=0;c0)d+="."+JN[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new AIa;return a}; g.k.toString=function(){return""};g.k=FIa.prototype;g.k.isActive=function(){return!1}; g.k.HK=function(){}; g.k.LA=function(){}; g.k.AC=function(){}; g.k.gA=function(){}; g.k.fv=function(a,b){return b()}; g.k.eY=function(){return{}}; g.k.toString=function(){return""};var Z1,qbb,rbb,sbb,tbb,ubb,$1,sU,OX,a5a,PN;Z1=new FIa;qbb=!!+Fq("html5_enable_profiler");rbb=!!+Fq("html5_onesie_enable_profiler");sbb=!!+Fq("html5_offline_encryption_enable_profiler");tbb=!!+Fq("html5_performance_impact_profiling_timer_ms");ubb=!!+Fq("html5_drm_enable_profiler");$1=qbb||rbb||sbb||tbb||ubb?new CIa:Z1;g.wW=qbb?$1:Z1;sU=rbb?$1:Z1;OX=sbb?$1:Z1;a5a=tbb?$1:Z1;PN=ubb?$1:Z1;var ON;g.z(MN,g.O); MN.prototype.initialize=function(a,b){for(var c=this,d=g.w(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.w(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.oe)for(var h=g.w(Object.keys(f.oe)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=IN[m];!m&&this.L("html5_enable_vp9_fairplay")&&l==="fairplay"&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.w(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new yN(l,n,f.oe[l],this.Da.experiments),this.j[l]=this.j[l]|| {},this.j[l][f.mimeType]=!0}}}Er()&&(this.C["com.youtube.fairplay"]=new yN("fairplay","com.youtube.fairplay","",this.Da.experiments),this.L("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=zIa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})}; MN.prototype.L=function(a){return this.Da.experiments.kb(a)};var G4a={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};MIa.prototype.L=function(a){return this.experiments.kb(a)};var pJa={RED:"red",tma:"white"};NIa.prototype.kb=function(a){return this.flags[a]==="true"};var QIa=Promise.resolve(),TIa=window.queueMicrotask?window.queueMicrotask.bind(window):RIa;TN.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;It?a=a||vbb[b]:uO===2.2?a=a||wbb[b]:Cr()&&(a=a||xbb[b]);return!!a}; TN.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):fE(a)}; var wbb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},xbb={"application/x-mpegURL":"maybe"},vbb={"application/x-mpegURL":"maybe"};g.z(XN,g.Xw);XN.prototype.add=function(a,b){if(!this.items[a]&&(b.jJ||b.KO||b.TM)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.publish("vast_info_card_add",a)}}; XN.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; XN.prototype.get=function(a){return this.items[a]||null}; XN.prototype.isEmpty=function(){return g.Bc(this.items)};g.z(YN,g.xJ);YN.prototype.j=function(a,b){return g.xJ.prototype.j.call(this,a,b)}; YN.prototype.B=function(a,b,c){var d=this;return g.J(function(e){return e.j==1?g.G(e,g.xJ.prototype.B.call(d,a,b,c),2):e.return(e.B)})}; g.z(ZN,g.yJ);ZN.prototype.encrypt=function(a,b){return g.yJ.prototype.encrypt.call(this,a,b)};aO.prototype.Am=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a}; aO.prototype.gh=function(){return this.j/(1-Math.pow(this.alpha,this.B))};bO.prototype.Am=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.yl=!0}; bO.prototype.percentile=function(a){var b=this;if(!this.C&&this.B===0)return 0;this.yl&&(g.$b(this.G,function(c,d){return b.values[c]-b.values[d]}),this.yl=!1); return this.values[this.G[Math.round(a*((this.C?this.j:this.B)-1))]]||0}; bO.prototype.gh=function(){return this.K?(this.percentile(this.D-this.K)+this.percentile(this.D)+this.percentile(this.D+this.K))/3:this.percentile(this.D)};g.z(cO,g.O);cO.prototype.Va=function(){var a;(a=this.Ga)==null||a.start();if(lO(this)&&this.policy.Y){var b;(b=this.Ad)==null||b.qG()}};g.z(iJa,g.O);var oJa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),uJa={fga:"caoe",gga:"capsv",xga:"cbrand",yga:"cbr",Aga:"cbrver",Lga:"cchip",Sga:"ccappver",Tga:"ccrv",Lha:"cfrmver",uia:"c",xia:"cver",wia:"ctheme",via:"cplayer",vja:"cmodel",Hja:"cnetwork",Oja:"cos",Pja:"cosver",Wja:"cplatform",uka:"crqyear"};g.z(EO,g.O);g.k=EO.prototype;g.k.L=function(a){return this.experiments.kb(a)}; g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.GO(this);e=c==="www.youtube.com";!f&&d&&e?f="https://youtu.be/"+a:g.xO(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),It&&(a=Ama())&&(b.ebc=a));return g.Hi(f,b)}; g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.GO(this)+"/embed/"+b;d&&(b=g.Hi(b,{list:d}));d=c.width;c=c.height;b=Sd(b);a=Sd(a!=null?a:"YouTube video player");return'')}; g.k.supportsGaplessAudio=function(){return g.eE&&!It&&dna()>=74||g.GN&&g.kc(68)?!0:!1}; g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.gt?!1:!0}; g.k.getPlayerType=function(){return this.j.cplayer}; g.k.zc=function(){return this.Sf}; g.k.Vu=function(){this.L("html5_enable_lawnmower_messaging")}; var yJa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],tJa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],wJa=[19];var a2={},BJa=(a2["140"]={numChannels:2},a2["141"]={numChannels:2},a2["251"]={audioSampleRate:48E3,numChannels:2},a2["380"]={numChannels:6},a2["328"]={numChannels:6},a2),b2={},zJa=(b2["1"]='video/mp4; codecs="av01.0.08M.08"',b2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',b2["9"]='video/webm; codecs="vp9"',b2["("]='video/webm; codecs="vp9"',b2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',b2.h='video/mp4; codecs="avc1.64001e"',b2.H='video/mp4; codecs="avc1.64001e"',b2.o= 'audio/webm; codecs="opus"',b2.a='audio/mp4; codecs="mp4a.40.2"',b2.ah='audio/mp4; codecs="mp4a.40.2"',b2.mac3='audio/mp4; codecs="ac-3"; channels=6',b2.meac3='audio/mp4; codecs="ec-3"; channels=6',b2),c2={},AJa=(c2["337"]={width:3840,height:2160,bitrate:3E7,fps:30},c2["336"]={width:2560,height:1440,bitrate:15E6,fps:30},c2["335"]={width:1920,height:1080,bitrate:75E5,fps:30},c2["702"]={width:7680,height:4320,bitrate:4E7,fps:60},c2["701"]={width:3840,height:2160,bitrate:2E7,fps:60},c2["700"]={width:2560, height:1440,bitrate:1E7,fps:60},c2["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},c2["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},c2["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},c2["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},c2["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},c2["360"]={width:1920,height:1080,bitrate:5331E3, fps:30,cryptoblockformat:"subsample"},c2["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},c2["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},c2["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},c2["315"]={width:3840,height:2160,bitrate:2E7,fps:60},c2["308"]={width:2560,height:1440,bitrate:1E7,fps:60},c2["303"]={width:1920,height:1080,bitrate:5E6,fps:60},c2["302"]={width:1280,height:720,bitrate:25E5, fps:60},c2["299"]={width:1920,height:1080,bitrate:75E5,fps:60},c2["298"]={width:1280,height:720,bitrate:35E5,fps:60},c2["571"]={width:7680,height:4320,bitrate:3E7,fps:60},c2["401"]={width:3840,height:2160,bitrate:15E6,fps:60},c2["400"]={width:2560,height:1440,bitrate:75E5,fps:60},c2["399"]={width:1920,height:1080,bitrate:2E6,fps:60},c2["398"]={width:1280,height:720,bitrate:1E6,fps:60},c2["397"]={width:854,height:480,bitrate:4E5,fps:30},c2["396"]={width:640,height:360,bitrate:25E4,fps:30},c2["313"]= {width:3840,height:2160,bitrate:8E6,fps:30},c2["271"]={width:2560,height:1440,bitrate:4E6,fps:30},c2["248"]={width:1920,height:1080,bitrate:2E6,fps:30},c2["247"]={width:1280,height:720,bitrate:15E5,fps:30},c2["244"]={width:854,height:480,bitrate:52E4,fps:30},c2["243"]={width:640,height:360,bitrate:28E4,fps:30},c2["137"]={width:1920,height:1080,bitrate:4E6,fps:30},c2["136"]={width:1280,height:720,bitrate:3E6,fps:30},c2["135"]={width:854,height:480,bitrate:1E6,fps:30},c2["385"]={width:1920,height:1080, bitrate:6503313,fps:60},c2["376"]={width:1280,height:720,bitrate:5706960,fps:60},c2["384"]={width:1280,height:720,bitrate:3660979,fps:60},c2["225"]={width:1280,height:720,bitrate:5805E3,fps:30},c2["224"]={width:1280,height:720,bitrate:453E4,fps:30},c2["145"]={width:1280,height:720,bitrate:2682052,fps:30},c2);g.k=VO.prototype;g.k.getInfo=function(){return this.j}; g.k.xD=function(){return null}; g.k.oY=function(){var a=this.xD();return a?(a=g.Sq(a.resource),Number(a.expire)):NaN}; g.k.uT=function(){}; g.k.getHeight=function(){return this.j.video.height};DJa.prototype.build=function(){GJa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.w(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.dc){if(e.dc.getIsDefault()){c=e.dc.getId();break a}c||(c=e.dc.getId())}}d=g.w(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.dc||e.dc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.w(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.w(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.dc){p=f.dc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";d!==null&&(q=d.itag.toString());q=XO(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(FJa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.w(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=ybb,d=(h=d.dc)?'#EXT-X-MEDIA:URI="'+XO(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=this.G.length>0?ybb:void 0;d=g.w(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,((h=l)==null?void 0:h.length)>0&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(FJa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",h.fps>1&&(l+= ",FRAME-RATE="+h.fps),h.MC&&(l+=",VIDEO-RANGE="+h.MC),a.push(l),a.push(XO(this,e.url,"")));return a.join("\n")}; var ybb="text";g.z(YO,VO);YO.prototype.oY=function(){return this.expiration}; YO.prototype.xD=function(){if(!this.resource||this.resource.La()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new RE(a)}return this.resource};g.z(ZO,VO);ZO.prototype.xD=function(){return new RE(this.B.De())}; ZO.prototype.uT=function(){this.B=vL(this.B)};g.z($O,VO);$O.prototype.xD=function(){return new RE(this.B)};var d2={},SJa=(d2.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",d2.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",d2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",d2);g.k=g.aP.prototype;g.k.getId=function(){return this.id}; g.k.getName=function(){return this.name}; g.k.isServable=function(){return this.j}; g.k.De=function(){return this.url}; g.k.getXtags=function(){return this.xtags}; g.k.toString=function(){return this.languageCode+": "+g.bP(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.k.ue=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var XJa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},YJa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},ZJa=/^(\d*)_((\d*)_?(\d*))$/;var aKa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},bKa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var e2={},NKa=(e2.ALWAYS=1,e2.BY_REQUEST=3,e2.UNKNOWN=void 0,e2),f2={},TKa=(f2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",f2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",f2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",f2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",f2);var $Aa; $Aa=function(a){for(var b=Object.keys(a),c={},d=0;dd-b?-1:a}; g.k.vz=function(){return this.B.qd()}; g.k.IN=function(){return this.B.Wn()}; g.k.NV=function(a){this.B=a};g.z(CP,AP);CP.prototype.B=function(a,b){return AP.prototype.B.call(this,"$N|"+a,b)}; CP.prototype.G=function(a,b,c){return new BP(a,b,c,this.isLive)};var XKa=[],TP=new Set;g.z(g.EP,g.Xw);g.k=g.EP.prototype;g.k.U=function(){return this.Da}; g.k.L=function(a){return this.Da.L(a)}; g.k.Lh=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=this.lf)==null||!a.ob)}; g.k.j0=function(){this.La()||(this.j.B||this.j.unsubscribe("refresh",this.j0,this),this.rX(-1))}; g.k.rX=function(a){if(!this.isLivePlayback||!this.G||this.G.flavor!="fairplay"){var b=bIa(this.j,this.eI);if(b.length>0){for(var c=g.w(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Xc());this.publish("cuepointupdated",b,a);this.eI+=b.length;if(RP(this)&&this.Da.zc())for(b=g.w(b),c=b.next();!c.done;c=b.next())c=c.value,this.oa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.fD.start=this.Wk, this.fD.end=c+3)}}}; g.k.ej=function(){return this.oe?!0:!!this.j&&jL(this.j)}; g.k.ZI=function(a){var b=this;if(this.La())return sr();this.Fd=this.ob=this.C=null;MP(this,"html5_high_res_logging_always")&&(this.Da.Sf=!0);return kLa(this,a).then(void 0,function(){return lLa(b,a)}).then(void 0,function(){return mLa(b)}).then(void 0,function(){return oLa(b)})}; g.k.Ak=function(){if(this.cotn)return null;var a=g.gC(this.Da)||this.L("web_l3_storyboard");if(!this.al)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.al=new AP(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=$aa(this.j.j).index)&&(this.al=new CP(b.spec,this.j.isLive,c,a))}else this.oB?this.al=new AP(this.oB,this.lengthSeconds,void 0,!1,a):this.Aw&&this.j&& (b=$aa(this.j.j).index)&&(this.al=new CP(this.Aw,this.j.isLive,b,a));return this.al}; g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.oB||this.Aw}; g.k.Vd=function(){return this.j&&!isNaN(this.j.Vd())?this.j.Vd():RP(this)?0:this.lengthSeconds}; g.k.Xc=function(){return this.j&&!isNaN(this.j.Xc())?this.j.Xc():0}; g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Mi(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((a-b)*1E3)}}return null}; g.k.ue=function(){return!this.La()&&!(!this.videoId&&!this.pm)}; g.k.sx=function(){var a,b,c;return!!this.adaptiveFormats||!!((a=this.playerResponse)==null?0:(b=a.streamingData)==null?0:(c=b.adaptiveFormats)==null?0:c.length)}; g.k.isLoaded=function(){return FP(this)&&!this.Aj&&!this.xp}; g.k.hh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Da.ra||a=="pop1.jpg"||a=="pop2.jpg"||a=="sddefault.jpg"||a=="hq720.jpg"||a=="maxresdefault.jpg"?b:HO(this.Da,this.videoId,a)}; g.k.Vb=function(){return this.isLivePlayback||this.Wd||this.Ka||!(!this.liveUtcStartSeconds||!this.dk)}; g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Wd&&!this.isLivePlayback&&this.j.B)}; g.k.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.zw||[]:[]}; g.k.getAudioTrack=function(){var a=this;if(this.D&&!xE(this.D))return g.Lb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.fl; if(this.zw){if(!this.Qp)for(var b=g.w(this.zw),c=b.next();!c.done;c=b.next())if(c=c.value,c.dc.getIsDefault()){this.Qp=c;break}return this.Qp||this.fl}return this.fl}; g.k.getPlayerResponse=function(){return this.playerResponse}; g.k.getWatchNextResponse=function(){return this.Wa}; g.k.getHeartbeatResponse=function(){return this.aE}; g.k.Fl=function(){return this.watchUrl?this.watchUrl:this.Da.getVideoUrl(this.videoId)}; g.k.SQ=function(){return!!this.j&&(RHa(this.j)||SHa(this.j)||THa(this.j))}; g.k.getEmbeddedPlayerResponse=function(){return this.Ji}; g.k.Ck=function(){return(this.eventLabel||this.Da.Ma)==="shortspage"}; g.k.isAd=function(){return this.bG||!!this.adFormat}; g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.k.Jh=function(){var a,b,c;return this.isDaiEnabled()&&!!((a=this.playerResponse)==null?0:(b=a.playerConfig)==null?0:(c=b.daiConfig)==null?0:c.ssaEnabledPlayback)}; g.k.HT=function(){return OKa(this)?this.U3:this.Uq||this.Xi}; g.k.KH=function(){return this.Oj||this.Xi}; g.k.SI=function(){return MP(this,"html5_samsung_vp9_live")}; g.k.useInnertubeDrmService=function(){return!0}; g.k.oa=function(a,b,c){this.publish("ctmp",a,b,c)}; g.k.Fy=function(a,b,c){this.publish("ctmpstr",a,b,c)}; g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.k.jd=function(a,b){if(!g.qO(this.Da))return!1;var c;if(((c=this.Da.getWebPlayerContextConfig())==null?0:c.embedsEnableEmc3ds)||(this.Da.Ga||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||b)return!1;if(this.L("embeds_enable_embedded_player_flags")){var d,e;return!!(((d=this.embeddedPlayerConfig)==null?0:(e=d.embeddedPlayerFlags)==null?0:e.isShortsExperienceEligible)&&a.width<=a.height)}var f;return!!(((f=this.embeddedPlayerConfig)==null?0:f.isShortsExperienceEligible)&&a.width<= a.height)}; g.k.xa=function(){g.Xw.prototype.xa.call(this);this.Sv=null;delete this.wfa;delete this.accountLinkingConfig;delete this.j;this.C=this.aE=this.playerResponse=this.Wa=null;this.Uf=this.adaptiveFormats="";delete this.botguardData;this.kf=this.suggestions=this.Vv=null};var PLa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},QLa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},OLa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},RLa=!1,LLa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},NLa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},MLa={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE", 2:"UNPLUGGED_FILTER_MODE_TYPE_PG",3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"};g.z(NQ,g.O);g.k=NQ.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.N[a],e=this.state.Z[a],f=d;if(e)if(c&&FC(c,Fab))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.w(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.yw(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');}; g.k.logApiCall=function(a,b,c){var d=this.app.U();d.yp&&!this.state.Y.has(a)&&(this.state.Y.add(a),g.Xs("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ga,errorCode:c}))}; g.k.publish=function(a){var b=g.Da.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.B.publish.apply(this.state.B,[a].concat(g.x(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)))}; g.k.ib=function(a){var b=g.Da.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)))}; g.k.Hc=function(a){var b=g.Da.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)))}; g.k.Bi=function(a){var b=g.Da.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)));this.state.G.publish.apply(this.state.G,[a].concat(g.x(b)))}; g.k.L=function(a){return this.app.U().L(a)}; g.k.xa=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.O.prototype.xa.call(this)};g.z(SQ,g.lp);SQ.prototype.publish=function(a){var b=g.Da.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.lp.prototype.publish.call.apply(g.lp.prototype.publish,[this,a].concat(g.x(b.shift())))}finally{this.G.delete(a)}return c};g.z(TQ,g.O);TQ.prototype.xa=function(){this.G.dispose();this.D.dispose();this.B.dispose();this.C.dispose();this.Y=this.j=this.Z=this.N=this.K=void 0};var YLa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.z(VQ,NQ);g.k=VQ.prototype;g.k.getApiInterface=function(){return Array.from(this.state.K)}; g.k.o7=function(a,b){this.state.G.subscribe(a,b)}; g.k.vda=function(a,b){this.state.G.unsubscribe(a,b)}; g.k.getPlayerState=function(a){return v5a(this.app,a)}; g.k.f9=function(){return v5a(this.app)}; g.k.Uda=function(a,b,c){YQ(this)&&(X_(this.app,!0,1),Z_(this.app,a,b,c,1))}; g.k.getCurrentTime=function(a,b,c){var d=this.getPlayerState(a);if(this.app.getAppState()===2&&d===5){var e;return((e=this.app.getVideoData())==null?void 0:e.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&d===0?r5a(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(a)}; g.k.T8=function(){return this.app.getCurrentTime(1)}; g.k.a9=function(){var a=this.app.cf(1);return isNaN(a)?this.getCurrentTime(1):a}; g.k.X8=function(){return this.app.getDuration(1)}; g.k.BM=function(a,b){a=g.Bd(Math.floor(a),0,100);isFinite(a)&&Q_(this.app,{volume:a,muted:this.isMuted()},b)}; g.k.lea=function(a){this.BM(a,!1)}; g.k.lL=function(a){Q_(this.app,{muted:!0,volume:this.getVolume()},a)}; g.k.Y$=function(){this.lL(!1)}; g.k.ZM=function(a){g.XQ(this.app)||Q_(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)}; g.k.Yea=function(){this.ZM(!1)}; g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Gf&&(a.pfp={enableIma:g.JQ(this.app.getVideoData())&&this.app.Od().allowImaMonetization,autoplay:BQ(this.app.Od()),mutedAutoplay:this.app.Od().mutedAutoplay});return a}; g.k.IS=function(){var a=this.app.getPresentingPlayerType();if(a===2&&!this.app.Ff()){var b=xU(this.app.Bb());if(!k8a(b)||l8a(b))return}a===3?jR(this.app.Bb()).AG("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.SP(this.app.Od())&&a===2||this.app.playVideo(a)}; g.k.Vca=function(){X_(this.app,!0,1);this.IS()}; g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.Ff()||k8a(xU(this.app.Bb())))b===3?jR(this.app.Bb()).AG("control_pause"):this.app.pauseVideo(b,a)}; g.k.zea=function(){var a=this.app,b=!1;a.W.wc&&(a.Ua.publish("pageTransition"),b=!0);a.stopVideo(b)}; g.k.clearVideo=function(){}; g.k.getAvailablePlaybackRates=function(){var a=this.app.U();return a.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.zp?xab:wab:[1]}; g.k.getPlaybackQuality=function(a){return(a=g.ZQ(this.app,a))?a.getPlaybackQuality():"unknown"}; g.k.eea=function(){}; g.k.getAvailableQualityLevels=function(a){return(a=g.ZQ(this.app,a))?(a=g.nl(a.Vt(),function(b){return b.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]}; g.k.O8=function(){return this.getAvailableQualityLevels(1)}; g.k.k9=function(){return this.LY()}; g.k.l9=function(){return 1}; g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; g.k.LY=function(){return this.getVideoLoadedFraction()}; g.k.o9=function(){return 0}; g.k.getSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; g.k.setSize=function(){this.app.qb().resize()}; g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=UQ(a,b,c);return this.app.loadVideoByPlayerVars(a,d)}; g.k.w$=function(a,b,c){a=this.loadVideoById(a,b,c,1);X_(this.app,a,1)}; g.k.cueVideoById=function(a,b,c,d){a=UQ(a,b,c);this.app.cueVideoByPlayerVars(a,d)}; g.k.Q7=function(a,b,c){this.cueVideoById(a,b,c,1)}; g.k.loadVideoByUrl=function(a,b,c,d){a=XLa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)}; g.k.z$=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);X_(this.app,a,1)}; g.k.cueVideoByUrl=function(a,b,c,d){a=XLa(a,b,c);this.app.cueVideoByPlayerVars(a,d)}; g.k.T7=function(a,b,c){this.cueVideoByUrl(a,b,c,1)}; g.k.q9=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Od(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)}; g.k.V8=function(){return this.app.getDebugText()}; g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Od();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Od().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)}; g.k.m7=function(a,b,c){return B5a(this.app,a,b,c)}; g.k.removeCueRange=function(a){return D5a(this.app,a)}; g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)}; g.k.u$=function(a,b,c,d){this.loadPlaylist(a,b,c,d);X_(this.app,!0,1)}; g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)}; g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)}; g.k.Z$=function(){this.nextVideo();X_(this.app,!0,1)}; g.k.previousVideo=function(a){this.app.previousVideo(a)}; g.k.ida=function(){this.previousVideo();X_(this.app,!0,1)}; g.k.playVideoAt=function(a){this.app.playVideoAt(a)}; g.k.Uca=function(a){this.playVideoAt(a);X_(this.app,!0,1)}; g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)}; g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)}; g.k.h9=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;cd?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Lh(),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.p9=function(){return g.ZQ(this.app,1).uc(!0)}; g.k.toggleSubtitles=function(){var a=g.uU(this.app.Bb());a&&a.Oea()}; g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; 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 cMa="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 qoe_cat 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(" "), fMa="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 g2={},gMa=(g2["api.invalidparam"]=2,g2.auth=150,g2["drm.auth"]=150,g2["heartbeat.net"]=150,g2["heartbeat.servererror"]=150,g2["heartbeat.stop"]=150,g2["html5.unsupportedads"]=5,g2["fmt.noneavailable"]=5,g2["fmt.decode"]=5,g2["fmt.unplayable"]=5,g2["html5.missingapi"]=5,g2["html5.unsupportedlive"]=5,g2["drm.unavailable"]=5,g2["mrm.blocked"]=151,g2["embedder.identity.denied"]=152,g2);g.z(g.cR,$Q);g.k=g.cR.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.N[a]?!0:!!(this.state.Z[a]&&b&&FC(b,Fab))}; g.k.getBandwidthEstimate=function(){return kO(this.app.U().schedule)}; g.k.reportPlaybackIssue=function(a){a=a===void 0?"":a;var b=g.ZQ(this.app);b&&(a={gpu:(0,g.PZ)(),d:a},b.handleError(new $D("feedback",a)))}; g.k.getInternalApi=function(){return Object.assign({},this.state.j)}; g.k.getInternalApiInterface=function(){return g.xc(this.state.j)}; g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;this.app.queueNextVideo(a,b,c,d===void 0?"":d,e===void 0?"":e)}; g.k.e9=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.Z(a,1),isCued:a.isCued(),isDomPaused:g.Z(a,1024),isEnded:g.Z(a,2),isError:g.Z(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.Z(a,16),isUiSeeking:g.Z(a,32),isUnstarted:g.Z(a,64)}}; g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; g.k.startSeekCsiAction=function(){this.app.Yh().D.j=(0,g.T)()}; g.k.S8=function(a,b,c){return this.getCurrentTime(a===void 0?1:a,b,c)}; g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=b===void 0?!0:b;var f=g.ZQ(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Dc()&&(h=f.getStreamTimeOffset());Z_(e,a-h,b,c,1,d)}; g.k.getStreamTimeOffset=function(){var a=g.ZQ(this.app,1);return a?a.getStreamTimeOffset():0}; g.k.seekToLiveHead=function(a,b){var c=g.ZQ(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&Z_(this.app,Infinity,a,b,1)}; g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.ZQ(this.app,1);c&&c.eC(a,b)}; g.k.Tda=function(a,b,c,d,e){this.seekTo(a,b,c,d===void 0?1:d,e)}; g.k.Rda=function(a,b,c,d){this.seekBy(a,b,c,d,1)}; g.k.setVolume=function(a,b){this.BM(a,b===void 0?!0:b)}; g.k.mute=function(a){this.lL(a===void 0?!0:a)}; g.k.unMute=function(a){this.ZM(a===void 0?!0:a)}; g.k.syncVolume=function(){var a=T4a(this.app);Q_(this.app,{volume:a.volume,muted:a.muted},!1)}; g.k.getAvailableQualityLabels=function(){var a=g.ZQ(this.app,1);return a?g.nl(a.Vt(),function(b){return b.qualityLabel}):[]}; g.k.channelSubscribed=function(){this.ib("SUBSCRIBE",this.app.Od().Xl)}; g.k.channelUnsubscribed=function(){this.ib("UNSUBSCRIBE",this.app.Od().Xl)}; g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)}; g.k.getCurrentPlaylistSequence=function(){return g.ZQ(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; g.k.getPlaylistSequenceForTime=function(a){return g.ZQ(this.app).getPlaylistSequenceForTime(a)}; g.k.shouldSendVisibilityState=function(){return!0}; g.k.confirmYpcRental=function(){var a=g.ZQ(this.app,1);a&&a.Eg("ypc_clickwrap")}; g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a}; g.k.setConnectedRemoteApps=function(a){this.app.U().Ij=a}; g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=Rr("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,sJa)}; g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=a===void 0?!1:a}; g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; g.k.addUtcCueRange=function(a,b,c,d,e){return C5a(this.app,a,b,c,d,e)}; g.k.m9=function(a){a=a===void 0?1:a;var b=this.KY(a);if(a=g.ZQ(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ma;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&((c=a.progressBarStartPosition)==null?0:c.utcTimeMillis)?Vd(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&((e=a.progressBarEndPosition)==null?0:e.utcTimeMillis)? Vd(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.F4;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=pLa(a);b.paidContentOverlayDurationMs=qLa(a);a.j&&gL(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.ZQ(this.app,1))?a.getPlayerState():null)?a.fh:null;return!!(a&&b&&g.Z(a,128)&&hMa(b.errorCode)===5)}; 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=c===void 0?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,d===void 0?"":d)}; g.k.clearQueue=function(){this.app.clearQueue()}; g.k.Ki=function(){return g.WQ(this)}; g.k.sendAbandonmentPing=function(){var a=g.ZQ(this.app);a&&a.sendAbandonmentPing()}; g.k.setAutonavState=function(a,b){b=b===void 0?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Od(),b==null?0:UP(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(a===3)b.autonavState!==3&&(b.CD=b.autonavState);else if(b.CD!==void 0)a=b.CD,b.CD=void 0;else return}J5a(this.app,a)}; g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,b===void 0?!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!((a=g.ZQ(this.app,1))==null||!a.hasSupportedAudio51Tracks())}; g.k.setUserAudio51Preference=function(a,b){b=b===void 0?!1:b;var c=g.ZQ(this.app,1);c&&c.setUserAudio51Preference(a,b)}; g.k.getUserAudio51Preference=function(){var a,b;return(b=(a=g.ZQ(this.app,1))==null?void 0:a.getUserAudio51Preference())!=null?b:1}; g.k.setProximaLatencyPreference=function(a){var b=g.ZQ(this.app,1);b&&b.setProximaLatencyPreference(a)}; g.k.getProximaLatencyPreference=function(){var a=g.ZQ(this.app,1);return a?a.getProximaLatencyPreference():0}; g.k.isProximaLatencyEligible=function(){var a=g.ZQ(this.app,1);return a?a.isProximaLatencyEligible():!1}; g.k.getAppState=function(){return this.app.getAppState()}; g.k.updateLastActiveTime=function(){lv()}; g.k.setBlackout=function(a){this.app.setBlackout(a)}; g.k.setUserEngagement=function(a){this.app.U().im!==a&&(this.app.U().im=a,(a=g.ZQ(this.app,1))&&z_(a))}; g.k.updateSubtitlesUserSettings=function(a,b){b=b===void 0?!0:b;g.uU(this.app.Bb()).C3(a,b)}; g.k.getCaptionWindowContainerId=function(){var a=g.uU(this.app.Bb());return a?a.getCaptionWindowContainerId():""}; g.k.toggleSubtitlesOn=function(){var a=g.uU(this.app.Bb());a&&a.Y2()}; g.k.isSubtitlesOn=function(){var a=g.uU(this.app.Bb());return a?a.isSubtitlesOn():!1}; g.k.getPlayerResponse=function(a){return(a=g.ZQ(this.app,a))?a.getVideoData().getPlayerResponse():null}; g.k.d9=function(){return this.getPlayerResponse(1)}; g.k.getEmbeddedPlayerResponse=function(){var a=g.ZQ(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null}; g.k.getWatchNextResponse=function(a){return(a=g.ZQ(this.app,a))?a.getVideoData().getWatchNextResponse():null}; g.k.r9=function(){return this.getWatchNextResponse(1)}; g.k.getHeartbeatResponse=function(a){return(a=g.ZQ(this.app,a))?a.getVideoData().getHeartbeatResponse():null}; g.k.Y8=function(){return this.getHeartbeatResponse(1)}; g.k.getStoryboardFrame=function(a,b){var c=this.app.Ak();if(!c)return null;b=c.levels[b];return b?(a=g.yP(b,a))?{column:a.column,columns:a.columns,height:a.Tx,row:a.row,rows:a.rows,url:a.url,width:a.nG}:null:null}; g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Ak();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Dc();return b.LI(a)}; g.k.getStoryboardLevel=function(a){var b=this.app.Ak();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.vz(),minFrameIndex:b.IN()}:null:null}; g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Ak();return a?a.levels.length:0}; g.k.K8=function(){return this.getAudioTrack(1)}; g.k.getAudioTrack=function(a){return(a=g.ZQ(this.app,a))?a.getAudioTrack():this.app.getVideoData().fl}; g.k.setAudioTrack=function(a,b,c){this.gK()===3&&jR(this.app.Bb()).AG("control_set_audio_track",a);if(c=g.ZQ(this.app,c))if(c.La()||g.Z(c.playerState,128))a=!1;else{var d;if((d=c.videoData.C)==null?0:d.j){d=b?c.getCurrentTime()-c.Dc():NaN;if(b){var e=D3a(c.Qc);c.oa("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.ya.setAudioTrack(a,d,b)}else if(t4a(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d=400)if(a=this.Od(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!!((b=a.getWatchNextResponse())==null?0:(c=b.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:(e=d.autoplay)==null?0:e.autoplay)!==!1}if(a)this.j||(this.j=!0,g.dx(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||uMa(this), b=this.Od(),this.OV(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.dx(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.w(this.B),c=b.next();!c.done;c=b.next())this.Oc(c.value)}; g.k.OV=function(a){wMa(this)?this.isChecked=a!==1:((a=a!==1)||(g.Bs(),a=g.hr("web_autonav_allow_off_by_default")&&!g.Cs(0,141)&&g.Eq("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Cs(0,140)),this.isChecked=a);vMa(this)}; g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.oM(this.isChecked?2:1);vMa(this);if(wMa(this)){var a=this.Od().autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.J.ib("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.J.ib("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)}; g.k.getValue=function(){return this.isChecked}; g.k.Od=function(){return this.J.getVideoData(1)};g.z(xMa,$R);g.z(gS,g.xR);gS.prototype.onClick=function(){this.enabled&&(hS(this,!this.checked),this.publish("select",this.checked))}; gS.prototype.getValue=function(){return this.checked}; gS.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var zMa=["en-CA","en","es-MX","fr-CA"];g.z(oS,gS);oS.prototype.Ta=function(a){a?this.j||(this.Eb.Uc(this),this.j=!0):this.j&&(this.Eb.rh(this),this.j=!1);this.j&&hS(this,CBa())}; oS.prototype.D=function(){g.Vo(this.element,"ytp-menuitem-highlight-transition-enabled")}; oS.prototype.C=function(a){var b=CBa();a!==b&&(b=g.Bs(),Es(190,a),Es(192,!0),b.save(),this.J.ib("cinematicSettingsToggleChange",a))}; oS.prototype.xa=function(){this.j&&this.Eb.rh(this);gS.prototype.xa.call(this)};g.z(pS,$R);pS.prototype.updateCinematicSettings=function(a){this.j=a;var b;(b=this.menuItem)==null||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.z(qS,$R);qS.prototype.KR=function(a,b){b=b.clipConfig;a==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};g.z(rS,gS);rS.prototype.B=function(a){this.C(a?1:0)}; rS.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=this.j()===1&&a;hS(this,b);this.setEnabled(a)}; rS.prototype.xa=function(){this.Eb.rh(this);gS.prototype.xa.call(this)};g.z(sS,$R);sS.prototype.getDrcUserPreference=function(){return this.j}; sS.prototype.setDrcUserPreference=function(a){g.us("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Vc())&&this.B()&&HZ(a))}; sS.prototype.updateEnvironmentData=function(){this.api.U().Uf=this.j===1}; sS.prototype.B=function(){var a,b,c=(a=this.api.getVideoData())==null?void 0:(b=a.C)==null?void 0:b.j;return c?qm(c,function(d){var e;return((e=d.audio)==null?void 0:e.j)===!0}):!1};g.z(tS,$R);tS.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.sf("embargo",1);var c=b==null?void 0:b.FD.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?DMa(this,c.filter(function(d){return CMa(a,d)})):(b==null?0:b.cueRanges)&&DMa(this,b.cueRanges.filter(function(d){return CMa(a,d)}))}; tS.prototype.B=function(a){return a.embargo!==void 0}; tS.prototype.xa=function(){$R.prototype.xa.call(this);this.j={}};g.z(uS,$R); uS.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Rc,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");c.length>0&&(a.embeds_widget_referrer=c);d.length>0&&(a.embeds_referring_euri=d);b.D&&f.length>0&&(a.embeds_referring_origin=f);e.length>0&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.Xr(g.zO(b))&&e.unshift(159628),b=e.join(","),b=g.Dr()?b:g.Qe(b,4),a.source_ve_path=b);this.j.length= 0};g.z(EMa,$R);g.z(vS,g.O);vS.prototype.xa=function(){g.O.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.z(GMa,$R);g.z(wS,g.U);wS.prototype.show=function(){g.U.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; wS.prototype.onVideoDataChange=function(a){var b,c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;d&&(b=HMa(d),g.Z(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!b?(this.B=0,xS(this),this.hide()):(a=(b.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",pBa(b.label)),JMa(this,a))))}; wS.prototype.xa=function(){xS(this);g.U.prototype.xa.call(this)};g.z(KMa,$R);g.z(yS,g.U);yS.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.ib("onFullerscreenEduClicked")}; yS.prototype.Ta=function(){this.Ua.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Ua.logVisibility(this.element,this.Ua.isFullscreen()&&!this.B)};g.z(zS,$R);zS.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;(b=this.j)!=null&&(g.Xo(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),eR(b.Ua,b.element,b),b.C=!0))}; zS.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;(b=this.j)!=null&&(b.B=a,b.Ta())};g.z(LMa,g.U);g.z(OMa,$R);g.z(PMa,$R);g.z(QMa,$R);g.z(AS,$R);AS.prototype.getSphericalProperties=function(){var a=g.mR(this.api.Bb());return a?a.getSphericalProperties():{}}; AS.prototype.setSphericalProperties=function(a){if(a){var b=g.mR(this.api.Bb());b&&b.setSphericalProperties(a,!0)}};g.z(BS,$R);g.k=BS.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,d===void 0?!1:d)}; g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,c===void 0?!1:c)}; g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)}; g.k.logClick=function(a,b){this.api.logClick(a,b)}; g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)}; g.k.hasVe=function(a){return this.api.hasVe(a)}; g.k.destroyVe=function(a){this.api.destroyVe(a)};g.z(CS,$R);CS.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.WQ(this.api)&&!(a<0)){var c=this.api.getVideoData(),d=c.Yk;if(d&&a=0)return;b=~b;g.Wb(this.items,b,0,a);ne(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.iS,this);this.menuItems.publish("size-change")}; g.k.rh=function(a){a.unsubscribe("size-change",this.iS,this);this.La()||(g.Qb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))}; g.k.iS=function(){this.menuItems.publish("size-change")}; g.k.focus=function(){for(var a=0,b=0;b1&&g.VS(this)}; g.k.IC=function(){iNa(this);this.Gb&&(hNa(this),g.fm(this.element,this.size))}; g.k.ij=function(){var a=this.j.pop();TS(this,a,this.j[this.j.length-1],!0)}; g.k.J5=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Nb();a.preventDefault();break;case 37:this.j.length>1&&this.ij();a.preventDefault();break;case 39:a.preventDefault()}}; g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()}; g.k.xa=function(){g.uR.prototype.xa.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.z(WS,g.SS);WS.prototype.open=function(a,b){this.initialize(a.items)&&this.pd(b,!!b)}; WS.prototype.initialize=function(a){g.RS(this.Pe);if(a===void 0||a.length===0)return!1;var b=a.length;a=g.w(a);for(var c=a.next();!c.done;c=a.next())this.Uc(c.value,b--);return!0}; WS.prototype.Uc=function(a,b){a.menuNavigationItemRenderer?lNa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&mNa(this,a.menuServiceItemRenderer,b)};g.z(XS,OS);g.k=XS.prototype;g.k.uG=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.Rx(),this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand))}; g.k.Su=function(){this.enabled=!1;this.qa.hide()}; g.k.Ry=function(){return!!this.j&&this.enabled}; g.k.onVideoDataChange=function(a,b){this.b2(b);if(this.j){this.e2();a:if(!this.isCounterfactual){var c,d,e;this.banner.update({title:(c=this.j)==null?void 0:c.title,subtitle:(d=this.j)==null?void 0:d.subtitle,metadata:(e=this.j)==null?void 0:e.metadataText});var f;this.onClickCommand=g.Q((f=this.j)==null?void 0:f.onTap,Aw);var h;if(a=g.Q((h=this.j)==null?void 0:h.onOverflow,Aw))this.N=g.Q(a,P$a);var l;if((l=this.j)==null?0:l.thumbnailImage){var m,n;h=((m=this.j)==null?void 0:(n=m.thumbnailImage)== null?void 0:n.sources)||[];if(h.length===0)break a;this.thumbnailImage.update({url:h[0].url})}else{var p;if((p=this.j)==null?0:p.thumbnailIconName){var q;this.thumbnailIcon.update({icon:(q=this.j)==null?void 0:q.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!((r=this.j)==null||!r.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.j)==null||!t.shouldHideDismissButton)}var u;this.banner.element.setAttribute("aria-label",((u=this.j)==null?void 0:u.a11yLabel)||"");var y; this.Va=(y=this.j)==null?void 0:y.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;YS(this)}}; g.k.Oaa=function(){this.isVisible=!0;YS(this)}; g.k.Paa=function(){this.isVisible=!1;YS(this)}; g.k.aL=function(){OS.prototype.aL.call(this);this.B&&this.J.logVisibility(this.banner.element,this.isVisible)}; g.k.Rx=function(){OS.prototype.Rx.call(this,!1);this.B&&this.J.logClick(this.banner.element)}; g.k.K5=function(a){this.K||(this.K=new WS(this.J),g.P(this,this.K));var b,c;if((b=this.N)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.K.open(this.N.menu.menuRenderer,a.target),a.preventDefault()}; g.k.b2=function(){}; g.k.e2=function(){}; g.k.xa=function(){this.J.sf("suggested_action_view_model");OS.prototype.xa.call(this)};g.z(ZS,XS); ZS.prototype.b2=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,aab);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var f;this.j=g.Q((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,M$a)}var h,l;if(this.B=!!((h=this.productUpsellSuggestedActionViewModel)==null?0:(l=h.loggingDirectives)==null? 0:l.trackingParams)){var m,n;this.J.setTrackingParams(this.banner.element,((m=this.productUpsellSuggestedActionViewModel)==null?void 0:(n=m.loggingDirectives)==null?void 0:n.trackingParams)||null)}var p;this.isCounterfactual=!((p=this.productUpsellSuggestedActionViewModel)==null||!p.isCounterfactualServing)}; ZS.prototype.e2=function(){var a=[],b,c=g.w(((b=this.productUpsellSuggestedActionViewModel)==null?void 0:b.ranges)||[]);for(b=c.next();!b.done;b=c.next()){var d=b.value;d&&(b=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(b)||isNaN(d)||a.push(new g.LC(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.mf(a)};g.z(oNa,$R);g.z($S,$R);$S.prototype.onVideoDataChange=function(a){a==="newdata"&&this.j&&pNa(this)};g.z(g.aT,g.xR);g.k=g.aT.prototype;g.k.open=function(){g.US(this.Eb,this.B)}; g.k.Ui=function(a){qNa(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Dd(this.ql(a)),this.C=a)}; g.k.Hz=function(a,b,c,d){var e=this;c={I:"div",Na:["ytp-menuitem",d?"ytp-menuitem-with-footer":""],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",Na:["ytp-menuitem-label"],va:"{{label}}"}]};d&&(d={I:"div",S:"ytp-menuitem-footer",V:[d]},c.V?c.V.push(d):c.V=[d]);b=new g.xR(c,b,this.ql(a,!0));b.listen("click",function(){e.JN(a)}); return b}; g.k.enable=function(a){this.K?a||(this.K=!1,this.wz(!1)):a&&(this.K=!0,this.wz(!0))}; g.k.wz=function(a){a?this.Eb.Uc(this):this.Eb.rh(this)}; g.k.Ig=function(a){this.publish("select",a)}; g.k.JN=function(a){this.Ig(a)}; g.k.ql=function(a){return a.toString()}; g.k.L5=function(a){a.defaultPrevented||a.keyCode!==39||(this.open(),a.preventDefault())}; g.k.xa=function(){this.K&&this.Eb.rh(this);g.xR.prototype.xa.call(this);for(var a=g.w(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.z(cT,g.aT);g.k=cT.prototype;g.k.Ta=function(){var a=this.nA("Off");this.J.getPresentingPlayerType()!==2?(rNa(this),this.Ui(this.G),this.j&&(this.G===a?this.j="":this.setSleepTimerTimeLeft(this.j)),this.N&&this.setVideoTimeLeft(this.N),this.enable(!0)):(g.bT(this,[]),this.enable(!1))}; g.k.Ig=function(a){sNa(this,a);this.Eb.ij()}; g.k.nA=function(a){switch(a){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(a.toString()+" Minutes").toLowerCase()}}; g.k.onVideoDataChange=function(a){a==="dataloaded"&&rNa(this)}; g.k.mca=function(a){this.J.logVisibility(this.element,a)}; g.k.onClick=function(){this.J.logClick(this.element)}; g.k.resetSleepTimerMenuSettings=function(){sNa(this,this.nA("Off"))}; g.k.setSleepTimerTimeLeft=function(a){this.j=a;this.Dd(a)}; g.k.setVideoTimeLeft=function(a){this.N=a;this.D.Dd(a)};g.z(dT,$R);dT.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}; dT.prototype.setSleepTimerTimeLeft=function(a){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(a)}; dT.prototype.setVideoTimeLeft=function(a){this.menuItem&&this.menuItem.setVideoTimeLeft(a)};g.z(g.fT,g.Xw);g.k=g.fT.prototype;g.k.T=function(a,b){this.D.T(this.Z,a,b,void 0,!this.j)}; g.k.cancel=function(){this.C&&(this.C=!1,this.publish("dragend",0,0,null));this.B&&(this.B=!1,this.publish("hoverend",0,0,null),gT(this),eT(this))}; g.k.Ux=function(a){gT(this);this.T(hT("move"),this.QV);this.T(hT("out"),this.tB);this.T("touchstart",this.LN);this.j&&this.T(hT("down"),this.KN);var b=a.target;a=new g.Ed(a.pageX,a.pageY);this.B=!0;this.publish("hoverstart",a.x,a.y,b);this.publish("hovermove",a.x,a.y,b)}; g.k.QV=function(a){var b=a.target;a=new g.Ed(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Fd(new g.Ed(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)}; g.k.tB=function(a){var b=new g.Ed(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.pe(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}gT(this);eT(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)}; g.k.W$=function(a){this.Ux(a);this.KN(a)}; g.k.KN=function(a){if(typeof a.button!=="number"||a.button===0){gT(this);this.D.T(iT(a.target),hT("move"),this.V$);this.D.T(iT(a.target),hT("up"),this.M5);var b=a.target;if(g.lc)this.T("dragstart",this.b8);else if(a.preventDefault(),(g.NO||Wl)&&b)a:{for(var c=b;c;){if(aca(c)||c.getAttribute("tabindex")==="-1"){c.focus();break a}c=c.parentElement}iT(b).activeElement.blur()}this.C=!0;a=new g.Ed(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}}; g.k.b8=function(a){a.preventDefault()}; g.k.V$=function(a){var b=a.target;b===iT(a.target)&&(b=null);a=new g.Ed(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}; g.k.M5=function(a){gT(this);this.C=!1;var b=ls(a),c=a.target;a=new g.Ed(a.pageX,a.pageY);b&&g.pe(this.target,b)?(this.T(hT("move"),this.QV),this.T(hT("out"),this.tB),this.T(hT("down"),this.KN),this.T("touchstart",this.LN),this.publish("dragend",a.x,a.y,c)):(eT(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))}; g.k.LN=function(a){var b=a.changedTouches[0];b&&(gT(this),this.Y||(this.T("touchmove",this.Pea),this.T("touchend",this.RV),this.T("touchcancel",this.RV),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.publish("hoverstart",b.pageX,b.pageY,a)),this.publish("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.publish("dragstart",b.pageX,b.pageY,a),this.publish("dragmove",b.pageX,b.pageY,a))))}; g.k.Pea=function(a){var b=tNa(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.publish("hovermove",b.pageX,b.pageY,a),this.j&&this.publish("dragmove",b.pageX,b.pageY,a))}; g.k.RV=function(a){var b=tNa(this,a);if(b){gT(this);eT(this);this.B=!1;var c=a.target;this.j&&(this.N||a.preventDefault(),this.C=!1,this.publish("dragend",b.pageX,b.pageY,c));this.publish("hoverend",b.pageX,b.pageY,c)}}; g.k.xa=function(){this.j&&(g.lc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");gT(this);g.Xw.prototype.xa.call(this)}; var uNa=!1;g.z(jT,g.U);jT.prototype.oi=function(){g.Vl(this.element,"display","none");this.J.logVisibility(this.j,!1)};g.z(lT,$R);lT.prototype.ra=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.G,this);this.C||g.Mo(this.delay)}; lT.prototype.Ga=function(){if(this.D){this.C=!0;this.Fa=this.api.getPlaybackRate();this.Ma=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;g.Vl(a.element,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Ka);this.api.hideControls();this.api.playVideo();this.N&&(this.N.IA=!0);this.qa&&(this.qa.EK=!0)}}; lT.prototype.K=function(a,b){if(!this.C){a=[a,b];var c=this.Z;c&&a&&c.length===2&&a.length===2?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b=0?this.j.playbackRate:1}catch(a){return 1}}; g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a}; g.k.Xt=function(){return this.j.loop}; g.k.setLoop=function(a){this.j.loop=a}; g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)}; g.k.isPaused=function(){return this.j.paused}; g.k.isSeeking=function(){return this.j.seeking}; g.k.isEnded=function(){return this.j.ended}; g.k.bK=function(){return this.j.muted}; g.k.pC=function(a){hE();this.j.muted=a}; g.k.mx=function(){return this.j.played||FE([],[])}; g.k.Fh=function(){try{var a=this.j.buffered}catch(b){}return a||FE([],[])}; g.k.vA=function(){return this.j.seekable||FE([],[])}; g.k.JI=function(){var a=this.j;return a.getStartDate?a.getStartDate():null}; g.k.getCurrentTime=function(){return this.j.currentTime}; g.k.setCurrentTime=function(a){this.j.currentTime=a}; g.k.getDuration=function(){return this.j.duration}; g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a}; g.k.pause=function(){this.j.pause()}; g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){}); return a}; g.k.ll=function(){return this.j.readyState}; g.k.cK=function(){return this.j.networkState}; g.k.Zh=function(){return this.j.error?this.j.error.code:null}; g.k.Yf=function(){return this.j.error?this.j.error.message:""}; g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}}; g.k.ri=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless}; g.k.yv=function(){return!!this.j.webkitShowPlaybackTargetPicker()}; g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():gE()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.k.au=function(){var a=this.j;return new g.Ed(a.offsetLeft,a.offsetTop)}; g.k.getSize=function(){return g.mm(this.j)}; g.k.setSize=function(a){g.fm(this.j,a)}; g.k.getVolume=function(){return this.j.volume}; g.k.setVolume=function(a){hE();this.j.volume=a}; g.k.tP=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)}; g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)}; g.k.removeAttribute=function(a){this.j.removeAttribute(a)}; g.k.hasAttribute=function(a){return this.j.hasAttribute(a)}; g.k.jE=aa(37);g.k.VH=aa(39);g.k.WH=aa(41);g.k.Nz=aa(43);g.k.SE=function(){return fs(this.j)}; g.k.Ct=function(a){g.To(this.j,a)}; g.k.uF=function(a){return g.Yl(this.j,a)}; g.k.RQ=function(){return g.pe(document.body,this.j)}; g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks}; g.k.xa=function(){for(var a=g.w(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);aF.prototype.xa.call(this)}; g.k.xT=function(a){this.j.disableRemotePlayback=a};rT.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a}; rT.prototype.forEach=function(a){for(var b=this.j+1;b25?5E3:500;this.delay.start(a)}; zT.prototype.N=function(){this.G?(this.position+=1,this.position>15&&(this.G=!1)):(--this.position,this.position<=0&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.z(CNa,$R);g.z(AT,g.O);AT.prototype.j=function(){var a=(0,g.T)()-this.startTime;a=a=0;a--)this.features[a].dispose();this.features.length=0;g.O.prototype.xa.call(this)};JT.prototype.MR=function(){this.B=(0,g.T)()}; JT.prototype.reset=function(){this.j=this.B=NaN}; JT.prototype.RR=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var c={startTime:this.j};a.K&&(c.cttAuthInfo={token:a.K,videoId:a.videoId});Mz("seek",c);g.Lz({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||Kz("pl_ss",this.B,"seek");Kz(b,(0,g.T)(),"seek")}this.reset()}};g.k=KT.prototype;g.k.reset=function(){Hz(this.timerName)}; g.k.tick=function(a,b){Kz(a,b,this.timerName)}; g.k.xg=function(a){return Oz(a,this.timerName)}; g.k.Ev=function(a){BF(a,void 0,this.timerName)}; g.k.infoGel=function(a){g.Lz(a,this.timerName)};g.z(MT,g.Xw);g.k=MT.prototype;g.k.Hl=function(a){return this.loop||!!a||this.index+1=0}; g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var b=0;b0)||BU(this,1,!0)}; g.k.SV=function(){this.K=!0;this.j.Oc(this.G);this.G=this.j.T(document,"mouseup",this.O5)}; g.k.O5=function(){this.K=!1;BU(this,8,!1);this.j.Oc(this.G);this.G=this.j.T(this.target,"mousedown",this.SV)}; g.k.TV=function(a){if(a=(a=a.changedTouches)&&a[0])this.Aa=a.identifier,this.j.Oc(this.Z),this.Z=this.j.T(this.target,"touchend",this.P5,void 0,!0),BU(this,1024,!0)}; g.k.P5=function(a){if(a=a.changedTouches)for(var b=0;b1280||f>720)if(e=c.hh("maxresdefault.jpg"))break;if(d>640||f>480)if(e=c.hh("maxresdefault.jpg"))break; if(d>320||f>180)if(e=c.hh("sddefault.jpg")||c.hh("hqdefault.jpg")||c.hh("mqdefault.jpg"))break;if(e=c.hh("default.jpg"))break}g.MO(b)&&(b=new Image,b.addEventListener("load",function(){Lta()}),b.src=e?e:"",this.api.Yh().tick("ftr")); this.G.style.backgroundImage=e?"url("+e+")":""};g.z(g.FU,g.U);g.FU.prototype.resize=function(){}; g.FU.prototype.B=function(a){var b=this;this.C=!1;KOa(this);var c=a.vP,d=this.api.U();c!=="GENERIC_WITHOUT_LINK"||d.K?c==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.Dd(IU(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Fl(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube?p=videoError",d&&(a=g.Hi(a,{hl:d})),this.Dd(IU(this,"HTML5_SPS_UMP_STATUS_REJECTED", a))):this.api.U().L("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(a=g.Hi(a,{hl:d})),this.Dd(IU(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Dd(g.GU(a.errorMessage)):this.Dd(IU(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.Hi(c, {hl:a})),this.Dd(IU(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.wc&&!d.D&&JOa(this,function(f){if(g.iS(f,b.api,!IO(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Hc("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});h.isFullscreen()&&h.toggleFullscreen()}})); if(this.C){var e=this.Ea("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),JOa(this,function(){b.api.logClick(e)}))}}; var IOa=/([^<>]+)<\/a>/;g.z(LOa,g.U);g.k=LOa.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.ib("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.iS(a,this.J,!0);this.J.logClick(this.element)}; g.k.onVideoDataChange=function(a,b){NOa(this,b);this.Fe&&OOa(this,this.Fe)}; g.k.Q5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&NOa(this,b);this.j&&OOa(this,a.state);this.Fe=a.state}; g.k.pd=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)}; g.k.Nb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.z(JU,g.U);JU.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.U.prototype.hide.call(this)}; JU.prototype.onStateChange=function(a){this.zd(a.state)}; JU.prototype.zd=function(a){if(g.Z(a,128))var b=!1;else{var c;b=((c=this.api.Vc())==null?0:c.yu)?!1:g.Z(a,16)||g.Z(a,1)?!0:!1}b?this.j.start():this.hide()}; JU.prototype.B=function(){this.message.style.display="block"};g.z(KU,g.uR);KU.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(POa(this),this.pd()):(this.j&&this.logClick(),this.Nb()))}; KU.prototype.Mk=function(a){this.api.isMutedByMutedAutoplay()&&g.fy(a,2)&&this.Nb()}; KU.prototype.onClick=function(){this.api.unMute();this.logClick()}; KU.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.LU,g.iE);g.k=g.LU.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.FK=a.getPlayerSize();this.Ec(b);this.Wq();this.kc();this.api.publish("basechromeinitialized",this);this.iQ()&&this.api.publish("standardControlsInitialized")}; g.k.onVideoDataChange=function(a,b){var c=this.ZF!==b.videoId;if(c||a==="newdata"){a=this.api;a.isFullscreen()||(this.FK=a.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.SP(d))&&this.Vq()}c&&(this.ZF=b.videoId,c=this.Kg,c.Fa=3E3,BU(c,512,!0),this.Wq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.A2=572)}; g.k.zba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.k.xC=function(){var a=this.api.vl()&&this.api.Hp(),b=this.api.QA();return this.bP||a||this.AQ||b}; g.k.Vq=function(){var a=!this.xC();g.Xo(this.api.getRootNode(),"ytp-menu-shown",!a);var b;((b=this.api.getVideoData(1))==null?0:g.SP(b))&&g.Xo(this.api.getRootNode(),"ytp-hide-controls",!a)}; g.k.iJ=function(a){try{if(!g.pe(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!aca(a);)a=a===this.api.getRootNode()?null:a.parentElement||null;return!!a}; g.k.zB=function(a){var b=this.api.getRootNode();g.Xo(b,"ytp-autohide",a);g.Xo(b,"ytp-autohide-active",!0);this.YW.start(a?250:100);a&&(this.SM=!1,g.Vo(b,"ytp-touch-mode"));this.cP=!a;this.api.xM(!a)}; g.k.LR=function(){var a=this.api.getRootNode();g.Xo(a,"ytp-autohide-active",!1)}; g.k.dca=function(){this.mU=!0}; g.k.cca=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.mU=!1,this.nU&&this.Oc(this.nU),this.rG===0&&MU(this,a)?(this.BQ(),this.BJ.start(),this.nU=this.T(this.api.qb(),"touchmove",this.dca,void 0,!0)):this.BJ.stop();TOa(this)&&MU(this,a)&&!this.api.U().Z&&ROa(this);var b=this.rU.Dk();if(!g.qO(this.api.U())&&nO&&UOa(this,a))b&&a.preventDefault();else if(this.SM=!0,g.To(this.api.getRootNode(),"ytp-touch-mode"),this.Kg.Hv(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b= this.api.getPlayerStateObject(),!(!this.api.Lh()||g.Z(b,2)&&g.hR(this.api)||g.Z(b,64))){b=Date.now()-this.XZ;this.rG+=1;if(b<=350){this.KE=!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=(this.rG-1)*10;d>0&&db*2&&d=650;this.Kg.resize();g.Xo(b,"ytp-fullscreen",this.api.isFullscreen());g.Xo(b,"ytp-large-width-mode",c);g.Xo(b,"ytp-small-mode",this.Pg());g.Xo(b,"ytp-tiny-mode",this.MK());g.Xo(b,"ytp-big-mode",this.Ih());this.yg&&this.yg.resize(a)}; g.k.Mk=function(a){this.Ec(a.state);this.Wq()}; g.k.rC=aa(5);g.k.TP=function(){var a=!!this.ZF&&!this.api.Ef()&&!this.BS,b=this.api.getPresentingPlayerType()===2,c=this.api.U();if(b){if(D8a&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=xU(this.api.Bb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.gC(b.player.U()):!1);return a}return a&&(c.An||this.api.isFullscreen()||c.Yk)}; g.k.Wq=function(){var a=this.TP();this.Bo!==a&&(this.Bo=a,g.Xo(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; g.k.Ec=function(a){var b=a.isCued()||this.api.po()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.oU&&this.Oc(this.oU),this.oU=this.T(this.api.qb(),"touchstart",this.cca,void 0,b));var c=this.Kg,d=a.isPlaying()&&!g.Z(a,32)||this.api.NF();BU(c,128,!d);c=this.Kg;d=this.api.getPresentingPlayerType()===3;BU(c,256,d);c=this.api.getRootNode();g.Z(a,2)?d=[P1.ENDED]:(d=[],g.Z(a,8)?d.push(P1.PLAYING):g.Z(a,4)&&d.push(P1.PAUSED),g.Z(a,1)&&!g.Z(a,32)&&d.push(P1.BUFFERING),g.Z(a, 32)&&d.push(P1.SEEKING),g.Z(a,64)&&d.push(P1.UNSTARTED));g.ac(this.fO,d)||(g.Wo(c,this.fO),this.fO=d,g.Uo(c,d));d=this.api.U();var e=g.Z(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f=h==="3"&&!g.Z(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:l8a(xU(this.api.Bb())))||this.api.QA()||g.qO(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Xo(c,"ytp-hide-controls",!f);g.Xo(c,"ytp-native-controls",d.controlsType==="3"&&!b&&!e&&!this.AQ);g.Z(a, 128)&&!g.qO(d)?(this.yg||(this.yg=new g.FU(this.api),g.P(this,this.yg),g.oR(this.api,this.yg.element,4)),this.yg.B(a.fh),this.yg.show()):this.yg&&(this.yg.dispose(),this.yg=null)}; g.k.Er=function(){return this.api.vl()&&this.api.Hp()?(this.api.oC(!1,!1),!0):this.api.Ef()?(g.iR(this.api,!0),!0):!1}; g.k.onMutedAutoplayChange=function(a){this.AQ=a;this.Vq()}; g.k.Ih=function(){return!1}; g.k.Pg=function(){return!this.Ih()&&(this.api.getPlayerSize().width=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,(e&65)==65&&(a.x=d.right)&&(e&=-2),(e&132)==132&&(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.Sl(0,0,0,0);d.left= a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.bm(this.element,new g.Ed(d.left,d.top));g.ps(this.D);this.D.T(document,"contextmenu",this.Kaa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.W5)}; g.k.Kaa=function(a){if(!a.defaultPrevented){var b=ls(a);g.pe(this.element,b)||this.Nb();this.J.U().disableNativeContextMenu&&a.preventDefault()}}; g.k.onFullscreenToggled=function(){this.Nb();qPa(this)}; g.k.W5=function(){this.Nb()};g.z(WU,g.U);WU.prototype.onClick=function(){var a=this,b,c,d,e;return g.J(function(f){if(f.j==1)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.G(f,tPa(a,e),2);f.B&&sPa(a);a.api.logClick(a.element);g.va(f)})}; WU.prototype.Ta=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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=rPa(this);g.Xo(this.element,"ytp-copylink-button-visible",this.visible); g.dx(this,this.visible);this.tooltip.Xh();this.api.logVisibility(this.element,this.visible&&this.Z)}; WU.prototype.Mc=function(a){g.U.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; WU.prototype.xa=function(){g.U.prototype.xa.call(this);g.Vo(this.element,"ytp-copylink-button-visible")};g.z(XU,g.U);XU.prototype.show=function(){g.U.prototype.show.call(this);g.Mo(this.B)}; XU.prototype.hide=function(){this.D.stop();this.C=0;g.Vo(this.element,"ytp-chapter-seek");g.Vo(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)}; XU.prototype.mH=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=a===-1?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Oo(this.B);this.D.start();this.element.setAttribute("data-side",a===-1?"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";a===1?(this.j.style.left="",this.j.style.right=e+"px"):a===-1&&(this.j.style.right="",this.j.style.left=e+"px");var h=f* 2.5;f=h/2;var l=this.Ea("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";a===1?(a=this.J.qb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):a===-1&&(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.Ea("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");uPa(this,this.G?this.C:d)};g.z(wPa,OS);g.k=wPa.prototype;g.k.Y5=function(a){this.Ka||(this.Ka=new WS(this.J),g.P(this,this.Ka));var b,c;if((b=this.yb)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.Ka.open(this.yb.menu.menuRenderer,a.target),a.preventDefault()}; g.k.Waa=function(){this.J.ib("innertubeCommand",this.Wc);this.J.logClick(this.infoButton.element)}; g.k.Ry=function(){return!!this.j}; g.k.DM=function(){return!!this.j}; g.k.uG=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.yc&&this.J.ib("innertubeCommand",this.yc),this.Rx(!1))}; g.k.Su=function(){this.Rx(!0);var a,b;((a=this.j)==null?0:(b=a.bannerData)==null?0:b.dismissedStatusKey)&&this.Ob.push(this.j.bannerData.dismissedStatusKey);this.cC()}; g.k.PV=function(){this.cC();aV(this)}; g.k.cea=function(a){var b=this,c;if(a.id!==((c=this.j)==null?void 0:c.identifier)){this.cC();c=g.w(this.Fa);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=(f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=((f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.dismissedStatusKey)||"";if(this.Ob.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.D=!0,this.J.setTrackingParams(this.badge.element, d.trackingParams));this.qa.show();NS(this);g.dx(this.Ga,!d.stayInApp);IPa(this);yPa(this);$U(this);this.yc=g.Q(d.onTapCommand,Aw);if(e=g.Q(d.menuOnTap,Aw))this.yb=g.Q(e,P$a);e=void 0;this.banner.update({thumbnail:(e=(d.thumbnailSources||[])[0])==null?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:BPa(this),priceDropReferencePrice:CPa(this),promotionText:APa(this),priceA11yText:DPa(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:EPa(this)}); l=h=f=e=void 0;((e=d)==null?0:(f=e.hiddenProductOptions)==null?0:f.showDropCountdown)&&((h=d)==null?0:(l=h.hiddenProductOptions)==null?0:l.dropTimestampMs)&&(this.Kb=new g.Lo(function(){HPa(b)},1E3),this.Ga.hide(),this.countdownTimer.show(),HPa(this)); this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&xPa(this)&&(this.Tb=new g.Lo(function(){zPa(b)},1E3),zPa(this))}}}}; g.k.cC=function(){this.j&&(this.j=void 0,this.Wl())}; g.k.onVideoDataChange=function(a,b){var c=this;a==="dataloaded"&&aV(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=b==null?void 0:(d=b.getPlayerResponse())==null?void 0:(e=d.videoDetails)==null?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.Q((h=b.getWatchNextResponse())==null?void 0:(l=h.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,N$a);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=b==null?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=b==null?void 0:b.trendingOfferEntityKey;var p;if(h=b==null?void 0:(p=b.dismissButton)==null?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=b==null?void 0:(q=b.dismissButton)== null?void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.hx(p));this.Wc=b==null?void 0:b.onClickCommand;this.Fa.length||(GPa(this,n),$U(this));var r;(r=this.Rc)==null||r.call(this);this.Rc=g.YP.subscribe(function(){GPa(c,n);$U(c)})}else{var t; (t=this.Rc)==null||t.call(this);this.cC()}}; g.k.xa=function(){aV(this);IPa(this);yPa(this);OS.prototype.xa.call(this)};g.z(NPa,g.U);NPa.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.z(OPa,g.uR);g.k=OPa.prototype;g.k.show=function(){g.uR.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);PPa(this,!0)}; g.k.hide=function(){g.uR.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);PPa(this,!1)}; g.k.getId=function(){return this.D}; g.k.Vp=function(){return this.itemData.length}; g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:((c=b.bk)==null?void 0:(d=c.title)==null?void 0:d.content)||"",body:((e=b.bk)==null?void 0:(f=e.bodyText)==null?void 0:f.content)||""});var h;a=((h=b.bk)==null?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.w(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if((l=b.bk)==null?0:l.ctaButtons)for(b=g.w(b.bk.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.Q(l.value, I$a))l=new NPa(this.J,l,this.j),l.ue&&(this.itemData.push(l),l.Ja(this.items))}}; g.k.xa=function(){this.hide();g.uR.prototype.xa.call(this)};g.z(SPa,g.U);g.k=SPa.prototype;g.k.onVideoDataChange=function(a,b){RPa(this,b);this.Fe&&UPa(this,this.Fe)}; g.k.b6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&RPa(this,b);UPa(this,a.state);this.Fe=a.state}; g.k.g0=function(a){(this.D=a)?this.hide():this.j&&this.show()}; g.k.a6=function(){this.B||this.pd();this.showControls=!0}; g.k.Z5=function(){this.B||this.Nb();this.showControls=!1}; g.k.pd=function(){var a;if((a=this.J)==null?0:a.L("embeds_web_enable_info_panel_sizing_fix")){var b;a=(b=this.J)==null?void 0:b.getPlayerSize();b=a.width<380;var c;a=a.height<(((c=this.J)==null?0:c.jd())?400:280);var d,e;if((((d=this.J)==null?0:d.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.Z(e.getPlayerStateObject(),1024)))&&b&&a)return}this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))}; g.k.Nb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))}; g.k.hea=function(){this.B=!1;this.showControls||this.Nb()};var Dbb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Dbb).reduce(function(a,b){a[Dbb[b]]=b;return a},{}); var Ebb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Ebb).reduce(function(a,b){a[Ebb[b]]=b;return a},{}); var Fbb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Fbb).reduce(function(a,b){a[Fbb[b]]=b;return a},{});var Gbb,Hbb;Gbb=[{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"}];Hbb=[{option:0,text:bV(0)},{option:.25,text:bV(.25)},{option:.5,text:bV(.5)},{option:.75,text:bV(.75)},{option:1,text:bV(1)}]; g.eV=[{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:Gbb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:bV(.5)},{option:-1,text:bV(.75)},{option:0,text:bV(1)},{option:1,text:bV(1.5)},{option:2, text:bV(2)},{option:3,text:bV(3)},{option:4,text:bV(4)}]},{option:"background",text:"Background color",options:Gbb},{option:"backgroundOpacity",text:"Background opacity",options:Hbb},{option:"windowColor",text:"Window color",options:Gbb},{option:"windowOpacity",text:"Window opacity",options:Hbb},{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:bV(.25)},{option:.5,text:bV(.5)},{option:.75,text:bV(.75)},{option:1,text:bV(1)}]}];var Ibb=[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.z($Pa,g.iE);g.k=$Pa.prototype; g.k.VY=function(a){a.repeat||(this.C.EK=!1);var b=!1,c=a.keyCode,d=ls(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.XQ(this.api.app)||Ibb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.kf&&!g.XQ(this.api.app)&&(e=!1);if(c===9)b=!0;else{if(d)switch(c){case 32:case 13:if(d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT")b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||m!=="option"&&m!=="button"&&m.indexOf("menuitem")!==0||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b= d.getAttribute("role")==="slider";break;case 38:case 40:m=d.getAttribute("role"),d=c===38?d.previousSibling:d.nextSibling,m==="slider"?b=!0:e&&(m==="option"?(d&&d.getAttribute("role")==="option"&&d.focus(),f=b=!0):m&&m.indexOf("menuitem")===0&&(d&&d.hasAttribute("role")&&d.getAttribute("role").indexOf("menuitem")===0&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);QU(this.le,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0); QU(this.le,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Lh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Lh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&dV(this,!0);(b||h)&&this.Kg.Hv();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.N&&(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.Hc("onKeyPress",a))}; g.k.WY=function(a){var b=a.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(b,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.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.EK)return b;(c=g.mR(this.api.Bb()))&&(c=c.Bv)&&c.Gb&&(c.TY(a),b=!0);switch(a){case 9:dV(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.D||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.U().kf){var l,m;a=(l=this.progressBar)== null?void 0:(m=l.B)==null?void 0:m.isEnabled;b=this.Vs(a)}}return b}; g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.EK=!1);var m=!1,n=this.api.U();if(n.kf&&!g.XQ(this.api.app))return m;var p=g.mR(this.api.Bb());if(p&&(p=p.Bv)&&p.Gb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.SY(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,"awesome".indexOf(this.B)===0?(m=!0,7===this.B.length&&qla(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m="awesome".indexOf(this.B)===0));if(!m&&(!g.XQ(this.api.app)|| Ibb.includes(a))){var q=this.api.getVideoData(),r,t;p=(r=this.progressBar)==null?void 0:(t=r.B)==null?void 0:t.isEnabled;r=q?q.Yk:[];t=wX?d:c;switch(a){case 80:b&&!n.Ra&&(PU(this.le,nsa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Ra&&(PU(this.le,ox(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Lh()&&(this.api.startSeekCsiAction(),this.j?YU(this.j,-1,10):PU(this.le,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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.Lh()&&(this.api.startSeekCsiAction(),this.j?YU(this.j,1,10):PU(this.le,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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.Lh()&&(this.api.startSeekCsiAction(),t?(t=XPa(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(vPa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?YU(this.j,-1,5):PU(this.le,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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.Lh()&&(this.api.startSeekCsiAction(),t?(t=WPa(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(vPa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(this.j!=null?YU(this.j,1,5):PU(this.le,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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(),QU(this.le,this.api.getVolume(),!1)):(this.api.mute(),QU(this.le,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Ra:this.Vs(p);break;case 75:m=this.Vs(p);break;case 190:b?!n.enableSpeedOptions||this.api.L("html5_lifa_ui_disablement")&&!aQa(this)||(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),WOa(this.le,!1),m=!0):this.api.Lh()&& (this.step(1),m=!0);break;case 188:b?!n.enableSpeedOptions||this.api.L("html5_lifa_ui_disablement")&&!aQa(this)||(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),WOa(this.le,!0),m=!0):this.api.Lh()&&(this.step(-1),m=!0);break;case 70:yMa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0); break;case 27:p?(this.progressBar.Zw(),m=!0):this.K()&&(m=!0)}if(n.controlsType!=="3")switch(a){case 67:g.uU(this.api.Bb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),XOa(this.le,!n||n&&!n.displayName),m=!0);break;case 79:fV(this,"textOpacity");break;case 87:fV(this,"windowOpacity");break;case 187:case 61:fV(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:fV(this,"fontSizeIncrement",!0,!0)}var u;b||c||d||(a>=48&&a<=57?u=a-48:a>=96&&a<=105&&(u=a-96));u!=null&&this.api.Lh()&& (this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(u/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Kg.Hv()}this.D||this.api.publish("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.Lh();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,a>0?77:78)}}; g.k.Vs=function(a){if(!this.api.U().Ra){var b;var c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;if(d){var e;b=((e=g.Q(d.miniplayer,V$a))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.ib("onExpandMiniplayer");a?this.progressBar.AP():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.le.LH(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.k.xa=function(){g.Oo(this.G);g.iE.prototype.xa.call(this)};g.z(g.gV,g.U);g.gV.prototype.Ms=aa(11);g.gV.prototype.Ta=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.Ai.isEmpty();a=g.qO(a)&&g.kR(this.J)&&g.Z(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Pg()&&!a&&c.width>=240&&!g.JQ(this.J.getVideoData())&&!b&&!this.j&&!this.J.jd();g.Xo(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Xh();this.J.logVisibility(this.element,this.visible&&this.Z)}; g.gV.prototype.Mc=function(a){g.U.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)}; g.gV.prototype.xa=function(){g.U.prototype.xa.call(this);g.Vo(this.element,"ytp-overflow-button-visible")};g.z(bQa,g.uR);g.k=bQa.prototype;g.k.c6=function(a){a=ls(a);g.pe(this.element,a)&&(g.pe(this.j,a)||g.pe(this.closeButton,a)||vR(this))}; g.k.Nb=function(){g.uR.prototype.Nb.call(this);this.J.Dm(this.element)}; g.k.show=function(){this.Gb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.uR.prototype.show.call(this);this.element.setAttribute("aria-modal","true");dQa(this,!0)}; g.k.hide=function(){g.uR.prototype.hide.call(this);this.element.removeAttribute("aria-modal");dQa(this,!1)}; g.k.onFullscreenToggled=function(a){!a&&this.Dk()&&vR(this)}; g.k.isEmpty=function(){return this.actionButtons.length===0}; g.k.focus=function(){for(var a=g.w(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Gb){b.focus();break}};g.z(eQa,g.U);eQa.prototype.onClick=function(a){g.iS(a,this.api)&&this.api.playVideoAt(this.index)};g.z(fQa,g.uR);g.k=fQa.prototype;g.k.show=function(){g.uR.prototype.show.call(this);this.j.T(this.api,"videodatachange",this.NN);this.j.T(this.api,"onPlaylistUpdate",this.NN);this.NN()}; g.k.hide=function(){g.uR.prototype.hide.call(this);g.ps(this.j);this.updatePlaylist(null)}; g.k.NN=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Ea("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Oc(this.C),this.C=null))}; g.k.qM=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.YC(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[a.index];else{c=g.w(this.playlistData);for(d=c.next();!d.done;d=c.next())d.value.dispose(); c=a.length;this.playlistData=[];for(d=0;d=this.B&&!a.C&&!b.isAd()&&!this.api.jd()}else a=!1;this.visible=a;g.dx(this,this.visible);g.Xo(this.element,"ytp-search-button-visible",this.visible);g.Xo(this.element,"ytp-show-search-title",!this.api.Pg());this.api.logVisibility(this.element,this.visible&&this.Z)}; kV.prototype.Mc=function(a){g.U.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(g.lV,g.U);g.k=g.lV.prototype;g.k.Ns=aa(8);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){nQa(a,f)})}catch(f){f instanceof Error&&nQa(this,f)}else this.Oe.Er(),vR(this.B,this.element,!1); this.api.logClick(this.element)}; g.k.Ta=function(){var a=this.api.U(),b=this.api.jd();g.Xo(this.element,"ytp-show-share-title",g.qO(a)&&!b);this.Oe.Ih()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Vl(this.element,"right",a+"px")):b&&g.Vl(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",Fc:!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=mQa(this);g.Xo(this.element,"ytp-share-button-visible",this.visible);g.dx(this,this.visible);this.tooltip.Xh();this.api.logVisibility(this.element,mQa(this)&&this.Z)}; g.k.Mc=function(a){g.U.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; g.k.xa=function(){g.U.prototype.xa.call(this);g.Vo(this.element,"ytp-share-button-visible")};g.z(pQa,g.uR);g.k=pQa.prototype;g.k.g6=function(a){a=ls(a);g.pe(this.G,a)||g.pe(this.closeButton,a)||vR(this)}; g.k.Nb=function(){g.uR.prototype.Nb.call(this);this.tooltip.Dm(this.element);this.api.logVisibility(this.j,!1);for(var a=g.w(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.Gb;g.uR.prototype.show.call(this);this.Ta();a||this.api.ib("onSharePanelOpened")}; g.k.E$=function(){this.Gb&&this.Ta()}; g.k.Ta=function(){var a=this;g.To(this.element,"ytp-share-panel-loading");g.Vo(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&Rz(this.api.Jm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.La()||(g.Vo(a.element,"ytp-share-panel-loading"),rQa(a,d))}); b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.YC("Share link $URL",{URL:b}));lS(this.j);this.api.logVisibility(this.j,!0)}; g.k.onFullscreenToggled=function(a){!a&&this.Dk()&&vR(this)}; g.k.focus=function(){this.j.focus()}; g.k.xa=function(){g.uR.prototype.xa.call(this);qQa(this)};g.z(uQa,OS);g.k=uQa.prototype;g.k.xa=function(){zQa(this);OS.prototype.xa.call(this)}; g.k.uG=function(a){a.target!==this.dismissButton.element&&(this.Rx(!1),this.J.ib("innertubeCommand",this.onClickCommand))}; g.k.Su=function(){this.Wa=!0;this.Rx(!0);this.Wl()}; g.k.Bba=function(a){this.N=a;this.Wl()}; g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Wa=!1,this.Aa=!0,this.Y=this.ra=!1,zQa(this),yQa(this,!1),this.B=this.j=!1,nV(this),vQa(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(b==null?0:(c=b.getPlayerResponse())==null?0:(d=c.videoDetails)==null?0:d.isLiveContent)this.Jf(!1);else{var e,f,h;b=g.Q((e=b.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer, N$a);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=b==null?void 0:b.featuredProductsEntityKey)){f=g.YP.getState().entities;var l;if((l=oK(f,"featuredProductsEntity",e))==null?0:l.productsData){this.Jf(!1);return}}this.enabled=!0;if(!this.D){var m;l=(m=b.badgeInteractionLogging)==null?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!((n=b.dismissButton)==null||!n.trackingParams)){var p; this.J.setTrackingParams(this.dismissButton.element,((p=b.dismissButton)==null?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,yQa(this,!0),vQa(this),m=xQa(this,m),n=[],m.length>0&&n.push(m[0]),m.length>1&&(p=new g.U({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.P(this,p),n.push(p),n.push.apply(n,g.x(m.slice(1)))),this.K=new g.U({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.P(this,this.K),this.Ma.element.append(this.K.element));this.text=g.hx(b.text); var q;if(m=(q=b.dismissButton)==null?void 0:q.a11yLabel)this.Va=g.hx(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.mf()}fNa(this);NS(this);this.Wl()}}; g.k.Ry=function(){return!this.N&&this.enabled&&!this.Wa&&!this.J.Pg()&&!this.Ab&&(this.Y||this.Aa)}; g.k.wL=function(a){OS.prototype.wL.call(this,a);if(this.j||this.B)this.timing&&mV(this.timing.preview)&&(this.j=!1,nV(this),this.B=!1,nV(this),this.J.sf("shopping_overlay_preview_collapsed"),this.J.sf("shopping_overlay_preview_expanded"),a=oV(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),mV(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.sf("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.J.mf([a])), this.ra=!0,NS(this);nV(this)}; g.k.Jf=function(a){(this.Y=a)?(MS(this),NS(this,!1)):(zQa(this),this.Ra.start());this.Wl()}; g.k.mf=function(a){var b=this.timing;a=(a===void 0?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;mV(d)&&(sQa(d,a),c.push(oV(d.startSec,d.endSec,"shopping_overlay_visible")));mV(e)&&(sQa(e,a),d=e.startSec+1,c.push(oV(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(oV(d,e.endSec,"shopping_overlay_preview_expanded")));mV(b)&&(sQa(b,a),c.push(oV(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.mf(c)};g.z(CQa,g.U); CQa.prototype.Ta=function(){var a=this.api.U();g.dx(this,g.qO(a)&&this.api.jd());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Gb);var b=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Ab&&!!b.profilePicture:g.qO(a)&&(c=!!b.videoId&&!!b.Ab&&!!b.profilePicture&&!g.JQ(b)&&!a.C&&!(a.Z&&this.api.getPlayerSize().width<200));var d=b.profilePicture;a=g.qO(a)?b.expandedTitle:b.author;d=d===void 0?"":d;a=a=== void 0?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.updateValue("channelLogoLabel",g.YC("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.To(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Vo(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.logVisibility(this.channelName,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Xl);this.updateValue("expandedTitle",b.expandedTitle)};g.z(pV,g.uR);pV.prototype.show=function(){g.uR.prototype.show.call(this);this.j.start()}; pV.prototype.hide=function(){g.uR.prototype.hide.call(this);this.j.stop()}; pV.prototype.mu=function(a,b){a==="dataloaded"&&((this.Cj=b.Cj,this.Rf=b.Rf,isNaN(this.Cj)||isNaN(this.Rf))?this.C&&(this.J.sf("intro"),this.J.removeEventListener(g.NC("intro"),this.K),this.J.removeEventListener(g.OC("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.NC("intro"),this.K),this.J.addEventListener(g.OC("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.LC(this.Cj,this.Rf,{priority:9,namespace:"intro"}), this.J.mf([a]),this.C=!0))};g.z(qV,g.U);qV.prototype.onClick=function(){this.J.yv()}; qV.prototype.Ta=function(){var a=!0;g.qO(this.J.U())&&(a=a&&this.J.qb().getPlayerSize().width>=480);g.dx(this,a);this.updateValue("icon",this.J.ri()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!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",Fc:!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.z(EQa,g.U);EQa.prototype.xa=function(){this.j=null;g.U.prototype.xa.call(this)};g.z(rV,g.U);rV.prototype.onClick=function(){this.J.ib("innertubeCommand",this.B)}; rV.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()}; rV.prototype.K=function(){this.j.disabled=this.B==null;g.Xo(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Tc()};g.z(sV,rV);sV.prototype.onClickCommand=function(a){g.Q(a,XP)&&this.Tc()}; sV.prototype.updateVideoData=function(a,b){var c,d,e;a=g.Q((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,mP);var f;this.B=(f=g.Q(a==null?void 0:a.playerBarActionButton,g.WH))==null?void 0:f.command;rV.prototype.K.call(this)}; sV.prototype.Tc=function(){var a="",b=this.D.j,c,d=((c=this.J.getLoopRange())==null?void 0:c.type)==="clips";if(b.length>1&&!d){a=this.J.getProgressState().current*1E3;c=cV(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.ib("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;rV.prototype.N.call(this,a)};g.z(tV,g.U);tV.prototype.G=function(a){g.Z(a.state,32)?HQa(this,this.api.Ak()):this.Gb&&(g.Z(a.state,16)||g.Z(a.state,1))||this.j.hide()}; tV.prototype.Dg=function(){var a=this.api.getPlayerStateObject();(g.Z(a,32)||g.Z(a,16))&&IQa(this)}; tV.prototype.K=function(){this.C=NaN;IQa(this)}; tV.prototype.hide=function(){this.B&&HQa(this,null);g.U.prototype.hide.call(this)};g.z(JQa,g.U);g.k=JQa.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Ab||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.zF(b)})}catch(b){this.zF(b)}}else vR(this.message,this.element,!0)}; g.k.zF=function(a){String(a).includes("fullscreen error")?g.yw(a):g.xw(a);this.XR()}; g.k.XR=function(){this.disable();this.message.pd(this.element,!0)}; g.k.ly=function(){es()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; g.k.x7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=window.screen.width*.9,b=window.screen.height*.9,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.XR()}}; g.k.disable=function(){var a=this;if(!this.message){var b=(bs(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"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.uR(this.J,{I:"div",Na:["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},va:b[2]},b[4]]},100,!0);this.message.hide();g.P(this,this.message);this.message.subscribe("show",function(c){a.Oe.PE(a.message,c)}); g.oR(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.Ta=function(){var a=yMa(this.J),b=this.J.U().Z&&this.J.getPlayerSize().width<250;g.dx(this,a&&!b);this.J.logVisibility(this.element,this.Gb)}; g.k.jn=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",Fc:!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",Fc:!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",Fc:!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",Fc:!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.fR(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.yw(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",Fc:!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",Fc:!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",Fc:!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",Fc:!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.fR(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.Oe.Se().Xh()}; g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.U.prototype.xa.call(this)};g.z(uV,g.U);uV.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=this.j>0?1:-1,b=Math.abs(this.j),c=this.J.Ki().Uw;c&&YU(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],this.j<0&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.x(a)),g.Mo(this.B))};g.z(vV,rV);vV.prototype.onClickCommand=function(a){g.Q(a,L$a)&&this.Tc()}; vV.prototype.updateVideoData=function(){var a,b;this.B=(a=LQa(this))==null?void 0:(b=a.onTap)==null?void 0:b.innertubeCommand;rV.prototype.K.call(this)}; vV.prototype.Tc=function(){var a="",b=this.D.K,c,d=(c=LQa(this))==null?void 0:c.headerTitle;c=d?g.hx(d):"";var e;d=((e=this.J.getLoopRange())==null?void 0:e.type)==="clips";b.length>1&&!d&&(a=this.J.getProgressState().current*1E3,e=VPa(b,a),a=e!=null?b[e].title:c,e!=null&&e!==this.currentIndex&&(this.J.ib("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));rV.prototype.N.call(this,a)};g.z(wV,g.U);wV.prototype.onClick=function(){this.J.ib("onCollapseMiniplayer");this.J.logClick(this.element)}; wV.prototype.Ta=function(){this.visible=!this.J.isFullscreen();g.dx(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)}; wV.prototype.Mc=function(a){g.U.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.z(MQa,g.U);g.k=MQa.prototype;g.k.WV=function(a){this.visible=a.width>=300||this.Ga;g.dx(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)}; g.k.mba=function(){this.J.U().Va?this.J.isMuted()?this.J.unMute():this.J.mute():vR(this.message,this.element,!0);this.J.logClick(this.element)}; g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=d===0?1:a>50?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?PQa(this,a):BT(this.Fa,function(l){PQa(c,f+(c.G-f)*l)},250); this.G=a}d=d===0?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?QQa(this,d):BT(this.qa,function(l){QQa(c,h+(c.D-h)*l)},250); this.D=d}e.Va&&(e=g.fR(this.J,"Mute","m"),d=g.fR(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.Xh())}; g.k.Mc=function(a){g.U.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)}; var NQa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],OQa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.z(g.xV,g.U);g.xV.prototype.onStateChange=function(a){this.zd(a.state)}; g.xV.prototype.zd=function(a){var b=g.qQ(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.Z(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.fR(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.fR(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}a=== 3?this.update({title:b,icon:RQa(a)}):(this.update({title:b}),(b=RQa(a))&&this.j&&this.j!==3?GNa(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Xh();this.j=a}}; g.xV.prototype.onVideoDataChange=function(){g.Xo(this.element,"ytp-play-button-playlist",g.kR(this.J))}; g.xV.prototype.Vs=function(a){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var b={},c;if((c=this.J.getVideoData())==null?0:c.K)b.cttAuthInfo={token:this.J.getVideoData().K,videoId:this.J.getVideoData().videoId};Mz("direct_playback",b);this.J.Yh().timerName="direct_playback"}else this.j===3&<(this.J.Yh());this.J.playVideo()}this.J.isMinimized()&&(a==null?void 0:a.type)=== "click"&&this.element.blur()};g.z(g.yV,g.U);g.k=g.yV.prototype;g.k.onVideoDataChange=function(){TQa(this);this.D&&(this.Oc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.J,"progresssync",this.i6);this.C=UQa(this);SQa(this);this.ON(this.J.qb().getPlayerSize())}; g.k.ON=function(a){a=a===void 0?this.J.qb().getPlayerSize():a;var b,c=((b=this.J.getLoopRange())==null?void 0:b.type)==="clips";a=(g.kR(this.J)||this.j&&g.pR(this.J)&&!this.J.L("web_hide_next_button")||VQa(this))&&!c&&(this.j||a.width>=400);g.dx(this,a);this.J.logVisibility(this.element,a)}; g.k.onClick=function(a){this.J.logClick(this.element);var b=!0;this.K?b=g.iS(a,this.J):a.preventDefault();b&&(this.j&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.j?(LT(this.J.Yh()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(LT(this.J.Yh()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))}; g.k.i6=function(){var a=UQa(this);a!==this.C&&(this.C=a,SQa(this))}; g.k.xa=function(){this.B&&(this.B(),this.B=null);TQa(this);g.U.prototype.xa.call(this)};g.z(XQa,g.U);g.k=XQa.prototype;g.k.k6=function(a){this.QN(a.pageX);this.PN(a.pageX+a.deltaX);YQa(this)}; g.k.QN=function(a){this.qa=a-this.Ka}; g.k.PN=function(a){a-=this.Ka;!isNaN(this.qa)&&this.thumbnails.length>0&&(this.Y=a-this.qa,this.thumbnails.length>0&&this.Y!==0&&(this.C=this.N+this.Y,a=cRa(this,this.C),this.C<=this.j/2&&this.C>=bRa(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Vl(this.Aa,"transform","translateX("+(this.C-this.j/2)+"px)"),WQa(this,a)):this.C=this.N))}; g.k.j6=function(){this.ra&&(this.ra.IA=!0);var a=(0,g.T)()-this.Va<300;if(Math.abs(this.Y)<5&&!a){this.Va=(0,g.T)();a=this.qa+this.Y;var b=this.j/2-a;this.QN(a);this.PN(a+b);YQa(this);this.api.logClick(this.G)}YQa(this)}; g.k.EB=function(){zV(this,this.api.getCurrentTime())}; g.k.play=function(a){this.api.seekTo(cRa(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.kc=function(a,b){this.Ka=a;this.j=b;zV(this,this.api.getCurrentTime())}; g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ra=this.api.getCurrentTime(),WQa(this,this.Ra),g.Xo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ma=this.T(this.element,"wheel",this.k6),this.logVisibility(this.isEnabled))}; g.k.disable=function(){this.isEnabled=!1;this.hide();g.Xo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ma&&this.Oc(this.Ma);this.logVisibility(this.isEnabled)}; g.k.reset=function(){this.disable();this.D=[];this.Ga=!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;(a=this.B.pop())==null||a.dispose()}g.U.prototype.xa.call(this)}; g.z(ZQa,g.U);g.z($Qa,g.U);g.z(dRa,g.U);g.z(AV,g.U);AV.prototype.Ib=function(a){return a==="PLAY_PROGRESS"?this.K:a==="LOAD_PROGRESS"?this.G:a==="LIVE_BUFFER"?this.D:this.B};gRa.prototype.update=function(a,b,c,d){c=c===void 0?0:c;this.width=b;this.D=c;this.j=b-c-(d===void 0?0:d);this.position=g.Bd(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.z(hRa,g.U);g.z(g.DV,g.ex);g.k=g.DV.prototype; g.k.y3=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.sf("timedMarkerCueRange");kRa(this);for(var c=g.w(b.kf),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=this.Ka[d])==null?void 0:e.markerType;e=void 0;var h=(e=this.Ka[d])==null?void 0:e.markers;if(!h)break;if(f==="MARKER_TYPE_TIMESTAMPS"){a=g.w(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new hRa;h=void 0;f.title=((h=e.title)==null?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j= Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=(l=(h=e.onActive)==null?void 0:h.innertubeCommand)!=null?l:void 0;qRa(this,f)}rRa(this,this.K);a=this.K;f=this.Ae;e=[];h=null;for(l=0;lm&&(h.end=m);m=YPa(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.mf(e);this.Qf=this.Ka[d];a=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.Ka[d];p=n=e=m=l=h=void 0;if(d&& d.markers){f=(e=(p=d.markersMetadata)==null?void 0:(n=p.heatmapMetadata)==null?void 0:n.minHeightDp)!=null?e:0;e=(h=(m=d.markersMetadata)==null?void 0:(l=m.heatmapMetadata)==null?void 0:l.maxHeightDp)!=null?h:60;h=this.j.length;l=null;for(m=0;m=p&&u<=q&&n.push(t)}e>0&&(this.ra.style.height= e+"px");p=this.G[m];q=n;t=f;var y=e,A=m===0;A=A===void 0?!1:A;eRa(p,y);r=q;u=p.j;A=A===void 0?!1:A;var D=1E3/r.length,F=[];F.push({x:0,y:100});for(var H=0;H0&&(l=n[n.length-1])}g.EV(this)}e= void 0;f=[];if(d=(e=d.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(d=g.w(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:(h=e.visibleTimeRangeStartMillis)!=null?h:-1,visibleTimeRangeEndMillis:(l=e.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(m=e.decorationTimeMillis)!=null?m:NaN,label:e.label?g.hx(e.label):""});d=f;this.heatMarkersDecorations=d}}b.eX=this.K;g.Xo(this.element,"ytp-timed-markers-enabled",a);return a}; g.k.kc=function(){g.EV(this);HV(this);rRa(this,this.K);if(this.B){var a=g.dm(this.element).x||0;this.B.kc(a,this.N)}}; g.k.onClickCommand=function(a){if(a=g.Q(a,XP)){var b=a.key;a.isVisible&&b&&vRa(this,b)}}; g.k.Aca=function(a){this.api.ib("innertubeCommand",this.Ae[a.id])}; g.k.Tc=function(){HV(this);var a=this.api.getCurrentTime();(athis.clipEnd)&&this.kM()}; g.k.l6=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.mu=function(a,b){this.updateVideoData(b,a==="newdata")}; g.k.E9=function(){this.mu("newdata",this.api.getVideoData())}; g.k.updateVideoData=function(a,b){b=b===void 0?!1:b;var c=!!a&&a.ue();c&&(IQ(a)||BRa(this)?this.kf=!1:this.kf=a.allowLiveDvr,g.Xo(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!IQ(a))));MRa(this,this.api.Lh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;LV(this);for(IV(this,this.qa,this.fb);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.yb={};var d;(d=this.B)==null||d.reset();QV(this);g.Xo(this.api.getRootNode(),"ytp-fine-scrubbing-exp", CV(this))}else this.kM();this.oi()}if(a){var e;d=((e=this.Hb)==null?void 0:e.type)==="clips";if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.nP(e);c=mRa(e);var f;e=b!=null||c!=null&&c.length>0||((f=e.Bw)==null?void 0:f.length)>0}if(e&&!d){f=this.api.getVideoData();d=g.nP(f);e=!1;if(d==null?0:d.markersMap){e=this.api.getVideoData();var h;e.nw=((h=d.visibleOnLoad)==null?void 0:h.key)||e.nw;h=g.w(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.yb[d.key]=d.value, d.value.onChapterRepeat&&(e.x4=d.value.onChapterRepeat));e.nw!=null&&vRa(this,e.nw);e=!0}var l;if(((l=f.Bw)==null?void 0:l.length)>0){l=g.YP.getState().entities;h=g.w(f.Bw);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=(c=oK(l,"macroMarkersListEntity",d))==null?void 0:c.markersList;var m=c=void 0;if(((c=b)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((m=b)==null?void 0:m.markerType)==="MARKER_TYPE_HEATMAP")this.Ka[d]=b}e=this.y3()||e}!e&&(l=mRa(f))&&(oRa(this,l),f.Yk=this.j,nRa(this)); CRa(this,null);a.QU&&this.G.length===0&&(a=a.QU,l=a.key,a.isVisible&&l&&vRa(this,l))}else iRa(this),kRa(this)}HV(this)}; g.k.F9=function(a){this.Y&&!g.Z(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var b;((b=this.B)==null?0:b.isEnabled)&&g.Z(a.state,8)&&this.api.pauseVideo()}; g.k.XV=function(a){var b=!!this.Hb!==!!a,c=this.Hb;this.Hb=a;CRa(this,c);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",jsa()),this.updateValue("clipendicon",jsa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",bsa()),this.updateValue("clipendicon",asa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(), !0),g.EV(this)),LV(this));IV(this,this.qa,this.fb)}; g.k.Eba=function(a,b,c){var d=g.dm(this.element),e=GV(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=uy(this.C,Number(c.getAttribute("data-position")),0)*e+g.dm(this.progressBar).x);this.Xa.x=a-d.x;this.Xa.y=b-d.y;a=GV(this);c=KV(this,a);b=0;var m;if((m=this.api.getVideoData())==null?0:IQ(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=uy(this.C,m)*GV(this).j),b=this.C.B; BRa(this)&&(b=this.C.B);m=f||g.oy(this.kf?c-this.C.j:c-b);b=a.position+this.Tf;c-=this.api.Dc();var n;if((n=this.B)==null||!n.isEnabled)if(this.api.Ak()){if(this.j.length>1){n=JV(this,this.Xa.x,!0);if(!this.Hb)for(d=0;d1)for(d=0;d0)for(n=this.Xa.x,d=g.w(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=FV(this,e.timeRangeStartMillis/ (this.C.j*1E3),GV(this)),g.Xo(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.Qf?(n=VPa(this.K,c*1E3),n=n!=null?this.K[n].title:""):(n=cV(this.j,c*1E3),n=this.j[n].title):(n=cV(this.j,c*1E3),n=this.j[n].title);n||(l+=16*d);this.tooltip.scale===.6&&(this.api.L("web_cairo_modern_miniplayer")?(l=this.api.qb().getPlayerSize().height-225,l=n?l+110:l+110+16):l=n?110:126);d=cV(this.j,c*1E3);this.Wa=DRa(this,c,d)?d:DRa(this, c,d+1)?d+1:-1;g.Xo(this.api.getRootNode(),"ytp-progress-bar-snap",this.Wa!==-1&&this.j.length>1);d=!1;e=g.w(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=c*1E3;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.oy(h.decorationTimeMillis/1E3),d=!0)}this.Fd!==d&&(this.Fd=d,this.api.logVisibility(this.Ed,this.Fd));g.Xo(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=this.tooltip.scale*320;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].ue&&(l-=14*(this.D?2:1),this.Ga||(this.Ga=!0,this.api.logVisibility(this.ra,this.Ga)));var q;if(CV(this)&&(((q=this.B)==null?0:q.isEnabled)||this.Va>0)){var r;l-=((r=this.B)==null?0:r.isEnabled)?NV(this):this.Va}q=void 0;CV(this)&&(q="Pull up for precise seeking",this.Fa||(this.Fa=!0,this.api.logVisibility(this.Zd,this.Fa)));this.tooltip.HM(b,c,m,!!f,l,n,d,q)}else this.tooltip.HM(b, c,m,!!f,l);g.To(this.api.getRootNode(),"ytp-progress-bar-hover");ARa(this)}; g.k.Dba=function(){this.oi();g.Vo(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.logVisibility(this.ra,this.Ga));this.Fa&&(this.Fa=!1,this.api.logVisibility(this.Zd,this.Fa))}; g.k.Cba=function(a,b){CV(this)&&this.B&&(this.B.Ga?zV(this.B,this.api.getCurrentTime()):aRa(this.B),this.B.show(),g.Xo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Je&&(this.Je.dispose(),this.Je=null);this.Uf=b;this.j.length>1&&this.Wa!==-1?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(KV(this,GV(this)),!1,void 0,void 0,7);g.To(this.element,"ytp-drag");(this.lf=this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.k.Fba=function(){if(CV(this)&&this.B){var a=NV(this);this.Va>=a*.5?(this.B.enable(),zV(this.B,this.api.getCurrentTime()),LRa(this,a)):QV(this)}if(g.Z(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var b;if((b=this.B)==null?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.Wa!==-1)this.api.seekTo(this.j[this.Wa].startTime/1E3,void 0,void 0,void 0,7);else{a=KV(this,GV(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.w(this.heatMarkersDecorations); for(var c=b.next();!c.done;c=b.next())c=c.value,a*1E3>=c.visibleTimeRangeStartMillis&&a*1E3<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Ed)}g.Vo(this.element,"ytp-drag");this.lf&&!g.Z(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.k.Gba=function(a,b){a=GV(this);a=KV(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;CV(this)&&((c=this.B)==null?0:c.Ga)&&(zV(this.B,a),this.B.isEnabled||(this.Va=g.Bd(this.Uf-b-10,0,NV(this)),LRa(this,this.Va)))}; g.k.oi=function(){this.tooltip.CQ()}; g.k.d0=function(){this.Hb||(this.updateValue("clipstarticon",$ra()),this.updateValue("clipendicon",$ra()),g.To(this.element,"ytp-clip-hover"))}; g.k.b0=function(){this.Hb||(this.updateValue("clipstarticon",bsa()),this.updateValue("clipendicon",asa()),g.Vo(this.element,"ytp-clip-hover"))}; g.k.kM=function(){this.clipStart=0;this.clipEnd=Infinity;LV(this);IV(this,this.qa,this.fb)}; g.k.ifa=function(a){a=g.w(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.he("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ma[c]=b;this.Ob[c]=d;g.Ro(d,b.style);ERa(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else KRa(this,b)}; g.k.xda=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())KRa(this,b.value)}; g.k.Zw=function(a){this.B&&(this.B.onExit(a!=null),QV(this))}; g.k.AP=function(a){this.B&&(this.B.play(a!=null),QV(this))}; g.k.jfa=function(){MRa(this,this.api.Lh())}; g.k.xa=function(){MRa(this,!1);g.ex.prototype.xa.call(this)};g.z(RV,g.U);RV.prototype.isActive=function(){return!!this.J.getOption("remote","casting")}; RV.prototype.Ta=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=this.J.getOption("remote","receivers").length>1);g.dx(this,a&&this.J.qb().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.Gb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.Zra())}g.Xo(this.element,"ytp-remote-button-active",this.isActive())}}; RV.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Eb,b=this.element;if(a.Dk())a.Nb();else{a.initialize();a:{var c=g.w(a.Pe.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.priority===1){c=d;break a}c=null}c&&(c.open(),a.pd(b));a.pd(b)}}this.J.logClick(this.element)};g.z(SV,g.U);SV.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.K?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.dx(this,a);this.J.logVisibility(this.element,a)}; SV.prototype.C=function(){if(this.Eb.Gb)this.Eb.Nb();else{var a=g.uU(this.J.Bb());a&&!a.loaded&&(a.Wh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Eb.pd(this.element)}}; SV.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=b!==2&&b!==3,d=g.nR(this.J),e=c&&!!g.mR(this.J.Bb());b=e&&d.displayMode===1;d=e&&d.displayMode===2;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.Xo(this.element,"ytp-hdr-quality-badge",a);g.Xo(this.element,"ytp-hd-quality-badge",!a&&(c==="hd1080"||c==="hd1440"));g.Xo(this.element,"ytp-4k-quality-badge",!a&&c==="hd2160");g.Xo(this.element,"ytp-5k-quality-badge",!a&&c==="hd2880");g.Xo(this.element,"ytp-8k-quality-badge", !a&&c==="highres");g.Xo(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Xo(this.element,"ytp-3d-badge",!a&&e&&d)};g.z(TV,gS);TV.prototype.isLoaded=function(){var a=g.AU(this.J.Bb());return a!==void 0&&a.loaded}; TV.prototype.Ta=function(){g.AU(this.J.Bb())!==void 0&&this.J.getPresentingPlayerType()!==3?this.j||(this.Eb.Uc(this),this.j=!0):this.j&&(this.Eb.rh(this),this.j=!1);hS(this,this.isLoaded())}; TV.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)}; TV.prototype.xa=function(){this.j&&this.Eb.rh(this);gS.prototype.xa.call(this)};g.z(UV,g.aT);UV.prototype.Ta=function(){var a=this.J.getAvailableAudioTracks();a.length>1?(g.bT(this,g.nl(a,this.j)),this.tracks=g.dc(a,this.j,this),this.countLabel.Dd(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Ui(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)}; UV.prototype.Ig=function(a){g.aT.prototype.Ig.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Eb.ij()}; UV.prototype.j=function(a){return a.toString()};g.z(VV,gS); VV.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3&&g.pR(this.J))this.j||(this.Eb.Uc(this),this.j=!0,this.C.push(this.T(this.J,"videodatachange",this.B)),this.C.push(this.T(this.J,"videoplayerreset",this.B)),this.C.push(this.T(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j){this.Eb.rh(this);this.j=!1;a=g.w(this.C);for(var b=a.next();!b.done;b= a.next())this.Oc(b.value)}}; VV.prototype.D=function(a){hS(this,a!==1)}; VV.prototype.onSelect=function(a){this.J.oM(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))}; VV.prototype.xa=function(){this.j&&this.Eb.rh(this);gS.prototype.xa.call(this)};g.z(ORa,g.xR);ORa.prototype.onClick=function(a){a.preventDefault();var b,c;(b=g.WQ(this.J))==null||(c=b.Mm())==null||c.Nb();var d,e;(d=g.WQ(this.J))==null||(e=d.kY())==null||e.pd(a.target)};g.z(PRa,g.aT);g.k=PRa.prototype; g.k.zD=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3){this.Aa=this.J.Vt();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.RQ(this.J,"getAvailableQualityData",[]);b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);a[a.length-1]==="auto"&&b.push("auto");this.Fa=new Set(a)}else if(this.G){c=g.RQ(this.J,"getAvailableQualityData",[]);b=[];c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]= d,d.quality&&b.push(d.quality);a[a.length-1]==="auto"&&b.push("auto")}else b=a;g.kMa(this.J)&&this.J.sx()&&b.unshift("missing-qualities");lMa(this.J)&&b.unshift("inline-survey");g.bT(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Kh();c=!g.KO(this.J.U())||!(a===void 0?0:a)||!(c===void 0||c);a=this.B;c=c===void 0?!1:c;c=c===void 0?!1:c;a.eZ&&(a=a.Ea("ytp-panel-footer"),g.Xo(a,"ytp-panel-hide-footer",c));if(b.length){this.YV();this.enable(!0);return}}this.enable(!1)}; g.k.YV=function(){if(this.j){var a=this.J.getPreferredQuality();this.Fa.has(a)&&(this.N=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),a==="auto"?(this.Ui(a),this.Dd(this.ql(a))):this.Ui(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.N=this.J.getPlaybackQuality(),this.Ui(a),a==="auto"&&this.Dd(this.ql(a)))}; g.k.Ig=function(a){if(a!=="missing-qualities"){g.aT.prototype.Ig.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=b==null?void 0:b.quality,d=b==null?void 0:b.formatId,e=b==null?void 0:b.paygatedQualityDetails;b=e==null?void 0:e.endpoint;if(e){var f;e=(f=this.options[a])==null?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if((h=g.Q(b,g.G$a))==null?0:(l=h.popup)==null?0:l.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c, d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if((m=g.Q(b,g.G$a))==null?0:(n=m.popup)==null?0:n.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Eb.Nb();this.zD()}}; g.k.open=function(){for(var a=g.w(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe((c=b)==null?void 0:c.element)&&(c=void 0,this.J.logVisibility((c=b)==null?void 0:c.element,!0))}g.aT.prototype.open.call(this);this.J.logClick(this.element)}; g.k.Hz=function(a,b,c){var d=this;if(a==="missing-qualities")return new g.xR({I:"a",Na:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Na:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.ql(a));if(a!=="inline-survey"){var e,f=(e=this.j?this.D[a]:this.Y[a])==null?void 0:e.paygatedQualityDetails;e=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;b=g.aT.prototype.Hz.call(this,a,b,c);f?(this.J.createServerVe(b.element, this,!0),this.J.setTrackingParams(b.element,f)):e&&this.J.createClientVe(b.element,this,e,!0);return b}a=[{I:"span",va:"Looks good?"}];c=g.w([!0,!1]);f=c.next();for(e={};!f.done;e={EQ:void 0},f=c.next())e.EQ=f.value,f=new g.U({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.EQ?isa():dsa()],X:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.EQ,m=g.ZQ(d.J.app);m&&(m.oa("iqsr",{tu:l}),m.getVideoData().FU=!0);d.Eb.Nb();d.zD()}}(e)),a.push(f); return new g.xR({I:"div",S:"ytp-menuitem",X:{"aria-disabled":"true"},V:[{I:"div",Na:["ytp-menuitem-label"],V:a}]},b)}; g.k.ql=function(a,b){b=b===void 0?!1:b;if(a==="missing-qualities")return{I:"div",va:"Missing options?"};if(a==="inline-survey")return"";var c=this.G||this.j?[SRa(this,a,b,!1)]:[RRa(this,a)];var d=this.J.getPreferredQuality();b||d!=="auto"||a!=="auto"||(c.push(" "),this.j?c.push(SRa(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(SRa(this,this.N,b,!0,["ytp-menu-label-secondary"])):c.push(RRa(this,this.N,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.z(WV,g.U);WV.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.B);TRa(this,this.B)}; WV.prototype.G=function(){var a=Number(this.j.value);this.B=a;this.updateValue("slidervalue",this.B);this.j.valueAsNumber=this.B;TRa(this,a);this.j.focus()};g.z(XV,WV);XV.prototype.G=function(){WV.prototype.G.call(this);this.C&&(this.C.textContent=this.B+"x")}; XV.prototype.ra=function(){this.qa()}; XV.prototype.Y=function(){this.J.setPlaybackRate(this.B,!0)};g.z(YV,g.U);g.k=YV.prototype;g.k.init=function(){this.Py(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.C)}; g.k.o6=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.N;break;case 39:case 38:b=this.N;break;default:return}this.Py(this.j+b);a.preventDefault()}}; g.k.m6=function(a){var b=this.j;b+=(a.deltaX||-a.deltaY)<0?-this.Y:this.Y;this.Py(b);a.preventDefault()}; g.k.n6=function(a){a=(a-g.dm(this.D).x)/this.qa*this.range+this.B;this.Py(a)}; g.k.Py=function(a,b){b=b===void 0?"":b;a=g.Bd(a,this.B,this.C);b===""&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Ga)+"px";this.j=a}; g.k.focus=function(){this.Ma.focus()};g.z(ZV,YV);ZV.prototype.Aa=function(){this.J.setPlaybackRate(this.j,!0)}; ZV.prototype.Py=function(a){YV.prototype.Py.call(this,a,VRa(this,a).toString());this.G&&(URa(this),this.Fa())}; ZV.prototype.updateValues=function(){var a=this.J.getPlaybackRate();VRa(this,this.j)!==a&&(this.Py(a),URa(this))};g.z(WRa,g.ex);WRa.prototype.focus=function(){this.j.focus()};g.z(XRa,PS);g.z(YRa,g.aT);g.k=YRa.prototype;g.k.ql=function(a){return a==="1"?"Normal":a.toLocaleString()}; g.k.Ta=function(){var a,b=(a=this.J.getVideoData())==null?void 0:a.Jh();a=this.J.getPresentingPlayerType(b);this.enable(a!==2&&a!==3);bSa(this)}; g.k.wz=function(a){g.aT.prototype.wz.call(this,a);a?(this.N=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),bSa(this),$Ra(this,this.J.getPlaybackRate())):(this.Oc(this.N),this.N=null)}; g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||aSa(this,b);$Ra(this,a)}; g.k.Hz=function(a,b,c){return a===this.j&&cSa(this.J)?g.aT.prototype.Hz.call(this,a,b,c,{I:"div",S:"ytp-speed-slider-menu-footer",V:[this.Y]}):g.aT.prototype.Hz.call(this,a,b,c)}; g.k.Ig=function(a){g.aT.prototype.Ig.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);cSa(this.J)&&a===this.j||this.Eb.ij()}; g.k.JN=function(a){a===this.j&&$V(this.J)&&!cSa(this.J)?(a=new XRa(this.J),g.US(this.Eb,a)):g.aT.prototype.JN.call(this,a)};g.z(eSa,g.aT);g.k=eSa.prototype;g.k.Ui=function(a){g.aT.prototype.Ui.call(this,a)}; g.k.ZV=function(a){return a.option.toString()}; g.k.getOption=function(a){return this.settings[a]}; g.k.ql=function(a){return this.getOption(a).text||""}; g.k.Ig=function(a){g.aT.prototype.Ig.call(this,a);this.publish("settingChange",this.N,this.settings[a].option)};g.z(aW,g.QS);aW.prototype.Di=function(a){for(var b=g.w(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Ou[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ui(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; aW.prototype.Nk=function(a,b){this.publish("settingChange",a,b)};g.z(bW,g.aT);bW.prototype.j=function(a){return a.languageCode}; bW.prototype.ql=function(a){return this.languages[a].languageName||""}; bW.prototype.Ig=function(a){this.publish("select",a);this.J.logClick(this.element);g.VS(this.Eb)};g.z(hSa,g.aT);g.k=hSa.prototype;g.k.AD=function(a){return g.Bc(a)?"__off__":a.displayName}; g.k.ql=function(a){return a==="__off__"?"Off":a==="__translate__"?"Auto-translate":a==="__contribute__"?"Add subtitles/CC":a==="__correction__"?"Suggest caption corrections":(a==="__off__"?{}:this.tracks[a]).displayName}; g.k.Ig=function(a){if(a==="__translate__")this.j.open();else if(a==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.GK(this.J.U(),this.J.getVideoData());g.Ey(b)}else if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=iSa(this);cW(this,c);g.aT.prototype.Ig.call(this,this.AD(c));var d,e;c=(b=this.J.getVideoData().getPlayerResponse())==null?void 0:(d=b.captions)==null?void 0:(e=d.playerCaptionsTracklistRenderer)== null?void 0:e.openTranscriptCommand;this.J.ib("innertubeCommand",c);this.Eb.ij();this.D&&this.J.logClick(this.D)}else{if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=iSa(this);cW(this,b);g.aT.prototype.Ig.call(this,this.AD(b));var f,h;b=(c=this.J.getVideoData().getPlayerResponse())==null?void 0:(f=c.captions)==null?void 0:(h=f.playerCaptionsTracklistRenderer)==null?void 0:h.openTranscriptCommand;this.J.ib("innertubeCommand",b)}else this.J.logClick(this.element), cW(this,a==="__off__"?{}:this.tracks[a]),g.aT.prototype.Ig.call(this,a);this.Eb.ij()}}; g.k.Ta=function(){var a=this.J.getOptions();a=a&&a.indexOf("captions")!==-1;var b=this.J.getVideoData(),c=b&&b.gw,d,e=!((d=this.J.getVideoData())==null||!g.GQ(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.dc(d,this.AD,this);e=g.nl(d,this.AD);var m,n;iSa(this)&&((f=b.getPlayerResponse())==null?0:(m=f.captions)==null?0:(n=m.playerCaptionsTracklistRenderer)== null?0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.Bc(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p}); Oaa(l,f)}fSa(this.j,l);e.push("__translate__")}f=this.AD(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.bT(this,e);this.Ui(f);h&&h.translationLanguage?this.j.Ui(this.j.j(h.translationLanguage)):qNa(this.j);a&&this.G.Di(this.J.getSubtitlesUserSettings());this.countLabel.Dd(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.k.p6=function(a){var b=this.J.getOption("captions","track");b=g.Ec(b);b.translationLanguage=this.j.languages[a];cW(this,b)}; g.k.Nk=function(a,b){if(a==="reset")this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}gSa(this,!0);this.N.start();this.G.Di(this.J.getSubtitlesUserSettings())}; g.k.lca=function(a){a||g.Oo(this.N)}; g.k.xa=function(){g.Oo(this.N);g.aT.prototype.xa.call(this)}; g.k.open=function(){g.aT.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.z(jSa,g.SS);g.k=jSa.prototype; g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.US=new PRa(this.J,this)}catch(c){g.yw(Error("QualityMenuItem creation failed"))}g.P(this,this.US);var b=new hSa(this.J,this);g.P(this,b);a.C||(b=new TV(this.J,this),g.P(this,b));a.enableSpeedOptions&&(b=new YRa(this.J,this),g.P(this,b));(g.qO(a)||a.K)&&(a.B||a.Wa)&&(b=new ORa(this.J,this),g.P(this,b));a.ge&&!a.L("web_player_move_autonav_toggle")&&(a=new VV(this.J,this),g.P(this,a));a=new UV(this.J,this); g.P(this,a);this.J.publish("settingsMenuInitialized");NRa(this.settingsButton,this.Pe.Vp())}}; g.k.Uc=function(a){this.initialize();this.Pe.Uc(a);NRa(this.settingsButton,this.Pe.Vp())}; g.k.rh=function(a){this.Gb&&this.Pe.Vp()<=1&&this.hide();this.Pe.rh(a);NRa(this.settingsButton,this.Pe.Vp())}; g.k.pd=function(a){this.initialize();this.Pe.Vp()>0&&g.SS.prototype.pd.call(this,a)}; g.k.Nb=function(){this.PL?this.PL=!1:g.SS.prototype.Nb.call(this)}; g.k.show=function(){g.SS.prototype.show.call(this);g.To(this.J.getRootNode(),"ytp-settings-shown")}; g.k.hide=function(){g.SS.prototype.hide.call(this);g.Vo(this.J.getRootNode(),"ytp-settings-shown")}; g.k.Jf=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.z(dW,g.U);dW.prototype.onClick=function(){if(lSa(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.Cs(g.Bs(),65);g.KO(this.J.U())&&b!=null&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}}; dW.prototype.j=function(a){var b,c;(b=g.WQ(this.J))==null||(c=b.Mm())==null||c.pd(a)}; dW.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName}; dW.prototype.Ta=function(){var a=lSa(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.fR(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)(c=this.Ea("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.fR(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;(d=this.Ea("ytp-subtitles-button-icon"))== null||d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}this.tooltip.Xh();c=c&&this.J.qb().getPlayerSize().width>=b;g.dx(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.z(g.eW,g.U);g.k=g.eW.prototype; g.k.Tc=function(){var a=this.api.qb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!fW(this)||!g.Z(this.api.getPlayerStateObject(),64));g.dx(this,b);g.Xo(this.element,"ytp-time-display-allow-autohide",b&&a<400);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);gW(this)&&(c-=this.Hb.startTimeMs/1E3);c=g.oy(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=gW(this)?g.oy((this.Hb.endTimeMs- this.Hb.startTimeMs)/1E3):g.oy(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}mSa(this,a.isAtLiveHead);nSa(this,this.api.getLoopRange())}; g.k.onLoopRangeChange=function(a){var b=this.Hb!==a;this.Hb=a;b&&(this.Tc(),oSa(this))}; g.k.Jca=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"))&&c===2?this.api.getVideoData(1):b);this.Tc();oSa(this)}; g.k.updateVideoData=function(a){this.MF=a.isLivePlayback&&!a.yb;this.B=IQ(a);this.isPremiere=a.isPremiere;g.Xo(this.element,"ytp-live",fW(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.U.prototype.xa.call(this)};g.z(qSa,g.U);g.k=qSa.prototype;g.k.ly=function(){var a=this.api.Ih();this.C!==a&&(this.C=a,pSa(this,this.api.getVolume(),this.api.isMuted()))}; g.k.aW=function(a){g.dx(this,a.width>=350)}; g.k.s6=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;b===37?c=this.volume-5:b===39?c=this.volume+5:b===36?c=0:b===35&&(c=100);c!==null&&(c=g.Bd(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}}; g.k.q6=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(b<0?-10:10)):this.api.setVolume(this.volume+g.Bd(b/10,-10,10));a.preventDefault()}; g.k.rca=function(){hW(this,this.j,!0,this.B,this.api.Tm());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; g.k.r6=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.dm(this.N).x;this.api.setVolume(g.Bd((a-c/2)/(b-c),0,1)*100)}; g.k.qca=function(){hW(this,this.j,!1,this.B,this.api.Tm());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))}; g.k.onVolumeChange=function(a){pSa(this,a.volume,a.muted)}; g.k.sX=function(){hW(this,this.j,this.isDragging,this.B,this.api.Tm())}; g.k.xa=function(){g.U.prototype.xa.call(this);g.Vo(this.K,"ytp-volume-slider-active")};g.z(iW,g.U); iW.prototype.onVideoDataChange=function(){var a=this.api.U();this.kc();this.visible=!!this.api.getVideoData().videoId&&!g.JQ(this.api.getVideoData(1));g.dx(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.Oc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.To(this.element,"no-link")); b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.GO(b),b.indexOf("www.")===0&&(b=b.substring(4)),c=g.KQ(a)?"Watch on YouTube Music":b==="youtube.com"?"Watch on YouTube":g.YC("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)}; iW.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.py(a),!1,!0,!0);if(g.qO(b)){var d={};g.qO(b)&&g.RQ(this.api,"addEmbedsConversionTrackingParams",[d]);this.api.L("embeds_web_enable_referring_feature_deprecation")||g.HK(d,"emb_logo");c=g.Hi(c,d)}g.jS(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; iW.prototype.kc=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Fc:!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 "}}]}, b=28666,c=this.api.getVideoData();this.api.jd()?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"}}]}:g.KQ(c)&&(a={I:"svg",X:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{I:"path",X:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{I:"path",X:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{I:"path",X:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{I:"path",X:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{I:"path",X:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{I:"path",X:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{I:"path",X:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{I:"path",X:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{I:"path",X:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{I:"path",X:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{I:"path",X:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{I:"path",X:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},b=216163);g.KQ(c)?g.To(this.element,"ytp-youtube-music-button"):g.Vo(this.element,"ytp-youtube-music-button");a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)}; iW.prototype.Mc=function(a){g.U.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(sSa,g.iE);g.k=sSa.prototype;g.k.Dg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.Z(this.J.getPlayerStateObject(),2))this.progressBar.Tc(),this.Aa.Tc()}; g.k.zB=function(){this.xU();this.Kg.B?this.Dg():this.progressBar.oi()}; g.k.t6=function(){this.Dg();this.Z.start()}; g.k.xU=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=a.N*2*g.JO(),c=a.C;a=(c.j-c.B)*1E3/a.api.getPlaybackRate()/b<300}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Kg.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.Dg)):this.ra&&(this.Oc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()}; g.k.kc=function(){var a=this.J.Ih(),b=this.J.qb().getPlayerSize(),c=uSa(this),d=Math.max(b.width-c*2,100);if(this.fb!==b.width||this.Xa!==a){this.fb=b.width;this.Xa=a;var e=vSa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.JRa(this.progressBar,c,e,a);this.J.Se().bW=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round((b.height-wSa(this))*.82));c.maxWidth=d;c.maxHeight=a;c.IC();this.xU();this.J.U().L("html5_player_dynamic_bottom_gradient")&&DQa(this.Wa, b.height)}; g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Ka.style.background=a.Gf?a.Sp:"";this.qa&&KQa(this.qa,a.showSeekingControls);this.Y&&KQa(this.Y,a.showSeekingControls)}; g.k.Ib=function(){return this.C.element};g.z(xSa,OS);g.k=xSa.prototype;g.k.uG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand),this.Su())}; g.k.Su=function(){this.enabled=!1;this.qa.hide()}; g.k.onVideoDataChange=function(a,b){a==="dataloaded"&&ySa(this);a=[];var c,d,e,f;if(b=(f=g.Q((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,cab))==null?void 0:f.suggestedActions)for(c=g.w(b),d=c.next();!d.done;d=c.next())(d=g.Q(d.value,dab))&&g.Q(d.trigger,bab)&&a.push(d);if(a.length!==0){c=[];a=g.w(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.Q(d.trigger,bab))f=(f=d.title)?g.hx(f):"View Chapters", b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,b!=null&&e!=null&&d.tapCommand&&(c.push(new g.LC(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.mf(c)}}; g.k.Ry=function(){return this.enabled}; g.k.Jf=function(){this.enabled?this.Ra.start():MS(this);this.Wl()}; g.k.xa=function(){ySa(this);OS.prototype.xa.call(this)};var l2={},jW=(l2.CHANNEL_NAME="ytp-title-channel-name",l2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",l2.LINK="ytp-title-link",l2.SESSIONLINK="yt-uix-sessionlink",l2.SUBTEXT="ytp-title-subtext",l2.TEXT="ytp-title-text",l2.TITLE="ytp-title",l2);g.z(kW,g.U); kW.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.py(a),!1,!0);g.qO(b)&&(b={},g.RQ(this.api,"addEmbedsConversionTrackingParams",[b]),this.api.L("embeds_web_enable_referring_feature_deprecation")||g.HK(b,"emb_title"),c=g.Hi(c,b));g.jS(c,this.api,a)}; kW.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:jW.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:jW.CHANNEL_NAME,va:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);zSa(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Ab&&c.profilePicture?(this.updateValue("channelLink", c.Ab),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):zSa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Yk;g.Xo(this.link,jW.FULLERSCREEN_LINK,c);b.ra||!a.videoId||c||g.JQ(a)||b.C?this.j&&(this.updateValue("url",null),this.Oc(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.qO(b)?a.expandedTitle: a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.lW,g.U);g.k=g.lW.prototype;g.k.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:BSa(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a}; g.k.HM=function(a,b,c,d,e,f,h,l){if(!this.Ka||this.env.Z){this.type===3&&this.oi();this.type!==1&&(g.Ro(this.element,"ytp-tooltip ytp-bottom"),(GQa(this.api)||this.api.isInline())&&g.To(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.Ak())&&this.B.subscribe("l",this.l0,this));if(l){var m=g.mm(this.bg).height||this.Aa;this.Ra.style.bottom=m+2+"px"}this.update({text:c,title:f!=null?f:"",eduText:l!=null?l:""});g.Xo(this.text,"ytp-tooltip-text-no-title", this.type===1&&!f);this.api.isInline()&&g.To(this.text,"ytp-modern-tooltip-text");g.Xo(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=wP(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&this.B.levels.length===4&&(c=this.B.levels.length-1),c=DKa(this.B,c,b));DSa(this,c);if(h)switch(b=g.mm(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"}CSa(this,!!d,a,e)}}; g.k.CQ=function(){this.type===1&&this.oi()}; g.k.MH=function(a,b){if(this.type)if(this.type===3)this.oi();else return;ASa(this,a,3,b)}; g.k.Xh=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&BSa(this))}; g.k.l0=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,DSa(this,a))}; g.k.t$=function(){BKa(this.B,this.D,this.N*this.scale)}; g.k.oi=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);ESa(this);break;case 3:ESa(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.l0,this),this.B=null),this.api.removeEventListener("videoready",this.Fa),this.Ga.stop()}this.type=null;this.Y&&this.K.hide()}; g.k.Dm=function(){if(this.j)for(var a=0;a=0;b--)if(this.Qu[b]===a){this.Qu.splice(b,1);break}BU(this.Kg,64,this.Qu.length>0)}; g.k.xC=function(){this.api.vl()&&this.api.Hp();return!!this.AE||KSa(this)||g.LU.prototype.xC.call(this)}; g.k.qC=aa(3);g.k.Ns=aa(7);g.k.Ms=aa(10);g.k.Vq=function(){var a=!this.xC(),b=a&&this.api.vl()&&!g.Z(this.api.getPlayerStateObject(),2)&&!g.JQ(this.api.getVideoData())&&!this.api.U().C&&!this.api.jd(),c=this.Xr&&g.kR(this.api)&&g.Z(this.api.getPlayerStateObject(),128);a||c?(this.QM.show(),this.RM.show()):(this.QM.hide(),this.RM.hide(),this.api.Dm(this.Ei.element));b?this.Zg.pd():this.Zg.Nb();this.Fg&&tSa(this.Fg,this.AS||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&LSa(this);g.LU.prototype.Vq.call(this)}; g.k.zy=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.mm(a),h=d||this.Fg&&g.pe(this.Fg.Ib(),b),l=d=null;c!=null&&h||(d=g.mm(b),l=g.em(b,this.api.getRootNode()),c==null&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Fg,d=uSa(b),l=vSa(b),h=this.api.qb().getPlayerSize().height,c=g.Bd(c,d,d+l-f.width),f=h-wSa(b)-f.height):g.pe(this.Ei.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.Bd(c,12,b-f.width-12),f=this.Ih()?this.PO:this.OO,this.api.U().playerStyle==="gvn"&&(f+= 20),this.Xr&&(f-=this.Ih()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.Bd(c,12,b.width-f.width-12),f=l.y>(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.zB=function(a){a&&(this.api.Dm(this.Ei.element),this.Fg&&this.api.Dm(this.Fg.Ib()));this.IK&&(g.Xo(this.contextMenu.element,"ytp-autohide",a),g.Xo(this.contextMenu.element,"ytp-autohide-active",!0));g.LU.prototype.zB.call(this,a)}; g.k.LR=function(){g.LU.prototype.LR.call(this);this.IK&&(g.Xo(this.contextMenu.element,"ytp-autohide-active",!1),this.IK&&(this.contextMenu.hide(),this.Ai&&this.Ai.hide()))}; g.k.ao=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.Sl(0,0,c.width,c.height);if(a||this.Kg.B&&!this.xC()){if(this.api.U().An||b)a=this.Ih()?this.PO:this.OO,c.top+=a,c.height-=a;this.Fg&&(c.height-=wSa(this.Fg))}return c}; g.k.ly=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.YE.element,b),b.parentElement.insertBefore(this.XE.element,b.nextSibling))):g.xw(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.YE.detach(),this.XE.detach());this.kc();this.Wq()}; g.k.Ih=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1}; g.k.showControls=function(a){this.bP=!a;this.Vq()}; g.k.kc=function(){var a=this.Ih();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Xo(this.contextMenu.element,"ytp-big-mode",a);this.Vq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||LSa(this);this.Wq();var b=this.api.jd();b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Vl(this.Ei.element,"padding-left",a+"px"),g.Vl(this.Ei.element,"padding-right",a+"px")):b&&(g.Vl(this.Ei.element,"padding-left",""),g.Vl(this.Ei.element,"padding-right",""));g.LU.prototype.kc.call(this)}; g.k.TP=function(){if(KSa(this)&&!g.kR(this.api))return!1;var a=this.api.getVideoData();return!g.qO(this.api.U())||this.api.getPresentingPlayerType()===2||!this.Ji||((a=this.Ji||a.Ji)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.Q(a.videoDetails,uLa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.LU.prototype.TP.call(this):!1}; g.k.Wq=function(){g.LU.prototype.Wq.call(this);this.api.logVisibility(this.title.element,!!this.Bo);this.PB&&this.PB.Mc(!!this.Bo);this.channelAvatar.Mc(!!this.Bo);this.overflowButton&&this.overflowButton.Mc(this.Pg()&&!!this.Bo);this.shareButton&&this.shareButton.Mc(!this.Pg()&&!!this.Bo);this.qp&&this.qp.Mc(!this.Pg()&&!!this.Bo);this.searchButton&&this.searchButton.Mc(!this.Pg()&&!!this.Bo);this.copyLinkButton&&this.copyLinkButton.Mc(!this.Pg()&&!!this.Bo);if(!this.Bo){this.api.Dm(this.Ei.element); for(var a=0;a=b)return d.return();(c=a.j.get(0))&&TSa(a,c);g.va(d)})}; var QSa={gka:0,Eka:1,oka:2,Fka:3,fha:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var tW=[],S4a=!1;g.PZ=ad(function(){var a="";try{var b=g.he("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.z(uW,g.O);uW.prototype.K=function(){this.j!=null&&this.app.getVideoData()!==this.j&&FP(this.j)&&x5a(this.app,this.j,void 0,void 0,this.B)}; uW.prototype.G=function(){if(this.j!=null&&this.app.getVideoData()!==this.j&&this.wb!=null&&this.C!=null&&this.D!=null&&FP(this.j)){var a=$Sa(this.wb,this.C,this.D);a==null?x5a(this.app,this.j,void 0,void 0,this.B):(this.wb.oa("sgap",a),this.wb.getVideoData().Y&&C_(this.wb,!1))}}; uW.prototype.N=function(a){var b=this.app.Vc();if(b){var c=this.app.getCurrentTime();Math.abs(c-a.end/1E3)>5&&b.oa("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.oa("glrre",{cmt:c})}}; uW.prototype.xa=function(){this.j=null;g.O.prototype.xa.call(this)};g.z(g.vW,aF);g.k=g.vW.prototype;g.k.isView=function(){return!0}; g.k.hT=function(){var a=this.mediaElement.getCurrentTime();if(a=4&&a!=="player-reload-after-handoff";this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Id(new $D("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.vn,msg:a})));C_(this.j,c)}this.Sq.reject(a);this.dispose()}}; g.k.xu=function(){return this.status.status>=4&&this.status.status<6}; g.k.xa=function(){lTa(this);this.j.unsubscribe("newelementrequired",this.n0,this);if(this.C){var a=this.C.B;this.C.j.Jd.unsubscribe("updateend",this.xz,this);a.Jd.unsubscribe("updateend",this.xz,this)}g.O.prototype.xa.call(this)}; g.k.cW=function(a){g.fy(a,128)&&this.Tg("player-error-event")};g.z(pTa,g.O);g.k=pTa.prototype;g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&C_(this.B,!1);zW(this,a)}; g.k.Eo=function(){return!this.j}; g.k.QF=function(a){return this.j===a}; g.k.xu=function(){var a;return((a=this.C)==null?void 0:a.xu())||!1}; g.k.xa=function(){zW(this);g.O.prototype.xa.call(this)};g.z(yTa,g.Xw);g.k=yTa.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:uTa()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0}; g.k.jn=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Jf())}; g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Jf())}; g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Jf())}; g.k.Ny=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Jf())}; g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Jf())}; g.k.wC=function(a){this.D!==a&&(this.D=a,this.Jf())}; g.k.ri=function(){return this.j}; g.k.isFullscreen=function(){return this.fullscreen!==0}; g.k.mA=function(){return this.fullscreen}; g.k.isMinimized=function(){return this.B}; g.k.isInline=function(){return this.inline}; g.k.isBackground=function(){return uTa()}; g.k.Ej=function(){return this.pictureInPicture}; g.k.OA=function(){return!1}; g.k.VA=function(){return this.C}; g.k.Ek=function(){return this.D}; g.k.Jf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.ri(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Ej(),this.OA(),this.VA(),this.Ek());a!==this.K&&this.publish("visibilitystatechange");this.K=a}; g.k.xa=function(){xTa(this.G);g.Xw.prototype.xa.call(this)};g.z(EW,g.O);EW.prototype.Vk=function(){if(!this.wf.length)return[];var a=this.wf;this.wf=[];this.C=g.Jb(a).info;return a}; EW.prototype.TG=function(){return this.wf}; EW.prototype.xa=function(){g.O.prototype.xa.call(this);this.j=null;this.wf.length=0;this.gb.length=0;this.C=null};g.z(GW,g.O);g.k=GW.prototype;g.k.Hr=function(){return Array.from(this.fd.keys())}; g.k.Ps=function(a){a=this.fd.get(a);var b=a.wf;a.Iz+=b.totalLength;a.wf=new DJ;return b}; g.k.Og=function(a){return this.fd.get(a).Og}; g.k.Bx=function(a){return this.fd.get(a).Bx}; g.k.FB=function(a,b,c,d){this.fd.get(a)||FTa(this,a,b);b=this.fd.get(a);if(this.manifest){a=HTa(this,a,c);if(d)for(var e=g.w(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.K=h;f.startTime+=h;f.Xe+=h;f.Nf+=h}GTa(this,c.cq,b,a)}else c.Do?b.xZ=c.Js:b.lG.push(c),b.sT.push(c)}; g.k.Zn=function(a){var b;return((b=this.fd.get(a))==null?void 0:b.gb)||[]}; g.k.wB=function(){for(var a=g.w(this.fd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.QS&&(b.Dg&&b.Dg(),b.QS=!1)}; g.k.wq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b}); var c=this.fd.get(b);if(HW){if(c&&!c.Og){if(c.Hj.get(a))c.Hj.get(a).Ex=!0;else{var d;((d=this.He)==null?0:d.yc)&&c.Hj.set(a,{data:new DJ,cJ:0,Ex:!0})}c.Bx=!0}}else c&&!c.Bx&&(c.Bx=!0)}; g.k.Vk=function(a){if(HW){var b=this.fd.get(a);if(b)for(var c=g.w(b.Hj),d=c.next();!d.done;d=c.next()){var e=g.w(d.value);d=e.next().value;e=e.next().value;var f=b.PH.get(d);if(yM(f[0])){if(!e.Ex)continue;var h=e.data,l=0,m=[];f=g.w(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=FJ(h,l,p);l+=p;m.push(new RM(n,q))}b.Sx.push.apply(b.Sx,g.x(m))}else if(e.data.totalLength>0||!f[0].range&&e.Ex)h=void 0,l=f[0],m=e.cJ,f=e.data,l.range||(h=e.Ex),h=new RM(NGa(l,l.Ub+m,f.totalLength,h),f), e.cJ+=h.info.B,b.Sx.push(h);b.Hj.get(d).data=new DJ;e.Ex&&b.Hj.delete(d)}a=this.fd.get(a);if(!a)return[];b=a.Sx;a.Sx=[];c=g.w(b);for(d=c.next();!d.done;d=c.next())a.Iz+=d.value.info.B;return b||[]}c=(b=this.fd.get(a))==null?void 0:b.fg;if(!c)return[];this.Om(a,c);return c.Vk()}; g.k.Pl=function(a){if(HW)return JW(this,a);var b,c,d;return!!((c=(b=this.fd.get(a))==null?void 0:b.fg)==null?0:(d=c.TG())==null?0:d.length)||JW(this,a)}; g.k.Om=function(a,b){for(;JW(this,a);){var c=this.Ps(a);var d=a;d=this.fd.get(d).Og&&!DTa(this,d);FW(b,c,d&&ETa(this,a))}}; g.k.xa=function(){g.O.prototype.xa.call(this);for(var a=g.w(this.fd.keys()),b=a.next();!b.done;b=a.next())ATa(this,b.value);var c;if((c=this.He)==null?0:c.Ae)for(a=g.w(this.fd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Hj.clear(),b.PH.clear(),b.Sx.length=0,b.gb.length=0,b.sT.length=0,b.lG.length=0;this.fd.clear()}; var HW=!1;g.z(MW,g.O);g.k=MW.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(this.segments.length===0||(b===void 0?0:b))this.j=a;this.segments.push(a);return!0}; g.k.bf=function(){return this.pc||0}; g.k.ai=function(){return this.C||0}; g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;(a=this.segments.pop())==null||a.dispose()}this.B.clear()}; g.k.xa=function(){this.removeAll();g.O.prototype.xa.call(this)}; g.z(VTa,g.O);g.k=VTa.prototype;g.k.bf=function(){return this.pc}; g.k.ai=function(){return this.B}; g.k.getType=function(){return this.type}; g.k.getVideoData=function(){return this.videoData}; g.k.AM=function(a){iQ(a);this.videoData=a}; g.k.xa=function(){WTa(this);g.O.prototype.xa.call(this)};g.z(g.RW,g.O);g.k=g.RW.prototype;g.k.tJ=function(a,b,c){return new g.LC(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})}; g.k.onCueRangeEnter=function(a){this.Ka.push(a);var b=a.getId();this.ea.oa("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Xf()||0).toFixed(3)});var c=b==="";this.fb.add(a.B);var d=this.C.get(b);if(c){var e;if(this.ea.getVideoData().Jh()&&((e=this.j)==null?0:e.NW)&&this.N){var f;a=((f=this.j)==null?void 0:f.Wg)||this.ea.getCurrentTime();var h,l;VW(this.ea,(h=this.j)==null?void 0:h.NW,this.gF(),a,this.ea.getCurrentTime(),!1,!0,(l=this.j)== null?void 0:l.uea,(0,g.T)());this.xl=0;this.j=void 0;this.ob&&(this.events.Oc(this.ob),this.ob=null);this.N="";this.Ra=!0;return}}else if(this.ea.oa("sdai",{enterAdCueRange:1}),this.ea.getVideoData().Jh()&&(d==null?0:d.TA))return;if(this.Ra&&!this.j)this.Ra=!1,!c&&d&&(c=this.ea.getCurrentTime(),WW(this,{je:a,isAd:!0,gq:!0,Wg:c,adCpn:b},{isAd:!1,gq:!1,Wg:c}),this.Sb=d.cpn,this.api.publish("serverstitchedvideochange",d.rd,d.wr),a=UW(this,"midab",d),this.ea.oa("sdai",a),this.xl=1),this.qa=!1;else if(this.j){if(this.j.gq)this.ea.oa("sdai", {a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Wg,cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={je:a,isAd:!c,gq:!0,Wg:d,adCpn:b},b={je:this.j.je,isAd:this.j.isAd,gq:!1,Wg:d,adCpn:this.j.adCpn},this.j.je&&this.fb.delete(this.j.je.B),WW(this,a,b);else{if(this.j.je===a){this.ea.oa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Wg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end}); this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}a={je:a,isAd:!c,gq:!0,Wg:this.ea.getCurrentTime(),adCpn:b};WW(this,a,this.j)}this.j=void 0;this.qa=!1}else this.j={je:a,isAd:!c,gq:!0,Wg:this.ea.getCurrentTime(),adCpn:b}}; g.k.onCueRangeExit=function(a){var b=a.getId();this.ea.oa("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Xf()||0).toFixed(3)});var c=b==="",d=this.C.get(b);if(this.ea.getVideoData().Jh()&&!c&&d){if(d.TA)return;d.TA=!0;this.K.clear();if(this.W.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.FO()){var e=d.pc;this.ea.aT(e/1E3,(e+d.durationMs)/1E3)}else this.ea.oa("lifa",{remove:0})}if(this.fb.has(a.B))if(this.fb.delete(a.B),this.Ka=this.Ka.filter(function(f){return f!== a}),this.Ra&&(this.qa=this.Ra=!1,this.ea.oa("sdai",{cref:1})),this.j){if(this.j.gq){if(this.j.je===a){this.ea.oa("sdai",{same_cue_range_pair_exit:1, acpn:this.j.adCpn,transitionTime:this.j.Wg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}b={je:a,isAd:!c,gq:!1,Wg:this.ea.getCurrentTime(),adCpn:b};WW(this,this.j,b)}else this.ea.oa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Wg,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()}); this.j=void 0;this.qa=!1}else this.j={je:a,isAd:!c,gq:!1,Wg:this.ea.getCurrentTime(),adCpn:b};else this.ea.oa("sdai",{ignore_single_exit:1})}; g.k.gF=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,pc:0,playerType:1,Xd:0,videoData:this.ea.getVideoData(),errorCount:0}}; g.k.Il=function(){if(this.Pn)return!1;var a=void 0;this.Sb&&(a=this.C.get(this.Sb));return this.ea.getVideoData().Jh()?!!a&&!a.TA:!!a}; g.k.seekTo=function(a,b,c,d){a=a===void 0?0:a;b=b===void 0?{}:b;c=c===void 0?!1:c;d=d===void 0?null:d;if(this.ea.getVideoData().Jh()&&this.W.L("html5_lifa_ad_removed_ne")&&a<=this.Wa/1E3)this.ea.pauseVideo(),this.Wa=0,this.qa=!0,GZ(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.qa=!0,c)YTa(this,a,b);else{c=this.api.Vc();var e=c===this.Xa?this.Jb:null;XW(this,!1);this.Tb=a;this.Ob=b;d!=null&&this.Kb.start(d);c&&(this.Jb=e||c.getPlayerState(),B4a(c),this.Xa=c)}}; g.k.xa=function(){XW(this,!1);jUa(this);kUa(this);g.O.prototype.xa.call(this)}; g.k.FT=function(a){this.Rc=a;this.ea.oa("sdai",{swebm:a})}; g.k.Gl=function(a,b,c,d){if(c&&b){var e;this.W.L("html5_ssdai_use_media_time")?e=ZW(this,d):e=this.K.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.qL(c),this.Va&&this.ea.oa("sdai",{hdlredir:1,itag:b,seg:a,hostport:sL(c)}),e.locations.set(d,c))}}; g.k.nK=function(a,b,c,d,e,f){var h=d===3;e=mUa(this,a,b,d,c,f);if(!e)return aX(this,b,h),e=g.lUa(this,b)?"undec":"ncp",this.ea.oa("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.K.set(b,e);a=e.ym;var l;d=((l=$W(this,b-1,d))==null?void 0:l.Ot)||"";d===""&&this.ea.oa("sdai",{eds:1});l=$N(e.ssdaiAdsConfig||"")||void 0;c=this.ea.getVideoData();var m;f=((m=c.B)==null?void 0:m.containerType)||0;m=c.KD[f];b=e.Rs&&b>=e.Rs?e.Rs:void 0;return{fn:{NI:a?qUa(this,a):[],RW:l,Ot:d,UT:b,L3:Vd(m.split(";")[0]), M3:m.split(";")[1]||""}}}; g.k.hQ=function(a){a:{if(!this.Pn){var b=ZW(this,a);if(!(this.ea.getVideoData().Jh()&&(b==null?0:b.TA)))break a}b=void 0}var c=b;if(!c)return this.ea.oa("sdai",{gvprp:"ncp",mt:a}),null;b=c.ym;var d=$N(c.ssdaiAdsConfig||"")||void 0;a=c.Rs&&c.TT&&a>=c.TT?c.Rs:void 0;c=this.ea.getVideoData();var e,f=((e=c.B)==null?void 0:e.containerType)||0;e=c.KD[f];return{NI:b?qUa(this,b):[],RW:d,UT:a,L3:Vd(e.split(";")[0]),M3:e.split(";")[1]||""}}; g.k.jA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=d===3;a=mUa(this,a,b,d,c,f);this.Va&&this.ea.oa("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return aX(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=(l=a.videoData.getPlayerResponse())==null?void 0:(m=l.streamingData)==null?void 0:m.adaptiveFormats;if(!f)return this.ea.oa("sdai",{gdu:"noadpfmts",seg:b,itag:h}),aX(this,b,e),null;l=f.find(function(u){return u.itag===h}); if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.w(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ea.oa("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});aX(this,b,e);return null}a.locations.set(h,new g.qL(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.oa("sdai",{gdu:"nourl",seg:b,itag:h}),aX(this,b,e),null;l=new jM(l);this.Rc&&(l.get("dvc")?this.ea.oa("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=(q=$W(this,b-1,d))==null?void 0:q.Ot)&& l.set("daistate",m);a.Rs&&b>=a.Rs&&l.set("skipsq",""+a.Rs);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.ym&&(q=qUa(this,a.ym),q.length>0&&l.set("acpns",q.join(",")));e||this.K.set(b,a);e=null;e=l.get("aids");var r;if((((p=e)==null?void 0:(r=p.split(","))==null?void 0:r.length)||0)!==q.length)if(a.ym){var t;this.ea.oa("sdai",{acpns_aids_nm:1,ids:sUa(this,a.ym).join("_"),acpns:q.join("_"),aids:(t=e)==null?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ea.oa("sdai", {acpns_aids_nm:"noAdBreakId",cpn:m});d=l.De();(d==null?void 0:d.length)>2048&&this.ea.oa("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Va&&(d&&(r=a.cpn,p=a.ym,uUa(this,r,p),p&&!this.Je.has(p)&&(r=rUa(this,r,p),t=tUa(this,p),this.ea.oa("sdai",{iofa:r}),this.ea.oa("sdai",{noawnzd:t-r}),this.ea.oa("sdai",{acpns:q.join("."),aids:(n=e)==null?void 0:n.replace(/,/g,".")}),this.Je.add(p))),this.ea.oa("sdai",{gdu:"v",seg:b,itag:c,ast:a.pc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId})); return d}; g.k.wH=function(a,b,c){var d=YW(this,a,c);return(d=d?(d.pc+d.durationMs)/1E3:0)&&b>d?(this.zv(a,c,!0),this.ea.seekTo(d),!0):!1}; g.k.zv=function(a,b,c){c=c===void 0?!1:c;var d=YW(this,a,b);if(d){var e=void 0,f=d.ym;if(f){this.ea.oa("sdai",{skipadonsq:b,sts:c,abid:f,acpn:d.cpn,avid:d.videoData.videoId});c=this.Y.get(f);if(!c)return;c=g.w(c);for(f=c.next();!f.done;f=c.next())f=f.value,f.Rs=b,f.TT=a,f.pc>d.pc&&(e=f)}this.N=d.cpn;nUa(this);a=this.ea.getCurrentTime();eUa(this,d,e,a,a,!1,!0)}}; g.k.kT=function(){for(var a=g.w(this.G),b=a.next();!b.done;b=a.next())b=b.value,b.Rs=NaN,b.TT=NaN;nUa(this);this.ea.oa("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""}; g.k.gI=aa(49); g.k.oS=function(a,b,c,d,e,f,h,l,m){d.length>0&&this.ea.oa("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.Ya.set(a,{Ot:m,Bz:l}):this.Ga.set(a,{Ot:m,Bz:l}));l=PP(this.ea.getVideoData())&&this.W.L("html5_consume_ssdai_info_with_streaming");if(h||l){if(d.length&&e.length)for(this.N&&this.N===d[0]&&this.ea.oa("sdai",{skipfail:1,sq:a,acpn:this.N}),a=b+this.fu(),h=0;h0&&(this.xl=0,this.Sb="",this.api.publish("serverstitchedvideochange"));p1a(this.ea,c);return!0}; g.k.qx=function(){this.ea.oa("sdai",{rstdaist:1});this.Ga.clear();this.Ya.clear();this.Ma.clear()}; g.k.Wu=function(a){this.Ae.add(a);var b;((b=this.ra)==null?void 0:b.identifier)===a&&TW(this)}; g.k.LP=function(){return this.xl}; g.k.Dl=function(){return this.Sb}; g.k.Tu=function(a){var b=xU(this.api.Bb());return b?b.Tu(a):!1}; g.k.pP=function(a){return this.Pn?!1:!!ZW(this,a)}; g.k.ST=function(a){var b=this;this.ea.pauseVideo();var c=this.ea.getCurrentTime(),d=this.C.get(this.Sb),e=this.B.get(this.Sb);if(d){this.N=this.Sb;this.qa=!1;d.TA=!0;var f=this.ea.getCurrentTime();this.j={je:e,isAd:!0,gq:!1,Wg:f,adCpn:this.Sb,NW:d,uea:a};if(e==null?0:e.start)this.Wa=f*1E3-e.start;this.K.clear();GZ(this.ea);this.Sb=this.gF().cpn;this.api.publish("serverstitchedvideochange");this.ea.seekTo(c);this.ea.playVideo();this.ob||(this.ob=this.events.T(this.api,"progresssync",function(){var h= d.wr?d.wr*1E3:d.pc,l=b.B.get(d.cpn);l&&b.ea.removeCueRange(l);b.B.delete(d.cpn);b.C.delete(d.cpn);l=b.G.indexOf(d);l>=0&&b.G.splice(l,1);l=[];for(var m=g.w(b.D),n=m.next();!n.done;n=m.next())n=n.value,n.end<=h?b.ea.removeCueRange(n):l.push(n);b.D=l;oUa(b,0,h+d.durationMs)})); return!0}this.ea.oa("sdai",{skipFail:c});return!1}; var cUa=0;g.z(xUa,g.O);g.k=xUa.prototype; g.k.mO=function(a,b){b=b===void 0?"":b;if(this.OM===b)return!0;var c=this.timeline.j,d=c==null?void 0:c.getVideoData();if(!c||!d)return this.api.oa("ssap",{htsm:c?0:1}),!1;if(this.api.L("html5_ssap_clear_timeline_before_update")){var e=this.timeline,f;(f=e.j)==null||WTa(f);e.B.clear()}e=NW(c);var h=!1;f=[];var l=new Map;c=[];var m=[],n=0,p=0,q=0,r=[];a=g.w(a);for(var t=a.next();!t.done;t=a.next())a:{var u=void 0,y=void 0,A=t.value,D=A.clipId;if(D){if(A.Zq){q=A.Zq.k_||0;t=A.Zq.l_||1;var F=Number(((A.Zq.Y0|| 0)/(A.Zq.Z0||1)*1E3).toFixed(0));q=t=F+Number((q/t*1E3).toFixed(0))}else t=F=q,this.OH.has(D)||this.Kk.add(D);var H=(y=l.get(D))!=null?y:0;y=!1;if(this.OM&&this.api.L("html5_ssap_clear_timeline_before_update")){var M=this.qk.get(D);M&&(M.start=F,M.end=t,y=!0)}else{if(M=this.OM){var N=D;M=F;var S=t,ba=H,ha=PW(this.timeline,N);if(ha!=null&&ha.length){ba=l){this.cI.set(a,c);PUa(this,a,b);this.UM.set(a,(0,g.T)());if(c=this.qk.get(b))for(c=c.getId().split(","),c=g.w(c),h=c.next();!h.done;h=c.next())h=h.value,h!==b&&this.Kk.has(h)&&(this.Kk.delete(h),this.OH.add(h));d&&GZ(this.ea);KUa(this);b=f.bf()/1E3;d=void 0;f=(d=g.VB(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?d:0;this.ea.seekTo(b+f/1E3);e&&this.api.playVideo(1);return[a]}}}return[]}; g.k.VP=function(){var a=this.timeline.j;if(!a)return 0;var b=a.ai();a=g.w(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.ai()>b&&(b=d.ai())}return b/1E3}; g.k.Xc=function(){var a=this.ea.getCurrentTime()*1E3;var b=bX(this,a);if(!b){var c=PW(this.timeline,this.Sb);if(c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.bf()>a&&(b=d)}}return b&&b.getType()===1?b.bf()/1E3:0}; g.k.getVideoData=function(a){if(a===2&&!this.Il()){if(this.TK&&this.Op.has(this.TK))return this.Op.get(this.TK);this.api.oa("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return FUa(this)}; g.k.Il=function(){var a=PW(this.timeline,this.Sb);return(a==null?0:a.length)?a[0].getType()===2:!1}; g.k.QA=function(){var a=PW(this.timeline,this.Sb);return(a==null?0:a.length)?a[0].C:!1}; g.k.seekTo=function(a,b){b=b===void 0?{}:b;var c=DUa(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)}; g.k.tJ=function(a,b,c){return new g.LC(a,b,{id:c,namespace:"ssap",priority:9})}; g.k.onCueRangeEnter=function(a){if(!this.WL.has(a.getId())){this.api.oa("ssap",{oce:1,cpn:a.getId(),st:a.start,et:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Xf()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;cc+1)for(d=c+1;dthis.C;)(c=this.data.shift())&&rX(this,c,!0);pX(this)}; g.k.remove=function(a,b){b=b===void 0?!1:b;var c=this.data.find(function(d){return d.key===a}); c&&(rX(this,c,b),g.Rb(this.data,function(d){return d.key===a}),pX(this))}; g.k.removeAll=function(a){if(a=a===void 0?!1:a)for(var b=g.w(this.data),c=b.next();!c.done;c=b.next())rX(this,c.value,a);this.data=[];pX(this)}; g.k.xa=function(){var a=this;g.O.prototype.xa.call(this);this.data.forEach(function(b){rX(a,b,!0)}); this.data=[]};g.z(sX,g.O);sX.prototype.WJ=function(a){if(a)return this.B.get(a)}; sX.prototype.xa=function(){this.j.removeAll();this.B.removeAll();g.O.prototype.xa.call(this)};g.Jbb=ad(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var m2;m2={};g.tX=(m2.STOP_EVENT_PROPAGATION="html5-stop-propagation",m2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",m2.IV_DRAWER_OPEN="ytp-iv-drawer-open",m2.MAIN_VIDEO="html5-main-video",m2.VIDEO_CONTAINER="html5-video-container",m2.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",m2.HOUSE_BRAND="house-brand",m2);g.z(mVa,g.U);g.k=mVa.prototype;g.k.Ct=function(){g.Uo(this.element,g.Da.apply(0,arguments))}; g.k.Sj=function(){this.Bc&&(this.Bc.removeEventListener("focus",this.VR),g.oe(this.Bc),this.Bc=null)}; g.k.kP=function(){this.La();var a=this.app.U();a.Dn||this.Ct("tag-pool-enabled");a.K&&this.Ct(g.tX.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.Ct("ytp-gvn"),this.element.style.backgroundColor="transparent");a.wc&&(this.ZO=g.Zu("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)}; g.k.xM=function(a){g.vO(this.app.U());this.AK=!a;uX(this)}; g.k.resize=function(){if(this.Bc){var a=this.ji();if(!a.isEmpty()){var b=!g.Hd(a,this.SB.getSize()),c=rVa(this);b&&(this.SB.width=a.width,this.SB.height=a.height);a=this.app.U();(c||b||a.wc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}}; g.k.mu=function(a,b){this.updateVideoData(b)}; g.k.updateVideoData=function(a){if(this.Bc){var b=this.app.U();It&&(this.Bc.setAttribute("x-webkit-airplay","allow"),a.title?this.Bc.setAttribute("title",a.title):this.Bc.removeAttribute("title"));this.Bc.setAttribute("controlslist","nodownload");b.er&&a.videoId&&(this.Bc.poster=a.hh("default.jpg"))}b=g.mQ(a,"yt:bgcolor");this.Uz.style.backgroundColor=b?b:"";this.uR=Ur(g.mQ(a,"yt:stretch"));this.vR=Ur(g.mQ(a,"yt:crop"),!0);g.Xo(this.element,"ytp-dni",a.Gf);this.resize()}; g.k.setGlobalCrop=function(a){this.mQ=Ur(a,!0);this.resize()}; g.k.setCenterCrop=function(a){this.oX=a;this.resize()}; g.k.jn=function(){}; g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.qO(a);if(b&&Cr()&&!c)return new g.Gd(window.outerWidth,window.outerHeight);c=!isNaN(this.WE.width)&&!isNaN(this.WE.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Gd(this.element.clientWidth,this.element.clientHeight);if(b||a.Dp){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.jG&&this.jG.media=== a||(this.jG=window.matchMedia(a));var e=this.jG&&this.jG.matches}if(e)return new g.Gd(window.innerWidth,window.innerHeight)}else if(c)return this.WE.clone();return new g.Gd(this.element.clientWidth,this.element.clientHeight)}; g.k.ji=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.VB(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.NS&&b.width>c?new g.Gd(b.width*g.VB(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b}; g.k.getVideoAspectRatio=function(){return isNaN(this.uR)?oVa(this):this.uR}; g.k.getVideoContentRect=function(a){var b=this.ji();a=pVa(this,b,this.getVideoAspectRatio(),a);return new g.Sl((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; g.k.tC=function(a){this.NS=a;this.resize()}; g.k.PF=function(){return this.ZL}; g.k.onMutedAutoplayChange=function(){uX(this)}; g.k.setInternalSize=function(a){g.Hd(this.WE,a)||(this.WE=a,this.resize())}; g.k.xa=function(){this.ZO&&g.$u(this.ZO);this.Sj();g.U.prototype.xa.call(this)};g.k=sVa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.ow();c&&a.visualElement&&g.Uw(c,a.visualElement,b)}; g.k.createClientVe=function(a,b,c,d){var e=this;d=d===void 0?!1:d;this.elements.has(a);this.elements.add(a);c=fra(c);a.visualElement=c;var f=g.ow(),h=g.nw();f&&h&&(g.hr("combine_ve_grafts")?yK(wK(),c,h):g.Iq(g.Kw)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.elements.has(a)&&e.destroyVe(a)}); d&&this.B.add(a)}; g.k.createServerVe=function(a,b,c){var d=this;c=c===void 0?!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.CX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,xK(wK(),a),tVa(this))}; g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.lw(b))}; g.k.hasVe=function(a){return this.elements.has(a)};uVa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)}; uVa.prototype.getPlaybackRate=function(){return this.playbackRate};AVa.prototype.WP=function(a){var b=yE(a.info.j.info,this.manifest.Vb),c=a.info.Pa+this.C,d=a.info.startTime*1E3;if(this.policy.Ya)try{d=this.policy.Ya?UM(a)*1E3:a.info.startTime*1E3}catch(h){Math.random()>.99&&this.logger&&(d=JJ(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Sc(),encodedDataView:g.Pe(d,4)})),d=a.info.startTime*1E3}var e=a.info.clipId;if(this.policy.Ya){if(a.info.j.Sm())var f=a.info.duration;else a.D===-1&&(a.D=VM(a)),f=a.D||a.info.duration;f*=1E3}else f=a.info.duration* 1E3;this.policy.Ya&&(d<0||f<0)&&this.logger&&(this.logger({missingSegInfo:a.info.Sc(),startTimeMs:d,durationMs:f}),d<0&&(d=a.info.startTime*1E3),f<0&&(f=a.info.duration*1E3));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,e8:f}}; AVa.prototype.Oq=function(a){this.timestampOffset=a};zX.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.Qb,f=OVa(this,this.videoTrack,a,this.videoTrack.Qb,b);b=OVa(this,this.audioTrack,this.policy.yh?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(KVa(this,this.videoTrack,c),KVa(this,this.audioTrack,d));return a}; zX.prototype.isSeeking=function(){return this.G}; zX.prototype.DT=function(a){this.C=a}; var NVa=2/24;var SVa=0;g.k=JX.prototype;g.k.Xu=function(){this.G=this.now();cJa(this.Kc,this.G);this.Cb.Xu()}; g.k.Cs=function(a,b){var c=this.policy.B?(0,g.T)():0;KX(this,a,b);a-this.K<10&&this.wi()||this.ew(a,b);this.Cb.Cs(a,b);this.policy.B&&(a=(0,g.T)()-c,this.Ab+=a,this.ob=Math.max(a,this.ob))}; g.k.ew=function(a,b){var c=(a-this.K)/1E3,d=b-this.B;this.Rp||(iO(this.Kc,c,d),this.ov(c,d));this.K=a;this.B=b}; g.k.Po=function(){this.Fa&&TVa(this);this.Cb.Po()}; g.k.Bs=function(a){this.Fa||(this.Fa=this.D-this.Ob+a,this.wc=this.D,this.yc=this.N)}; g.k.hv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.wi()||(this.qa=a,this.ra=b,this.isActive=!0,this.policy.j&&(this.Y=!0))}; g.k.wi=function(){return this.ra>0}; g.k.D1=function(){}; g.k.rr=function(){var a={rn:this.requestNumber,rt:(this.N-this.j).toFixed(),lb:this.D,stall:(1E3*this.C).toFixed(),ht:(this.G-this.j).toFixed(),elt:(this.qa-this.j).toFixed(),elb:this.ra,d:VVa(this)};this.url&&OSa(a,this.url);this.policy.B&&(a.mph=this.ob.toFixed(),a.tph=this.Ab.toFixed());a.ulb=this.Va;a.ult=this.Ga;a.abw=this.Ra;return a}; g.k.now=function(){return(0,g.T)()}; g.k.deactivate=function(){this.isActive&&(this.isActive=!1)}; var IX;g.z(LX,JX);g.k=LX.prototype;g.k.rr=function(){var a=JX.prototype.rr.call(this);a.pb=this.eA;a.pt=(1E3*this.Wa).toFixed();a.se=this.Tb;return a}; g.k.Up=function(){var a=this.Cb;this.fb||(this.fb=a.Up?a.Up():1);return this.fb}; g.k.LK=function(){return this.Nl?this.Up()!==1:!1}; g.k.GR=function(a,b,c){if(!this.Kb){this.Kb=!0;if(!this.Rp){KX(this,a,b);this.ew(a,b);var d=this.Up();this.Tb=c;d===2?this.Rp||(this.Ga?dO(this.Kc,this.Ga/1E3,this.Va,.25):dO(this.Kc,b/(c||this.Ra),b,.01),gO(this.Kc,b,this.C)):d===1&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.yb||this.policy.K||!this.wi()||YVa(this,c,b),this.wi()&&gO(this.Kc,b,this.C));a=(a-this.j)/1E3||.01;this.policy.G&&!this.wi()||fO(this.Kc,a,this.B,this.Wa,this.Mp)}this.deactivate()}}; g.k.ew=function(a,b){var c=(a-this.K)/1E3,d=b-this.B,e=this.Up();this.isActive?e===1&&((d>0||this.policy.D)&&(c>.2||d<1024)?(this.C+=c,d>0&&c>.2&&YVa(this,.05,d),this.yb=!0):d>0&&(YVa(this,c,d),this.yb=!0)):ZVa(this,b)&&(this.policy.j?this.hv(a,b):(e===1&&(c=(this.G-this.j)/1E3,d=(a-this.G)/1E3,dWa(this)||this.Rp||eO(this.Kc,c,d)),this.qa=a,this.ra=b,this.isActive=!0));JX.prototype.ew.call(this,a,b)}; g.k.qL=function(a){if(!this.Rp){KX(this,a,this.D);var b=(a-this.j)/1E3;this.Up()!==2&&this.wi()&&(this.C+=(a-this.K)/1E3,gO(this.Kc,this.B,this.C));fO(this.Kc,b,this.B,this.Wa,this.Mp,!0);a=(a-this.K)/1E3;iO(this.Kc,a,0);this.ov(a,0)}}; g.k.hv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.wi()||(JX.prototype.hv.call(this,a,b),this.Up()===1&&(b=(this.G-this.j)/1E3,a=(a-this.G)/1E3,dWa(this)||this.Rp||eO(this.Kc,b,a)))}; g.k.EY=function(){this.Nl&&cWa(this,this.now());return this.Ka}; g.k.Gx=function(){return this.B>this.zS&&ZVa(this,this.B)}; g.k.hK=function(){return this.Xa}; g.k.dT=function(a){a=a===void 0?this.now():a;if(this.Nl){cWa(this,a);if(this.fb?this.LK():this.Aa!==this.Ma){var b=this.Ma;if(a=1}; g.k.isComplete=function(){return this.state>=3}; g.k.Rm=function(){return this.state===5}; g.k.onStateChange=function(){}; g.k.zd=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)}; g.k.wB=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.fF=function(){return+this.getResponseHeader("content-length")}; g.k.Km=function(){return this.B}; g.k.bv=function(){return this.status>=200&&this.status<300&&!!this.B}; g.k.Wr=function(){return this.j.totalLength>0}; g.k.Qy=function(){var a=this.j;this.j=new DJ;return a}; g.k.TL=function(){return this.j}; g.k.abort=function(){this.La=!0;this.xhr.abort()}; g.k.DC=function(){return!0}; g.k.gM=function(){return this.C}; g.k.Yf=function(){return""};g.k=iWa.prototype; g.k.Is=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){if(A.j==1){a.status=200;b=a.j.get("docid");c=Rd(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new hWa(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(A.j!=5)return n<=m?g.G(A,wKa(b,c,d,n,f),5):A.Ha(0);p=A.B;if(p===void 0)throw Error("invariant: data is undefined");q=n*e; r=(n+1)*e;t=Math.max(0,h.start-q);u=Math.min(h.end+1,r)-(t+q);y=new Uint8Array(p.buffer,t,u);a.B.append(y);a.loaded+=u;a.loaded=200&&this.status<300&&!!this.B}; g.k.Wr=function(){return!!this.j.totalLength}; g.k.Qy=function(){var a=this.j;this.j=new DJ;return a}; g.k.TL=function(){return this.j}; g.k.La=function(){return this.G}; g.k.abort=function(){this.C&&this.C.cancel().catch(function(){}); this.D&&this.D.abort();this.G=!0}; g.k.DC=function(){return!0}; g.k.gM=function(){return this.K}; g.k.Yf=function(){return this.errorMessage};g.k=lWa.prototype;g.k.onDone=function(){if(!this.La){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Cb.Po()}}; g.k.CB=function(){this.xhr.readyState===2&&this.Cb.Xu()}; g.k.Dg=function(a){this.La||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Cb.Cs((0,g.T)(),a.loaded))}; g.k.ou=function(){return this.xhr.readyState>=2}; g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.yw(Error("Could not read XHR header "+a)),""}}; g.k.fF=function(){return+this.getResponseHeader("content-length")}; g.k.Km=function(){return this.B}; g.k.bv=function(){return this.status>=200&&this.status<300&&this.j&&!!this.B}; g.k.Wr=function(){return this.j&&!!this.response&&!!this.response.byteLength}; g.k.Qy=function(){var a=this.response;this.response=void 0;return new DJ([new Uint8Array(a)])}; g.k.TL=function(){return new DJ([new Uint8Array(this.response)])}; g.k.abort=function(){this.La=!0;this.xhr.abort()}; g.k.DC=function(){return!1}; g.k.gM=function(){return!1}; g.k.Yf=function(){return""};g.z(QX,g.O);g.k=QX.prototype;g.k.Ada=function(){if(!this.La()){var a=(0,g.T)(),b=!1;if(this.timing.wi()){if(this.G)return;var c=this.timing.hK();this.timing.dT();var d=this.timing.hK();d-c>=this.policy.al*.8?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=this.j>=5):this.j=0}else{var e=a-this.timing.EY(); e>0&&(this.j+=1);a=VDa(RX(this),!1)*this.policy.XD;(b=e>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.j>0&&this.Cb.sQ(); b?this.dI(!1):this.B.start()}}; g.k.dI=function(a){this.D=!0;a&&(a=RX(this),a.C+=1);this.Cb.Az();this.lastError="net.timeout";SX(this)}; g.k.canRetry=function(a){var b=RX(this);a=a?this.policy.uw:this.policy.Fj;return b.timedOut0&&(b=KJ(b.j,0),a.ubyte=b,c===1&&b===0&&(a.b248180278=!0))}this.Bg&&(a.rc=this.policy.Yl?this.Bg:this.Bg.toString());this.policy.Wc&&this.W2&&(a.tr=this.W2);a.itag=this.info.gb[0].j.info.itag;a.ml=""+ +this.info.gb[0].j.pg();a.sq=""+this.info.gb[0].Pa;this.ke&&(a.ifi=""+ +uL(this.info.resource.C));this.Bg!==410&&this.Bg!==500&&this.Bg!==503||(a.fmt_unav="true");var d;(c=this.errorMessage||((d=this.xhr)==null? void 0:d.Yf()))&&(a.msg=c);this.TH&&(a.smb="1");this.info.fq()&&(a.sdai="1");return a}; g.k.lY=function(){return $Va(this.timing)}; g.k.Yf=function(){return this.xhr.Yf()||""}; g.k.Gx=function(){return this.isComplete()||this.timing.Gx()}; g.k.Cs=function(){!this.La()&&this.xhr&&(this.Bg=this.xhr.status,this.policy.mq&&this.fg&&this.Om(!1),this.Pl()?this.wB(2):!this.hZ&&this.Gx()&&(this.wB(),this.hZ=!0))}; g.k.Xu=function(){if(!this.La()&&this.xhr){if(!this.Qz&&this.xhr.ou()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Qz=((0,g.T)()-a)/1E3}this.xhr.ou()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.HD&&!RBa()&&g.us("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.Pu)==null||c.stop();this.bq=a||this.bq; this.Tr=b||this.Tr}}; g.k.Po=function(){var a=this.xhr;if(!this.La()&&a){this.Bg=a.status;a=this.wQ(a);if(this.policy.Wc){var b;(b=this.Pu)==null||b.stop()}a===5?SX(this.Cd):this.zd(a);this.Cd.B.stop()}}; g.k.wQ=function(a){var b=this;PWa(this);if(TX(this.Cd,this.xhr.status,this.Tp?this.timing.Y||this.YM:this.xhr.bv(),!1,this.Bu))return 5;var c="";if(LWa(this)){var d=a.TL();d.totalLength<=this.policy.jq&&(c=MWa(this,IJ(d)))}if(c)return lM(RX(this.Cd)),this.info.Gl(this.ke,c),3;c=a.Km();if(this.Ul){this.Om(!0);PWa(this);if(TX(this.Cd,this.xhr.status,this.timing.Y||this.YM,!1,this.Bu))return 5;if(!this.r3){if(this.YM)return lM(RX(this.Cd)),3;this.Cd.lastError="net.closed";return 5}}else{if(TX(this.Cd, this.xhr.status,this.xhr.bv(),!1,this.Bu))return 5;if((d=this.info.C)&&d!==c||a.gM())return this.Cd.lastError="net.closed",5;this.Om(!0)}d=fWa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=fWa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.Z1=!0,this.policy.UC&&(d=a);nWa(this.Cd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(e.Wa*1E3+e.j-Date.now()).toFixed(0)}); return 4}; g.k.canRetry=function(){this.La();var a=this.info.fq();return this.Cd.canRetry(a)}; g.k.onStateChange=function(){this.isComplete()&&(this.policy.zp?this.Az():this.timing.deactivate())}; g.k.dI=function(a){this.Cd.dI(a)}; g.k.sQ=function(){this.callback&&this.callback(this,this.state)}; g.k.kx=function(){return this.Cd.kx()}; g.k.dispose=function(){NX.prototype.dispose.call(this);this.Cd.dispose();var a;(a=this.Pu)==null||a.dispose();this.policy.zp||this.Az()}; g.k.Az=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.k.Vk=function(){if(!this.TG().length)return[];this.yQ=!0;return this.fg.Vk()}; g.k.Pl=function(){if(this.state<1)return!1;if(this.fg&&this.fg.wf.length)return!0;var a;return((a=this.xhr)==null?0:a.Wr())?!0:!1}; g.k.TG=function(){this.Om(!1);return this.fg?this.fg.TG():[]}; g.k.Om=function(a){try{if(a||this.xhr.ou()&&this.xhr.Wr()&&!LWa(this)&&!this.LB)this.fg||(this.fg=new EW(this.policy,this.info.gb)),this.xhr.Wr()&&(this.Ul?this.Ul.feed(this.xhr.Qy()):FW(this.fg,this.xhr.Qy(),a&&!this.xhr.Wr()))}catch(b){this.Ul?KWa(this,b):g.yw(b)}}; g.k.GB=function(a,b){switch(a){case 21:a=b.split(1).un;NWa(this,a);break;case 22:this.r3=!0;FW(this.fg,new DJ([]),!0);break;case 43:if(a=ZJ(new TJ(b),1))this.info.Gl(this.ke,a),this.YM=!0;break;case 45:b=VK(new TJ(b));a=b.pT;b=b.qT;a&&b&&(this.dJ=a/b);break;case 44:this.lC=MCa(new TJ(b));var c,d,e;!this.timing.Y&&((c=this.lC)==null?void 0:c.action)===4&&((d=this.lC)==null?0:(e=d.S1)==null?0:e.Tp)&&(this.Tp=this.lC.S1.Tp);break;case 53:this.policy.Wc&&(a=JCa(new TJ(b)).rq)&&(this.Pu||(this.rq=a,this.Pu= new g.Lo(this.A_,a,this)),this.Pu.start());break;case 60:this.cB=UK(new TJ(b));break;case 64:this.policy.bD&&(a=wCa(new TJ(b)),this.policy.Vu(a));break;case 58:this.policy.Jw&&(a=mCa(new TJ(b)))&&(this.qj=a,this.policy.Cj&&a.qj===3&&(this.Bu=!0))}}; g.k.Bs=function(a,b,c,d){c||this.timing.Bs(d);if(a!==21)return!1;if(a=this.policy.mq)if(a*=this.info.gb[0].j.info.tb,b.totalLength+c!==d&&b.totalLength0)return!1;if(!this.xhr.ou())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Ul)var a=!this.info.C;else this.xhr.fF()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a=a==="audio/mp4"||a==="video/mp4"||a==="video/webm");if(!a)return!1;if(isNaN(this.info.ih))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)> this.info.gb[0].Pa)return!1;return!0}; g.k.gQ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.k.YJ=function(){this.xhr&&(this.bq=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.bq}; g.k.sY=function(){this.xhr&&(this.Tr=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Tr}; g.k.Zh=function(){return this.Cd.Zh()}; g.k.A_=function(){if(!this.La()&&this.xhr){this.W2="heartbeat";var a=this.Cd;a.j+=2;this.sQ()}};ZX.prototype.GB=function(a,b){switch(a){case 20:a=new TJ(b);a={cq:WJ(a,1),videoId:ZJ(a,2),itag:WJ(a,3),lmt:WJ(a,4),xtags:ZJ(a,5),mC:WJ(a,6),Do:XJ(a,8),Lq:WJ(a,9),Wma:WJ(a,10),startMs:WJ(a,11),durationMs:WJ(a,12),Js:WJ(a,14),timeRange:$J(a,15,ZBa),Tj:WJ(a,16),rL:WJ(a,17),clipId:ZJ(a,1E3)};this.fS(a);break;case 21:this.dS(b,!1);break;case 22:this.wq(b);break;case 31:a=cK(b,BCa);this.BB(a);break;case 52:a=cK(b,KCa);this.DB(a);break;default:this.TR(a,b)}}; ZX.prototype.fS=function(){}; ZX.prototype.TR=function(){};g.z($X,JX);g.k=$X.prototype;g.k.ew=function(a,b){var c=(a-this.K)/1E3,d=b-this.B;this.wi()?d>0&&(this.Aa&&(c>.2||d<1024?(this.C+=c,c>.2&&dO(this.Kc,.05,d,.05)):dO(this.Kc,c,d,c)),this.Ma&&(this.Ka+=d,this.Wa+=c)):this.policy.j?b>2048&&this.hv(a,b):(eO(this.Kc,(this.G-this.j)/1E3,(a-this.G)/1E3),this.qa=a,this.ra=b);JX.prototype.ew.call(this,a,b)}; g.k.GR=function(a,b){KX(this,a,b);this.ew(a,b);this.Aa&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.wi()&&gO(this.Kc,this.Ka,this.C),a=(a-this.j)/1E3||.01,this.policy.G&&!this.wi()||fO(this.Kc,a,this.B,b,!1))}; g.k.qL=function(a){KX(this,a,this.D);var b=(a-this.K)/1E3;iO(this.Kc,b,0);this.ov(b,0);if(this.Aa||!this.wi())b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.wi()&&(this.C+=(a-this.K)/1E3,gO(this.Kc,this.Ka,this.C)),fO(this.Kc,(a-this.j)/1E3||.01,this.B,b,!1,!0)}; g.k.MG=function(a){a=a.yO||2147483647;(a&2)!==2&&(this.Ma=!1);(a&1)===1&&(this.Aa=!0)}; g.k.DG=function(a){a=a.yO||2147483647;(a&2)===2&&(this.Ma=!1);(a&1)===1&&(this.Aa=!1)}; g.k.FY=function(){return this.qa}; g.k.UJ=function(){var a=this.Ma?this.now()-this.K:0;return Math.max(this.Wa*1E3+a,1)}; g.k.bQ=function(){return this.Ka*1E3/this.UJ()}; g.k.wi=function(){return this.policy.j?JX.prototype.wi.call(this):this.B>2048}; g.k.hv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.wi()||(JX.prototype.hv.call(this,a,b),eO(this.Kc,(this.G-this.j)/1E3,(a-this.G)/1E3))}; g.k.D1=function(a){this.Xa=a}; g.k.rr=function(){var a=JX.prototype.rr.call(this);a.rbw=this.bQ();a.rbe=+this.Ma;a.gbe=+this.Aa;a.ackt=(this.Xa-this.j).toFixed();return a}; g.k.dT=function(){}; g.k.hK=function(){return NaN}; g.k.EY=function(){return this.j+this.snapshot.delay*1E3};g.z(RWa,ZX);g.k=RWa.prototype; g.k.TR=function(a,b){switch(a){case 35:this.xq(b);break;case 44:this.JG(b);break;case 43:this.nS(b);break;case 53:this.lS(b);break;case 55:a=new TJ(b);(a={timeline:$J(a,1,OCa),Lda:$J(a,2,RCa)},a.timeline)&&a.timeline.V2&&this.Cb.sS(a.timeline.V2,a.timeline.qea,a.Lda);break;case 56:this.GG();break;case 57:this.IG(b);break;case 42:this.WR(b);break;case 45:this.yq(b);break;case 59:this.HG(b);break;case 51:this.LG(b);break;case 49:this.MG(b);break;case 50:this.DG(b);break;case 47:this.KG(b);break;case 58:this.Wm(b); break;case 61:this.Cb.Pd.D1((0,g.T)());break;case 66:this.EG(b)}}; g.k.LG=function(a){a=new TJ(a);a={qpa:bK(a,1,SK),ppa:bK(a,2,SK)};this.Cb.LG(a)}; g.k.HG=function(a){var b=new TJ(a);a=aK(b,1);var c=aK(b,2);b=aK(b,3);this.Cb.HG(a,c,b)}; g.k.yq=function(a){a=VK(new TJ(a));this.Cb.yq(a)}; g.k.KG=function(a){a=cK(a,ECa);this.Cb.KG(a)}; g.k.WR=function(a){a=new TJ(a);a={videoId:ZJ(a,1),formatId:$J(a,2,SK),endTimeMs:WJ(a,3),ana:WJ(a,4),mimeType:ZJ(a,5),yZ:$J(a,6,uCa),indexRange:$J(a,7,uCa),CP:$J(a,8,lCa)};this.Cb.WR(a)}; g.k.IG=function(a){a=RCa(new TJ(a));this.Cb.IG(a)}; g.k.GG=function(){this.Cb.GG()}; g.k.xq=function(a){a=CCa(new TJ(a));this.Cb.xq(a)}; g.k.lS=function(a){a=JCa(new TJ(a));this.Cb.lS(a)}; g.k.JG=function(a){a=MCa(new TJ(a));this.Cb.JG(a)}; g.k.nS=function(a){a={redirectUrl:ZJ(new TJ(a),1)};this.Cb.nS(a)}; g.k.dS=function(a){var b=KJ(a,0);if(a.totalLength!==1){a=a.split(1).un;var c=this.B[b]||null;c&&JTa(this.Cb.cg,b,c,a)}}; g.k.wq=function(a){a=KJ(a,0);var b=this.B[a]||null;b&&this.Cb.wq(a,b)}; g.k.DB=function(a){this.Cb.DB(a)}; g.k.fS=function(a){var b=a.cq,c=a.Do,d=a.mC,e=a.rL,f=a.Tj,h=a.Lq,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Js,q=a.clipId,r=QWa(a);a=Vab.has(pE[""+a.itag]);this.B[b]=r;this.Cb.FB(r,a,{cq:b,Do:!!c,mC:d!=null?d:-1,Lq:h!=null?h:-1,startMs:l!=null?l:-1,durationMs:m!=null?m:-1,Js:p,rL:e,Tj:f,clipId:q,timeRange:n})}; g.k.MG=function(a){a={yO:WJ(new TJ(a),1)};this.Cb.MG(a)}; g.k.DG=function(a){a={yO:WJ(new TJ(a),1)};this.Cb.DG(a)}; g.k.BB=function(a){this.Cb.BB(a)}; g.k.Wm=function(a){a=mCa(new TJ(a));this.Cb.Wm(a)}; g.k.EG=function(a){a={FZ:$J(new TJ(a),1,HCa)};this.Cb.EG(a)};g.z(aY,g.O);g.k=aY.prototype;g.k.Cs=function(){!this.La()&&this.xhr&&(this.Om(),w_a(this.Cb,this))}; g.k.Xu=function(){}; g.k.Po=function(){if(!this.La()&&this.xhr){var a=this.wQ();a===5?SX(this.Cd):this.zd(a);this.Cd.B.stop();var b;(b=this.pH)==null||b.stop()}}; g.k.wQ=function(){if(!this.policy.lw&&TX(this.Cd,this.xhr.status,this.xhr.bv(),this.info.Yr(),this.Bu))return 5;this.Om();if(this.policy.lw&&TX(this.Cd,this.xhr.status,this.xhr.bv(),this.info.Yr(),this.Bu))return 5;if(this.T1)return 3;nWa(this.Cd,this.xhr.Km(),0);this.policy.wc&&A_a(this.Cb);return 4}; g.k.Om=function(){var a=this.xhr;if(a.Wr()){a=a.Qy();var b=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+b}); this.Ul.feed(a)}}; g.k.GB=function(a,b){this.Pd.policy.j&&a===21&&this.Pd.hv();this.Nda.GB(a,b)}; g.k.Bs=function(a,b,c,d){this.Pd.policy.j&&a===21&&(this.Pd.Y=!0);c||this.Pd.Bs(d);return!1}; g.k.xq=function(a){this.Cb.xq(a)}; g.k.lS=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;(b=this.pH)==null||b.dispose();this.eT=a;a.b1&&(this.pH=new g.Lo(this.z_,a.b1,this));this.z_()}}; g.k.z_=function(){var a;if((a=this.eT)!=null&&a.items){var b;(b=this.pH)==null||b.start();if(this.Pd.wi()){a=this.Pd.UJ();b=this.Pd.bQ();var c=TWa(this,a);if(!(b>c.hL||c.xR>0&&this.info.OP()>c.xR)){this.fT=(0,g.T)();var d;(d=this.pH)==null||d.stop();this.policy.wc&&(d=this.Cb,a={Lw:Math.round(b*a/1E3),Wy:a},d.policy.wc&&(d.Aa=a,d.Hq++));this.Cd.dI(!1)}}}}; g.k.JG=function(a){this.Cb.JG(a)}; g.k.nS=function(a){this.T1=!0;this.info.resource.Gl(this.ke,a.redirectUrl)}; g.k.MG=function(a){this.Pd instanceof $X&&this.Pd.MG(a)}; g.k.DG=function(a){this.Pd instanceof $X&&this.Pd.DG(a)}; g.k.sS=function(a,b,c){this.Cb.sS(a,b,c,this.Wp())}; g.k.WR=function(a){if($T(this.policy)){var b=a.formatId,c=QWa({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new tM(((d=a.yZ)==null?void 0:d.first)||0,((e=a.yZ)==null?void 0:e.SZ)||0),h,l;d=new tM(((h=a.indexRange)==null?void 0:h.first)||0,((l=a.indexRange)==null?void 0:l.SZ)||0);this.manifest.K.get(c)||(c=a.CP||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=kN(""),c=iN(c,null),cN(a,new $M(b,c,f,d)))}}; g.k.yq=function(a){this.Cb.yq(a)}; g.k.BB=function(a){this.Cb.BB(a)}; g.k.HG=function(a,b,c){this.Cb.HG(a,b,c)}; g.k.IG=function(a){a.scope===2&&(this.Mda=a);this.Cb.IG(a)}; g.k.GG=function(){this.UW=!0;this.Cb.GG()}; g.k.LG=function(a){this.policy.xp&&this.Cb.LG(a)}; g.k.KG=function(a){this.Cb.KG(a,this.Wp())}; g.k.Wm=function(a){this.policy.Cj&&a.qj===3&&(this.Bu=!0);this.Cb.Wm(a)}; g.k.EG=function(a){this.Cb.EG(a)}; g.k.canRetry=function(){this.La();return this.Cd.canRetry(!1)}; g.k.dispose=function(){if(!this.La()){g.O.prototype.dispose.call(this);this.Cd.dispose();var a;(a=this.pH)==null||a.dispose();this.zd(-1);this.Az()}}; g.k.zd=function(a){this.state=a;w_a(this.Cb,this)}; g.k.Yr=function(){return this.info.Yr()}; g.k.EO=function(){return this.UW}; g.k.eQ=function(){return this.Mda}; g.k.FB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.G&&!b&&(this.nj=c.Lq,this.wv=c.startMs);var d=0;this.policy.Sf&&this.B_&&this.clipId&&(d=cX(this.B_,this.clipId)/1E3);this.cg.FB(a,b,c,d);this.cg.fd.get(a).fE=!0}; g.k.wq=function(a,b){this.cg.wq(a,b)}; g.k.DB=function(a){this.requestIdentifier=a}; g.k.Vk=function(a){return this.cg.Vk(a)}; g.k.Zn=function(a){return this.cg.Zn(a)}; g.k.Pl=function(a){return this.cg.Pl(a)}; g.k.Hr=function(){return this.cg.Hr()}; g.k.Up=function(){return 1}; g.k.Wp=function(){return this.Pd.requestNumber}; g.k.cQ=function(){return this.requestIdentifier}; g.k.jY=function(){return this.clipId}; g.k.De=function(){return this.ke.De()}; g.k.W_=function(){this.Az()}; g.k.Az=function(){this.Pd.deactivate();var a;(a=this.xhr)==null||a.abort()}; g.k.isComplete=function(){return this.state>=3}; g.k.MZ=function(){return this.state===3}; g.k.Rm=function(){return this.state===5}; g.k.xQ=function(){return this.isComplete()}; g.k.Cu=function(){return this.state>=1}; g.k.kx=function(){return 0}; g.k.iY=function(){var a;return(a=this.info.data)==null?void 0:a.BO}; g.k.sQ=function(){}; g.k.GY=function(){return qZa(this.info)}; g.k.Zh=function(){return this.Cd.Zh()}; g.k.Ir=function(){var a=oWa(this.Cd);Object.assign(a,sZa(this.info));a.req="sabr";a.rn=this.Wp();var b;if((b=this.xhr)==null?0:b.status)a.rc=this.policy.Yl?this.xhr.status:this.xhr.status.toString();var c;(b=(c=this.xhr)==null?void 0:c.Yf())&&(a.msg=b);this.fT&&(c=TWa(this,this.fT-this.Pd.FY()),a.letm=c.p$,a.mrbps=c.hL,a.mram=c.xR);return a}; g.k.IY=function(){return{nj:this.nj,wv:this.wv,fq:this.info.fq()}};UWa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.T)()};g.z(eXa,g.Xw);g.k=eXa.prototype;g.k.hS=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.Bz);this.K.oS(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}this.policy.Ab?(this.B===1&&dY(this,5,"noad"),gXa(this,a,b),isNaN(a.startTime)||hXa(this,a.Pa,eY(this,a.startTime,a.Pa),!!b,this.K)):c&&gXa(this,a,b)}; g.k.gS=function(a,b,c){var d=this.videoTrack.j.index.qd()<=b;this.j={dh:a,Pa:b,CF:c};d&&cY(this,a,b)}; g.k.qx=function(){this.K&&this.K.qx()}; g.k.oa=function(a,b){this.ya.oa(a,b)}; g.k.Qs=function(a,b){var c=this.videoTrack.j.index.Mi(a);if(c>=0){var d;var e=((d=$W(b.bd,c,2))==null?void 0:d.Ot)||"";if(this.policy.G||e)return b.zv(a,c),jXa(this.ya,a,a,c),this.oa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0}this.oa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.z(iY,g.O);iY.prototype.hp=function(a,b,c){c=c===void 0?{}:c;this.policy.xj=xN(a,c,this.D,b===void 0?!1:b)};pXa.prototype.yL=function(a){var b=this;if(this.policy.YC){var c=new Set(a);c.size===this.Ga.size&&[].concat(g.x(c)).every(function(d){return b.Ga.has(d)})||(this.ya.oa("lwnmow",{itagDenylist:[].concat(g.x(a)).join(",")}),this.ya.Ky(!!c.size),this.Y=-1,this.Ga=c,nY(this,this.j),this.Ra=!0)}}; pXa.prototype.hp=function(a,b,c){c=c===void 0?{}:c;var d=this.policy.xj;this.G.hp(a,b===void 0?!1:b,c);if(d!==this.policy.xj){nY(this,this.j);oY(this);var e,f;d>this.policy.xj&&((e=this.C)==null?0:tE(e.info))&&((f=this.nextVideo)==null||!tE(f.info))&&(this.qa=!0)}};IXa.prototype.dispose=function(){this.ra=!0}; IXa.prototype.La=function(){return this.ra}; g.z(vY,Error);var L4a=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]);yY.prototype.skip=function(a){this.offset+=a}; yY.prototype.Lm=function(){return this.offset};g.k=aYa.prototype;g.k.DY=function(){return this.B}; g.k.So=function(){return this.B.length?this.B[this.B.length-1]:null}; g.k.nk=function(){this.B=[];AY(this);$Xa(this)}; g.k.Ps=function(){this.Ya=this.B.shift().info}; g.k.Zn=function(){return g.nl(this.B,function(a){return a.info})}; g.k.Hh=function(){return!!this.K.info.audio}; g.k.getDuration=function(){return this.K.index.Yt()};g.z(AX,NX);g.k=AX.prototype;g.k.onStateChange=function(){this.La()&&(IW(this.cg,this.formatId),this.j.dispose())}; g.k.Ir=function(){var a=CTa(this.cg,this.formatId),b;var c=((b=this.cg.fd.get(this.formatId))==null?void 0:b.bytesReceived)||0;var d;b=((d=this.cg.fd.get(this.formatId))==null?void 0:d.Iz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:DTa(this.cg,this.formatId),isAnyMediaEndReceived:this.cg.Bx(this.formatId)}}; g.k.lY=function(){return 0}; g.k.Gx=function(){return!0}; g.k.Vk=function(){return this.cg.Vk(this.formatId)}; g.k.TG=function(){return[]}; g.k.Pl=function(){return this.cg.Pl(this.formatId)}; g.k.Zh=function(){return this.lastError}; g.k.kx=function(){return 0};g.z(CY,g.O);g.k=CY.prototype;g.k.So=function(){return this.D.So()}; g.k.Ps=function(a){this.D.Ps(a);var b;(b=this.Z)!=null&&(b.B=EVa(b,b.kd,b.vy,b.B,a),b.D=a,b.G=(0,g.T)());this.tb=Math.max(this.tb,a.info.j.info.tb||0)}; g.k.getDuration=function(){if(this.policy.j){var a=this.ya.Cf();if(a)return fX(a)}return this.j.index.Yt()}; g.k.nk=function(){CX(this);this.D.nk()}; g.k.XP=function(){return this.D}; g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.gb[0].Pa:!1}; g.k.Oq=function(a){var b;(b=this.Z)==null||b.Oq(a)};g.z(RY,g.O);RY.prototype.C=function(){this.B++>15||(this.j=!this.j,new PYa(this.ya,this.policy,this.Kc,this.resource,this.j),this.delay.start())}; g.k=PYa.prototype;g.k.Xu=function(){}; g.k.Cs=function(){}; g.k.Po=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Km()===this.size)this.ya.oa("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.ou()&&(a="net.closed");this.onError(a)}}; g.k.onError=function(a){var b=this;this.ya.handleError(a,this.getInfo());oW("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.ya.oa("pathprobe",c)},function(c){b.ya.handleError(c.errorCode,c.details)})}; g.k.getInfo=function(){var a=this.timing.rr();a.shost=sL(this.location.base);a.pb=this.size;return a};g.z(SY,g.O);SY.prototype.XQ=function(a,b){if(!OY(a)||!a.j.pg())return!1;var c=this.C.Ra||DYa(a)||b<=this.policy.WD||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+DYa(a)+", health: "+b}); return c}; SY.prototype.xa=function(){g.O.prototype.xa.call(this)}; var TY=2/24;g.z(YY,g.O);YY.prototype.xL=function(a,b,c){var d;var e=((d=this.B)==null?void 0:d.reason)==="m"?"m":this.B&&hZa(this,this.B)?this.B.reason:"a";this.ya.xL(new hY(a,e,c));WY(this.ya,b,a,!0)}; YY.prototype.V1=function(a){for(var b=g.w(this.N),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.C=[c],this.K=this.manifest.j[a],this.He.j&&(this.qa=!0),new hY(this.K,"m");this.C=[];return null}; YY.prototype.hp=function(a,b,c){c=c===void 0?{}:c;this.j.hp(a,b===void 0?!1:b,c)};ZY.prototype.Yr=function(){return this.requestType===1}; ZY.prototype.OP=function(){var a;return((a=this.Cb)==null?void 0:a.OP())||0}; ZY.prototype.fq=function(){var a;return!((a=this.data)==null||!a.fn)};$Y.prototype.encrypt=function(a){this.wd.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a}; $Y.prototype.La=function(){return this.cipher===0}; $Y.prototype.dispose=function(){this.wd.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};aZ.prototype.encrypt=function(a,b){return iU(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:b},this.key,a).catch(function(c){return Promise.reject(c.name+": "+c.message)}).then(function(c){return new Uint8Array(c)}))}; aZ.prototype.La=function(){return this.j}; aZ.prototype.dispose=function(){this.j=!0}; sU.LA(aZ,{encrypt:tZa("oan2")});bZ.prototype.encrypt=function(a,b){tJ(this.B,b);return hU(this.B.encrypt(a))}; bZ.prototype.La=function(){return this.j}; bZ.prototype.dispose=function(){this.j=!0}; sU.LA(bZ,{encrypt:tZa("oap")});cZ.prototype.encrypt=function(a,b){var c=this.wd.zE(b),d=this.j;d.wd.exports.AES128CTRCipher_setCounter(d.cipher,(c!=null?c:b).byteOffset);b=this.wd.zE(a);this.j.encrypt(b!=null?b:a);c&&this.wd.exports.free(c.byteOffset);return b?hU(this.wd.BR(b)):hU(a)}; cZ.prototype.La=function(){return this.j.La()}; cZ.prototype.dispose=function(){this.j.dispose()}; sU.LA(cZ,{encrypt:tZa("oalw")});AZa.prototype.encrypt=function(a){(0,g.T)();return(new ZN(this.j.j)).encrypt(a,this.iv)}; AZa.prototype.decrypt=function(a,b){(0,g.T)();return(new ZN(this.j.j)).decrypt(a,b)};EZa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.B=!0;b.Xm.Md("omd_s");c=new Uint8Array(16);wJ()?d=new YN(a):e=new ZN(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ha(4);break}f=b.j.shift();if(!d){h=e.decrypt(IJ(f.buffer),c);m.Ha(5);break}return g.G(m,d.decrypt(IJ(f.buffer),c),6);case 6:h=m.B;case 5:l=h;for(var n=0;n=4)){var b=lZ(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.Yf()){var d="onesie.net";b.msg=c.Yf()}else c.status>=400?d="onesie.net.badstatus":c.bv()?this.gZ||(d="onesie.response.noplayerresponse"):d=c.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.aj(new $D(d,b)):(this.Md("or_fs"),this.Pd.GR((0,g.T)(),c.Km(),0),this.zd(4),this.Pm&&this.oa("rqs",b));this.Pm&&this.oa("ombre", "ok."+ +!d);this.sH=!1;nZ(this);SZa(this.Xm);if(!this.jI){this.PG.stop();var e;(e=this.JL)==null||e.stop()}var f;if(a=(f=this.CA)==null?void 0:WSa(f))for(f=0;f1E3){var a;(a=this.Pd)==null||a.qL((0,g.T)());a=lZ(this);if(this.W.zc()&&this.xhr instanceof gWa){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.totalLength;a.xdc=b.D}this.aj(new $D("net.timeout",a))}}else(0,g.T)()-this.Pd.j>1E4&&((b=this.Pd)==null||b.qL((0,g.T)()),this.uQ());this.isComplete()||this.MO.start()}}; g.k.uQ=function(){this.logger.info("Onesie request timed out");this.sH=!1;if(!nZ(this)){var a=lZ(this);a.timeout="1";this.aj(new $D("onesie.request",a))}}; g.k.aj=function(a){var b=this;a=bE(a);this.NA?this.ea.Id(a):(this.Sq.reject(a),this.NA=!0);SZa(this.Xm);this.jI||this.PG.stop();this.Md("or_fe");var c,d;(c=this.CA)==null||(d=WSa(c))==null||d.forEach(function(e){b.oa("pathprobe",e)}); this.zd(5);this.dispose()}; g.k.isComplete=function(){return this.state>=3}; g.k.xQ=function(a){var b,c;return this.isComplete()||!!((b=this.dg)==null?0:(c=b.get(a))==null?0:c.j)}; g.k.MZ=function(){return!1}; g.k.Rm=function(){return this.state===5}; g.k.notifySubscribers=function(a){for(var b=0;b102400&&!this.HZ&&(this.Md("or100k"),this.HZ=!0);if(a.Wr()){var b=a.Qy(),c=b.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); this.Pm&&this.oa("ombrss","len."+c);this.Ul.feed(b)}if(this.dg)for(var d=g.w(this.dg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;(a=this.dg.get(f))==null||a.wB();this.notifySubscribers(f)}}catch(h){this.aj(h)}}; g.k.Wp=function(){return this.Pd.requestNumber}; g.k.cQ=function(a){return this.K1.get(a)}; g.k.IY=function(){return{nj:this.nj,wv:this.wv,fq:!1}};g.z(l_a,g.O);g.k=l_a.prototype;g.k.tv=function(a){this.qa=void 0;A_a(this);y_a(this,a)}; g.k.WQ=function(a){if(this.j.length===0)return!1;var b=this.j[0];return b instanceof mZ&&this.policy.fl?a===this.ya.getCurrentTime()*1E3:!(b instanceof aY&&rZa(b.info))&&Math.abs(b.GY()-a)<50}; g.k.xq=function(a){this.B=a;this.qa=(0,g.T)()+(a.backoffTimeMs||0)}; g.k.JG=function(a){if(a.action===void 0){var b=this.ea.lx();b!==void 0&&this.ya.Lu(b)}else if(a.action!==0||!this.Ma)switch(b={},b.reason=a.nda,b.action=a.action,a.action){case 1:this.policy.G&&this.K&&this.K.HE(void 0,void 0,b);break;case 0:this.Ma=!0;this.ya.nP(b);break;case 2:this.ya.handleError("sabr.config",b,1);break;case 5:C4a(this.ea,!0);break;case 6:C4a(this.ea,!1);break;case 3:this.policy.hD&&((a=this.manifest.Y)!=null&&(a.N=!0),this.ya.handleError("sabr.hostfallback",b))}}; g.k.sS=function(a,b,c,d){if(this.policy.j){this.ya.oa("ssap",{rn:d,v:b,tl:C_a(a)});var e=this.ya.Cf();a={Ht:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.Bk.add(c.type));e?z_a(this,e,a):(this.ya.oa("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}}; g.k.IG=function(a){this.policy.qa&&a&&a.type&&a.sendByDefault&&this.Bk.add(a.type)}; g.k.GG=function(){}; g.k.yq=function(a){if(a.pT!==void 0&&a.qT){var b=a.pT/a.qT;this.audioTrack.N=!1;this.videoTrack.N=!1;if(this.policy.ra||this.policy.Jg)this.ya.Mg.B=!1;this.ya.Gp(b,1);if(this.ea.getCurrentTime()!==b){var c={Zc:"sabr_seek",YA:!0,RT:!0};a.seekSource&&(c.seekSource=a.seekSource);GX(this.ya,b,c)}}}; g.k.BB=function(a){a.xK&&a.yK&&qN(this.manifest,a.xK,a.yK);this.policy.Mv&&(a.J_&&a.K_&&(this.manifest.Fa=a.J_/a.K_),a.w_&&a.x_&&(this.manifest.Z=a.w_/a.x_))}; g.k.Wm=function(a){this.ya.Wm(a)}; g.k.HG=function(a,b,c){this.policy.C&&this.ya.oa("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.w(a);for(var d=a.next();!d.done;d=a.next())this.Bk.add(d.value)}if(b)for(b=g.w(b),a=b.next();!a.done;a=b.next())a=a.value,this.Bk.has(a)&&this.Bk.delete(a);if(c)for(c=g.w(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),b===3&&(this.videoData.XA=""))}; g.k.LG=function(){}; g.k.KG=function(a,b){bU(this.policy,a,4,b)}; g.k.EG=function(a){if(a==null?0:a.FZ)if(a=a.FZ.J8){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.formatId){var c=this.manifest.K.get(XHa(b.formatId));c&&c.info&&(c.info.debugInfo=b.debugInfo)}}}; g.k.qf=function(){return this.ea.qf()||""}; g.k.OP=function(){var a=KY(this.audioTrack,!0)*1E3,b=KY(this.videoTrack,!0)*1E3;return Math.min(a,b)}; g.k.Hk=function(a,b){this.ya.oa(a,b)}; g.k.rK=function(a){V_a(this.ya,zXa(this.ra,a))}; g.k.xa=function(){g.O.prototype.xa.call(this);this.B=void 0;y_a(this,!0);this.j=[]};D_a.prototype.Ve=function(a,b){if(this.D)return I_a(this,b);if(b=HX(a)){var c=b.B;c&&c.C&&c.j&&(a=a.C.length?a.C[0]:null)&&a.state>=2&&!a.Rm()&&a.info.ih===0&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN}; D_a.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.z(g.rZ,g.O);g.k=g.rZ.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a}); a=a||0;$T(this.policy)||(b=qY(this.j),Y_a(this.ea,new hY(b.video,b.reason)),this.ea.oy(new hY(b.audio,b.reason)));this.manifest.isManifestless&&bZa(this.D);this.G&&F_a(this.G,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.manifest.isManifestless;this.policy.Qv&&(d=d||this.manifest.Wd);this.policy.yb||(this.currentTime=d?a:b);this.policy.ra&&this.seek(this.getCurrentTime(),{}).Xk(function(){}); if(this.policy.B){var e;((e=this.qa)==null?0:k_a(e,this.qf()||""))&&N_a(this)&&M_a(this,this.videoTrack)&&M_a(this,this.audioTrack)&&(B_a(this.Z,this.qa),this.policy.K&&L_a(this))}else this.ra&&(O_a(this,this.videoTrack),O_a(this,this.audioTrack),BTa(this.ra),delete this.ra);c?(this.policy.Rf?(this.Jb=c,uZ(this,c)):uZ(this,!1),g.Mo(this.hG)):(c=this.getCurrentTime()===0,VY(this.D,this.videoTrack,this.videoTrack.j,c),VY(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.B&&o_a(this.Z,!0),this.policy.ra|| this.seek(this.getCurrentTime(),{}).Xk(function(){}),this.timing.tick("gv")); (this.manifest.gf||this.manifest.zi||this.manifest.Ra||this.manifest.Tb||this.manifest.Rc)&&this.ea.gH(this.manifest)}; g.k.resume=function(){if(this.isSuspended||this.Zr){this.logger.debug("Resumed.");this.AJ=this.Zr=this.isSuspended=!1;try{this.Ve()}catch(a){g.xw(a)}}}; g.k.aA=function(a){a=a===void 0?!1:a;this.logger.debug("detaching media source");R_a(this);WE(this.ea)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ka&&this.oa("loader",{setsmb:1}),this.policy.Ma=!0):this.policy.Rf?uZ(this,this.Jb):uZ(this,!1);this.nk()}; g.k.setAudioTrack=function(a,b,c){c=c===void 0?!1:c;if(!this.La()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Je&&(this.Wa=!0));if($T(this.policy)){var e=this.B.V1(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id}); this.ea.oy(e)}else{var f=yXa(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id}); this.ea.oy(new hY(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Mi(b),this.oa("setAudio",{id:a.id,cmt:b,sq:c}),c>=0)){this.policy.B&&(this.B.Z=!0,this.tv(!0));CYa(this.audioTrack,c,NaN,NaN);pN(this.manifest,c,!1);return}this.ea.Jq()}}; g.k.setPlaybackRate=function(a){a!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)}; g.k.xL=function(a){var b=a.j.info.Hh();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+EE(a.j.info)}); b?this.ea.oy(a):Y_a(this.ea,a)}; g.k.rK=function(a){zM(a.gb[a.gb.length-1])&&V_a(this,zXa(this.j,a.gb[0].j))}; g.k.Zt=function(){return this.ea.Zt()}; g.k.fK=function(){return this.ea.fK()}; g.k.Wm=function(a){if(this.policy.Cj)if(a.qj===1)this.ea.uC(0);else{if(a.qj===2||a.qj===3){var b=!1;if(a.qj===3){b=this.ea.wA();var c;this.Ob=(c=a.G1)!=null?c:Infinity;this.ea.uC(b+1);(b=aZa(this))&&this.nB(!0)}this.ea.pS(!0,b)}}else this.ea.Wm(a)}; g.k.uA=function(){return this.ea.uA()}; g.k.Cl=function(){return this.ea.Cl()}; g.k.uS=function(a){this.ea.uS(a)}; g.k.bda=function(){var a,b=(a=this.ea.Le())==null?void 0:a.getCurrentTime();b?this.ea.oa("rms",{cta:b}):g.Mo(this.Kb)}; g.k.Ve=function(){U_a(this);if(this.Qa&&TE(this.Qa)&&!this.Qa.Fk()){var a=EY(this.videoTrack);a=this.policy.QD&&a&&a.Ni();this.manifest.isManifestless&&this.manifest.C&&mN(this.manifest)?(this.N=mN(this.manifest),this.Qa.Yo(this.N)):rN(this.manifest)&&!a?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.Qa.Yo(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.Qa.Yo(this.N)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()), (!isFinite(this.N)||this.N!==a)&&a>0&&(this.Qa.Yo(a),this.N=a))}if(!this.La())if(lN(this.manifest)&&this.manifest.Rm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.yb?{rc:b.Bg}:{rc:b.Bg.toString()},1)}else if(this.policy.B)a:{try{u_a(this.Z);this.manifest.isManifestless&&this.policy.K&&FX(this.Mg);if($T(this.policy)&&!QE()&&this.policy.Cn&&this.Qa&&!XE(this.Qa)&&this.videoTrack.Ma&&this.audioTrack.Ma){this.oa("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.rb, a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.rb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!XE(c)&&e&&d&&(Awa(c,d.info,e.info,this.policy.Ob),S_a(this,c))}var f;((f=this.Qa)==null?0:XE(f))&&this.RB();$T(this.policy)||tZ(this);o_a(this.Z)}catch(l){g.yw(l);b=l;if(b.message.includes("changeType")){this.oa("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1)}m0a(this);g.Mo(this.Xa)}else if(!this.manifest.B|| !GYa(this.videoTrack)&&!GYa(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Jb?c=!1:(this.nk(),this.ea.seekTo(Infinity,{Zc:"checkLoaderTracksSync",Gp:!0}),c=!0),!c){U_a(this);this.manifest.isManifestless&&(HYa(this.videoTrack),HYa(this.audioTrack),FX(this.Mg),(c=HX(this.videoTrack))&&c.B&&(c=c.B.C&&!this.policy.wk,this.oa(c===this.policy.N.tj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.tj,dfs:this.policy.wk},!0)));if(this.Qa)this.RB();else if(this.policy.D){var h;c=!1;if(this.policy.aC)for(d= g.w([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=HX(f);e&&f.So()!==EY(f);e=HX(f))f.Ps(e);c=c||!!e}else(b=HX(this.videoTrack))&&this.videoTrack.Ps(b),(h=HX(this.audioTrack))&&this.audioTrack.Ps(h);HY(this.videoTrack)&&HY(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&vZ(this)}tZ(this);VY(this.D,this.videoTrack,this.videoTrack.j,!1);VY(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.QC||X_a(this,this.videoTrack, this.audioTrack);UYa(this.D,this.videoTrack,this.audioTrack);UYa(this.D,this.audioTrack,this.videoTrack);m0a(this);this.G&&(b=this.G,b.D?(h=b.K+b.policy.xw,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.bk)),b=Math.max(0,h*1E3-Date.now())):b=NaN,isNaN(b)||g.Mo(this.Tb,b));g.Mo(this.Xa)}}; g.k.nP=function(a){this.ea.nP(a)}; g.k.RB=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B;t0a(this,this.audioTrack);t0a(this,this.videoTrack);var d=$_a(this);if(d){if(this.policy.gt){if(!b.ex()){var e=HX(this.audioTrack);if(e){if(!qZ(this,this.audioTrack,b,e.info))return;c0a(this,b,e)}}if(!c.ex()&&(e=HX(this.videoTrack))){if(!qZ(this,this.videoTrack,c,e.info))return;c0a(this,c,e)}}this.Fp||(this.Fp=(0,g.T)(),this.logger.debug(function(){return"Appends pause start "+a.Fp+" reason "+d}),this.policy.C&&this.oa("apdps",{r:d}))}else if(this.Fp&& (Z_a(this,this.Fp),this.Fp=0),a0a(this),e=!1,this.policy.j&&QY(this.videoTrack)||!g0a(this,this.videoTrack,c)||(e=!0,XWa(this.timing),aXa(this.timing)),this.Qa&&!this.Qa.Og()&&(this.policy.j&&QY(this.audioTrack)||!g0a(this,this.audioTrack,b)||(e=!0,YWa(this.timing),bXa(this.timing)),!this.La()&&this.Qa)){if(!this.policy.Xa&&HY(this.videoTrack)&&HY(this.audioTrack)&&TE(this.Qa)&&!this.Qa.Fk()){c=!1; c=EY(this.audioTrack);if(this.policy.j){var f;b=(f=this.ub)==null?void 0:eX(f,c.Xe*1E3);c=!(!b||b.clipId!==c.clipId);this.oa("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),Bwa(this.Qa),dJa(this.schedule))}e&&!this.Qa.isAsync()&&vZ(this)}}}; g.k.u6=function(a){var b=this,c,d;(d=(a===((c=this.Qa)==null?void 0:c.j)?this.audioTrack:this.videoTrack).Aa)==null||d.stop();var e;s0a(this,a===((e=this.Qa)==null?void 0:e.j));var f;if(this.policy.Je&&a===((f=this.Qa)==null?void 0:f.j)&&this.Ya){c=this.Ya-this.getCurrentTime();var h;this.ea.oa("asl",{l:c,xtag:(h=EY(this.audioTrack))==null?void 0:h.j.info.j});this.Wa=!1;this.Ya=0}a.Qm()&&a.qe().length===0&&(a.Lz(),this.Qa&&!this.Qa.Qm()&&(this.ea.U().zc()&&this.ea.oa("rms",{ld:"seek"}),this.Qa.N= performance.now(),this.ea.BP(),this.ea.U().zc()&&g.Mo(this.Kb)));if(this.policy.Ra&&this.Qa){h=a===this.Qa.j;var l=a.Kr();if(l){if(!l.Ub||l.Te)h=a.uc({a:h}),h.omt=(this.getCurrentTime()+this.Dc()).toFixed(3),h.to=this.Dc(),this.oa("sbu",h),this.policy.Bp&&l.Ni()&&!IE(a.qe(),Math.min(l.Xe+TY,l.Nf))&&this.oa("sbunb",{st:l.Xe,et:l.Nf});l.Te&&!a.Fk()&&setTimeout(function(){var m=a.qe(),n=HE(m,l.startTime+TY),p=HE(m,b.getCurrentTime());(n<0||n!==p)&&b.oa("sbu_mismatch",{b:GE(m),c:b.getCurrentTime(),s:l.Sc()})}, 0)}}this.Ve()}; g.k.oaa=function(a){if(this.Qa){var b=EY(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.dQ())for(var c=0;cthis.C&&(this.C=c,g.Bc(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Mo(this.B))}}; yZ.prototype.G=function(){for(var a=g.w(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(yi),f=[],h=g.w(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,l.indexOf("cpi=")===0?f.push("cpi="+d.toString()):l.indexOf("ek=")===0?f.push("ek="+g.Qd(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=c.length*2;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e0)for(var c=g.w(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.T)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.w(this.C.values());for(var e=d.next();!e.done;e=d.next())if(Math.abs(e.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=a.j,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length, ignore:this.D});c<=0?y0a(this,a):this.D||(this.j.push({time:b+c,info:a}),g.Mo(this.B,c))}}; zZ.prototype.xa=function(){this.j=[];xZ.prototype.xa.call(this)};var u2={},G0a=(u2.DRM_TRACK_TYPE_AUDIO="AUDIO",u2.DRM_TRACK_TYPE_SD="SD",u2.DRM_TRACK_TYPE_HD="HD",u2.DRM_TRACK_TYPE_UHD1="UHD1",u2);g.z(C0a,g.O);g.z(I0a,g.Xw);g.k=I0a.prototype;g.k.uq=function(a){var b=this;this.La()||a.size<=0||(a.forEach(function(c,d){var e=BN(b.B)?d:c;d=new Uint8Array(BN(b.B)?c:d);BN(b.B)&&Z0a(d);c=g.Pe(d,4);Z0a(d);d=g.Pe(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),U0a(this,","),AZ(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.k.error=function(a,b,c,d){this.La()||(this.publish("licenseerror",a,b,c,d),a==="drm.provision"&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));aE(b)&&this.dispose()}; g.k.shouldRetry=function(a,b){return this.Ga&&this.N?!1:!a&&this.requestNumber===b.requestNumber}; g.k.xa=function(){this.j={};g.Xw.prototype.xa.call(this)}; g.k.uc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Fa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a}; g.k.getInfo=function(){var a=this.D.join();if(BZ(this)){var b=new Set,c;for(c in this.j)this.j[c].status!=="usable"&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; g.k.De=function(){return this.url};g.z(CZ,g.O);g.k=CZ.prototype;g.k.v6=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}}; g.k.uq=function(){this.N&&this.N(this.j.keyStatuses)}; g.k.onClosed=function(){this.La()||g.Br("xboxone")&&this.C&&this.C("closed")}; g.k.v0=function(a){this.G&&this.G(a.message,"license-request")}; g.k.u0=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.t0=function(){this.K&&this.K()}; g.k.update=function(a){var b=this;if(this.j)return(PN.isActive()?PN.fv("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,rK(function(c){a1a(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 tr()}; g.k.xa=function(){this.j&&(this.Y?this.j.close().catch(g.yw):this.j.close());this.element=null;g.O.prototype.xa.call(this)};g.z(DZ,g.O);g.k=DZ.prototype;g.k.sO=function(){var a=this;if(this.j.keySystemAccess)return(PN.isActive()?PN.fv("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.La())if(a.B=c,PN.isActive())PN.fv("emeset",function(){return a.element.setMediaKeys(c)}); else{var d;(d=a.element)==null||d.setMediaKeys(c)}}); if(AN(this.j))this.C=new (zN())(this.j.keySystem);else if(CN(this.j)){this.C=new (zN())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.C)}else PN.isActive()&&this.oa("emev",{v:"01b"}),os(this.G,this.element,["keymessage","webkitkeymessage"],this.y6),os(this.G,this.element,["keyerror","webkitkeyerror"],this.x6),os(this.G,this.element,["keyadded","webkitkeyadded"],this.w6);return null}; g.k.setServerCertificate=function(){return this.B.setServerCertificate?this.j.flavor==="widevine"&&this.j.qm?this.B.setServerCertificate(this.j.qm):EN(this.j)&&this.j.fb?this.B.setServerCertificate(this.j.fb):null:null}; g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();DN(this.j)?c=b1a(c,this.j.fb):EN(this.j)&&(c=x0a(c)||new Uint8Array(0));b&&b("genreq");var e=PN.isActive()?PN.fv("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c); var f=new CZ(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},rK(function(l){a1a(f,"t.generateRequest",l)})); return f}if(AN(this.j))return d1a(this,c);if(CN(this.j))return c1a(this,c);if((e=this.element)==null?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;(h=this.element)==null||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new CZ(this.element,this.j,c,null,null,this.N)}; g.k.y6=function(a){var b=e1a(this,a);b&&b.v0(a)}; g.k.x6=function(a){var b=e1a(this,a);b&&b.u0(a)}; g.k.w6=function(a){var b=e1a(this,a);b&&b.t0(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;(a=this.D)==null||a.dispose();a=g.w(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.O.prototype.xa.call(this);delete this.element};g.k=EZ.prototype;g.k.get=function(a){a=this.findIndex(a);return a!==-1?this.values[a]:null}; g.k.remove=function(a){a=this.findIndex(a);a!==-1&&(this.keys.splice(a,1),this.values.splice(a,1))}; g.k.removeAll=function(){this.keys=[];this.values=[]}; g.k.set=function(a,b){var c=this.findIndex(a);c!==-1?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; g.k.findIndex=function(a){return g.Mb(this.keys,function(b){return g.ac(a,b)})};g.z(h1a,g.Xw);g.k=h1a.prototype;g.k.Naa=function(a){this.wj({onecpt:1});a.initData&&k1a(this,new Uint8Array(a.initData),a.initDataType)}; g.k.oba=function(a){this.wj({onndky:1});k1a(this,a.initData,a.contentType)}; g.k.py=function(a){this.wj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));j1a(this,a)}; g.k.QW=function(a){this.C.push(a);FZ(this)}; g.k.createSession=function(a){var b=m1a(this)?UXa(a):g.Pe(a.initData);this.B.get(b);this.Fa=!0;a=new I0a(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.vL,this);a.subscribe("keystatuseschange",this.uq,this);a.subscribe("licenseerror",this.zL,this);a.subscribe("newlicense",this.q0,this);a.subscribe("newsession",this.r0,this);a.subscribe("sessionready",this.C0,this);a.subscribe("fairplay_next_need_key_info",this.k0,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange", this.yU,this);this.W.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.eca,this);M0a(a,this.D)}; g.k.q0=function(a){this.La()||(this.wj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))}; g.k.r0=function(){this.La()||(this.wj({newlcssn:1}),this.C.shift(),this.Fa=!1,FZ(this))}; g.k.C0=function(){if(AN(this.j)&&(this.wj({onsnrdy:1}),this.Ka--,this.Ka===0)){var a=this.qa,b,c;(b=a.element)==null||(c=b.msSetMediaKeys)==null||c.call(b,a.C)}}; g.k.uq=function(a){if(!this.La()){!this.Ma&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(n1a(this),this.Ma=!0);this.wj({onksch:1});var b=this.yU;if(!BZ(a)&&g.Jt&&a.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(BZ(a))for(var e=g.w(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,a.j[f].status==="usable"&&c.push(a.j[f].type),a.j[f].status!=="unknown"&&(d=!1);if(!BZ(a)||d)c=a.D;c=T0a(c)}b.call(this,c);this.publish("keystatuseschange", a)}}; g.k.vL=function(a,b){this.La()||this.publish("ctmp",a,b)}; g.k.k0=function(a,b){this.La()||this.publish("fairplay_next_need_key_info",a,b)}; g.k.zL=function(a,b,c,d){this.La()||(this.videoData.L("html5_log_drm_metrics_on_error")&&n1a(this),this.publish("licenseerror",a,b,c,d))}; g.k.hx=function(){return this.Z}; g.k.yU=function(a){var b=g.$K("auto",a,!1,"l");if(this.videoData.Zj){if(ZK(this.Z,b))return}else if(WCa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.wj({updtlq:a})}; g.k.eca=function(a){this.videoData.sabrLicenseConstraint=a}; g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Aa?this.element.setMediaKeys(null).catch(g.yw):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.w(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.vL,this),b.unsubscribe("keystatuseschange",this.uq,this),b.unsubscribe("licenseerror",this.zL,this),b.unsubscribe("newlicense",this.q0,this),b.unsubscribe("newsession",this.r0,this),b.unsubscribe("sessionready",this.C0,this),b.unsubscribe("fairplay_next_need_key_info", this.k0,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.yU,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.Xw.prototype.xa.call(this)}; g.k.uc=function(){for(var a={systemInfo:this.j.uc(),sessions:[]},b=g.w(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.uc());return a}; g.k.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")}; g.k.wj=function(a,b){b=b===void 0?!1:b;this.La()||(ZD(a),(this.W.zc()||b)&&this.publish("ctmp","drmlog",a))};g.z(o1a,g.O);g.k=o1a.prototype;g.k.GJ=function(){return!!this.aG}; g.k.NK=function(){return this.B}; g.k.handleError=function(a){var b=this;v1a(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!u1a(this,a.errorCode,a.details))&&!z1a(this,a)){if(this.Da.qa!=="yt"&&x1a(this,a)&&this.videoData.jq&&(0,g.T)()/1E3>this.videoData.jq&&this.Da.qa==="hm"){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.jq;c.init=this.videoData.nW/1E3;c.now=(0,g.T)()/1E3;c.systelapsed=((0,g.T)()-this.videoData.nW)/1E3;a= new $D(a.errorCode,c,2);this.ea.Mf(a.errorCode,2,"SIGNATURE_EXPIRED",ZD(a.details))}if(aE(a.severity)){var d;c=(d=this.ea.ya)==null?void 0:d.j.j;if(this.Da.L("html5_use_network_error_code_enums"))if(w1a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else if(this.Da.K||a.errorCode!=="auth"||a.details.rc!==429)a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED");else{e="TOO_MANY_REQUESTS";var f="6"}else w1a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Da.K||a.errorCode!=="auth"|| a.details.rc!=="429"?a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED"):(e="TOO_MANY_REQUESTS",f="6");this.ea.Mf(a.errorCode,a.severity,e,ZD(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Id(a.errorCode,a.details),d&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.T)(),oW(a,"manifest",function(h){b.K=!0;b.oa("pathprobe",h)},function(h){b.Id(h.errorCode, h.details)}))}}; g.k.oa=function(a,b){this.ea.hc().oa(a,b)}; g.k.Id=function(a,b){b=ZD(b);this.ea.hc().Id(a,b)};C1a.prototype.HP=function(a){return a?{T0:N1a(this,a)}:{T0:DP}}; C1a.prototype.L=function(a){return this.W.L(a)};g.z(JZ,g.O);JZ.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.L("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match(Kbb)?this.networkErrorCount++:this.nonNetworkErrorCount++}; JZ.prototype.send=function(){if(!(this.C||this.j<0)){T1a(this);var a=g.FI(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.fh;this.playerState.isError()?b=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.Z(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.Z(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.Z(this.playerState,16)||g.Z(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.Z(this.playerState,1)&&g.Z(this.playerState, 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.Z(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.Z(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.Z(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=G4a[lQ(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=U1a(this.provider), f=this.B<0?a:this.B-this.j;a=this.provider.W.Tf+36E5<(0,g.T)();b={started:this.B>=0,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.jQ(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:PP(this.provider.videoData)};a||g.Xs("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}}; JZ.prototype.xa=function(){this.C||this.send();window.removeEventListener("error",this.AB);window.removeEventListener("unhandledrejection",this.AB);g.O.prototype.xa.call(this)}; var Kbb=/\bnet\b/;var V1a=/[?&]cpn=/;var $1a=Math.pow(10,8);g.z(g.MZ,g.O);g.k=g.MZ.prototype;g.k.H9=function(){var a=g.FI(this.provider);c2a(this,a)}; g.k.lF=function(){return this.Ma}; g.k.qF=function(){return{TB:this.TB,UB:this.UB}}; g.k.FH=function(a,b){this.TB=a;this.UB=b}; g.k.gH=function(a){this.j.lwc=[[a.gf?a.gf.toFixed():"",a.zi?a.zi.toFixed():"",a.Ra?(a.Ra*1E3).toFixed():"",a.Tb?(a.Tb*1E3).toFixed():"",a.Rc?(a.Rc*1E3).toFixed():""].join(":")]}; g.k.reportStats=function(a){a=a===void 0?NaN:a;if(!this.La()&&(a=a>=0?a:g.FI(this.provider),["PL","B","S"].indexOf(this.Fe)>-1&&(!g.Bc(this.j)||a>=this.G+30)&&(g.LZ(this,a,"vps",[this.Fe]),this.G=a),!g.Bc(this.j))){this.sequenceNumber===7E3&&g.yw(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){NZ(this,a);var b=a,c=this.provider.ea.xF(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.TB,h=e&&!this.UB;d>c.totalVideoFrames||f>5E3?k2a(this,"html5.badframedropcount","df."+d+";tf."+ c.totalVideoFrames):(f>0||h)&&g.LZ(this,b,"df",[f]);this.TB=d;this.UB=e;this.Z>0&&(g.LZ(this,a,"glf",[this.Z]),this.Z=0);$1.isActive()&&(a=$1.eY(),Object.keys(a).length>0&&this.oa("profile",a));this.yb&&OZ(this,"lwnmow");this.provider.W.zc()&&this.provider.L("html5_record_now")&&this.oa("now",{wt:(0,g.T)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&& (a.adcpn=this.adCpn);this.Y&&(a.addocid=this.Y);this.contentCpn&&(a.ccpn=this.contentCpn);this.ra&&(a.cdocid=this.ra);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=yQ(this.provider.videoData);a.content_v=AQ(this.provider.videoData);a.ns=this.provider.W.qa;a.fexp=PIa(this.provider.W.experiments).toString();a.cl=(658166115).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=lQ(this.provider.videoData))&&(a.live=b);this.provider.videoData.ej()&& (a.drm=1,this.provider.videoData.G&&(a.drm_system=pbb[this.provider.videoData.G.flavor]||0),this.provider.videoData.il&&(a.drm_product=this.provider.videoData.il));Wq()&&this.provider.videoData.K&&(a.ctt=this.provider.videoData.K,a.cttype=this.provider.videoData.yn,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.IU&&(a.dai_fallback= "1")):this.provider.videoData.rd?a.dai="cs":this.provider.videoData.dE&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.RZ){if(b=this.provider.videoData.RZ,a&&b)for(b.ns==="3pp"&&(a.ns="3pp"),this.Ed.has(b.ns)&&OZ(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),c=g.w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Zd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId; this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")||(a.qclc=f2a(this,a.seq));this.isEmbargoed&&(a.embargoed="1");g.Gc(a,this.provider.W.j);this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")&&(b=a.seq)&&(b=f2a(this,+b),this.j.qclc=[b]);a=g.Hi("//"+this.provider.W.Fn+"/api/stats/qoe",a);c=b="";d=g.w(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,this.j[e]===null?g.yw(new g.Hs("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),e.length>100? c+=e:b+=e);g2a(this,a+b,c.replace(/ /g,"%20"))}this.j={}}}; g.k.Ky=function(a){this.yb=a}; g.k.f2=function(){if(this.provider.videoData.G){var a=this.provider.videoData.G;OZ(this,"eme-"+(a.keySystemAccess?"final":AN(a)?"ms":DN(a)?"ytfp":CN(a)?"safarifp":"nonfinal"))}}; g.k.NG=function(a){var b=g.FI(this.provider),c=[a.j.id,a.B,this.wc,a.reason];a.token&&c.push(a.token);g.LZ(this,b,"vfs",c);this.wc=a.j.id;c=this.provider.ea.getPlayerSize();if(c.width>0&&c.height>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.JO();d>1&&c.push(d);g.LZ(this,b,"view",c)}this.Ya||(this.provider.W.zc()&&OZ(this,"rqs2"),this.provider.videoData.j&&gL(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.Ya=!0;a.reason==="m"&&++this.Fd===100&&l2a(this,2);g.LZ(this,b,"vps", [this.Fe]);this.reportStats(b)}; g.k.tG=function(a){var b=g.FI(this.provider);if(a.j.id!==this.Ka){var c=[a.j.id,this.Ka,a.reason];a.token&&c.push(a.token);g.LZ(this,b,"afs",c);this.Ka=a.j.id}}; g.k.Uu=aa(54);g.k.Vo=function(a){this.isEmbargoed=a}; g.k.Pj=aa(29);g.k.lj=aa(33);g.k.onPlaybackRateChange=function(a){var b=g.FI(this.provider);a&&a!==this.Tb&&(g.LZ(this,b,"rate",[a]),this.Tb=a);this.reportStats(b)}; g.k.No=aa(25);g.k.getPlayerState=function(a){if(g.Z(a,128))return"ER";if(g.Z(a,2048))return"B";if(g.Z(a,512))return"SU";if(g.Z(a,16)||g.Z(a,32))return"S";if(a.isOrWillBePlaying()&&g.Z(a,64))return"B";var b=Lbb[nF(a)];g.iC(this.provider.W)&&b==="B"&&this.provider.ea.getVisibilityState()===3&&(b="SU");b==="B"&&g.Z(a,4)&&(b="PB");return b}; g.k.xa=function(){g.O.prototype.xa.call(this);g.fr(this.K);g.fr(this.Ab)}; g.k.iM=function(a){this.isOffline=a;g.LZ(this,g.FI(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.k.oa=function(a,b,c){var d=this.j.ctmp||[],e=this.Wc.indexOf(a)!==-1;e||this.Wc.push(a);if(!c||!e){var f=typeof b!=="string"?ZD(b):b;f=m2a(f);if(!c&&!/^t[.]/.test(f)){var h=g.FI(this.provider)*1E3;f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f}); this.j.ctmp=d;h2a(this);return h}}; g.k.fH=function(a,b,c){this.D={Kda:Number(this.oa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),R_:a,sda:b,isAd:c}}; g.k.Ey=function(a,b,c){g.LZ(this,g.FI(this.provider),"ad_playback",[a,b,c])}; g.k.resume=function(){var a=this;this.provider.W.zc()&&this.oa("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?i2a(this):this.K=g.dr(function(){a.reportStats()},1E4)}; var v2={},Lbb=(v2[5]="N",v2[-1]="N",v2[3]="B",v2[0]="EN",v2[2]="PA",v2[1]="PL",v2[-1E3]="ER",v2[1E3]="N",v2),KZ=[];o2a.prototype.VP=function(){return this.j}; o2a.prototype.update=function(){if(this.N){var a=this.provider.ea.Xf()||0;this.provider.W.L("html5_ssap_vss_fix")&&(a=this.provider.ea.SJ(this.provider.videoData.clientPlaybackNonce)||0);var b=g.FI(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||r2a(this,a,b)){var c;if(!(c=ab-this.lq+2||r2a(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.Y,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||this.D>=0||(this.Y=c, this.D=b),c=b-this.D,this.D>=0&&c>2?(this.D=-1,c=!0):c=!1)}c&&(RZ(this),this.C=a);this.lq=b;this.j=a}}};s2a.prototype.send=function(a){var b=this;if(!this.Xa){var c=u2a(this),d=g.Hi(this.uri,c);this.W.L("vss_through_gel_double")&&v2a(d);this.ra&&!this.W.L("html5_simplify_pings")?A2a(this,d):t2a(this,a).then(function(e){b.ra&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});Z1a(d,e,{token:b.Y,jU:b.Jb,mdxEnvironment:b.mdxEnvironment},b.W,a,b.Aa,b.isFinal&&b.Tf||b.Ga||b.C&&b.Uf)}); this.Xa=!0}}; s2a.prototype.B=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()}; var w2={},y2a=(w2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,w2.LIVING_ROOM_APP_MODE_MAIN=1,w2.LIVING_ROOM_APP_MODE_KIDS=2,w2.LIVING_ROOM_APP_MODE_MUSIC=3,w2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,w2.LIVING_ROOM_APP_MODE_GAMING=5,w2),x2={},x2a=(x2.EMBEDDED_PLAYER_MODE_UNKNOWN=0,x2.EMBEDDED_PLAYER_MODE_DEFAULT=1,x2.EMBEDDED_PLAYER_MODE_PFP=2,x2.EMBEDDED_PLAYER_MODE_PFL=3,x2);g.z(TZ,g.O);g.k=TZ.prototype;g.k.Dg=function(){this.j.update();I2a(this)&&(C2a(this),D2a(this),this.Zs())}; g.k.xa=function(){g.O.prototype.xa.call(this);WZ(this);p2a(this.j)}; g.k.uc=function(){return u2a(UZ(this,"playback"))}; g.k.Zs=function(){this.provider.videoData.N.eventLabel=yQ(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.W.playerStyle;this.provider.videoData.Fj&&(this.provider.videoData.N.feature="pyv");this.provider.videoData.N.vid=this.provider.videoData.videoId;var a=this.provider.videoData.N;var b=this.provider.videoData;b=b.isAd()||!!b.Fj;a.isAd=b}; g.k.Li=function(a){var b=UZ(this,"engage");b.qa=a;return w2a(b,O2a(this.provider))};N2a.prototype.isEmpty=function(){return this.endTime===this.startTime};YZ.prototype.L=function(a){return this.W.L(a)}; YZ.prototype.getCurrentTime=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Cf();if(b&&(a=a||b.Dl()))return gX(b,a)}else if(g.SP(this.videoData)){var c=this.ea.Cf();if(c)return a=this.ea.getCurrentTime(),c=(((b=eX(c,a*1E3))==null?void 0:b.Ol)||0)/1E3,a-c}return this.ea.getCurrentTime()}; YZ.prototype.Xf=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Cf();if(b&&(a=a||b.Dl()))return gX(b,a)}else if(g.SP(this.videoData)){var c=this.ea.Cf();if(c)return a=this.ea.Xf(),c=(((b=eX(c,a*1E3))==null?void 0:b.Ol)||0)/1E3,a-c}return this.ea.Xf()}; var P2a={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.ZZ,g.O);g.k=g.ZZ.prototype;g.k.Dg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ng){var a;(a=this.C.get(this.Ng))==null||a.Dg()}else this.j&&this.j.Dg()}; g.k.Vo=function(a){this.qoe&&this.qoe.Vo(a)}; g.k.Pj=aa(28);g.k.lj=aa(32);g.k.Id=function(a,b){this.qoe&&k2a(this.qoe,a,b);if(this.B)this.B.onError(a)}; g.k.NG=function(a){this.qoe&&this.qoe.NG(a)}; g.k.tG=function(a){this.qoe&&this.qoe.tG(a)}; g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&RZ(this.j.j)}; g.k.Uu=aa(53);g.k.oa=function(a,b,c){this.qoe&&this.qoe.oa(a,b,c)}; g.k.fH=function(a,b,c){this.qoe&&this.qoe.fH(a,b,c)}; g.k.gH=function(a){var b;(b=this.qoe)==null||b.gH(a)}; g.k.Ky=function(a){this.qoe&&this.qoe.Ky(a)}; g.k.Ey=function(a,b,c){this.qoe&&this.qoe.Ey(a,b,c)}; g.k.No=aa(24);g.k.lF=function(){if(this.qoe)return this.qoe.lF()}; g.k.uc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ng){var a,b;return(b=(a=this.C.get(this.Ng))==null?void 0:a.uc())!=null?b:{}}return this.j?this.j.uc():{}}; g.k.qF=function(){var a;return(a=this.qoe)==null?void 0:a.qF()}; g.k.FH=function(a,b){var c;(c=this.qoe)==null||c.FH(a,b)}; g.k.Li=function(a){return this.j?this.j.Li(a):function(){}}; g.k.Zs=function(){this.j&&this.j.Zs()}; g.k.getVideoData=function(){return this.provider.videoData}; g.k.resume=function(){this.qoe&&this.qoe.resume()};g.z($Z,g.O); $Z.prototype.sJ=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!Q2a(d))this.B.oa("ssap",{rlc:a}),OUa(this,a);else return}if(!this.j.has(a)){d=new YZ(b,this.W,this.ea);var e=Math.round(g.FI(this.B.provider)*1E3);d=new g.ZZ(d,e);Q2a(d)||this.B.oa("nqv",{vv:b.videoId});e=this.B.getVideoData();this.j.set(a,d);if(d.qoe){var f=d.qoe,h=e.videoId||"";f.contentCpn=e.clientPlaybackNonce;f.ra=h}R2a(d);c===2&&(this.W.L("html5_log_ad_playback_docid")?(c=this.B,c.qoe&&(c=c.qoe,d=b.wc||"",e= b.breakType||0,b=b.videoId||"",f=this.W.qa||"yt",g.LZ(c,g.FI(c.provider),"ad_playback",[a,d,e,b,f]))):this.B.Ey(a,b.wc||"",b.breakType||0))}}; $Z.prototype.hc=function(a){a=a||this.Ng;return this.j.get(a)||this.B};g.z(a_,g.O);g.k=a_.prototype; g.k.mf=function(a,b){this.sync();b&&this.j.array.length>=2E3&&this.TE("captions",1E4);b=this.j;if(a.length>1&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else for(var c=g.w(a),d=c.next();!d.done;d=c.next())d=d.value,!b.array.length||b.j(d,b.array[b.array.length-1])>0?b.array.push(d):g.bc(b.array,d,b.j);a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.namespace==="ad"&&this.D("ssap",{acrsid:b.getId(),acrsst:b.start,acrset:b.end,acrscpt:b.playerType});this.C=NaN;this.sync()}; g.k.Xo=function(a){a.length>1E4&&g.yw(new g.Hs("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.La()){for(var b=g.w(a),c=b.next();!c.done;c=b.next())(c=c.value)&&c.namespace==="ad"&&this.D("ssap",{rcrid:c.getId(),rcst:c.start,rcet:c.end,rcpt:c.playerType});var d=new Set(a);this.B=this.B.filter(function(e){return!d.has(e)}); d3a(this.j,d);this.sync()}}; g.k.TE=function(a,b){var c=(isNaN(this.C)?g.Z(this.K(),2)?0x8000000000000:this.Y()*1E3:this.C)-b;b=this.Cl().filter(function(d){return d.namespace===a&&d.endthis.j,f=g.Z(c,8)&&g.Z(c,16),h=this.ea.cj().isBackground()||c.isSuspended();j_(this,this.ob,f&&!h,e,"qoe.slowseek",function(){},"timeout"); var l=isFinite(this.j);l=f&&l&&Iwa(b,this.j);var m=!d||Math.abs(d-this.j)>10,n=this.W.L("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),p=d===0&&this.B&&[11,10].includes(this.B);j_(this,this.yb,l&&m&&!h&&(!n||!p),e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt"); m=l&&IE(b.Fh(),this.j);var q=this.ea.ya;l=!q||!q.policy.Xa;var r=function(){b.seekTo(a.j+.001)}; j_(this,this.Va,m&&l&&!h,e,"qoe.slowseek",r,"jiggle_cmt");l=function(){return GZ(a.ea)}; j_(this,this.Ya,m&&!h,e,"qoe.slowseek",l,"new_elem");m=mF(c);n=c.isBuffering();var t=b.Fh(),u=HE(t,d),y=u>=0&&t.end(u)>d+5,A=m&&n&&y;p=this.ea.getVideoData();j_(this,this.Wa,d<.002&&this.j<.002&&f&&g.iC(this.W)&&g.zQ(p)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");j_(this,this.qa,p.Ck()&&f&&!h&&!p.Aa,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");j_(this,this.Aa,A&&!h,m&&!n,"qoe.longrebuffer",r,"jiggle_cmt");j_(this,this.Fa,A&&!h,m&&!n,"qoe.longrebuffer",l,"new_elem_nnr");if(q){var D=q.getCurrentTime(); f=b.mx();f=wwa(f,D);f=!q.isSeeking()&&d===f;j_(this,this.Tb,m&&n&&f&&!h,m&&!n&&!f,"qoe.longrebuffer",function(){b.seekTo(D)},"seek_to_loader")}f={}; r=HE(t,Math.max(d-3.5,0));A=r>=0&&d>t.end(r)-1.1;var F=r>=0&&r+1=0&&A&&F<11;f.close2edge=A;f.gapsize=F;f.buflen=t.length;this.B&&(f.seekSour=this.B);if(r=this.ea.Cf()){A=r.Dl();F=A!==eX(r,d*1E3).clipId;var H=g.VB(this.W.experiments,"html5_ssap_skip_seeking_offset_ms"),M=(cX(r,A)+H)/1E3;j_(this,this.Ma,F&&m&&n&&!h,m&&!n,"qoe.longrebuffer",function(){b.seekTo(M)},"ssap_clip_not_match")}j_(this,this.Ga,m&&n&&!h,m&&!n,"qoe.longrebuffer", function(){},"timeout",f); f=c.isSuspended();f=sZ(this.ea)&&!f;j_(this,this.N,f,!f,"qoe.start15s",function(){a.ea.Eg("ad")},"ads_preroll_timeout"); r=d-this.D<.5;var N;f=!((N=this.ea.Cf())==null||!N.Il());F=(A=p.isAd()||f&&this.W.experiments.kb("html5_ssap_skip_slow_ad"))&&m&&!n&&r;N=function(){var S=a.ea,ba=g.SP(S.videoData)&&S.ub,ha=S.Ad.Vc();(ha&&S.videoData.isAd()&&ha.getVideoData().rd===S.getVideoData().rd||!S.videoData.Ff)&&!ba?S.Mf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+S.videoData.videoId):MP(S.videoData,"html5_ssap_skip_slow_ad")&&ba&&S.ub.Il()&&(S.Id(new $D("ssap.transitionfailure",{cpn:eX(S.ub,S.Xf()).clipId,pcpn:S.ub.Dl(), cmt:S.Xf()})),AUa(S.ub))}; j_(this,this.Jb,F,!F,"ad.rebuftimeout",N,"skip_slow_ad");r=A&&n&&IE(b.Fh(),d+5)&&r;j_(this,this.Ab,r&&!h,!r,"ad.rebuftimeout",N,"skip_slow_ad_buf");N=c.isOrWillBePlaying()&&g.Z(c,64)&&!h;j_(this,this.Kb,N,e,"qoe.start15s",function(){},"timeout"); N=!!q&&!q.Qa&&c.isOrWillBePlaying();j_(this,this.Ka,N,e,"qoe.start15s",l,"newElemMse");N=LE(t,0);r=g.Z(c,16)||g.Z(c,32);r=!h&&c.isOrWillBePlaying()&&n&&!r&&(g.Z(c,64)||d===0)&&N>5;j_(this,this.fb,g.zQ(p)&&r,m&&!n,"qoe.longrebuffer",function(){a.ea.Jq()},"reset_media_source"); j_(this,this.Xa,g.zQ(p)&&r,m&&!n,"qoe.longrebuffer",l,"reset_media_element");this.D===0&&(this.K=d);r=n&&this.j===0&&d>1&&d===this.K;j_(this,this.Ra,g.zQ(p)&&r,m&&!n,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump"); h=c.isOrWillBePlaying()&&!h;y=yW(this.ea)-d<6&&!y&&this.ea.xu();j_(this,this.Z,p.Ck()&&h&&n&&y,m&&!n,"qoe.longrebuffer",function(){GZ(a.ea,!1,!0)},"handoff_end_long_buffer_reload"); q=(q==null?void 0:v0a(q))||NaN;q=t.length>1||!isNaN(q)&&q-.1<=d;j_(this,this.Y,$P(p)&&h&&n&&q,m&&!n,"qoe.longrebuffer",l,"gapless_slice_append_stuck");q=u>=0&&t.end(u)>=2;h=$P(p)&&this.ea.H2&&q&&!p.Aa&&h&&(n||g.Z(c,8)&&g.Z(c,16));j_(this,this.ra,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&N>5&&c.isPlaying()&&d<.1);j_(this,this.Ob,c,d>.5&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.D=d;this.G.start()}}; i_.prototype.Id=function(a,b,c){b=this.uc(b);b.wn=c;b.wdup=this.C[a]?"1":"0";this.ea.Id(new $D(a,b));this.C[a]=!0}; i_.prototype.uc=function(a){a=Object.assign(this.ea.uc(!0),a.uc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.Dc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; g_.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1}; g_.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.T)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1}; g_.prototype.uc=function(){var a={},b=(0,g.T)();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.z(w3a,g.O);g.k=w3a.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.hT()||this.seekTo(.01,{Zc:"seektimeline_setupMediaElement"})),k_(this)):m_(this)}; g.k.getCurrentTime=function(){return!isNaN(this.B)&&isFinite(this.B)?this.B:this.mediaElement&&J3a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; g.k.lx=function(){return this.Xa}; g.k.Xf=function(){return this.getCurrentTime()-this.Dc()}; g.k.Xn=function(){return this.j?this.j.Xn():Infinity}; g.k.isAtLiveHead=function(a){if(!this.j)return!1;a===void 0&&(a=this.getCurrentTime());return e_(this.j,a)}; g.k.hq=function(){return!!this.j&&this.j.hq()}; g.k.seekTo=function(a,b){var c=b===void 0?{}:b;b=c.fI===void 0?!1:c.fI;var d=c.qU===void 0?0:c.qU;var e=c.xx===void 0?!1:c.xx;var f=c.kU===void 0?0:c.kU;var h=c.Zc===void 0?"":c.Zc;var l=c.seekSource===void 0?void 0:c.seekSource;var m=c.Gp===void 0?!1:c.Gp;var n=c.YA===void 0?!1:c.YA;c=c.RT===void 0?!1:c.RT;m&&(a+=this.Dc());PP(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&l===29&&(this.Xa=void 0);m=a=this.Vd())||!g.qQ(this.videoData); y||(p={st:p,mst:this.Vd()},this.j&&this.L("html5_high_res_seek_logging")&&(p.ht=this.j.Xn(),p.adft=p3a(this.j)),this.ea.oa("seeknotallowed",p));if(!y)return this.C&&(this.C=null,H3a(this)),Ee(this.getCurrentTime());y=.005;n&&this.L("html5_sabr_seek_no_shift_tolerance")&&(y=0);if(Math.abs(a-this.B)<=y&&this.ra)return this.G;h&&(y=a,(this.W.zc()||this.L("html5_log_seek_reasons"))&&this.ea.oa("seekreason",{reason:h,tgt:y}));l&&(this.Fa.B=l);this.ra&&m_(this);this.G||(this.G=new $E);a&&!isFinite(a)&& A3a(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&this.mediaElement.ll()>0&&bF(this.mediaElement)>0)||RP(this.videoData)&&this.Xc()===this.Vd(!1)?0:isFinite(h)||!RP(this.videoData)));h||(a=o_(this,a,e));a&&!isFinite(a)&&A3a(this,!1);this.D=a;this.Va=f;this.B=a;this.Y=0;this.j&&(e=this.j,f=a,q3a(e,f,!1),r3a(e,f));e=this.ea;f=a;h={fI:b,seekSource:l};e.Qc.D=f;c=e.oE;c.mediaTime=f;c.j=!0;h.fI&&B4a(e,h);h=f>e.videoData.endSeconds&& f>e.videoData.limitedPlaybackDurationInSeconds;e.Dr&&h&&isFinite(f)&&o4a(e);fb.start&&o4a(this.ea);return this.G}; g.k.Vd=function(a){if(!this.videoData.isLivePlayback)return R4a(this.ea);var b;return IQ(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),FLa(this.cf(a)*1E3)+a):this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&PP(this.videoData)&&this.videoData.j?a?this.videoData.j.Aa:this.videoData.j.Z:RP(this.videoData)&&this.videoData.Ka&&this.videoData.j?this.videoData.j.Vd()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.j? this.j.Xn():R4a(this.ea)+this.timestampOffset:this.mediaElement?Er()?FLa(this.mediaElement.JI().getTime()):bF(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.k.Xc=function(){if(g.SP(this.videoData)){var a=this.ea;g.SP(a.videoData);var b,c;return(c=(b=a.ub)==null?void 0:b.Xc())!=null?c:a.videoData.Xc()}if(this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&PP(this.videoData))return this.videoData.j?this.videoData.j.Fa:NaN;b=this.videoData?this.videoData.Xc()+this.timestampOffset:this.timestampOffset;return IQ(this.videoData)&&this.videoData.j&&(c=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(), a=this.cf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b}; g.k.BP=function(){this.G||this.seekTo(this.D,{Zc:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.k.RF=function(){return this.ra&&!isFinite(this.B)}; g.k.xa=function(){B3a(this,null);this.Fa.dispose();g.O.prototype.xa.call(this)}; g.k.uc=function(){var a={};this.ya&&Object.assign(a,this.ya.uc());this.mediaElement&&Object.assign(a,this.mediaElement.uc());return a}; g.k.tS=function(a){this.timestampOffset=a}; g.k.getStreamTimeOffset=function(){return RP(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; g.k.Dc=function(){return this.timestampOffset}; g.k.cf=function(a){return this.L("html5_check_manifest_before_ingestion_time")?this.videoData&&this.videoData.j?this.videoData.j.cf(a-this.timestampOffset):NaN:this.videoData.j.cf(a-this.timestampOffset)}; g.k.ix=function(){if(!this.mediaElement)return 0;if(rQ(this.videoData)){var a=this.mediaElement,b=a.Fh();a=(KE(b)>0&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Xc();b=this.Vd()-this.Xc();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.ix()}; g.k.oy=function(a){this.K&&(this.K.j=a)}; g.k.eC=function(a,b){this.ea.oa("requestUtcSeek",{time:a});PP(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Xa=a);var c;(c=this.ya)==null||c.eC(a);b&&(this.Aa=b)}; g.k.Lu=function(a){PP(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Xa=void 0);if(this.Aa)this.ea.oa("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Aa}),this.ea.seekTo(this.Aa,{Zc:"utcSeekingFallback_streamTime"}),this.Aa=0;else{var b=this.getCurrentTime();isNaN(b)||(a=this.cf(b)-a,b-=a,this.ea.oa("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.ea.seekTo(b,{Zc:"utcSeekingFallback_estimate"}))}}; g.k.uE=function(){this.Aa=0}; g.k.L=function(a){return this.W&&this.W.L(a)};p_.prototype.Cu=function(){return this.started}; p_.prototype.start=function(){this.started=!0}; p_.prototype.reset=function(){this.j=this.started=!1};var S3a=!1;g.z(g.t_,g.Xw);g.k=g.t_.prototype;g.k.xa=function(){this.logger.debug("dispose");g.fr(this.VL);xTa(this.Jf);this.visibility.unsubscribe("visibilitystatechange",this.Jf);f4a(this);x_(this);g.Eo.lk(this.Cy);this.Sj();this.Kf=null;g.gb(this.videoData);g.gb(this.zl);g.gb(this.uO);g.gb(this.vO);g.ib(this.caa);this.Dr=null;g.Xw.prototype.xa.call(this)}; g.k.Ey=function(a,b,c,d,e){if(this.W.L("html5_log_ad_playback_docid")){var f=this.hc();if(f.qoe){f=f.qoe;var h=this.W.qa||"yt";g.LZ(f,g.FI(f.provider),"ad_playback",[a,b,c,e,h])}}else this.hc().Ey(a,b,c);this.L("html5_log_media_perf_info")&&this.oa("adloudness",{ld:d.toFixed(3),cpn:a})}; g.k.MP=function(){var a;return(a=this.ya)==null?void 0:a.MP()}; g.k.PP=function(){var a;return(a=this.ya)==null?void 0:a.PP()}; g.k.iA=function(){var a;return(a=this.ya)==null?void 0:a.iA()}; g.k.NP=function(){var a;return(a=this.ya)==null?void 0:a.NP()}; g.k.ej=function(){return this.videoData.ej()}; g.k.sA=function(){return this.iB}; g.k.sJ=function(){!this.hB||this.hB.La();this.hB=new g.ZZ(new YZ(this.videoData,this.W,this));this.iB=new $Z(this.W,this,this.hB)}; g.k.getVideoData=function(){return this.videoData}; g.k.U=function(){return this.W}; g.k.HP=function(){return this.Pk.HP(this.Kf)}; g.k.hc=function(a){if(a)a:{for(var b=this.iB,c=g.w(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.iB.hc();return a}; g.k.cj=function(){return this.visibility}; g.k.Le=function(){return this.mediaElement}; g.k.NO=function(){if(this.videoData.isLoaded()){var a=this.zl;g.VB(a.Da.experiments,"html5_player_min_build_cl")>0&&g.VB(a.Da.experiments,"html5_player_min_build_cl")>658166115&&y1a(a,"oldplayer");k4a(this)}else this.videoData.Aj||this.videoData.xp?this.yu&&g.iC(this.W)&&this.videoData.isLivePlayback||(this.videoData.Aj?iLa(this.videoData):(a=this.hc(),a.qoe&&(a=a.qoe,OZ(a,"protected"),a.provider.videoData.G?a.f2():a.provider.videoData.subscribe("dataloaded",a.f2,a)),gLa(this.videoData))):!this.videoData.loading&& this.u7&&h4a(this)}; g.k.GH=function(a){this.ub=a;this.ya&&this.ya.GH(a)}; g.k.rA=aa(15);g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.isBackground=function(){return this.visibility.isBackground()}; g.k.sendAbandonmentPing=function(){g.Z(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.vM(!0),f4a(this),g.Eo.lk(this.Cy))}; g.k.mp=function(){S2a(this.hc())}; g.k.Mf=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e}); var h,l;g.zc(Gab,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+eA());if(a==="auth"||a==="drm.auth"||a==="heartbeat.stop")c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.HU[h]||"",vP:h,Rn:f||"",fM:d,dA:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;w_(this,"dataloaderror");this.Ec(hF(this.playerState,128,b));g.Eo.lk(this.Cy);x_(this);this.Wo()}; g.k.Eg=function(a){this.Aq=this.Aq.filter(function(b){return a!==b}); this.logger.debug(function(){return"set preroll ready for "+a}); g.SP(this.videoData)&&!this.po()&&this.Lb.xg("pl_pr");this.Fs.Cu()&&i4a(this)}; g.k.po=function(){var a;(a=!!this.Aq.length)||(a=this.Ch.j.array[0],a=!!a&&a.start<=-0x8000000000000);return a}; g.k.hq=function(){return this.Qc.hq()}; g.k.isPlaying=function(){return this.playerState.isPlaying()}; g.k.OF=function(){return this.playerState.OF()&&this.videoData.Yl}; g.k.getPlayerState=function(){return this.playerState}; g.k.getPlayerType=function(){return this.playerType}; g.k.getPreferredQuality=function(){if(this.Kf){var a=this.Kf;a=a.videoData.XB.compose(a.videoData.e_);a=cL(a)}else a="auto";return a}; g.k.nF=aa(19);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.Ib()===this.mediaElement.Ib()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.ps(this.LC),this.mediaElement=a,this.mediaElement.ea=this,D4a(this),this.Qc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Sj();if(!this.playerState.isError()){var b=jF(this.playerState,512);g.Z(b,8)&&!g.Z(b,2)&&(b=iF(b,1));a.isView()&&(b=jF(b,64));this.Ec(b)}this.mediaElement= a;this.mediaElement.ea=this;PO(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);D4a(this);this.Qc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.zl.GJ()&&Ewa(this.mediaElement)}}; g.k.Sj=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();c>0&&(this.Qc.D=c);this.Qc.setMediaElement(null);!a&&WE(this)?x4a(this):DW(this);this.ya&&(vZ(this.ya),B_(this,b));this.Px.stop();if(this.mediaElement&&(!this.Fs.Cu()||this.playerState.isError()||g.Z(this.playerState,2)||this.Ec(iF(this.playerState,512)),this.mediaElement)){g.ps(this.LC);if(a||!this.mediaElement.isView())this.Lb.Ev("mesv_s"),this.mediaElement.stopVideo(), D_(this);this.mediaElement=this.mediaElement.ea=null}}}; g.k.playVideo=function(a){a=a===void 0?!1:a;var b=this,c,d,e,f,h,l;return g.J(function(m){if(m.j==1){b.logger.debug("start play video");var n=window.google_image_requests;n&&n.length>10&&(window.google_image_requests=n.slice(-10));if(g.Z(b.playerState,128))return m.return();if(b.zl.NK())return b.publish("signatureexpired"),m.return();b.mediaElement&&iX(b.hc());n4a(b);(g.Z(b.playerState,64)||a)&&b.Ec(iF(b.playerState,8));return b.Fs.j&&b.mediaElement?b.Kf||!b.SG?m.Ha(2):g.G(m,b.SG,3):m.return()}if(m.j!= 2&&g.Z(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.WN(b.W.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.ej()?"fmt.unplayable":"fmt.noneavailable",d=1),g.yw(Error("selectableFormats")),b.Mf(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.ri()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(v_(b));if(l_(b))n=b.Qc,OP(n.videoData)?!n.isAtLiveHead(n.getCurrentTime())&&n.hq()&&n.ea.seekTo(Infinity, {Zc:"seektimeline_peggedToLive",seekSource:34}):g.SP(n.videoData)&&n.getCurrentTime()=0?a:this.getCurrentTime()}; g.k.cf=function(){var a;return((a=this.videoData.j)==null?0:a.cf)?this.videoData.j.cf(this.getCurrentTime()-this.Dc()):this.mediaElement&&(a=this.mediaElement.JI())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN}; g.k.getDuration=function(a){return g.SP(this.videoData)&&this.ub?this.L("html5_ssap_enable_duration_by_cpn")&&a?EUa(this.ub,a):fX(this.ub):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Dc():this.Vd()?this.Vd():0}; g.k.tF=function(){var a=new X2a;this.ya?(fJa(this.W.schedule,a),n0a(this.ya,a)):this.mediaElement&&(a.Kw=cF(this.mediaElement));a.Ws=this.Ws;a.Gv=this.Gv;a.C=this.isAtLiveHead()&&this.isPlaying()?b4a(this):NaN;return a}; g.k.iH=function(a,b){this.Gv+=a;this.Ws+=b}; g.k.ix=function(){return this.mediaElement?g.qQ(this.videoData)?1:rQ(this.videoData)?this.isAtLiveHead()||this.hq()?1:this.Qc.ix():this.mediaElement.ix():0}; g.k.uc=function(a){var b={};if(a===void 0?0:a){Object.assign(b,this.hc().uc());this.mediaElement&&(Object.assign(b,this.mediaElement.uc()),Object.assign(b,this.xF()));this.ya&&Object.assign(b,this.ya.uc());this.Be&&(b.drm=JSON.stringify(this.Be.uc()));b.state=this.playerState.state.toString(16);g.Z(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.fh));this.po()&&(b.prerolls=this.Aq.join(","));this.videoData.Zd&&(b.ismb=this.videoData.Zd);this.videoData.latencyClass!=="UNKNOWN"&& (b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.Ad.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&& oN(this.videoData.j)&&(b.segduration=oN(this.videoData.j)),a=this.Qc,b.lat=a.K?wNa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Ij.toFixed(3);if(a=g.wT(this))b.optimal_format=a.video.qualityLabel;b.user_qual=JK();b.release_version="youtube.player.web_20240731_01_RC00";g.SP(this.videoData)&&this.ub&&(b.ssap=dX(this.ub))}b.debug_videoId=this.videoData.videoId;return b}; g.k.addCueRange=function(a){this.Cz([a])}; g.k.removeCueRange=function(a){this.Ch.Xo([a])}; g.k.TE=function(a,b){return this.Ch.TE(a,b)}; g.k.Cz=function(a,b){this.Ch.mf(a,b)}; g.k.kH=function(a){this.Ch.Xo(a)}; g.k.Cl=function(){return this.Ch.Cl()||[]}; g.k.ri=function(){return this.visibility.ri()}; g.k.yv=function(){this.mediaElement&&this.mediaElement.yv()}; g.k.Ica=function(){w_(this)}; g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.k.HL=function(a){var b=a.target.gi();if(this.mediaElement&&this.mediaElement.gi()&&this.mediaElement.gi()===b){O4a(this,a.type);switch(a.type){case "error":var c=eF(this.mediaElement)||"",d=this.mediaElement.Yf();if(c==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.oa("capchg",{msg:d}),GZ(this,!0)):v_(this);return}if(this.mediaElement.hasError()&&(u1a(this.zl,c,{msg:d})||g.SP(this.videoData)&&this.ub&&(d=this.playerState.fh,this.ub.handleError(c,d==null?void 0:d.dA))))return; if(this.isBackground()&&this.mediaElement.Zh()===4){this.Wo();y_(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||c>0)&&c!==1&&this.Yo(c);break;case "ratechange":this.ya&&this.ya.setPlaybackRate(this.mediaElement.getPlaybackRate());e3a(this.Ch);this.hc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Q4a(this);this.publish("onLoadedMetadata");gTa(this);c=this.cf();this.videoData.OC&&(this.videoData.OC=c);break; case "loadstart":gTa(this);break;case "progress":case "suspend":this.Tc();this.publish("onLoadProgress",this,this.ix());break;case "playing":this.Lb.Ev("plev");this.rT&&!l_(this)&&(this.rT=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Zc:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.ll()===0;if(c&&(!this.oL||d))return;this.oL=this.oL||!!this.mediaElement.getCurrentTime(); E4a(this);this.Tc();if(!this.mediaElement||this.mediaElement.gi()!==b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.mx().length>0&&this.mediaElement.Fh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.ya)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.ll()>2||!this.mediaElement.isSeeking()&&IE(this.mediaElement.Fh(),this.mediaElement.getCurrentTime()))&& (c=this.mediaElement.uc(),c.bh=cF(this.mediaElement).toFixed(3),this.oa("uwe",c));g.SP(this.videoData)&&this.ub&&zUa(this.ub,this.mediaElement.getCurrentTime());break;case "resize":Q4a(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.aX&&g.Z(this.playerState,8)&&!g.Z(this.playerState,1024)&&this.getCurrentTime()===0&&g.gt){y_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.gi()=== b){L3a(this.Qc,a,this.ub||void 0);this.publish("videoelementevent",a);b=this.playerState;d=this.oE;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.SP(this.videoData)&&this.ub?fX(this.ub):void 0;if(!g.Z(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.Z(b,64)||a.type!=="ended"&&a.type!=="pause"){f=f||e.getDuration();f=e.isEnded()||l>1&&Math.abs(l-f)<1.1;var m=a.type==="pause"&&e.isEnded();l=a.type==="ended"||a.type==="waiting"||a.type==="timeupdate"&&!g.Z(b, 4)&&!b_(d,l);if(m||f&&l)e.cK()>0&&e.gi()&&(h=14);else switch(a.type){case "error":eF(e)&&(h|=128);break;case "pause":g.Z(b,256)?(h^=256)||(h=64):g.Z(b,32)||g.Z(b,2)||g.Z(b,4)||(h=4,g.Z(b,1)&&g.Z(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,gF(d,e)):b_(d,e.getCurrentTime())&&(h&=-2);g.Z(b,1)&&gF(d,e)&&(h|=1);break;case "seeking":h|=16;g.Z(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;gF(d,e);break;case "waiting":g.Z(b,2)||(h|=1);gF(d,e);break;case "timeupdate":l=g.Z(b,16),f=g.Z(b, 4),(g.Z(b,8)||l)&&!f&&b_(d,e.getCurrentTime())&&(h=8),gF(d,e)&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=eF(h),l=1,e?(e==="capability.changed"&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.uc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.Yf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.HU[f]||"",vP:f,fM:ZD(m),dA:l,cpn:b.fh?b.fh.cpn:""}):h=null,h&&(h.cpn=c));b=hF(b,d,h)}!g.Z(this.playerState,1)&&g.Z(b,1)&&N4a(this,"evt"+a.type);this.Ec(b)}}}; g.k.iaa=function(a){a=a.j.availability==="available";a!==this.JF&&(this.JF=a,this.publish("airplayavailabilitychange"))}; g.k.jaa=function(){var a=(0,g.T)(),b=this.mediaElement.ri();this.oa("airplay",{ia:b});!b&&!isNaN(this.QK)&&a-this.QK<2E3||(this.QK=a,b!==this.ri()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Jf()),this.oa("airplay",{rbld:b}),HZ(this)),this.publish("airplayactivechange"))}; g.k.yF=function(a){if(this.ya){var b=this.ya,c=b.C,d=b.getCurrentTime(),e=Date.now()-c.Y;c.Y=NaN;c.oa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.N)&&c.B!==3&&jXa(c.ya,d,c.N,c.G);c.policy.G?c.C=NaN:c.D=NaN;dY(c,4,c.B===3?"adfps":"adf");vZ(b)}}; g.k.Tc=function(a){var b=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){E3a(this.Qc,this.isPlaying());var c=this.getCurrentTime();!this.ya||g.Z(this.playerState,4)&&g.qQ(this.videoData)||PP(this.videoData)&&g.Z(this.playerState,32)||p0a(this.ya,c);c>5&&(this.Qc.D=c);var d=g.Ps();d?g.Eo.lk(this.Cy):g.er(this.Cy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||IQ(this.videoData))&&!g.Z(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.Z(b.playerState, 128)){b.W.zc()&&O4a(b,"pfx");var l=b.getCurrentTime(),m=cF(b.mediaElement),n=g.Z(b.playerState,8),p=b_(b.oE,l),q=Jwa(b.oE,l,(0,g.T)(),m);n&&p?b.Ec(jF(b.playerState,1)):n&&q?(n=b.getDuration(),p=OP(b.videoData),n&&Math.abs(n-l)<1.1?(b.oa("setended",{ct:l,bh:m,dur:n,live:p}),b.mediaElement.Xt()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{Zc:"videoplayer_loop",seekSource:37})):BW(b)):(b.playerState.isBuffering()||N4a(b,"progress_fix"),b.Ec(iF(b.playerState,1)))):(n&&!p&&!q&&l>0&&(n=(Date.now()- b.aG)/1E3,p=b.getDuration(),l>p-1&&b.oa("misspg",{t:l.toFixed(2),d:p.toFixed(2),r:n.toFixed(2),bh:m.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&cF(b.mediaElement)>5&&b.Ec(jF(b.playerState,1)));b.Tc()}}; this.mediaElement.mx().length===0?this.Cy=d?g.Eo.Wi(f,100):g.cr(f,100):this.Cy=d?g.Eo.Wi(f,500):g.cr(f,500)}this.videoData.Wk=c;if(this.L("html5_ssap_vss_fix")){var h;(h=this.ub)==null||KUa(h)}!a&&this.isPlaying()&&H4a(this);M1a(this.Pk,this.Kf,this.Le(),this.isBackground())&&r_(this);this.publish("progresssync",this,a);e&&IQ(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; g.k.v9=function(){this.Mf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.k.lF=function(){return this.hc().lF()}; g.k.IP=function(){return this.ya?this.ya.IP():kO(this.W.schedule,!0)}; g.k.Ec=function(a){if(g.lF(this.playerState,a))this.W.zc()&&a.seekSource!==this.playerState.seekSource&&this.oa("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()}); var b=new g.dy(a,this.playerState);this.playerState=a;P4a(this);var c=!this.YL.length;this.YL.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=b.yB.state===8&&!d;g.fy(b,1)&&d&&g.Z(this.playerState,8)&&!g.Z(this.playerState,64)&&this.ya&&(P_a(this.ya),this.mediaElement&&cF(this.mediaElement)>=5&&K1a(this.Pk,this.Kf)&&r_(this));(d=g.VB(this.W.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.Z(a,1)&&(g.Z(a,8)||g.Z(a,16))?this.gO.start(d):this.gO.stop();(ey(b,8)<0||g.fy(b, 1024))&&this.Px.stop();!g.fy(b,8)||this.videoData.Aa||g.Z(b.state,1024)||this.Px.start();g.Z(b.state,8)&&ey(b,16)<0&&!g.Z(b.state,32)&&!g.Z(b.state,2)&&this.playVideo();g.Z(b.state,2)&&rQ(this.videoData)&&(this.Yo(this.getCurrentTime()),this.Tc(!0));g.fy(b,2)&&(this.vM(!0),this.W.zc()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&PP(this.videoData)&&this.videoData.j&&(d={minst:""+this.videoData.j.Fa,cminst:""+(this.videoData.j.Xc()+this.Dc()),maxst:""+this.videoData.j.Z,hts:""+this.videoData.j.Aa, cmaxst:""+(this.videoData.j.Vd()+this.Dc())},this.oa("sabrSeekableBoundaries",d)));g.fy(b,128)&&this.Wo();this.videoData.j&&this.videoData.isLivePlayback&&!this.z3&&(ey(b,8)<0?jIa(this.videoData.j):g.fy(b,8)&&this.videoData.j.resume());C3a(this.Qc,b);MUa(this.hc(),b);if(c&&!this.La())try{for(var e=g.w(this.YL),f=e.next();!f.done;f=e.next()){var h=f.value;f3a(this.Ch,h);this.publish("statechange",h)}}finally{this.YL.length=0}}}; g.k.yG=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")}; g.k.mS=function(){this.Lb.tick("qoes")}; g.k.BP=function(){this.Qc.BP()}; g.k.zL=function(a,b,c,d){a:{var e=this.zl;d=d===void 0?"LICENSE":d;c=c.substr(0,256);var f=aE(b);a==="drm.keyerror"&&this.Be&&this.Be.B.keys.length>1&&e.D<96&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())A1a(e,a);else{if(e.ea.Mf(a,b,d,c),r1a(e,{detail:c}))break a}else e.Id(a,{detail:c});a==="drm.sessionlimitexhausted"&&(e.oa("retrydrm",{sessionLimitExhausted:1}),e.D++,M4a(e.ea))}}; g.k.Yaa=function(){var a=this,b=g.VB(this.W.experiments,"html5_license_constraint_delay"),c=Or();b&&c?(b=new g.Lo(function(){z_(a);w_(a)},b),g.P(this,b),b.start()):(z_(this),w_(this))}; g.k.BG=function(a){this.publish("heartbeatparams",a)}; g.k.uq=function(a){this.oa("keystatuses",V0a(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=W0a(b,c);d=BZ(a)?X0a(a,d):a.D.includes(d)}else{a:{b=W0a(b,c);for(d in a.j)if(a.j[d].status==="output-restricted"){var e=a.j[d].type;if(b===""||e==="AUDIO"||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((f=this.Be)==null?0:EN(f.j))if((c=this.Be)== null)c=0;else{b=f=void 0;e=g.w(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=Y0a(h,"SD")),b||(b=Y0a(h,"AUDIO"));c.wj({sd:f,audio:b});c=f==="output-restricted"||b==="output-restricted"}else c=!d;if(c){this.oa("drm",{dshdr:1});A1a(this.zl);return}}else{this.videoData.QD||(this.videoData.QD=!0,this.oa("drm",{dphdr:1}),GZ(this,!0));return}var l;if((l=this.Be)==null?0:EN(l.j))return}else if(l=a.Z&&d,c&&!l){A1a(this.zl);return}d||X0a(a,"AUDIO")&&X0a(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), a=V0a(a),this.mT?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Mf("drm.keyerror",2,void 0,"info."+a)):(this.mT=!0,this.Id(new $D("qoe.restart",Object.assign({},{retrydrm:1},a))),r_(this),M4a(this)))}; g.k.aba=function(){if(!this.videoData.Aa&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.ll()>0&&cF(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.Ec(iF(this.playerState,1)),N4a(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");P4a(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!ZP(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].oe)||this.Be),mfmtinfo:!this.videoData.B,prerolls:this.po()?this.Aq.join(","): "0"};if(this.Be){b=this.Be;if(b.B.size<=0){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=V0a(b.B.values().next().value),b=ZD(b);a.drmp=b}var d;Object.assign(a,((d=this.ya)==null?void 0:d.uc())||{});var e;Object.assign(a,((e=this.mediaElement)==null?void 0:e.uc())||{});this.hc().Id("qoe.start15s",ZD(a));this.publish("loadsofttimeout")}}; g.k.Yo=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,w_(this))}; g.k.vM=function(a){var b=this;a=a===void 0?!1:a;if(!this.WI)if(Nz("att_s","player_att")||Pz("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(!(d=a)){l.Ha(2);break}return g.G(l,g.gua(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.wa(l,4);e=V2a(b.hc());if(!e)throw Error();f={};return g.G(l,g.fua((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f),3E4),6);case 6:h=l.B;if(b.WI)throw Error(); if(!h.challenge)throw g.yw(Error("Not sending attestation ping; no attestation challenge string")),Error();b.WI=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):h.webResponse&&m.push("r1a="+h.webResponse);var n;((n=h.adblockReporting)==null?void 0:n.reportingStatus)!==void 0&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;((p=h.adblockReporting)==null?void 0:p.broadSpectrumDetectionResult)!==void 0&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));Pz("att_f", void 0,"player_att");g.xa(l,0);break;case 4:g.ya(l),Pz("att_e",void 0,"player_att"),g.va(l)}})})().then(function(){}); else{var c=new g.IBa(this.videoData);if("c1a"in c.zr&&!g.EK.isInitialized()){Pz("att_wb",void 0,"player_att");this.tO===2&&Math.random()<.01&&g.yw(Error("Botguard not available after 2 attempts"));if(a)return;if(this.tO<5){g.Mo(this.vO);this.tO++;return}}(c=g.JBa(c))?(Pz("att_f",void 0,"player_att"),U2a(this.hc(),c),this.WI=!0):Pz("att_e",void 0,"player_att")}}; g.k.Vd=function(a){return this.Qc.Vd(a===void 0?!1:a)}; g.k.Xc=function(){return this.Qc.Xc()}; g.k.Dc=function(){return this.Qc?this.Qc.Dc():0}; g.k.getStreamTimeOffset=function(){return this.Qc?this.Qc.getStreamTimeOffset():0}; g.k.fu=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.Dc():this.getStreamTimeOffset());return a}; g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&F1a(this.Pk,(b=this.videoData.C)==null?void 0:b.videoInfos)&&(this.playbackRate=a,r_(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,a==="auto"&&this.mediaElement)){var b=g4a(this);b&&b.videoHeight>0&&(a=kE(b.videoWidth,b.videoHeight))}return a}; g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())}; g.k.Zs=function(){this.hc().Zs()}; g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.hc();c.j?(c=UZ(c.j,"engage"),c.qa=a,c.send(b)):b&&b()}; g.k.Li=function(a){return this.hc().Li(a)}; g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;return OP(this.videoData)&&(this.ZY||b)?this.Qc.isAtLiveHead(a):!1}; g.k.Lr=function(){var a=this.Vd(),b=this.getCurrentTime(),c;(c=!OP(this.videoData))||(c=this.Qc,c=!(c.j&&c.j.C));return c||this.hq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)}; g.k.No=aa(23);g.k.Uu=aa(52);g.k.Vo=function(a){this.hc().Vo(a)}; g.k.Ky=function(a){this.hc().Ky(a)}; g.k.Pj=aa(27);g.k.lj=aa(31);g.k.gH=function(a){this.hc().gH(a)}; g.k.xF=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.k.setLoop=function(a){this.loop=a;this.mediaElement&&PO(this.W)&&this.mediaElement.setLoop(a);this.ya&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.ya.policy.Xa=!0:Q_a(this.ya))}; g.k.Xt=function(){return this.mediaElement&&PO(this.W)?this.mediaElement.Xt():this.loop}; g.k.tS=function(a){this.oa("timestamp",{o:a.toString()});this.Qc.tS(a)}; g.k.Md=function(a){this.Lb.tick(a)}; g.k.xg=function(a){return this.Lb.xg(a)}; g.k.Ev=function(a){this.Lb.Ev(a)}; g.k.oa=function(a,b,c){c=c===void 0?!1:c;this.hc().oa(a,b,c)}; g.k.Fy=function(a,b,c){c=c===void 0?!1:c;this.hc().oa(a,b,c)}; g.k.Id=function(a){this.hc().Id(a.errorCode,ZD(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")){a=this.ya?tYa(this.ya.videoTrack):{};var b,c;this.oa("lasoe",Object.assign(this.ya?tYa(this.ya.audioTrack):{},(b=this.Qa)==null?void 0:(c=b.j)==null?void 0:c.aK()));var d,e;this.oa("lvsoe",Object.assign(a,(d=this.Qa)==null?void 0:(e=d.B)==null?void 0:e.aK()))}}; g.k.fH=function(a,b,c){this.hc().fH(a,b,c)}; g.k.nP=function(a){this.videoData.q3=!0;this.Id(new $D("sabr.fallback",a));GZ(this,!0)}; g.k.getPlayerSize=function(){return this.NH.getPlayerSize()}; g.k.ji=function(){return this.NH.ji()}; g.k.Yh=function(){return this.Lb}; g.k.Or=function(){return this.Ad.Or()}; g.k.getVolume=function(){return this.Ad.getVolume()}; g.k.KF=function(){return this.Ad.KF()}; g.k.isMuted=function(){return this.Ad.isMuted()}; g.k.hA=function(){return this.Ad.hA()}; g.k.L=function(a){return this.W.L(a)}; g.k.Qs=function(){var a=this.getCurrentTime(),b=a-this.Dc();var c=this.mediaElement?KE(this.mediaElement.Fh()):0;c=Math.floor(Math.max(c-b,0))+100;var d=!this.L("html5_ssdai_disable_seek_to_skip"),e=this.L("html5_enable_sabr_ssdai"),f;if(d&&((f=this.ya)==null?0:f.wH(b,this.Vd())))return this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var h;return((h=this.ya)==null?0:h.Qs(b,c))?(this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),e&&this.ya.seek(b+c,{seekSource:89,Zc:"videoplayer_skipServerStitchedAd"}), N3a(this.Qc,a),!0):!1}; g.k.zc=function(){return this.W.zc()}; g.k.Zt=function(){if(this.L("html5_bandaid_attach_content_po_token")&&this.videoData.videoId)return this.videoData.mw||this.Ad.yR(this.videoData.videoId);this.Ad.wU();return this.W.Vf||""}; g.k.fK=function(){if(this.videoData.videoId)return this.videoData.n4}; g.k.qf=function(){return this.videoData.videoId}; g.k.uA=function(){return this.Ad.uy}; g.k.xu=function(){return this.Ad.xu()}; g.k.eC=function(a,b){this.Qc.eC(a,b)}; g.k.uE=function(){this.Qc.uE()}; g.k.Wm=function(a){this.Ad.Wm(a)}; g.k.pS=function(a,b){this.Ad.pS(a,b)}; g.k.aT=function(a,b){var c;(c=this.ya)==null||c.aT(a,b)}; g.k.FO=function(){var a=this.Mr();return!!a&&a.FO()}; g.k.Cf=function(){return this.ub}; g.k.FH=function(a,b){this.hc().FH(a,b)}; g.k.qF=function(){return this.hc().qF()}; g.k.wA=function(){return this.videoData.lZ}; g.k.uC=function(a){this.videoData.lZ=a}; g.k.Eo=function(){return this.Ad.Eo()}; g.k.QF=function(){return this.Ad.QF(this)}; g.k.DH=function(a){this.videoData.n4=a};g.z(g.E_,g.O);g.E_.create=function(a,b,c,d){try{var e=typeof a==="string"?a:"player"+g.Ta(a),f=y2[e];if(f){try{f.dispose()}catch(l){g.xw(l)}y2[e]=null}var h=new g.E_(a,b,c,d);h.addOnDisposeCallback(function(){y2[e]=null;h.s3&&h.s3()}); return y2[e]=h}catch(l){throw g.xw(l),(l&&l instanceof Error?l:Error(String(l))).stack;}}; g.k=g.E_.prototype;g.k.cj=function(){return this.visibility}; g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return this.visibility.getVisibilityState(a,b,c,d,e,f,h,l)}; g.k.Jm=function(){this.MQ||(this.MQ=g.cA(sR(),wBa()));return this.MQ}; g.k.Sj=function(){if(this.mediaElement){this.NC&&(this.events.Oc(this.NC),this.NC=null);g.ps(this.Mu);this.wb&&this.wb.Sj(!0);this.template.Sj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.lM()}catch(a){g.yw(a)}this.mediaElement=null}}; g.k.Vc=function(){return this.wb}; g.k.Hy=function(){var a=this;this.wb!==this.sb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+((b=a.wb)==null?void 0:b.getPlayerType())+", vid "+((c=a.wb)==null?void 0:c.getVideoData().videoId)}),CW(this,this.sb))}; g.k.Xz=function(a,b,c){var d=this,e=this.Lb;a===2&&(e=new KT(this.W));return new g.t_(this.W,a,e,this.template,function(f,h,l){d.Ua.publish(f,h,l)},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)}; g.k.paa=function(){K_(this)||(this.logger.debug("application playback ready"),this.Nq(5))}; g.k.yba=function(a){if(!K_(this)){this.logger.debug("playback ready");F5a(this);var b=a.getPlayerState();a.OF()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}}; g.k.canPlayType=function(a){return dE(a)}; g.k.U=function(){return this.W}; g.k.getVideoData=function(){return this.wb.getVideoData()}; g.k.vF=aa(17);g.k.Od=function(){return this.sb.getVideoData()}; g.k.getVideoLoadedFraction=function(a){a=g.ZQ(this,a);return a?g.GQ(a.getVideoData())?1:(a=a.Le())?a.ix():0:0}; g.k.qb=function(){return this.template}; g.k.Bb=function(){return this.Rd}; g.k.Yh=function(){return this.Lb}; g.k.sC=function(a){var b=g.ZQ(this,1);b&&BW(b,a)}; g.k.Or=function(){var a=this.Rd.Or();this.Ua.publish("videoStatsPingCreated",a);return a}; g.k.getVolume=function(){return Math.round(this.Ua.getVolume())}; g.k.KF=function(){return this.Ua.isFullscreen()}; g.k.isMuted=function(){return this.Ua.isMuted()}; g.k.hA=function(){if(this.wb===this.sb&&this.Hb)return this.Hb.postId}; g.k.pda=function(){var a=this;this.L("use_rta_only_for_player")||(g.iC(this.W)?g.TO(this.W,g.DQ(this.getVideoData())).then(function(b){tR(sR(),b);WLa(a.getVideoData(),a.W,a.Jm())}):WLa(this.getVideoData(),this.W,this.Jm()))}; g.k.FP=function(a){var b=this;return g.J(function(c){return b.QB?c.return(b.QB.FP(a)):c.return(Promise.reject("web po not available"))})}; g.k.hI=function(a){this.Ua.publish("d6de4videobindingchange",a)}; g.k.wU=function(){this.QB&&this.QB.wU()}; g.k.yR=function(a){return this.QB?this.QB.yR(a):""}; g.k.BT=function(a){this.QB=a}; g.k.cH=function(a){a===1&&(this.Lb.tick("vr"),F4a(this.wb),ONa(this.Lb,this.wb.getVideoData(),E5a(this)),wOa(this.Rd));var b=this.W;(QO(b)&&b.N||g.xO(b))&&(this.Ff()||this.Ua.Bi("onAdStateChange",a))}; g.k.setLoopVideo=function(a){this.wb===this.sb&&this.wb.Xt()!==a&&(this.wb.setLoop(a),this.Ua.ib("onLoopChange",a))}; g.k.getLoopVideo=function(){return this.wb.Xt()}; g.k.setLoopRange=function(a){var b=!1;!!this.Hb!==!!a?b=!0:this.Hb&&a&&(b=this.Hb.startTimeMs!==a.startTimeMs||this.Hb.endTimeMs!==a.endTimeMs||this.Hb.postId!==a.postId||this.Hb.type!==a.type);if(b){if(this.wb&&$P(this.getVideoData())){b=(a==null?void 0:a.endTimeMs)||-1;var c;(c=g.ZQ(this))==null||c.oa("slr",{et:b})}this.sb.Ch.sf("applooprange");if(a)c=new g.LC(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.sb.addCueRange(c);else{this.Od().clipConfig=void 0;var d,e;((d= this.Hb)==null?void 0:d.type)!=="repeatChapter"||isNaN(Number((e=this.Hb)==null?void 0:e.loopCount))||(c={loopCount:String(this.Hb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Xs("repeatChapterLoopEvent",c))}this.Hb=a;this.Ua.ib("onLoopRangeChange",a||void 0);this.wb===this.sb&&(this.uM(),this.wb.mp())}}; g.k.getLoopRange=function(){return this.Hb}; g.k.uM=function(){var a="";this.Hb?this.wb!==this.sb?a="pnea":q5a(this,this.sb.getCurrentTime())&&(this.Hb.loopCount=0,a="ilr"):a="nlr";if(this.wb&&$P(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;(d=g.ZQ(this))==null||d.oa("slrre",{rej:a,ct:this.sb.getCurrentTime(),lst:(b=this.Hb)==null?void 0:b.startTimeMs,let:(c=this.Hb)==null?void 0:c.endTimeMs})}else{var e;(e=g.ZQ(this))==null||e.oa("slrre",{})}a||u5a(this)}; g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=X4a(this,a),this.sb.getPlaybackRate()!==a&&(this.sb.setPlaybackRate(a),b&&!this.W.D&&g.us("yt-player-playback-rate",a),this.Ua.Bi("onPlaybackRateChange",a)))}; g.k.getCurrentTime=function(a,b,c){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return jR(this.Rd).getCurrentTime();var d=a===2&&this.getVideoData().enableServerStitchedDai,e=g.SP(this.getVideoData());a=d||e?g.ZQ(this):g.ZQ(this,a);if(!a)return 0;if(e&&this.ub)return b=this.ub,a=a.getCurrentTime(),c?c=gX(b,c):(c=DUa(b,a),c=a-c/1E3),c;if(b){if(d&&this.xe&&(c=this.xe.Wa/1E3,c!==0))return c;c=J_(this,a);return S_(this,c.getCurrentTime(),c)}d&&this.xe?(c=this.xe,a=a.getCurrentTime(),c=(c=gUa(c, a*1E3))?a-c.start/1E3:a):c=a.getCurrentTime();return c}; g.k.qA=function(){var a=g.ZQ(this);if(!a)return 0;a=J_(this,a);return S_(this,a.qA(),a)}; g.k.getDuration=function(a,b){b=b===void 0?!0:b;var c=this.getVideoData(),d=a===2&&c.enableServerStitchedDai,e=g.SP(c);var f=d||e?g.ZQ(this):g.ZQ(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number((h=c.progressBarStartPosition)==null?void 0:h.utcTimeMillis),m;c=Number((m=c.progressBarEndPosition)==null?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.ub)return this.L("html5_ssap_enable_duration_by_cpn")?b=EUa(this.ub,this.ub.Dl()):(b=this.ub,d= b.ea.getCurrentTime()*1E3,b=(b=bX(b,d))?(b.ai()-b.bf())/1E3:0),a===1&&b===0?f.getDuration():b;if(b)return f=I_(this,f),S_(this,f.getDuration(),f);d&&this.xe?(a=this.xe,f=f.getCurrentTime(),f=(f=hUa(a,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f}; g.k.cf=function(a){var b=g.ZQ(this,a);return b?this.Ff(b)?(b=I_(this,b),b.cf()-b.getCurrentTime()+this.getCurrentTime(a)):b.cf():0}; g.k.addPlayerResponseForAssociation=function(a){this.ub&&this.ub.addPlayerResponseForAssociation(a)}; g.k.finishSegmentByCpn=function(a,b){return this.ub?this.ub.finishSegmentByCpn(a,b):[]}; g.k.kP=function(){this.template.kP();var a=this.Ua;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=wna(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Vba)}; g.k.getDebugText=function(a){var b=this.sb.uc(a);if(this.wb&&this.wb!==this.sb){for(var c=this.wb.uc(a),d=g.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=Zd(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.ce("video-ads");f?(L5a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.ce("videoAdUiSkipContainer"),l=g.ce("ytp-ad-skip-button-container"),m=g.ce("ytp-skip-ad-button"),n=h||l||m;n?(L5a(n,f),f.ima=h?1: 0,f.bulleit=l?1:0,f.component=m?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(+this.mediaElement.getSize().area()===0),b.op=this.mediaElement.uF("opacity"),c=this.mediaElement.au().y+this.mediaElement.getSize().height,b.yof=""+(+c<=0),b.dis=this.mediaElement.uF("display"));a&&((a=(0,g.PZ)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.Wa&&(b.webview=1));b.debug_playbackQuality=this.Ua.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_20240731_01_RC00"},b=this.getPlayerStateObject().fh;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; g.k.getPresentingPlayerType=function(a){if(this.appState===1)return 1;if(K_(this))return 3;var b;if(a&&((b=this.xe)==null?0:b.Il(this.getCurrentTime())))return 2;var c;return g.SP(this.getVideoData())&&((c=this.ub)==null?0:c.Il())?2:g.ZQ(this).getPlayerType()}; g.k.QA=function(){return g.SP(this.getVideoData())&&this.ub?this.ub.QA():!1}; g.k.getPlayerStateObject=function(a){return this.getPresentingPlayerType()===3?jR(this.Rd).Fe:g.ZQ(this,a).getPlayerState()}; g.k.getAppState=function(){return this.appState}; g.k.HL=function(a){switch(a.type){case "loadedmetadata":this.rM.start();a=g.w(this.kC);for(var b=a.next();!b.done;b=a.next())b=b.value,C5a(this,b.id,b.pfa,b.ofa,void 0,!1);this.kC=[];break;case "loadstart":this.Lb.Ev("gv");break;case "progress":case "timeupdate":KE(a.target.Fh())>=2&&this.Lb.Ev("l2s");break;case "playing":g.NO&&this.rM.start();if(g.iC(this.W))a=!1;else{b=g.mR(this.Bb());a=this.mediaElement.uF("display")==="none"||this.mediaElement.getSize().area()===0;var c=vX(this.template),d=this.wb.getVideoData(), e=g.yy(this.W);d=aQ(d);b=!c||b||e||d||this.W.ob;a=a&&!b}a&&(this.wb.oa("hidden",{},!0),this.getVideoData().yc||(this.getVideoData().yc=1,this.o0(),this.wb.playVideo()))}}; g.k.onLoadProgress=function(a,b){this.Ua.Hc("onLoadProgress",b)}; g.k.uca=function(){this.Ua.publish("playbackstalledatstart")}; g.k.onVideoProgress=function(a,b){a=J_(this,a);b=S_(this,a.getCurrentTime(),a);this.Ua.Hc("onVideoProgress",b)}; g.k.onAutoplayBlocked=function(){this.Ua.Bi("onAutoplayBlocked")}; g.k.Iba=function(){this.Ua.publish("progresssync")}; g.k.xba=function(){this.Ua.Hc("onPlaybackPauseAtStart")}; g.k.raa=function(a){if(this.getPresentingPlayerType()===1){g.fy(a,1)&&!g.Z(a.state,64)&&this.Od().isLivePlayback&&this.sb.isAtLiveHead()&&this.Ua.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.fy(a,2)){if(this.Hb&&this.Hb.endTimeMs>=(this.getDuration()-1)*1E3){u5a(this);return}h5a(this)}if(g.Z(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.fh;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Bi("onError",hMa(b.errorCode));this.Ua.Hc("onDetailedError",{errorCode:b.errorCode, errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.vP,cpn:b.cpn});(0,g.T)()-this.W.Tf>6048E5&&this.Ua.Hc("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!Nz("pbresume","ad_to_video")&&Nz("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.Lz(b,"ad_to_video");Kz("pbresume",void 0,"ad_to_video");wOa(this.Rd)}this.Ua.publish("applicationplayerstatechange",a)}}; g.k.J0=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("presentingplayerstatechange",a)}; g.k.Mk=function(a){H_(this,nF(a.state));g.Z(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(Q_(this,{muted:!1,volume:this.Si.volume},!1),R_(this,!1))}; g.k.KR=function(a,b,c){a==="newdata"&&Y4a(this);this.Ua.publish("applicationvideodatachange",a,c)}; g.k.tG=function(a,b){this.Ua.Hc("onPlaybackAudioChange",this.Ua.getAudioTrack().dc.name);this.Ua.publish("internalaudioformatchange",this.Ua.getAudioTrack().dc.id,b)}; g.k.NG=function(a){var b=this.wb.getVideoData();a===b&&this.Ua.Bi("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.zc()&&b.oa("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.sb&&(this.W.Gj=c.oauthToken);if(b===this.sb){this.getVideoData().enableServerStitchedDai&&!this.xe?this.xe=new g.RW(this.Ua,this.W,this.sb):!this.getVideoData().enableServerStitchedDai&&this.xe&&(this.xe.dispose(),this.xe=null);if(this.W.zc()&&g.SP(c)){var d,e;b.oa("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((d=this.Cq.j)==null?void 0:(e=d.getVideoData())==null? void 0:e.clientPlaybackNonce)||""})}var f,h;!g.SP(this.getVideoData())||a!=="newdata"&&a!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.Cq.j)==null?void 0:(h=f.getVideoData())==null?void 0:h.clientPlaybackNonce)?!g.SP(this.getVideoData())&&this.ub&&(this.W.zc()&&b.oa("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.ub.dispose(),this.ub=null):(TTa(this.Cq),d=QW(this.Cq,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.Cq.enqueue(d,!0),OW(this.Cq,0,this.getDuration(1)* 1E3,[d]),UTa(this.Cq,this.getVideoData().clientPlaybackNonce,[d]),this.ub&&(this.ub.dispose(),this.ub=null,this.W.zc()&&b.oa("ssap",{tlmdis:1})),this.W.zc()&&b.oa("ssap",{tlmcreate:1}),this.ub=new xUa(this.Ua,this.Cq,this.sb),this.sb.GH(this.ub))}if(a==="newdata")this.logger.debug("new video data, destroy modules"),wU(this.Rd,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;a==="dataloaded"&&(this.wb===this.sb?(CO(c.Da,c.oW),m5a(this)):k5a(this));b.getPlayerType()===1&&(this.W.Va&& K5a(this),this.getVideoData().isLivePlayback&&!this.W.Uq&&this.Tg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((sLa(c)||this.getVideoData().Sv)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&w5a(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.Hc("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.uM();(d=c.uH)?this.Vr.CX(d,c.clientPlaybackNonce):tVa(this.Vr)}; g.k.RO=function(){M_(this,null);this.Ua.Hc("onPlaylistUpdate")}; g.k.Hba=function(a){delete this.eM[a.getId()];this.sb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=((b=a.Wa)==null?void 0:(c=b.contents)==null?void 0:(d=c.singleColumnWatchNextResults)==null?void 0:(e=d.autoplay)==null?void 0:(f=e.autoplay)==null?void 0:f.sets)||((h=a.Wa)==null?void 0:(l=h.contents)==null?void 0:(m=l.twoColumnWatchNextResults)==null?void 0:(n=m.autoplay)==null?void 0:(p=n.autoplay)==null?void 0:p.sets);if(q)for(b=g.w(q),c=b.next();!c.done;c=b.next())if(c=c.value, e=d=void 0,c=c.autoplayVideo||((d=c.autoplayVideoRenderer)==null?void 0:(e=d.autoplayEndpointRenderer)==null?void 0:e.endpoint),d=g.Q(c,g.VP),f=e=void 0,c!=null&&((e=d)==null?void 0:e.videoId)===a.videoId&&((f=d)==null?0:f.continuePlayback)){a=c;break a}a=null}(b=g.Q(a,g.VP))&&this.Ua.ib("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}; g.k.Nq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(H_(this,-1),H_(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))}; g.k.Tg=function(a,b,c,d,e){this.sb.Mf(a,b,c,d,e)}; g.k.Os=function(a,b){this.sb.handleError(new $D(a,b))}; g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;var c=g.ZQ(this,a);if(!c)return!1;a=I_(this,c);c=J_(this,c);return a!==c?a.isAtLiveHead(S_(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; g.k.Lr=function(){var a=g.ZQ(this);return a?I_(this,a).Lr():0}; g.k.seekTo=function(a,b,c,d,e){b=b!==!1;if(d=g.ZQ(this,d))this.appState===2&&O_(this),this.Ff(d)?T_(this)?this.xe.seekTo(a,{seekSource:e},b,c):this.bd.seekTo(a,{seekSource:e},b,c):g.SP(this.getVideoData())&&this.ub?this.ub.seekTo(a,{fI:!b,qU:c,Zc:"application",seekSource:e}):d.seekTo(a,{fI:!b,qU:c,Zc:"application",seekSource:e})}; g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; g.k.EB=function(){this.Ua.Hc("SEEK_COMPLETE")}; g.k.tL=function(){this.Ua.ib("onAbnormalityDetected")}; g.k.ica=function(a,b){var c=a.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=b;this.appState===2?g.Z(a.getPlayerState(),512)||O_(this):this.Ua.Hc("SEEK_TO",b)}; g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Ua.Hc("onAirPlayActiveChange",this.Ua.ri())}; g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Ua.Hc("onAirPlayAvailabilityChange",this.Ua.JF())}; g.k.showAirplayPicker=function(){var a;(a=this.wb)==null||a.yv()}; g.k.MR=function(){this.Ua.publish("beginseeking")}; g.k.zG=function(){this.Ua.publish("contentPoTokenReady")}; g.k.RR=function(){this.Ua.publish("endseeking")}; g.k.getStoryboardFormat=function(a){return(a=g.ZQ(this,a))?I_(this,a).getVideoData().getStoryboardFormat():null}; g.k.Ak=function(a){return(a=g.ZQ(this,a))?I_(this,a).getVideoData().Ak():null}; g.k.Ff=function(a){a=a||this.wb;var b=!1;if(a){a=a.getVideoData();if(T_(this))a=a===this.xe.ea.getVideoData();else a:if(b=this.bd,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.w(b.B);for(var c=b.next();!c.done;c=b.next())if(a.rd===c.value.rd){a=!0;break a}a=!1}b=a}return b}; g.k.iE=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=T_(this),n;(n=g.ZQ(this))==null||n.oa("appattl",{sstm:this.xe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?dUa(this.xe,a,b,c,d,e,f,h):WUa(this.bd,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l}); return l}; g.k.GF=function(a,b,c,d,e,f,h){if(T_(this)){var l=dUa(this.xe,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.Wu=function(a){var b;(b=this.xe)==null||b.Wu(a)}; g.k.Kz=function(a,b){a=a===void 0?-1:a;b=b===void 0?Infinity:b;T_(this)||eVa(this.bd,a,b)}; g.k.iI=function(a,b,c){if(T_(this)){var d=this.xe,e=d.wc.get(a);e?(c===void 0&&(c=e.Xd),e.durationMs=b,e.Xd=c):d.Ll("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.bd;e=null;for(var f=g.w(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.rd===a){e=h;break}e?(c===void 0&&(c=e.Xd),dVa(d,e,b,c)):jX(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}}; g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?"":d;this.Ff();a=new g.EP(this.W,a);d&&(a.rd=d);x5a(this,a,b,c)}; g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;a=this.preloadVideoByPlayerVars(a,b===void 0?1:b,c,d===void 0?"":d,e===void 0?"":e);b=this.Vc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.hN,d=this.Zk.N,c.C!==a&&(c.wb=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=$Sa(b,a,this.Zk.N),c!=null?(b.oa("sgap",c),b.getVideoData().Y&&C_(b,!1)):(a=a.getVideoData(),b=this.hN,b.j!== a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))}; g.k.IJ=function(a,b,c,d){var e=this;c=c===void 0?0:c;d=d===void 0?0:d;var f=g.ZQ(this);f&&(I_(this,f).z3=!0);qTa(this.Zk,a,b,c,d).then(function(){e.Ua.Hc("onQueuedVideoLoaded")},function(){})}; g.k.Eo=function(){return this.Zk.Eo()}; g.k.QF=function(a){return this.Zk.QF(a)}; g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("Clearing queue");this.Zk.clearQueue(a,b)}; g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;if(b===2&&this.Od().enableServerStitchedDai&&this.sb&&!sZ(this.sb)){var f;(f=this.sb)==null||f.oa("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.EP(this.W,a);g.MO(this.W)&&!f.Qk&<(this.Lb);var l,m=this.Lb,n=(l=f.Ya)!=null?l:"";m.timerName=n;this.Lb.xg("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Lb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&& !this.L("html5_shorts_gapless_always_fallback")){l=tTa(this.Zk,f,b);if(l==null){H_(this,-1);a=this.Zk;a.app.U().L("html5_gapless_new_slr")?s5a(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().SD=!0;var p,q;(p=a.j)==null||(q=p.ya)==null||q.resume();var r;(r=a.j)==null||iX(r.hc());c={Zc:"gapless_to_next_video",seekSource:60};var t;(t=a.app.Vc())==null||t.seekTo(sTa(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var u;(u=g.ZQ(a.app))==null||u.playVideo(!0)}a.K();return!0}t= this.L("html5_shorts_gapless_preload_fallback");u=this.Zk.j;t&&u&&!u.La()&&(p=u.getVideoData(),p=this.W.L("html5_autonav_autoplay_in_preload_key")?V_(this,b,p):W_(this,b,p.videoId,p.rd),this.Ay.set(p,u,3600));this.Zk.clearQueue(t);var y;(y=g.ZQ(this))==null||y.oa("sgap",{f:l})}if(e){for(;f.Vm.length&&f.Vm[0].isExpired();)f.Vm.shift();h=f.Vm.length-1;h=h>0&&e.B(f.Vm[h])&&e.B(f.Vm[h-1]);f.Vm.push(e)}c||(a&&NT(a)?(IO(this.W)&&!this.Bj&&(a.fetch=0),M_(this,a)):this.playlist&&M_(this,null),a&&(this.Bj= Qr(!1,a.external_list)));this.Ua.publish("loadvideo");b=this.Ju(f,b,d);h&&this.Tg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Vm.join()).replace(/[;:,]/g,"_"));return b}; g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;c=c===void 0?NaN:c;d=d===void 0?"":d;e=e===void 0?"":e;var f="";if(this.W.L("html5_autonav_autoplay_in_preload_key"))f=z5a(this,b,a,e);else{var h=Vr(a);f=W_(this,b,h,e)}if(this.Ay.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null; a=new g.EP(this.W,a);e&&(a.rd=e);return y5a(this,a,b,c,d)}; g.k.setMinimized=function(a){this.visibility.setMinimized(a);(a=zOa(this.Rd))&&(this.isMinimized()?a.load():a.unload());this.Ua.publish("minimized")}; g.k.setInline=function(a){this.visibility.setInline(a)}; g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Rd;a=a.J.U().showInlinePreviewUi?a.Ie.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.ib("onInlinePreviewModeChange"))}; g.k.Ny=function(a){var b=this.W.L("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",c=this.W.Yl&&this.W.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.EP&&b?this.EP.start():this.kX():this.visibility.Ny(a)}; g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)}; g.k.kX=function(){var a,b=(a=this.mediaElement)==null?void 0:a.Ib();b&&fs(b).catch(function(c){return g.yw(c)})}; g.k.fca=function(){this.mediaElement.Ib();this.mediaElement.Ib().webkitPresentationMode==="picture-in-picture"?this.Ny(!0):this.Ny(!1)}; g.k.togglePictureInPicture=function(){var a=g.ZQ(this);a&&a.togglePictureInPicture()}; g.k.Ju=function(a,b,c){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b}); Nz("_start",this.Lb.timerName)||g.Iq(Dz)(void 0,this.Lb.timerName);var d=!1,e=p5a(this,b,a,!1);e?(d=!0,a.dispose()):(e=j5a(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&u_(e)&&g.AW(e),this.rM.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),CW(this,e));e===this.sb&&(this.W.Gj=a.oauthToken);if(!u_(e))return!1;if(e===this.sb){this.Nq(1);c=O_(this);if(d&&this.L("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.Bq.j)this.onVideoDataChange("dataloaded", e,e.getVideoData());return c}n4a(e);return!0}; g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=b===void 0?1:b;if(this.Od().enableServerStitchedDai&&this.sb&&!sZ(this.sb)&&a&&Object.keys(a).length>0){var d;(d=this.sb)==null||d.oa("qvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b})}else if(a&&NT(a))if(this.Hx=!0,M_(this,a),(a=g.OT(this.playlist))&&a.ue())Y_(this,a,b);else this.playlist.onReady(function(){N_(c)}); else{b||(b=this.getPresentingPlayerType());b===1&&this.RO();d=new g.EP(this.W,a);var e=g.qO(this.W)&&!this.W.ra&&b===1&&!d.isAd()&&!d.wc;this.Ua.publish("cuevideo");e?(this.Vc().getVideoData().loading=!0,WNa(d,a?a:{}).then(function(f){Y_(c,f,b)}),d.dispose()):Y_(this,d,b)}}; g.k.tp=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(sO(this.W)||g.gC(this.W))return b=b||{},b.lact=ov(),b.vis=this.Ua.getVisibilityState(),this.Ua.ib("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;QNa(this.Lb);this.Lb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0}; g.k.cuePlaylist=function(a,b,c,d){this.Hx=!0;A5a(this,a,b,c,d)}; g.k.loadPlaylist=function(a,b,c,d){this.Hx=!1;A5a(this,a,b,c,d)}; g.k.dF=function(){return this.Ua.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Hl())}; g.k.Ut=aa(13); g.k.nextVideo=function(a,b){var c=g.WP(this.sb.getVideoData());g.pR(this.Ua)&&c?this.tp(c.videoId,b?c.QE:c.sessionData,c.playlistId,b,void 0,c.ZW||void 0):this.Bj?this.Ua.Hc("onPlaylistNext"):this.getPresentingPlayerType()===3?jR(this.Rd).nextVideo():!this.playlist||IO(this.W)&&!this.Ua.isFullscreen()||(this.playlist.Hl(a)&&PT(this.playlist,RNa(this.playlist)),this.playlist.loaded?(a=b&&this.W.L("html5_player_autonav_logging"),b&&this.Ua.publish("playlistautonextvideo"),this.Ju(g.OT(this.playlist,void 0, b,a),1)):this.Hx=!1)}; g.k.previousVideo=function(a){this.Bj?this.Ua.Hc("onPlaylistPrevious"):this.getPresentingPlayerType()===3?jR(this.Rd).bM():!this.playlist||IO(this.W)&&!this.Ua.isFullscreen()||(this.playlist.Zp(a)&&PT(this.playlist,SNa(this.playlist)),this.playlist.loaded?this.Ju(g.OT(this.playlist),1):this.Hx=!1)}; g.k.playVideoAt=function(a){this.Bj?this.Ua.Hc("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Ju(g.OT(this.playlist,a),1):this.Hx=!1,PT(this.playlist,a))}; g.k.getPlaylist=function(){return this.playlist}; g.k.oF=aa(21);g.k.maa=function(a){this.Ua.Hc("onCueRangeEnter",a.getId())}; g.k.naa=function(a){this.Ua.Hc("onCueRangeExit",a.getId())}; g.k.Cz=function(a,b,c){var d=g.ZQ(this,b);if(d){var e=this.Od();if(g.SP(e)){if(this.ub)if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.ub.Il()&&(this.sb.oa("ssap",{acrla:a.length?a[0].getId():"",acrll:a.length,pt:d.getPlayerType(),acpn:d.getVideoData().clientPlaybackNonce,ccpn:this.sb.getVideoData().clientPlaybackNonce}),d=this.sb),b===1)for(var f=cX(this.ub,e.clientPlaybackNonce),h=g.w(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.Ol=f,l.C=e.clientPlaybackNonce; else if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),e=g.w(a),f=e.next();!f.done;f=e.next())f.value.C=this.ub.Dl();e=g.w(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=(h=b)!=null?h:1}d.Cz(a,c);b&&this.getPresentingPlayerType()!==b||G_(this,"cuerangesadded",a)}else this.L("html5_ssap_enable_cpn_triggered_media_end")&&this.sb.oa("ssap",{acrlpnf:this.sb.getVideoData().clientPlaybackNonce})}; g.k.kH=function(a,b){var c=g.ZQ(this,b);c&&(c.kH(a),b&&this.getPresentingPlayerType()!==b||G_(this,"cuerangesremoved",a))}; g.k.bz=function(a){var b=this.Vc()||this.sb,c=b.Ch;if(c){var d=this.getPresentingPlayerType();if(this.W.zc()){var e=c.vK("ad");b.oa("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.L("html5_ssap_enable_cpn_triggered_media_end")?c.bz(d,a):c.bz(d)}return 0}; g.k.qaa=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.ow(d);if(e&&e!=="UNDEFINED_CSN"){var f=b.W.L("web_player_attach_player_response_ve"),h=b.W.L("web_playback_associated_ve");d={cpn:b.getVideoData().clientPlaybackNonce,csn:e};b.getVideoData().Ma&&(f||h)&&(f=g.lw(b.getVideoData().Ma),g.Rw(e,f),h&&(d.playbackVe=f.getAsJson()));b.getVideoData().queueInfo&&(d.queueInfo=b.getVideoData().queueInfo);e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().K&&(e.cttAuthInfo= {token:b.getVideoData().K,videoId:b.getVideoData().videoId});g.Xs("playbackAssociated",d,e)}else g.yw(new g.Hs("CSN Missing or undefined during playback association"))} var b=this;this.getPresentingPlayerType();ONa(this.Lb,this.wb.getVideoData(),E5a(this));L_(this)&&this.W.D&&yQ(this.Od())==="embedded"&&this.m_&&Math.random()<.01&&g.Xs("autoplayTriggered",{intentional:this.EZ});this.m_=!1;wOa(this.Rd);this.L("web_player_defer_ad")&&l5a(this);this.Ua.Hc("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),DO(this.W))||a();var c={};this.getVideoData().K&&(c.cttAuthInfo={token:this.getVideoData().K,videoId:this.getVideoData().videoId});c.sampleRate= 20;Mz("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.KO(this.W)||g.QN(this.W)==="MWEB"?g.Ms(g.Os(),function(){P_(b)}):P_(this); this.uM();t5a(this)}; g.k.CG=function(){this.Ua.publish("internalAbandon");U_(this)}; g.k.onApiChange=function(){this.W.N&&this.wb?this.Ua.Bi("onApiChange",this.wb.getPlayerType()):this.Ua.Bi("onApiChange")}; g.k.jba=function(){var a=this.mediaElement;a={volume:g.Bd(Math.floor(a.getVolume()*100),0,100),muted:a.bK()};a.muted||R_(this,!1);this.Si=g.Ec(a);this.Ua.Bi("onVolumeChange",a)}; g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.CR)&&(this.CR=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.CR}),this.Ua.Hc("onMutedAutoplayStarts"))}; g.k.onFullscreenChange=function(){var a=G5a(this);this.jn(a?1:0);I5a(this,!!a)}; g.k.jn=function(a){var b=!!a,c=!!this.mA()!==b;this.visibility.jn(a);this.template.jn(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&G5a(this)===this.mediaElement.Ib()&&this.mediaElement.SE();this.template.resize();c&&this.Lb.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Od(),b={fullscreen:b,videoId:a.bO||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Hc("onFullscreenChange",b))}; g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; g.k.mA=function(){return this.visibility.mA()}; g.k.Vba=function(){this.wb&&(this.mA()!==0&&this.mA()!==1||this.jn(G5a(this)?1:0),this.W.Yl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.SE())}; g.k.Zaa=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("liveviewshift",a)}; g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a}); var b=g.ZQ(this,a);b&&(this.appState===2?(g.MO(this.W)&<(this.Lb),O_(this)):g.Z(b.getPlayerState(),2)?(b=36,this.getVideoData().Ck()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())}; g.k.pauseVideo=function(a,b){(a=g.ZQ(this,a))&&a.pauseVideo(b)}; g.k.stopVideo=function(a){a=a===void 0?!1:a;this.logger.debug(function(){return"stop video"}); var b=this.sb.getVideoData(),c=new g.EP(this.W,{video_id:b.bO||b.videoId,oauth_token:b.oauthToken});c.Z=g.Ec(b.Z);var d;!a||(d=this.webPlayerContextConfig)!=null&&d.disableStaleness||(c.GW=!0);this.cancelPlayback(6);Y_(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.ZQ(this,b);d?b===2&&d.getPlayerType()===1&&(GLa(this.Od())||g.SP(this.getVideoData()))?d.oa("canclpb",{r:"no_adpb_ssdai"}):(this.W.zc()&&d.oa("canclpb",{r:a}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.wb&&(this.logger.debug("cancel playback, destroy modules"),wU(this.Rd,a)),b===1&&(d.stopVideo(),U_(this)),d.Wo(void 0,a!==6),G_(this,"cuerangesremoved",d.Cl()),d.Ch.reset(),this.Zk&&d.isGapless()&& (d.Sj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.ZQ(this,b))&&xJa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()}; g.k.Li=function(a){var b=g.ZQ(this);return b&&xJa(this.W,a)?b.Li(a):null}; g.k.updatePlaylist=function(){!IO(this.W)&&g.qO(this.W)&&n5a(this);this.Ua.Hc("onPlaylistUpdate")}; g.k.setSizeStyle=function(a,b){this.z2=a;this.L("web_log_theater_mode_visibility")?this.wC(b):this.ZQ=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()}; g.k.wC=function(a){this.visibility.wC(a)}; g.k.Ek=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.Ek():this.ZQ}; g.k.isMinimized=function(){return this.visibility.isMinimized()}; g.k.isInline=function(){return this.visibility.isInline()}; g.k.Ej=function(){return this.visibility.Ej()}; g.k.OA=function(){return this.visibility.OA()}; g.k.VA=function(){return this.visibility.VA()}; g.k.YQ=function(){return this.z2}; g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return jR(this.Rd).getAdState();if(!this.Ff()){var a=xU(this.Bb());if(a)return a.getAdState()}return-1}; g.k.Uba=function(a){var b=this.template.getVideoContentRect();Tl(this.ZZ,b)||(this.ZZ=b,this.wb&&z_(this.wb),this.sb&&this.sb!==this.wb&&z_(this.sb),this.mA()===1&&this.QG&&I5a(this,!0));this.gR&&g.Hd(this.gR,a)||(this.Ua.publish("appresize",a),this.gR=a)}; g.k.Lh=function(){return this.Ua.Lh()}; g.k.pca=function(){this.getPresentingPlayerType()===2&&this.bd.isManifestless()?cVa(this.bd):(this.xe&&(jUa(this.xe),U_(this)),g5a(this,"signature"))}; g.k.o0=function(){this.Sj();F_(this)}; g.k.pba=function(a){a.errorCode==="manifest.net.badstatus"&&a.details.rc===(this.W.experiments.kb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.ib("onPlayerRequestAuthFailed")}; g.k.yG=function(){this.Ua.Hc("CONNECTION_ISSUE")}; g.k.BG=function(a){this.Ua.publish("heartbeatparams",a)}; g.k.oM=function(a){this.Ua.ib("onAutonavChangeRequest",a!==1)}; g.k.Le=function(){return this.mediaElement}; g.k.setBlackout=function(a){this.W.ob!==a&&(this.W.ob=a,this.wb&&(this.wb.mp(),this.W.Va&&K5a(this),this.wb.Vo(a)))}; g.k.rba=function(){var a=g.ZQ(this);if(a){var b=!this.Ua.NF();(a.ZY=b)||a.Px.stop();a.videoData.j&&(b?a.videoData.j.resume():jIa(a.videoData.j));a.ya&&(b?a.ya.resume():B_(a,!0));g.Z(a.playerState,2)||b?g.Z(a.playerState,512)&&b&&a.Ec(jF(a.playerState,512)):a.Ec(iF(a.playerState,512));a=a.hc();a.qoe&&(a=a.qoe,g.LZ(a,g.FI(a.provider),"stream",[b?"A":"I"]))}}; g.k.onLoadedMetadata=function(){this.Ua.Hc("onLoadedMetadata")}; g.k.onDrmOutputRestricted=function(){this.Ua.Hc("onDrmOutputRestricted")}; g.k.jB=function(){this.EZ=!0}; g.k.xa=function(){this.Rd.dispose();this.C8.dispose();this.bd.dispose();this.xe&&this.xe.dispose();this.Cq.removeAll();this.Cq.dispose();this.ub&&this.ub.dispose();this.sb.dispose();this.Sj();g.ib(g.wc(this.jt),this.playlist);g.O.prototype.xa.call(this)}; g.k.L=function(a){return this.W.L(a)}; g.k.setScreenLayer=function(a){this.screenLayer=a}; g.k.getInternalApi=function(){return this.Ua.getInternalApi()}; g.k.createSubtitlesModuleIfNeeded=function(){return this.Rd.createSubtitlesModuleIfNeeded()}; g.k.isOrchestrationLeader=function(){var a=zU(this.Rd);return a?a.isOrchestrationLeader():!1}; g.k.getVideoUrl=function(a,b,c,d,e){if(this.Hb&&this.Hb.postId)return a=this.W.getVideoUrl(a),a=Ki(a,"v"),a.replace("/watch","/clip/"+this.Hb.postId);var f=this.Ua.jd()||this.W.Ma==="shortspage",h=g.KQ(this.getVideoData());return this.W.getVideoUrl(a,b,c,d,e,f,h)}; g.k.xu=function(){return this.Zk.xu()}; g.k.Wm=function(a){this.Ua.publish("spsumpstatuschange",a)}; g.k.pS=function(a,b){this.Ua.publish("spsumpreject",a,b)}; g.k.qG=function(){try{for(var a=g.w(Object.values(this.jt)),b=a.next();!b.done;b=a.next()){var c=b.value;c.La()||c.qG()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.w(hVa(this.Ay)),e=d.next();!e.done;e=d.next()){var f=e.value;f.La()||f.qG()}this.sb.qG()}catch(h){g.yw(h)}}; g.k.ST=function(){if(this.xe){var a=(0,g.T)();return this.xe.ST(a)}return!1}; var y2={};var Y5a=/[&\?]action_proxy=1/,X5a=/[&\?]token=([\w-]*)/,Z5a=/[&\?]video_id=([\w-]*)/,$5a=/[&\?]index=([\d-]*)/,a6a=/[&\?]m_pos_ms=([\d-]*)/,c6a=/[&\?]vvt=([\w-]*)/,P5a="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),b6a="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),S5a={android:"ANDROID", "android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},T5a={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},V5a={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};a0.prototype.gB=function(a){this.player.Yh().tick(a)}; a0.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=this.j===1;d&&this.gB("a_bid_s");var e=N5a();if(e!==null)return d&&this.gB("a_bid_f"),this.B(a,b,e);e=O5a();d&&He(e,function(){c.gB("a_bid_f")}); return e.then(function(f){return c.B(a,b,f)})}; a0.prototype.B=function(a,b,c){var d=this,e=b===void 0?{}:b;b=e.Sw;var f=e.je;var h=e.cueProcessedMs;c=c===void 0?"":c;var l=this.player.getVideoData(1);e=this.player.U().Ij;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Eh:0,AUTONAV_STATE:$_(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Lr()*1E3,LACT:ov(),LIVE_INDEX:b?this.C++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0, VIS:this.player.getVisibilityState(),P_H:this.player.qb().ji().height,P_W:this.player.qb().ji().width,YT_REMOTE:e?e.join(","):""},n=Zq(Yq);Object.keys(n).forEach(function(q){n[q]!=null&&(m[q.toUpperCase()]=n[q].toString())}); c!==""&&(m.BISCOTTI_ID=c);c={};Xq(a)&&(c.sts="19936",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=Uq(g.lo(a,m),c);return p.split("?").length!==2?Fe(Error("Invalid AdBreakInfo URL")):g.TO(this.player.U(),l==null?void 0:l.oauthToken).then(function(q){if(q&&Wq()){var r=sR();tR(r,q)}q=d.player.Jm(r);r=d6a(d,p,m,l.isMdxPlayback,h);return g.Sz(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})}; a0.prototype.reset=function(){this.C=this.j=1};g.z(e6a,a0); e6a.prototype.B=function(a,b,c){b=b===void 0?{}:b;var d=b.Sw;var e=b.je;var f=b.cueProcessedMs;c=c===void 0?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:f6a(this,a,{Sw:d,je:e},c,b);if(h.split("?").length!==2)return Math.random()<.1&&g.yw(Error("Invalid AdBreakInfo URL")),Fe(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=X5a.exec(h);c=c!=null&&c.length>=2?c[1]:"";a=Y5a.test(h);e=Z5a.exec(h);e=e!=null&&e.length>= 2?e[1]:"";var n=$5a.exec(h);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=a6a.exec(h);p=p!=null&&p.length>=2?p[1]:"0";var q=BO(this.player.U().Fa),r=g.Ly(this.player.getVideoData(1).Ma,!0);R5a(this,r,h,m===""?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(ov()),playerHeightPixels:Math.trunc(this.player.qb().ji().height),playerWidthPixels:Math.trunc(this.player.qb().ji().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19936,autonavState:$_(this.player.U())}; if(l){l={};var t=this.player.U().Ij;U5a(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=b6a.includes(q)?void 0:g.xr("PREF")){t=l.split(RegExp("[:&]"));for(var u=0,y=t.length;u1&&A[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=W5a(l)}h=c6a.exec(h);(h=h!=null&&h.length>=2?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m}; m=KLa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=f!==void 0?Math.round(f).toString():void 0;t=(d==null?0:d.context)?d.context:void 0;d=(d=Math.trunc((d?d.Eh:0)*1E3))?String(d):void 0;u=this.player.Lr()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d, driftFromHeadMs:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:m?m:void 0};return g6a(this,b)};var Mbb={tka:"replaceUrlMacros",Mja:"onAboutThisAdPopupClosed",Iha:"executeCommand"};h6a.prototype.Jr=function(){return"adPingingEndpoint"}; h6a.prototype.ju=function(a,b,c){M6a(this.Oa.get(),a,b,c)};i6a.prototype.Jr=function(){return"changeEngagementPanelVisibilityAction"}; i6a.prototype.ju=function(a){this.J.ib("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};j6a.prototype.Jr=function(){return"loggingUrls"}; j6a.prototype.ju=function(a,b,c){a=g.w(a);for(var d=a.next();!d.done;d=a.next())d=d.value,M6a(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.z(l6a,g.O);g.z(c0,g.O);g.k=c0.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.Lk=function(a,b,c,d,e,f,h,l){if(a==="")cy("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.U().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ia.get().Lk(a,b,c,d,e,f,h,l);this.Sa.get().Lk(a,b,c,d,e,f,h,l);var m;(m=this.yf)==null||m.get().Lk(a,b,c,d,e,f,h,l);this.B.Lk(a,b,c,d,e,f,h,l);m=g.w(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Lk(a,b,c,d,e,f,h,l)}}; g.k.CG=function(){this.j&&this.Mo(this.j)}; g.k.Mo=function(a){this.j=void 0;for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Mo(a)};d0.prototype.YI=function(a,b,c,d,e){m6a(this);this.G=!b&&c===0;var f=this.J.getVideoData(1),h=this.J.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.K);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.D=a;d<=0?(m6a(this),this.G=!b&&c===0):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.C=!0,Nz("_start",this.actionType)&&p6a(this)))}; d0.prototype.reset=function(){return new d0(this.J)};g.z(e0,g.O);e0.prototype.addCueRange=function(a,b,c,d,e,f,h){f=f===void 0?3:f;h=h===void 0?1:h;this.j.has(a)?cy("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new q6a(a,b,c,d,f),this.j.set(a.id,{je:a,listener:e,jp:h}),this.J.mf([a],h))}; e0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.Xo([b.je],b.jp),this.j.delete(b.je.id)):cy("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; e0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)}; e0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)}; g.z(q6a,g.LC);f0.prototype.cH=function(a){this.J.cH(a)}; f0.prototype.Zu=function(a){var b=g.Da.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.J.Bi.apply(this.J,[a].concat(g.x(b))):this.J.ib.apply(this.J,[a].concat(g.x(b)))};g0.prototype.We=function(a){return a&&h0(this)}; g0.prototype.JT=function(){return this.J.U().experiments.kb("h5_enable_generic_error_logging_event")}; g0.prototype.NT=function(){return this.J.U().experiments.kb("enable_ips_gating")};var y6a=null;g.z(x6a,g.Xw);x6a.prototype.RP=function(a){return this.j.hasOwnProperty(a)?this.j[a].RP():{}}; g.La("ytads.bulleit.getVideoMetadata",function(a){return i0().RP(a)}); g.La("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=i0();c=w6a(c);c!==null&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=j0.prototype; g.k.Th=function(a,b){if(!this.j.has(a))return{};if(b==="seek"){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=b===void 0?!1:b;var c=ql(ko).mK(a,{});c?jn(c):b&&(a=ql(ko).jH(null,Il(),!1,a),a.Ik=3,Uja([a]));return{}}b=A6a(b);if(b===null)return{};var d=this.J.Vc();d=d&&g4a(d);if(!d)return{};var e=this.J.getPresentingPlayerType(!0);if((c=this.J.getVideoData(e))==null||!c.isAd())return{};c={opt_adElement:d,opt_fullscreen:this.Ia.get().isFullscreen()};return Uka(b,a,c)}; g.k.gy=function(a){var b;(b=this.j.get(a.queryId))==null||b.gy()}; g.k.ey=function(a){var b;(b=this.j.get(a.queryId))==null||b.ey()}; g.k.iy=function(a){var b;(b=this.j.get(a.queryId))==null||b.iy()}; g.k.Yx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Yx()}; g.k.Zx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Zx()};H6a.prototype.send=function(a,b,c,d){try{I6a(this,a,b,c,d===void 0?!1:d)}catch(e){}};g.z(J6a,H6a);K6a.prototype.send=function(a,b,c,d){var e=!1;try{if(d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,a=Wpa(a);d=e;var f=a.match(yi);if(f[1]==="https")var h=a;else f[1]="https",h=wi("https",f[2],f[3],f[4],f[5],f[6],f[7]);var l=Yka(h);f=[];var m=Ima(h)&&this.Ca.get().J.U().experiments.kb("add_auth_headers_to_remarketing_google_dot_com_ping");if(Xq(h)||m)f.push({headerType:"USER_AUTH"}),f.push({headerType:"PLUS_PAGE_ID"}),f.push({headerType:"VISITOR_ID"}),f.push({headerType:"EOM_VISITOR_ID"}), f.push({headerType:"AUTH_USER"}),f.push({headerType:"DATASYNC_ID"});this.j.send({baseUrl:h,scrubReferrer:l,headers:f},b,c,d)}catch(n){}};o0.prototype.Li=function(){var a=this.J.Vc();return a&&(a=a.Li(1))?a:null};g.z(p0,g.O);g.k=p0.prototype;g.k.Im=function(){return this.J.getVideoData(1).clientPlaybackNonce}; g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.Lk=function(){this.lO.clear();this.jR=null;this.Ts.get().clear()}; g.k.Mo=function(){}; g.k.Hca=function(a,b,c,d,e){b.videoId==="nPpU29QrbiU"&&UD(this,"ads_ssm_vdc_s",{pt:c,dvt:a});EI(this.Ca.get())&&a!=="dataloaded"||T6a(this,b,c);if(h0(this.Ca.get())&&a==="newdata"&&e!==void 0){a=this.Im();var f=b.clientPlaybackNonce,h={};XD(this,"rte",(h.ec=f,h.xc=d==null?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=WD(f),h));b=b.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;e=U6a(e);if(e!==1)if(d!==void 0)for(c=g.w(this.listeners),a=c.next();!a.done;a=c.next())a.value.xG(d, b,e);else cy("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.w(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.wG(b)}}; g.k.jca=function(a,b){a!==void 0&&(this.jR=a,b===void 0?cy("Expected ad video start time on SS video changed"):this.lO.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).oa("ads_ssvc",{pt:c,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?T6a(this,d,c):cy("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})}; g.k.ZI=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.rd,h=a.title,l=a.mj,m=a.Rj,n=a.isMdxPlayback,p=a.yn,q=a.mdxEnvironment,r=a.isAutonav,t=a.Mq,u=a.Qk,y=a.Ip,A=a.videoId||"",D=a.profilePicture||"",F=a.Xl||"",H=a.Ck()||!1,M=a.Jh()||!1;a=a.Pw||void 0;f=this.Ts.get().j.get(f)||{layoutId:null,slotId:null};var N=this.J.getVideoData(1),S=N.Vb();N=N.getPlayerResponse();b=1E3*this.J.getDuration(b);var ba=1E3*this.J.getDuration(1),ha,na,Y=(N==null?void 0:(ha=N.playerConfig)==null? void 0:(na=ha.daiConfig)==null?void 0:na.enableDai)||!1,R,W;ha=(N==null?void 0:(R=N.playerConfig)==null?void 0:(W=R.daiConfig)==null?void 0:W.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,Xca:b,Np:ba,daiEnabled:Y,GX:ha,isListed:e,Vb:S,profilePicture:D,title:h,Xl:F,mj:l,Rj:m,Pw:a,isMdxPlayback:n,yn:p,mdxEnvironment:q,isAutonav:r,Mq:t,Qk:u,Ip:y,Ck:H,Jh:M})}; g.k.xa=function(){this.listeners.length=0;this.Tw=null;g.O.prototype.xa.call(this)};g.z(q0,g.O);g.k=q0.prototype;g.k.Lk=function(){var a=this;h0(this.Ca.get())||(this.j=bd(function(){a.J.La()||a.J.Eg("ad",1)}))}; g.k.Mo=function(){}; g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.PR=function(){}; g.k.playVideo=function(){this.J.playVideo()}; g.k.pauseVideo=function(){this.J.pauseVideo()}; g.k.resumeVideo=function(a){this.Go(a)&&this.J.playVideo()}; g.k.Go=function(a){return this.J.getPlayerState(a)===2}; g.k.getCurrentTimeSec=function(a,b,c){var d=this.Sa.get().jR;if(a===2&&!b&&d!==null)return W6a(this,d);yI(this.Ca.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.J.getCurrentTime(a,b,c):this.J.getCurrentTime(a,b)}; g.k.getVolume=function(){return this.J.getVolume()}; g.k.isMuted=function(){return this.J.isMuted()}; g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)}; g.k.getPlayerState=function(a){return this.J.getPlayerState(a)}; g.k.isFullscreen=function(){return this.J.isFullscreen()}; g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()}; g.k.tC=function(a){this.J.tC(a)}; g.k.Jba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(a===2){a=g.w(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Oi(b)}else if(a===1)for(a=g.w(this.yE),c=a.next();!c.done;c=a.next())c.value.PR(b)}; g.k.Aba=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Cg(a,this.getPresentingPlayerType())}; g.k.onFullscreenToggled=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)}; g.k.onVolumeChange=function(){for(var a=g.w(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()}; g.k.ph=function(){for(var a=this.J.isMinimized(),b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.ph(a)}; g.k.Kj=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Kj(a)}; g.k.kc=function(){for(var a=this.J.qb().ji(),b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.hj(a)}; g.k.Jj=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Jj(a)}; g.k.Mj=function(){for(var a=g.w(this.listeners),b=a.next();!b.done;b=a.next())b.value.Mj()};g.z(Z6a,g.O);g.z(v0,g.O);v0.prototype.xa=function(){this.Jo.La()||this.Jo.get().removeListener(this);g.O.prototype.xa.call(this)};w0.prototype.fetch=function(a){var b=a.EX;return this.j.fetch(a.F3,{Sw:a.Sw===void 0?void 0:a.Sw,je:b,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(c){return $6a(c,b)})};g.z(x0,g.O);g.k=x0.prototype;g.k.addListener=function(a){this.listeners.push(a)}; g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; g.k.FM=function(a){a7a(this,a,1)}; g.k.onAdUxClicked=function(a,b){y0(this,function(c){c.jg(a,b)})}; g.k.JR=function(a){y0(this,function(b){b.pQ(a)})}; g.k.IR=function(a){y0(this,function(b){b.oQ(a)})}; g.k.haa=function(a){y0(this,function(b){b.qK(a)})};z0.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={BE:null,b_:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Eh)?cy("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,d7a(this, c)))}}; g.k.xa=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.QR,this),this.j=null);this.listeners.length=0;this.WM.length=0;g.O.prototype.xa.call(this)};B0.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=D0.prototype;g.k.iE=function(a,b,c,d,e,f,h){return this.J.iE(a,b,c,d,e,f,h)}; g.k.Kz=function(a,b){this.J.Kz(a,b)}; g.k.iI=function(a,b,c){this.J.iI(a,b,c)}; g.k.Wu=function(a){this.J.Wu(a)}; g.k.GF=function(a,b,c,d,e,f,h){this.J.GF(a,b,c,d,e,f,h)}; g.k.Qs=function(a){return this.J.Qs(a)}; g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.z(i7a,g.O);g.z(j7a,g.O);g.z(k7a,g.O);g.z(l7a,g.O);g.z(m7a,g.O);g.z(o7a,g.O);o7a.prototype.C=function(){return this.B};g.z(p7a,Ix); p7a.prototype.D=function(a){var b=a.content;if(b.componentType==="shopping-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="top-banner-image-text-icon-buttoned")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("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.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",b.addAction);this.j.ib("changeEngagementPanelVisibility", b.expandAction);break;case 3:this.j.ib("changeEngagementPanelVisibility",b.hideAction),this.j.ib("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var c=b.renderer;switch(a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",{action:Cw(c.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.ib("changeEngagementPanelVisibility",Cw(c.expandAction));break;case 3:this.j.ib("changeEngagementPanelVisibility", Cw(c.hideAction)),this.j.ib("updateEngagementPanelAction",{action:Cw(c.removeAction)})}}};g.z(q7a,Qx);g.k=q7a.prototype; g.k.init=function(a,b,c){Qx.prototype.init.call(this,a,b,c);g.Vl(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.ra.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){Sx(this);Qx.prototype.hide.call(this)}; g.k.show=function(){Rx(this);Qx.prototype.show.call(this)}; g.k.Eq=function(){this.hide()}; g.k.Uo=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.Vl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.z(r7a,fx);g.k=r7a.prototype; g.k.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&g.Q(b.actionButton,g.WH))if(a=b.durationMilliseconds||0,typeof a!=="number"||a<=0)g.xw(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null){var e=b.image.thumbnail.thumbnails;e!=null&& e.length>0&&g.qb(g.Td(e[0].url))&&(e[0].url=d.profilePicture,g.qb(g.Td(d.profilePicture))&&rIa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.qb(g.Td(e[0].url))&&(e[0].url=d.hh());e=b.headline;e!=null&&g.qb(g.Td(e.text))&&(e.text=d.author)}this.Y.init(Vw("ad-image"),b.image,c);this.G.init(Vw("ad-text"),b.headline,c);this.C.init(Vw("ad-text"),b.description,c);this.Ka.init(Vw("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.api.U().L("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.C.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().L("enable_small_endcap_action_button_for_mweb")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"); this.api.U().L("enable_mweb_endcap_dark_mode_action_button")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().L("enable_unified_action_endcap_on_web")&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.Xa.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.xf.classList.add("ytp-ad-action-interstitial-card-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.ra.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ga.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new xx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,d);g.P(this,this.actionButton);this.actionButton.Ja(this.fb);this.actionButton.init(Vw("button"),g.Q(b.actionButton,g.WH),c);Go(this.actionButton.element);d=Jo(this.actionButton.element);Io(this.actionButton.element, d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.ra,"click",this.wP,this);this.D.T(this.Va,"click",this.wP,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Wa,"click",this.wP,this);this.j=this.OT?new my(this.api,a):new ny(a);g.P(this,this.j);if(b.skipButton){if((a=g.Q(b.skipButton,t$a))&&this.j&&(this.skipButton=new gy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,this.CM), g.P(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(Vw("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.Q(c,s$a))a=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),a.Ja(this.Ga),a.init(Vw("simple-ad-badge"),c,this.macros),g.P(this,a);if(c=b.adInfoRenderer)if(c=g.Q(c,UH))a=new Nx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),a.Ja(this.Ga),a.init(Vw("ad-info-hover-text-button"), c,this.macros),g.P(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.Q(b.nonskippableOverlayRenderer,VH))&&this.j&&(this.B=new Vx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,!1),g.P(this,this.B),this.B.Ja(this.element),this.B.init(Vw("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.Q(b,u$a)&&this.j&&(c=new q7a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j),g.P(this,c),c.Ja(this.element),c.init(Vw("timed-pie-countdown"),g.Q(b,u$a), this.macros)));this.show();this.element.focus()}else g.xw(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.xw(Error("AdActionInterstitialRenderer has no button."));else g.xw(Error("AdActionInterstitialRenderer has no background AdImage."));else g.xw(Error("AdActionInterstitialRenderer has no description AdText."));else g.xw(Error("AdActionInterstitialRenderer has no headline AdText."));else g.xw(Error("AdActionInterstitialRenderer has no image."))}; g.k.clear=function(){g.ps(this.D);this.hide()}; g.k.show=function(){s7a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();fx.prototype.show.call(this)}; g.k.hide=function(){s7a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();fx.prototype.hide.call(this)}; g.k.wP=function(){this.navigationEndpoint&&(this.layoutId?this.jb.executeCommand(this.navigationEndpoint,this.layoutId):g.xw(Error("Missing layoutId for ad action interstitial.")))};var x7a={iconType:"CLOSE"},H0=new g.Gd(320,63);g.z(w7a,fx);g.k=w7a.prototype; g.k.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Tb(this.D.onClickCommands||[]);this.Va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.Q(a,p$a)?(this.G=g.ce("ytp-ad-overlay-ad-info-button-container",this.C.element),y7a(this,b),a=A7a(this,g.Q(a,p$a))):g.Q(a,q$a)?(this.G=g.ce("ytp-ad-overlay-ad-info-button-container",this.B.element),y7a(this,b),a=B7a(this,g.Q(a,q$a))):g.Q(a,r$a)?(this.G= g.ce("ytp-ad-overlay-ad-info-button-container",this.j.element),y7a(this,b),a=C7a(this,g.Q(a,r$a))):(g.xw(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),D7a(this,!0))}; g.k.clear=function(){D7a(this,!1);this.Ka.reset();this.ra=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()}; g.k.yca=function(){this.Xa&&(this.layoutId?this.jb.executeCommand(this.Xa,this.layoutId):g.xw(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.k.RN=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.xw(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.k.eaa=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.k.jS=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.jS("invideo-overlay")}; g.k.faa=function(a){a.target===this.G&&g.ce("ytp-ad-button",this.fb.element).click()};g.z(E7a,Qx);g.k=E7a.prototype;g.k.init=function(a,b,c){Qx.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=a==null||a===0?0:a+this.j.getProgressState().current*1E3;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(Vw("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()}; g.k.clear=function(){this.hide()}; g.k.hide=function(){F7a(this,!1);Qx.prototype.hide.call(this);this.B.hide();this.messageText.hide();Sx(this)}; g.k.show=function(){F7a(this,!0);Qx.prototype.show.call(this);Rx(this);this.B.show();this.messageText.show()}; g.k.Eq=function(){this.hide()}; g.k.Uo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.ra&&a>=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(Px(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.z(G7a,fx);g.k=G7a.prototype; g.k.init=function(a,b,c){fx.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.Q(b.actionButton,g.WH)?(this.C.init(Vw("ad-image"),b.image,c),this.B.init(Vw("ad-text"),b.headline,c),this.D.init(Vw("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 xx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb, a),b.backgroundColor&&g.Vl(this.element,"background-color",g.Ay(b.backgroundColor)),g.P(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(Vw("button"),g.Q(b.actionButton,g.WH),c),b=g.VB(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Vo(c,"ytp-ad-underlay-left-container"),g.To(c,"ytp-ad-underlay-right-container"),g.Vl(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(c=this.j,g.Vo(c,"ytp-ad-underlay-right-container"), g.To(c,"ytp-ad-underlay-left-container")),g.Vl(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.PF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.dW.bind(this)),this.api.addEventListener("resize",this.XY.bind(this))):g.xw(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.xw(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.xw(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.xw(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.k.show=function(){H7a(!0);this.actionButton&&this.actionButton.show();fx.prototype.show.call(this)}; g.k.hide=function(){H7a(!1);this.actionButton&&this.actionButton.hide();fx.prototype.hide.call(this)}; g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.dW.bind(this));this.api.removeEventListener("resize",this.XY.bind(this));this.hide()}; g.k.onClick=function(a){fx.prototype.onClick.call(this,a);this.actionButton&&g.pe(this.actionButton.element,a.target)&&this.api.pauseVideo()}; g.k.dW=function(a){a==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; g.k.XY=function(a){a.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):a.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.Vl(this.B.element,"font-size",a.width/40+"px")};g.z(I0,fx); I0.prototype.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.Q(b.answer,g.WH)?(a=new xx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(Vw("ytp-ad-survey-answer-button"),g.Q(b.answer,g.WH),c),a.show()):b.answer&&g.Q(b.answer,v1)&&(this.j=new Gx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb, ["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.P(this,this.j),this.j.init(Vw("survey-answer-button"),g.Q(b.answer,v1),c));this.show()}; I0.prototype.vH=function(a){this.layoutId?AC(this.jb,a,this.layoutId,this.macros):g.xw(new g.Hs("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; I0.prototype.onClick=function(a){fx.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; I0.prototype.clear=function(){this.hide()};g.z(I7a,fx);I7a.prototype.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);b.answer&&g.Q(b.answer,v1)&&(this.button=new Gx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(Vw("survey-none-of-the-above-button"),g.Q(b.answer,v1),c));this.show()};g.z(J0,xx);J0.prototype.init=function(a,b,c){xx.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.hx(b.text),a=!g.qb(b));a||g.yw(Error("No submit text was present in the renderer."))}; J0.prototype.onClick=function(a){this.publish("l");xx.prototype.onClick.call(this,a)};g.z(K0,fx); K0.prototype.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.Q(a,hG)?(a=g.Q(a,hG),c=new iy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,!0),c.Ja(this.skipOrPreview),c.init(Vw("skip-button"),a,this.macros),g.P(this,c),this.j=c):g.Q(a,VH)&&(a=g.Q(a,VH),c=new Vx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,!1),c.Ja(this.skipOrPreview),c.init(Vw("ad-preview"),a,this.macros),Wx(c),g.P(this,c),this.j=c);this.j== null&&g.xw(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.Q(a,g.WH)&&(a=g.Q(a,g.WH),c=new J0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(this.submitButton),c.init(Vw("survey-submit"),a,this.macros),g.P(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.Q(a,s$a),c=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),c.Ja(this.C),c.init(Vw("simple-ad-badge"),a,this.macros), g.P(this,c);if(a=b.adDurationRemaining)a=g.Q(a,l$a),c=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,void 0),c.Ja(this.C),c.init(Vw("ad-duration-remaining"),a,this.macros),g.P(this,c);(b=b.adInfoRenderer)&&g.Q(b,UH)&&(a=new Nx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,a),a.Ja(this.C),a.init(Vw("ad-info-hover-text-button"),g.Q(b,UH),this.macros));this.api.U().L("enable_unified_ad_badge_style_fix")&&this.C.classList.add("ytp-ad-survey-player-overlay-instream-info-unified"); this.show()}; K0.prototype.clear=function(){this.hide()};g.z(L0,fx);L0.prototype.init=function(a,b,c){fx.prototype.init.call(this,a,b,c);N7a(this)}; L0.prototype.show=function(){this.C=g.Xa();fx.prototype.show.call(this)}; L0.prototype.F1=function(){};g.z(O7a,L0);g.k=O7a.prototype;g.k.init=function(a,b,c){var d=this;L0.prototype.init.call(this,a,b,c);b.questionText&&J7a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,t1)&&K7a(d,g.Q(e,t1),c,f)}); this.G=new Set(this.B.map(function(e){return e.j.j})); (a=b.noneOfTheAbove)&&(a=g.Q(a,o$a))&&P7a(this,a,c);b.surveyAdQuestionCommon&&M7a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()}; g.k.F1=function(){Q7a(this,!1);this.D.B.subscribe("l",this.wca,this)}; g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?R7a(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Q7a(this,!0))}; g.k.wca=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e; e=g.Fc(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Ii(f.baseUrl,b));return f}); return e}); if(c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?AC(this.jb,d,this.layoutId,this.macros):g.xw(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.ra(a)}; g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(M0,L0);M0.prototype.init=function(a,b,c){var d=this;L0.prototype.init.call(this,a,b,c);b.questionText&&J7a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,t1)&&K7a(d,g.Q(e,t1),c,f)}); b.surveyAdQuestionCommon?M7a(this,b.surveyAdQuestionCommon):g.xw(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; M0.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(N0,fx);N0.prototype.init=function(a,b,c){var d=this;fx.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=(e=b.conditioningRules)!=null?e:[];var f;this.B=(f=b.questions)!=null?f:[];var h;((h=b.questions)==null?0:h.length)&&V7a(this,0)}else(b.questions||[]).forEach(function(l){g.Q(l,SH)?T7a(d,g.Q(l,SH),c):g.Q(l,RH)&&U7a(d,g.Q(l,RH),c)}); this.show()}; N0.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; N0.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var d;if(a.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(e){return e.questionIndex===b.j})==null)g.xw(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if((f=e.answerIndices)==null?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex; break;case "CONDITION_ANY_OF":var h;if((h=e.answerIndices)==null?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex; break;default:g.xw(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)V7a(this,d); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.xw(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var W7a=oa(['background-image:url("','");']);g.z(O0,fx); O0.prototype.init=function(a,b,c){var d=this;fx.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.xw(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.Q(b.ctaButton,g.WH))if(b.brandImage)if(b.backgroundImage&&g.Q(b.backgroundImage,XH)&&g.Q(b.backgroundImage,XH).landscape){this.layoutId||g.xw(Error("Missing layoutId for survey interstitial."));X7a(this.interstitial, g.Q(b.backgroundImage,XH).landscape);X7a(this.logoImage,b.brandImage);g.qe(this.text,g.hx(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new xx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,e);g.P(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(Vw("button"),g.Q(b.ctaButton,g.WH),c);this.actionButton.show();this.j=new my(this.api,a*1E3);this.j.subscribe("g",function(){d.transition.hide()}); g.P(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.xw(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.xw(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.xw(Error("SurveyTextInterstitialRenderer has no button."));else g.xw(Error("SurveyTextInterstitialRenderer has no text."));else g.xw(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; O0.prototype.clear=function(){this.hide()}; O0.prototype.show=function(){Y7a(!0);fx.prototype.show.call(this)}; O0.prototype.hide=function(){Y7a(!1);fx.prototype.hide.call(this)};g.z(Q0,fx);Q0.prototype.init=function(a,b){fx.prototype.init.call(this,a,b,{});if(a=b.content){g.qe(this.element,a);var c,d;b=((c=b.interaction)==null?void 0:(d=c.accessibility)==null?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.xw(Error("AdSimpleAttributedString does not have text content"))}; Q0.prototype.clear=function(){this.hide()}; Q0.prototype.onClick=function(a){fx.prototype.onClick.call(this,a)};g.z(R0,fx); R0.prototype.init=function(a,b){fx.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.qb(a.content)?(this.adBadgeText.init(Vw("ad-simple-attributed-string"),new P0(a)),(b=b.adPodIndex)&&b.content&&!g.qb(b.content)&&(this.j=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),this.j.Ja(this.element),g.P(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(Vw("ad-simple-attributed-string"),new P0(b))),this.element.classList.add("ytp-ad-badge--stark"),this.show()): g.xw(Error("No label is returned in AdBadgeViewModel."))}; R0.prototype.show=function(){this.adBadgeText.show();var a;(a=this.j)==null||a.show();fx.prototype.show.call(this)}; R0.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.j)==null||a.hide();fx.prototype.hide.call(this)};g.z(S0,Qx);g.k=S0.prototype; g.k.init=function(a,b){Qx.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.xw(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.TJ();var c;if((c=b.previewText)==null||!c.text||g.qb(b.previewText.text))g.xw(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.qe(this.C,b.previewText.text);var d; if(((d=this.api.getVideoData(1))==null?0:d.gm)&&b.previewImage){var e,f;(a=((f=mua(((e=b.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:f.url)||"")&&a.length?(this.previewImage=new g.ex({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.P(this,this.previewImage),this.previewImage.Ja(this.element)):g.xw(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}}; g.k.clear=function(){this.hide()}; g.k.hide=function(){Sx(this);Qx.prototype.hide.call(this)}; g.k.show=function(){Rx(this);Qx.prototype.show.call(this)}; g.k.Eq=function(){this.hide()}; g.k.Uo=function(){if(this.j){var a=this.j.getProgressState();if(a!=null&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if((b=this.G)==null?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=(c=this.G)==null?void 0:(d=c.text)==null?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.qe(this.C,a);this.D=b}}}};g.z(T0,fx); T0.prototype.init=function(a,b){fx.prototype.init.call(this,a,b,{});var c,d;if((a=((d=mua(((c=b.image)==null?void 0:c.sources)||[],$7a(b),!0))==null?void 0:d.url)||"")&&a.length){c=this.Ea("ytp-ad-avatar");c.src=a;var e,f;if(d=(e=b.interaction)==null?void 0:(f=e.accessibility)==null?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.xw(Error("Failed to get imageUrl in AdAvatar."))}; T0.prototype.clear=function(){this.hide()}; T0.prototype.onClick=function(a){fx.prototype.onClick.call(this,a)};g.z(U0,fx); U0.prototype.init=function(a,b){fx.prototype.init.call(this,a,b,{});var c;a=(c=b.label)==null?void 0:c.content;if((c=a!=null&&!g.qb(a))||b.iconImage){c&&(this.buttonText=new g.ex({I:"span",S:"ytp-ad-button-vm__text",va:a}),g.P(this,this.buttonText),this.buttonText.Ja(this.element),this.api.U().experiments.kb("should_fix_player_ad_button_text_overflow")&&this.buttonText.element.classList.add("ytp-ad-button-vm__text--fix-text-overflow"));var d,e,f=((d=b.interaction)==null?0:(e=d.accessibility)==null? 0:e.label)||c?a:"";f&&Io(this.element,f+" This link opens in new tab");Go(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.w(e.sources),a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,(c=a.clientResource)==null?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:(h=e.clientResource)==null?void 0:h.imageName}}}h=wx(d);h!=null&&(this.buttonIcon=new g.ex({I:"span",S:"ytp-ad-button-vm__icon",V:[h]}),g.P(this,this.buttonIcon),b.iconLeading?(ne(this.element, this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")))}this.element.classList.add("ytp-ad-button-vm--style-filled");switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.yw(Error("AdButton does not have label or an icon."))}; U0.prototype.clear=function(){this.hide()}; U0.prototype.onClick=function(a){fx.prototype.onClick.call(this,a)};g.z(a8a,Qx);g.k=a8a.prototype; g.k.init=function(a,b){Qx.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.Ea("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"),ne(this.Ea("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.Q(b.avatar,v$a)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.Q(b.button,x$a);e?(this.adAvatar.init(Vw("ad-avatar"),a),this.headline.init(Vw("ad-simple-attributed-string"),new P0(c)),this.description.init(Vw("ad-simple-attributed-string"),new P0(d)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(Vw("ad-button"),e),this.B=b.startMs||0,this.api.PF()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.eW.bind(this)),Rx(this)):g.xw(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.xw(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.xw(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.xw(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.k.Uo=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(Sx(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.k.Eq=function(){this.clear()}; g.k.onClick=function(a){this.api.pauseVideo();Qx.prototype.onClick.call(this,a)}; g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.eW.bind(this))}; g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Qx.prototype.show.call(this)}; g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Qx.prototype.hide.call(this)}; g.k.eW=function(a){a==="hidden"?this.show():this.hide()};g.z(b8a,fx);g.k=b8a.prototype; g.k.init=function(a,b){fx.prototype.init.call(this,a,b,{});if(!b.label||g.qb(b.label))g.xw(Error("No label is returned for SkipAdButton."));else if(g.qe(this.D,b.label),a=wx({iconType:"SKIP_NEXT_NEW"}),a==null)g.xw(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.ex({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.P(this,this.C),this.C.Ja(this.element),this.api.U().experiments.kb("enable_skip_to_next_messaging")&&(b=g.Td(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id", b),this.element.setAttribute("data-tooltip-target-fixed","")}; g.k.onClick=function(a){a&&a.preventDefault();var b,c;if(Ksa(a,{contentCpn:(c=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?c:""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;fx.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.k.clear=function(){this.j.reset();this.hide()}; g.k.hide=function(){fx.prototype.hide.call(this)}; g.k.show=function(){this.j.start();fx.prototype.show.call(this);this.B&&this.api.U().experiments.kb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(c8a,Qx);g.k=c8a.prototype; g.k.init=function(a,b){Qx.prototype.init.call(this,a,b,{});var c=g.Q(b.preskipState,z$a);c?(a=g.Q(b.skippableState,B$a))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.yw(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(Vw("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(Vw("skip-button"),a),this.show()):g.xw(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.xw(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))}; g.k.show=function(){Rx(this);Qx.prototype.show.call(this)}; g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();Sx(this);Qx.prototype.hide.call(this)}; g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();Sx(this);Qx.prototype.hide.call(this)}; g.k.Eq=function(){this.hide()}; g.k.Uo=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;(a=this.B)!=null&&a.transition.hide();(a=this.C)!=null&&(a.transition.show(),a.show())}};g.z(V0,fx); V0.prototype.init=function(a,b){fx.prototype.init.call(this,a,b,{});if(b.label){var c;((c=b.label)==null?0:c.content)&&!g.qb(b.label.content)&&(this.linkText=new g.ex({I:"span",S:"ytp-visit-advertiser-link__text",va:b.label.content}),g.P(this,this.linkText),this.linkText.Ja(this.element));var d,e;if((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)Io(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=b.label)==null?0:f.content)&&!g.qb(b.label.content)&&Io(this.element, b.label.content+" This link opens in new tab")}Go(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.xw(Error("No label found in VisitAdvertiserLink."))}; V0.prototype.onClick=function(a){fx.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)}; V0.prototype.clear=function(){this.hide()};g.z(W0,fx); W0.prototype.init=function(a,b,c,d){fx.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.Q(c,C$a),c=g.Q(c,z$a),a?(this.zv=new c8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B),g.P(this,this.zv),this.zv.Ja(this.G),this.zv.init(Vw("skip-ad"),a)):c&&(this.C=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,1),g.P(this,this.C),this.C.Ja(this.G),this.C.init(Vw("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&& (a=g.Q(b.playerAdCard,A$a))&&(this.playerAdCard=new a8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B),g.P(this,this.playerAdCard),this.playerAdCard.Ja(this.ra),this.playerAdCard.init(Vw("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(c=b.adBadgeRenderer,a=g.Q(c,s$a),c=g.Q(c,w$a),a||c)&&(a?(this.adBadge=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),g.P(this,this.adBadge),this.adBadge.Ja(this.j),this.adBadge.init(Vw("simple-ad-badge"),a,this.macros)): c&&(this.D=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.D),this.D.Ja(this.j),this.D.init(Vw("ad-badge"),c),this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--with-ad-badge-view-model")));b.adDurationRemaining&&(a=g.Q(b.adDurationRemaining,l$a))&&(this.adDurationRemaining=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,d.videoAdDurationSeconds),g.P(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.j), this.adDurationRemaining.init(Vw("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer,UH))&&(this.adInfoButton=new Nx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,this.adInfoButton),this.adInfoButton.Ja(this.j),this.adInfoButton.init(Vw("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(d=g.Q(b.visitAdvertiserLink,D$a))&&(this.visitAdvertiserLink=new V0(this.api,this.layoutId,this.interactionLoggingClientData, this.jb),g.P(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.j),this.visitAdvertiserLink.init(Vw("visit-advertiser-link"),d));b.adDisclosureBanner&&(b=g.Q(b.adDisclosureBanner,y$a))&&(this.adDisclosureBanner=new sy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.adDisclosureBanner),this.adDisclosureBanner.Ja(this.Y),this.adDisclosureBanner.init(Vw("ad-disclosure-banner"),b));this.show()}; W0.prototype.clear=function(){this.hide()};var Nbb="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 ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.z(X0,Ix); X0.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!Nbb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.jb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof yD?c.OT:!1,m=c instanceof yD||c instanceof ly?c.CM:!1;h=h===void 0?{}:h;l=l===void 0?!1:l;m=m===void 0?!1:m;switch(d){case "invideo-overlay":a=new w7a(a,f,h,e);break;case "player-overlay":a=new wy(a,f,h,e,new NU(a),m);break;case "player-overlay-layout":a=new W0(a,f,h,e,new NU(a));break;case "survey":a= new N0(a,f,h,e);break;case "ad-action-interstitial":a=new r7a(a,f,h,e,l,m);break;case "survey-interstitial":a=new O0(a,f,h,e);break;case "ad-message":a=new E7a(a,f,h,e,new NU(a,1));break;case "player-underlay":a=new G7a(a,f,h,e);break;default:a=null}if(!a){g.yw(Error("No UI component returned from ComponentFactory for type: "+d));break}g.yc(this.B,b)?g.yw(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof ED?this.C?this.C.append(a.nT):g.xw(Error("Underlay view was not created but UnderlayRenderer was created")): this.G.append(a.nT);break;case 2:b=d8a(this,a);if(b==null)break;b.bind(c);break;case 3:c=d8a(this,a),c!=null&&(g.gb(c),g.yc(this.B,b)?(c=this.B,b in c&&delete c[b]):g.yw(Error("Ad UI component does not exist: "+b)))}}; X0.prototype.xa=function(){g.ib(Object.values(this.B));this.B={};Ix.prototype.xa.call(this)};g.z(e8a,g.ST);g.k=e8a.prototype;g.k.create=function(){try{f8a(this),this.load(),this.created=!0,f8a(this)}catch(a){cy(a instanceof Error?a:String(a))}}; g.k.load=function(){try{i8a(this)}finally{h0(F0(this.j).Al)&&this.player.Eg("ad",1)}}; g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.jy.Mo(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; g.k.unload=function(){g.ST.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){cy(b instanceof Error?b:String(b))}if(this.B!=null){var a=this.B;this.B=null;a.dispose()}this.C.reset()}; g.k.pn=function(){return!1}; g.k.getAdState=function(){return-1}; g.k.getOptions=function(){return Object.values(Mbb)}; g.k.Wh=function(a,b){b=b===void 0?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=D6a(this.player),Object.assign(b,a.Cma),a=g.lo(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.tq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}}; g.k.Tu=function(a){var b;return!((b=this.j.j.yf)==null||!b.get().Tu(a))}; g.k.tq=function(a){a.isMuted&&qua(F0(this.j).Kl,F0(this.j).Lo,a.layoutId);this.At&&this.At.tq()}; g.k.executeCommand=function(a){F0(this.j).jb.executeCommand(a.command,a.layoutId)};g.La("yt.player.Application.create",g.E_.create);g.La("yt.player.Application.createAlternate",g.E_.create);vra(tw(),{xs:[{rB:/Unable to load player module/,weight:20},{rB:/Failed to fetch/,weight:500},{rB:/XHR API fetch failed/,weight:10},{rB:/JSON parsing failed after XHR fetch/,weight:10},{rB:/Retrying OnePlatform request/,weight:10},{rB:/CSN Missing or undefined during playback association/,weight:100}]});var Obb=g.Ma("ytcsi.tick");Obb&&Obb("pe");g.RT("ad",e8a);g.Pbb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.La("yt.msgs_",g.Pbb);g.z(g.$0,g.O);g.$0.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.T)()};this.next()}; g.$0.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.$0.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.T)()-a;a=this.j;d=Hla(a,e/d);if(d==0)a=a.C;else if(d==1)a=a.D;else{e=Dd(a.C,a.y1,d);var f=Dd(a.y1,a.y2,d);a=Dd(a.y2,a.D,d);e=Dd(e,f,d);f=Dd(f,a,d);a=Dd(e,f,d)}a=g.Bd(a,0,1);this.callback(b+(c-b)*a);a<1&&this.delay.start()}};g.z(g.a1,g.U);g.k=g.a1.prototype;g.k.A6=function(){this.B&&this.scrollTo(this.j-this.containerWidth)}; g.k.show=function(){g.U.prototype.show.call(this);o8a(this)}; g.k.B6=function(){this.B&&this.scrollTo(this.j+this.containerWidth)}; g.k.ly=function(){this.kc(this.api.qb().getPlayerSize())}; g.k.kc=function(a){var b=this.api.jd()?.5625:16/9,c=this.api.Ih();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-c*8)/c;b=Math.floor(d/b);for(var e=g.w(this.C),f=e.next();!f.done;f=e.next())f=f.value.Ea("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.Y=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.b1(this)}; g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Gf?!1:a.D;this.suggestionData=b.suggestions?g.Wm(b.suggestions,function(c){return c&&!c.playlistId}):[]; q8a(this);b.Gf?this.title.update({title:g.YC("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.jd()?"More shorts":"More videos"})}; g.k.scrollTo=function(a){a=g.Bd(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.b1(this);o8a(this)};})(_yt_player);